« CycloneDX/Enum/CryptoCertificationLevel.pm
↑ Summary
CycloneDX/Enum/CryptoImplementationPlatform.pm »
| 1 | package SBOM::CycloneDX::Enum::CryptoFunction; | ||
| 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 | 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 | require constant; | |
| 30 | 16 | constant->import(\%ENUM); | |
| 31 | |||
| 32 | 16 | @EXPORT_OK = sort keys %ENUM; | |
| 33 | 16 | %EXPORT_TAGS = (all => \@EXPORT_OK); | |
| 34 | |||
| 35 | } | ||
| 36 | |||
| 37 | 2 | ▶ | sub values { sort values %ENUM } |
|
Subroutine
values: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 38 | |||
| 39 | |||
| 40 | 16 | 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<SBOM::CycloneDX::Enum::CryptoFunction> is ENUM package used by L<SBOM::CycloneDX::CryptoProperties::AlgorithmProperties>. | ||
| 68 | |||
| 69 | |||
| 70 | =head1 CONSTANTS | ||
| 71 | |||
| 72 | =over | ||
| 73 | |||
| 74 | =item * C<GENERATE> | ||
| 75 | |||
| 76 | =item * C<KEYGEN> | ||
| 77 | |||
| 78 | =item * C<ENCRYPT> | ||
| 79 | |||
| 80 | =item * C<DECRYPT> | ||
| 81 | |||
| 82 | =item * C<DIGEST> | ||
| 83 | |||
| 84 | =item * C<TAG> | ||
| 85 | |||
| 86 | =item * C<KEYDERIVE> | ||
| 87 | |||
| 88 | =item * C<SIGN> | ||
| 89 | |||
| 90 | =item * C<VERIFY> | ||
| 91 | |||
| 92 | =item * C<ENCAPSULATE> | ||
| 93 | |||
| 94 | =item * C<DECAPSULATE> | ||
| 95 | |||
| 96 | =item * C<OTHER> | ||
| 97 | |||
| 98 | =item * C<UNKNOWN> | ||
| 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<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||
| 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<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||
| 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 <gdt@cpan.org> | ||
| 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 | ||