CycloneDX/Enum/CryptoAssetType.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.6% 29 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« CycloneDX/Enum/CommonExtensionName.pm ↑ Summary CycloneDX/Enum/CryptoCertificationLevel.pm »
1 package SBOM::CycloneDX::Enum::CryptoAssetType;
2  
3 16 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 16 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 16 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 16 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 16 our (@EXPORT_OK, %EXPORT_TAGS, %ENUM);
10  
11 16 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 16 %ENUM = (
14 ALGORITHM => 'algorithm',
15 CERTIFICATE => 'certificate',
16 PROTOCOL => 'protocol',
17 RELATED_CRYPTO_MATERIAL => 'related-crypto-material'
18 );
19  
20 16 require constant;
21 16 constant->import(\%ENUM);
22  
23 16 @EXPORT_OK = sort keys %ENUM;
24 16 %EXPORT_TAGS = (all => \@EXPORT_OK);
25  
26 }
27  
28 2 ▶sub values { sort values %ENUM }
Subroutine values: called CC=1 SCAR=0.0
Pod undocumented
29  
30  
31 16 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<SBOM::CycloneDX::Enum::CryptoAssetType> is ENUM package used by L<SBOM::CycloneDX::CryptoProperties>.
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<ALGORITHM>, Mathematical function commonly used for data
72 encryption, authentication, and digital signatures.
73  
74 =item * C<CERTIFICATE>, An electronic document that is used to provide the
75 identity or validate a public key.
76  
77 =item * C<PROTOCOL>, A set of rules and guidelines that govern the behavior
78 and communication with each other.
79  
80 =item * C<RELATED_CRYPTO_MATERIAL>, 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<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>.
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<https://github.com/giterlizzi/perl-SBOM-CycloneDX>
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 <gdt@cpan.org>
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
« CycloneDX/Enum/CommonExtensionName.pm ↑ Summary CycloneDX/Enum/CryptoCertificationLevel.pm »