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