Lines Matching refs:coseEncrypt
257 getSenderPubKeyFromCoseEncrypt(const cppbor::Item* coseEncrypt) { in getSenderPubKeyFromCoseEncrypt() argument
258 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() argument
323 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()
331 auto& recipients = coseEncrypt->asArray()->get(kCoseEncryptRecipients); in decryptCoseEncrypt()