Beryl::Certificates::SignatureAlgorithm
A signature algorithm identifier (RFC 5280 §4.1.1.2) and what it means for verification.
Constructors
new(scheme : Beryl::Certificates::SignatureAlgorithm::Scheme, hash_function : Beryl::Certificates::SignatureAlgorithm::HashFunction, encoded : Slice(UInt8), identifier : Beryl::Encoding::DistinguishedEncodingRules::ObjectIdentifier)
Sourceread(reader : Encoding::DER::Reader) : SignatureAlgorithm
Reads an AlgorithmIdentifier from reader.
Instance methods
encoded
The whole AlgorithmIdentifier encoding, which RFC 5280 §4.1.1.2 requires to equal the one inside the signed part.
hash_function
Sourceidentifier
Sourcerefused_hash_function_name
Returns "SHA-1" or "MD5" when this algorithm signs over that hash,
which Beryl refuses whatever the key (RFC 9155 for SHA-1, RFC 6151
for MD5); nil for every other algorithm.
scheme
Sourcesupported?
Source