File Coverage

blib/lib/SBOM/CycloneDX/Enum/CryptoAssetType.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::CryptoAssetType;
2              
3 16     16   301 use 5.010001;
  16         62  
4 16     16   118 use strict;
  16         38  
  16         490  
5 16     16   92 use warnings;
  16         28  
  16         825  
6 16     16   116 use utf8;
  16         52  
  16         187  
7              
8 16     16   817 use Exporter 'import';
  16         52  
  16         2783  
9             our (@EXPORT_OK, %EXPORT_TAGS, %ENUM);
10              
11             BEGIN {
12              
13 16     16   146 %ENUM = (
14             ALGORITHM => 'algorithm',
15             CERTIFICATE => 'certificate',
16             PROTOCOL => 'protocol',
17             RELATED_CRYPTO_MATERIAL => 'related-crypto-material'
18             );
19              
20 16         88 require constant;
21 16         1115 constant->import(\%ENUM);
22              
23 16         108 @EXPORT_OK = sort keys %ENUM;
24 16         1569 %EXPORT_TAGS = (all => \@EXPORT_OK);
25              
26             }
27              
28 2     2 0 15 sub values { sort values %ENUM }
29              
30              
31             1;
32              
33             =encoding utf-8
34              
35             =head1 NAME
36              
37             SBOM::CycloneDX::Enum::CryptoAssetType - Crypto Asset Type
38              
39             =head1 SYNOPSIS
40              
41             use SBOM::CycloneDX::Enum qw(CRYPTO_ASSET_TYPE);
42              
43             say CRYPTO_FUNCTION->ALGORITHM;
44              
45              
46             use SBOM::CycloneDX::Enum::CryptoAssetType;
47              
48             say SBOM::CycloneDX::Enum::CryptoAssetType->CERTIFICATE;
49              
50              
51             use SBOM::CycloneDX::Enum::CryptoAssetType qw(:all);
52              
53             say RELATED_CRYPTO_MATERIAL;
54              
55              
56             =head1 DESCRIPTION
57              
58             L is ENUM package used by L.
59              
60             Cryptographic assets occur in several forms. Algorithms and protocols are
61             most commonly implemented in specialized cryptographic libraries. They may,
62             however, also be 'hardcoded' in software components. Certificates and
63             related cryptographic material like keys, tokens, secrets or passwords are
64             other cryptographic assets to be modelled.
65              
66              
67             =head1 CONSTANTS
68              
69             =over
70              
71             =item * C, Mathematical function commonly used for data
72             encryption, authentication, and digital signatures.
73              
74             =item * C, An electronic document that is used to provide the
75             identity or validate a public key.
76              
77             =item * C, A set of rules and guidelines that govern the behavior
78             and communication with each other.
79              
80             =item * C, Other cryptographic assets related to
81             algorithms, certificates, and protocols such as keys and tokens.
82              
83             =back
84              
85             =head1 SUPPORT
86              
87             =head2 Bugs / Feature Requests
88              
89             Please report any bugs or feature requests through the issue tracker
90             at L.
91             You will be notified automatically of any progress on your issue.
92              
93             =head2 Source Code
94              
95             This is open source software. The code repository is available for
96             public review and contribution under the terms of the license.
97              
98             L
99              
100             git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
101              
102              
103             =head1 AUTHOR
104              
105             =over 4
106              
107             =item * Giuseppe Di Terlizzi
108              
109             =back
110              
111              
112             =head1 LICENSE AND COPYRIGHT
113              
114             This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
115              
116             This is free software; you can redistribute it and/or modify it under
117             the same terms as the Perl 5 programming language system itself.
118              
119             =cut