File Coverage

blib/lib/SBOM/CycloneDX/Enum/RelatedCryptoMaterialType.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::RelatedCryptoMaterialType;
2              
3 16     16   330 use 5.010001;
  16         67  
4 16     16   98 use strict;
  16         33  
  16         573  
5 16     16   87 use warnings;
  16         35  
  16         791  
6 16     16   97 use utf8;
  16         31  
  16         104  
7              
8 16     16   837 use Exporter 'import';
  16         49  
  16         4011  
9             our (@EXPORT_OK, %EXPORT_TAGS, %ENUM);
10              
11             BEGIN {
12              
13 16     16   310 %ENUM = (
14             PRIVATE_KEY => 'private-key',
15             PUBLIC_KEY => 'public-key',
16             SECRET_KEY => 'secret-key',
17             KEY => 'key',
18             CIPHERTEXT => 'ciphertext',
19             SIGNATURE => 'signature',
20             DIGEST => 'digest',
21             INITIALIZATION_VECTOR => 'initialization-vector',
22             NONCE => 'nonce',
23             SEED => 'seed',
24             SALT => 'salt',
25             SHARED_SECRET => 'shared-secret',
26             TAG => 'tag',
27             ADDITIONAL_DATA => 'additional-data',
28             PASSWORD => 'password',
29             CREDENTIAL => 'credential',
30             TOKEN => 'token',
31             OTHER => 'other',
32             UNKNOWN => 'unknown',
33             );
34              
35 16         104 require constant;
36 16         2838 constant->import(\%ENUM);
37              
38 16         311 @EXPORT_OK = sort keys %ENUM;
39 16         1812 %EXPORT_TAGS = (all => \@EXPORT_OK);
40              
41             }
42              
43 2     2 0 36 sub values { sort values %ENUM }
44              
45             1;
46              
47             =encoding utf-8
48              
49             =head1 NAME
50              
51             SBOM::CycloneDX::Enum::RelatedCryptoMaterialType - The type for the related cryptographic material
52              
53             =head1 SYNOPSIS
54              
55             use SBOM::CycloneDX::Enum qw(RELATED_CRYPTO_MATERIAL_TYPE);
56              
57             say RELATED_CRYPTO_MATERIAL_TYPE->PRIVATE_KEY;
58              
59              
60             use SBOM::CycloneDX::Enum::RelatedCryptoMaterialType;
61              
62             say SBOM::CycloneDX::Enum::RelatedCryptoMaterialType->SECRET_KEY;
63              
64              
65             use SBOM::CycloneDX::Enum::RelatedCryptoMaterialType qw(:all);
66              
67             say INITIALIZATION_VECTOR;
68              
69              
70             =head1 DESCRIPTION
71              
72             L is ENUM package used by L.
73              
74              
75             =head1 CONSTANTS
76              
77             =over
78              
79             =item * C, The confidential key of a key pair used in
80             asymmetric cryptography.
81              
82             =item * C, The non-confidential key of a key pair used in
83             asymmetric cryptography.
84              
85             =item * C, A key used to encrypt and decrypt messages in
86             symmetric cryptography.
87              
88             =item * C, A piece of information, usually an octet string, which,
89             when processed through a cryptographic algorithm, processes cryptographic
90             data.
91              
92             =item * C, The result of encryption performed on plaintext
93             using an algorithm (or cipher).
94              
95             =item * C, A cryptographic value that is calculated from the
96             data and a key known only by the signer.
97              
98             =item * C, The output of the hash function.
99              
100             =item * C, A fixed-size random or pseudo-random
101             value used as an input parameter for cryptographic algorithms.
102              
103             =item * C, A random or pseudo-random number that can only be used
104             once in a cryptographic communication.
105              
106             =item * C, The input to a pseudo-random number generator. Different
107             seeds generate different pseudo-random sequences.
108              
109             =item * C, A value used in a cryptographic process, usually to ensure
110             that the results of computations for one instance cannot be reused by an
111             attacker.
112              
113             =item * C, A piece of data known only to the parties
114             involved, in a secure communication.
115              
116             =item * C, A message authentication code (MAC), sometimes known as an
117             authentication tag, is a short piece of information used for authenticating
118             and integrity-checking a message.
119              
120             =item * C, An unspecified collection of data with
121             relevance to cryptographic activity.
122              
123             =item * C, A secret word, phrase, or sequence of characters used
124             during authentication or authorization.
125              
126             =item * C, Establishes the identity of a party to
127             communication, usually in the form of cryptographic keys or passwords.
128              
129             =item * C, An object encapsulating a security identity.
130              
131             =item * C, Another type of cryptographic asset.
132              
133             =item * C, The type of cryptographic asset is not known.
134              
135             =back
136              
137             =head1 SUPPORT
138              
139             =head2 Bugs / Feature Requests
140              
141             Please report any bugs or feature requests through the issue tracker
142             at L.
143             You will be notified automatically of any progress on your issue.
144              
145             =head2 Source Code
146              
147             This is open source software. The code repository is available for
148             public review and contribution under the terms of the license.
149              
150             L
151              
152             git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
153              
154              
155             =head1 AUTHOR
156              
157             =over 4
158              
159             =item * Giuseppe Di Terlizzi
160              
161             =back
162              
163              
164             =head1 LICENSE AND COPYRIGHT
165              
166             This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
167              
168             This is free software; you can redistribute it and/or modify it under
169             the same terms as the Perl 5 programming language system itself.
170              
171             =cut