CycloneDX/Enum/CryptoImplementationPlatform.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/CryptoFunction.pm ↑ Summary CycloneDX/Enum/CryptoMode.pm »
1 package SBOM::CycloneDX::Enum::CryptoImplementationPlatform;
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 GENERIC => 'generic',
15 X86_32 => 'x86_32',
16 X86_64 => 'x86_64',
17 ARMV7_A => 'armv7-a',
18 ARMV7_M => 'armv7-m',
19 ARMV8_A => 'armv8-a',
20 ARMV8_M => 'armv8-m',
21 ARMV9_A => 'armv9-a',
22 ARMV9_M => 'armv9-m',
23 S390X => 's390x',
24 PPC64 => 'ppc64',
25 PPC64LE => 'ppc64le',
26 OTHER => 'other',
27 UNKNOWN => 'unknown',
28 );
29  
30 16 require constant;
31 16 constant->import(\%ENUM);
32  
33 16 @EXPORT_OK = sort keys %ENUM;
34 16 %EXPORT_TAGS = (all => \@EXPORT_OK);
35  
36 }
37  
38 2 ▶sub values { sort values %ENUM }
Subroutine values: called CC=1 SCAR=0.0
Pod undocumented
39  
40  
41 16 1;
42  
43 =encoding utf-8
44  
45 =head1 NAME
46  
47 SBOM::CycloneDX::Enum::CryptoImplementationPlatform - Implementation platform
48  
49 =head1 SYNOPSIS
50  
51 use SBOM::CycloneDX::Enum qw(CRYPTO_IMPLEMENTATION_PLATFORM);
52  
53 say CRYPTO_IMPLEMENTATION_PLATFORM->X86_64;
54  
55  
56 use SBOM::CycloneDX::Enum::CryptoImplementationPlatform;
57  
58 say SBOM::CycloneDX::Enum::CryptoImplementationPlatform->GENERIC;
59  
60  
61 use SBOM::CycloneDX::Enum::CryptoImplementationPlatform qw(:all);
62  
63 say ARMV7_A;
64  
65  
66 =head1 DESCRIPTION
67  
68 L<SBOM::CycloneDX::Enum::CryptoImplementationPlatform> is ENUM package used by L<SBOM::CycloneDX::CryptoProperties::AlgorithmProperties>.
69  
70 The target platform for which the algorithm is implemented. The
71 implementation can be 'generic', running on any platform or for a specific
72 platform.
73  
74  
75 =head1 CONSTANTS
76  
77 =over
78  
79 =item * C<GENERIC>
80  
81 =item * C<X86_32>
82  
83 =item * C<X86_64>
84  
85 =item * C<ARMV7_A>
86  
87 =item * C<ARMV7_M>
88  
89 =item * C<ARMV8_A>
90  
91 =item * C<ARMV8_M>
92  
93 =item * C<ARMV9_A>
94  
95 =item * C<ARMV9_M>
96  
97 =item * C<S390X>
98  
99 =item * C<PPC64>
100  
101 =item * C<PPC64LE>
102  
103 =item * C<OTHER>
104  
105 =item * C<UNKNOWN>
106  
107 =back
108  
109 =head1 SUPPORT
110  
111 =head2 Bugs / Feature Requests
112  
113 Please report any bugs or feature requests through the issue tracker
114 at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>.
115 You will be notified automatically of any progress on your issue.
116  
117 =head2 Source Code
118  
119 This is open source software. The code repository is available for
120 public review and contribution under the terms of the license.
121  
122 L<https://github.com/giterlizzi/perl-SBOM-CycloneDX>
123  
124 git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
125  
126  
127 =head1 AUTHOR
128  
129 =over 4
130  
131 =item * Giuseppe Di Terlizzi <gdt@cpan.org>
132  
133 =back
134  
135  
136 =head1 LICENSE AND COPYRIGHT
137  
138 This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
139  
140 This is free software; you can redistribute it and/or modify it under
141 the same terms as the Perl 5 programming language system itself.
142  
143 =cut
« CycloneDX/Enum/CryptoFunction.pm ↑ Summary CycloneDX/Enum/CryptoMode.pm »