File Coverage

blib/lib/SBOM/CycloneDX/Enum/CryptoFunction.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 1 0.0
total 27 28 96.4


line stmt bran cond sub pod time code
1             package SBOM::CycloneDX::Enum::CryptoFunction;
2              
3 16     16   281 use 5.010001;
  16         62  
4 16     16   88 use strict;
  16         35  
  16         461  
5 16     16   74 use warnings;
  16         29  
  16         843  
6 16     16   91 use utf8;
  16         29  
  16         89  
7              
8 16     16   909 use Exporter 'import';
  16         55  
  16         3394  
9             our (@EXPORT_OK, %EXPORT_TAGS, %ENUM);
10              
11             BEGIN {
12              
13 16     16   300 %ENUM = (
14             GENERATE => 'generate',
15             KEYGEN => 'keygen',
16             ENCRYPT => 'encrypt',
17             DECRYPT => 'decrypt',
18             DIGEST => 'digest',
19             TAG => 'tag',
20             KEYDERIVE => 'keyderive',
21             SIGN => 'sign',
22             VERIFY => 'verify',
23             ENCAPSULATE => 'encapsulate',
24             DECAPSULATE => 'decapsulate',
25             OTHER => 'other',
26             UNKNOWN => 'unknown',
27             );
28              
29 16         96 require constant;
30 16         2079 constant->import(\%ENUM);
31              
32 16         185 @EXPORT_OK = sort keys %ENUM;
33 16         1747 %EXPORT_TAGS = (all => \@EXPORT_OK);
34              
35             }
36              
37 2     2 0 22 sub values { sort values %ENUM }
38              
39              
40             1;
41              
42             =encoding utf-8
43              
44             =head1 NAME
45              
46             SBOM::CycloneDX::Enum::CryptoFunction - The cryptographic functions implemented by the cryptographic algorithm
47              
48             =head1 SYNOPSIS
49              
50             use SBOM::CycloneDX::Enum qw(CRYPTO_FUNCTION);
51              
52             say CRYPTO_FUNCTION->GENERATE;
53              
54              
55             use SBOM::CycloneDX::Enum::CryptoFunction;
56              
57             say SBOM::CycloneDX::Enum::CryptoFunction->KEYGEN;
58              
59              
60             use SBOM::CycloneDX::Enum::CryptoFunction qw(:all);
61              
62             say DECRYPT;
63              
64              
65             =head1 DESCRIPTION
66              
67             L is ENUM package used by L.
68              
69              
70             =head1 CONSTANTS
71              
72             =over
73              
74             =item * C
75              
76             =item * C
77              
78             =item * C
79              
80             =item * C
81              
82             =item * C
83              
84             =item * C
85              
86             =item * C
87              
88             =item * C
89              
90             =item * C
91              
92             =item * C
93              
94             =item * C
95              
96             =item * C
97              
98             =item * C
99              
100             =back
101              
102             =head1 SUPPORT
103              
104             =head2 Bugs / Feature Requests
105              
106             Please report any bugs or feature requests through the issue tracker
107             at L.
108             You will be notified automatically of any progress on your issue.
109              
110             =head2 Source Code
111              
112             This is open source software. The code repository is available for
113             public review and contribution under the terms of the license.
114              
115             L
116              
117             git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
118              
119              
120             =head1 AUTHOR
121              
122             =over 4
123              
124             =item * Giuseppe Di Terlizzi
125              
126             =back
127              
128              
129             =head1 LICENSE AND COPYRIGHT
130              
131             This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
132              
133             This is free software; you can redistribute it and/or modify it under
134             the same terms as the Perl 5 programming language system itself.
135              
136             =cut