Matter::Crypto::MatterCertificate
Inherits TLV::Serializable < Struct < Value < Object
Matter Certificate TLV structure See Matter spec section 6.5.2 "Matter Certificate Encoding"
Constructors
new(serial_number : Bytes, signature_algorithm : UInt8, issuer : DNAttributes, not_before : UInt32, not_after : UInt32, subject : DNAttributes, public_key_algorithm : UInt8, elliptic_curve_id : UInt8, ec_public_key : Bytes, signature : Bytes, extensions : TLV::Any | Nil = nil)
Sourcenew(any : TLV::Any)
SourceClass methods
from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
Sourcefrom_slice(bytes : Bytes)
Sourcefrom_tlv(any : TLV::Any)
Sourcefrom_tlv(data : Bytes)
SourceInstance methods
ec_public_key=(ec_public_key : Bytes)
Tag 9: EC public key (octet string, 65 bytes for uncompressed P-256)
elliptic_curve_id=(elliptic_curve_id : UInt8)
Tag 8: Elliptic curve ID (unsigned int) 1 = prime256v1 (P-256)
public_key_algorithm=(public_key_algorithm : UInt8)
Tag 7: Public key algorithm (unsigned int) 1 = EC public key
signature_algorithm=(signature_algorithm : UInt8)
Tag 2: Signature algorithm (unsigned int) 1 = ECDSA with SHA256
to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Sourceto_slice
Sourceto_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source