Package-level declarations
Types
Protected header of a CoseSigned.
COSE public key as per RFC 8152. Since this is used as part of a COSE-specific DTO, every property is nullable
Wrapper to handle parameters for different COSE public key types.
Encapsulates serializing and deserializing all types of COSE keys. Actually, no CoseKey object is ever directly (de)serialized. Instead, all the whole structure of a CoseKey is duplicated into a discrete class used solely for (de)serialization. For EC keys using point compression, this wrapper is CompressedCompoundCoseKeySerialContainer, for all other key types, it is UncompressedCompoundCoseKeySerialContainer Both od these are flattened mammoth data structures devoid of encapsulation, as demanded by the COSE spec. Internally, deserialization employs a map to as a lookup table for CborLabels to reconstruct the correct key using the flattened mammoth.
Representation of a signed COSE_Sign1 object, i.e. consisting of protected header, unprotected header and payload.
Functions
Tries to find a matching COSE algorithm. Note that COSE imposes curve restrictions on ECDSA based on the digest.
Converts CryptoPublicKey into a KmmResult wrapped CoseKey If algorithm is not set then key can be used for any algorithm with same kty (RFC 8152), returns IllegalArgumentException for invalid kty/algorithm pairs