enum

Beryl::Crypto::V1::SignatureFormat

Inherits Enum < Comparable < Value < Object

How an ECDSA signature (r, s) is written down.

Constants

DER = 0

The DER ECDSA-Sig-Value SEQUENCE of two INTEGERs (RFC 3279 ยง2.2.3, RFC 5480), used by TLS and X.509.

FixedWidth = 1

r || s, each left-padded to the size of the group order (IEEE P1363), used by COSE, JOSE and WebCrypto.

Instance methods

der?

Returns true if this enum value equals DER

Source
fixed_width?

Returns true if this enum value equals FixedWidth

Source