| 1 | package SBOM::CycloneDX::Enum::RelatedCryptoMaterialType; | ||
| 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 | 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 | require constant; | |
| 36 | 16 | constant->import(\%ENUM); | |
| 37 | |||
| 38 | 16 | @EXPORT_OK = sort keys %ENUM; | |
| 39 | 16 | %EXPORT_TAGS = (all => \@EXPORT_OK); | |
| 40 | |||
| 41 | } | ||
| 42 | |||
| 43 | 2 | ▶ | sub values { sort values %ENUM } |
|
Subroutine
values: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 44 | |||
| 45 | 16 | 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<SBOM::CycloneDX::Enum::RelatedCryptoMaterialType> is ENUM package used by L<SBOM::CycloneDX>. | ||
| 73 | |||
| 74 | |||
| 75 | =head1 CONSTANTS | ||
| 76 | |||
| 77 | =over | ||
| 78 | |||
| 79 | =item * C<PRIVATE_KEY>, The confidential key of a key pair used in | ||
| 80 | asymmetric cryptography. | ||
| 81 | |||
| 82 | =item * C<PUBLIC_KEY>, The non-confidential key of a key pair used in | ||
| 83 | asymmetric cryptography. | ||
| 84 | |||
| 85 | =item * C<SECRET_KEY>, A key used to encrypt and decrypt messages in | ||
| 86 | symmetric cryptography. | ||
| 87 | |||
| 88 | =item * C<KEY>, A piece of information, usually an octet string, which, | ||
| 89 | when processed through a cryptographic algorithm, processes cryptographic | ||
| 90 | data. | ||
| 91 | |||
| 92 | =item * C<CIPHERTEXT>, The result of encryption performed on plaintext | ||
| 93 | using an algorithm (or cipher). | ||
| 94 | |||
| 95 | =item * C<SIGNATURE>, A cryptographic value that is calculated from the | ||
| 96 | data and a key known only by the signer. | ||
| 97 | |||
| 98 | =item * C<DIGEST>, The output of the hash function. | ||
| 99 | |||
| 100 | =item * C<INITIALIZATION_VECTOR>, A fixed-size random or pseudo-random | ||
| 101 | value used as an input parameter for cryptographic algorithms. | ||
| 102 | |||
| 103 | =item * C<NONCE>, A random or pseudo-random number that can only be used | ||
| 104 | once in a cryptographic communication. | ||
| 105 | |||
| 106 | =item * C<SEED>, The input to a pseudo-random number generator. Different | ||
| 107 | seeds generate different pseudo-random sequences. | ||
| 108 | |||
| 109 | =item * C<SALT>, 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<SHARED_SECRET>, A piece of data known only to the parties | ||
| 114 | involved, in a secure communication. | ||
| 115 | |||
| 116 | =item * C<TAG>, 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<ADDITIONAL_DATA>, An unspecified collection of data with | ||
| 121 | relevance to cryptographic activity. | ||
| 122 | |||
| 123 | =item * C<PASSWORD>, A secret word, phrase, or sequence of characters used | ||
| 124 | during authentication or authorization. | ||
| 125 | |||
| 126 | =item * C<CREDENTIAL>, Establishes the identity of a party to | ||
| 127 | communication, usually in the form of cryptographic keys or passwords. | ||
| 128 | |||
| 129 | =item * C<TOKEN>, An object encapsulating a security identity. | ||
| 130 | |||
| 131 | =item * C<OTHER>, Another type of cryptographic asset. | ||
| 132 | |||
| 133 | =item * C<UNKNOWN>, 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<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||
| 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<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||
| 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 <gdt@cpan.org> | ||
| 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 | ||