The algorithms of the seals: their digests and signature schemes, the curves of the EC keys, the smallest RSA key. The identifiers are those of the core; the digests are those of the tokens, SHA-1 and RIPEMD-160 excepted (ETSI TS 119 312).
| Methods | ||
|---|---|---|
public
static
|
describeKey(resource|OpenSSLAsymmetricKey $key): array
|
# |
public
static
|
keyProblem($key, $what)
|
# |
public
static
|
verifyValue(array $scheme, string $data, string $signature, resource|OpenSSLAsymmetricKey $publicKey): boolean
|
# |
public
static
|
derToRaw($signature, $curve)
|
# |
public
static
|
rawToDer($signature, $curve)
|
# |
| Constants | |||
|---|---|---|---|
public
|
DIGESTS = [Algorithms::SHA256 => 'sha256', Algorithms::SHA384 => 'sha384', Algorithms::SHA512 => 'sha512']
|
# | |
public
|
SIGNATURE_SCHEMES = [
Algorithms::RSA_PSS_SHA256 => ['keyType' => 'rsa', 'hash' => 'sha256', 'padding' => 'pss'],
Algorithms::RSA_PSS_SHA384 => ['keyType' => 'rsa', 'hash' => 'sha384', 'padding' => 'pss'],
Algorithms::RSA_PSS_SHA512 => ['keyType' => 'rsa', 'hash' => 'sha512', 'padding' => 'pss'],
Algorithms::RSA_SHA256 => ['keyType' => 'rsa', 'hash' => 'sha256', 'padding' => 'pkcs1'],
Algorithms::RSA_SHA384 => ['keyType' => 'rsa', 'hash' => 'sha384', 'padding' => 'pkcs1'],
Algorithms::RSA_SHA512 => ['keyType' => 'rsa', 'hash' => 'sha512', 'padding' => 'pkcs1'],
Algorithms::ECDSA_SHA256 => ['keyType' => 'ec', 'hash' => 'sha256', 'padding' => 'ecdsa'],
Algorithms::ECDSA_SHA384 => ['keyType' => 'ec', 'hash' => 'sha384', 'padding' => 'ecdsa'],
Algorithms::ECDSA_SHA512 => ['keyType' => 'ec', 'hash' => 'sha512', 'padding' => 'ecdsa'],
]
|
# | |
public
|
CURVES = [
'prime256v1' => Algorithms::ECDSA_SHA256,
'secp384r1' => Algorithms::ECDSA_SHA384,
'secp521r1' => Algorithms::ECDSA_SHA512,
]
|
# | |
public
|
MIN_RSA_BITS = 2048
|
# | |