Searched refs:coseEncrypt (Results 1 – 1 of 1) sorted by relevance
257 getSenderPubKeyFromCoseEncrypt(const cppbor::Item* coseEncrypt) { in getSenderPubKeyFromCoseEncrypt() argument258 if (!coseEncrypt || !coseEncrypt->asArray() || in getSenderPubKeyFromCoseEncrypt()259 coseEncrypt->asArray()->size() != kCoseEncryptEntryCount) { in getSenderPubKeyFromCoseEncrypt()263 auto& recipients = coseEncrypt->asArray()->get(kCoseEncryptRecipients); in getSenderPubKeyFromCoseEncrypt()321 ErrMsgOr<bytevec> decryptCoseEncrypt(const bytevec& key, const cppbor::Item* coseEncrypt, in decryptCoseEncrypt() argument323 if (!coseEncrypt || !coseEncrypt->asArray() || in decryptCoseEncrypt()324 coseEncrypt->asArray()->size() != kCoseEncryptEntryCount) { in decryptCoseEncrypt()328 auto& protParms = coseEncrypt->asArray()->get(kCoseEncryptProtectedParams); in decryptCoseEncrypt()329 auto& unprotParms = coseEncrypt->asArray()->get(kCoseEncryptUnprotectedParams); in decryptCoseEncrypt()330 auto& ciphertext = coseEncrypt->asArray()->get(kCoseEncryptPayload); in decryptCoseEncrypt()[all …]