Passed
Push — master ( 0010e9...022bc2 )
by Thomas
11:25
created

CoseAlgorithm::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace MadWizard\WebAuthn\Crypto;
4
5
/**
6
 * Enumeration for COSE algorithm identifiers.
7
 * This is not a complete enumeration of all algorithms, only the algorithms relevant to this WebAuthn implementation
8
 * are included.
9
 *
10
 * @see https://www.iana.org/assignments/cose/cose.xhtml#algorithms
11
 */
12
final class CoseAlgorithm
13
{
14
    /**
15
     * ECDSA w/ SHA-256 (RFC8152).
16
     */
17
    public const ES256 = -7;
18
19
    /**
20
     * ECDSA w/ SHA-384 (RFC8152).
21
     */
22
    public const ES384 = -35;
23
24
    /**
25
     * ECDSA w/ SHA-512 (RFC8152).
26
     */
27
    public const ES512 = -36;
28
29
    /**
30
     * RSASSA-PKCS1-v1_5 w/ SHA-256.
31
     */
32
    public const RS256 = -257;
33
34
    /**
35
     * RSASSA-PKCS1-v1_5 w/ SHA-384.
36
     */
37
    public const RS384 = -258;
38
39
    /**
40
     * RSASSA-PKCS1-v1_5 w/ SHA-512.
41
     */
42
    public const RS512 = -259;
43
44
    /**
45
     * RSASSA-PKCS1-v1_5 w/ SHA-1.
46
     */
47
    public const RS1 = -65535;
48
49
    /**
50
     * @codeCoverageIgnore
51
     */
52
    private function __construct()
53
    {
54
    }
55
}
56