COSEEncrypt0.deserialize constructor
COSEEncrypt0.deserialize(
- CborIterableObject<
Iterable> cbor
Implementation
factory COSEEncrypt0.deserialize(CborIterableObject cbor) {
return COSEEncrypt0(
headers: COSEHeaders(
protected: COSEProtectedHeaderMap.deserialize(
cbor.elementAt<CborBytesValue>(0)),
unprotected:
COSEHeaderMap.deserialize(cbor.elementAt<CborMapValue>(1))),
ciphertext: cbor.elementAtBytes<List<int>?>(2),
serializationConfig: COSESerializationConfig(encoding: cbor.encoding));
}