COSERecipient.deserialize constructor

COSERecipient.deserialize(
  1. CborIterableObject<Iterable> cbor
)

Implementation

factory COSERecipient.deserialize(CborIterableObject cbor) {
  return COSERecipient(
      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));
}