Home
last modified time | relevance | path

Searched refs:coseEncrypt (Results 1 – 1 of 1) sorted by relevance

/system/keymaster/cppcose/
Dcppcose.cpp492 getSenderPubKeyFromCoseEncrypt(const cppbor::Item* coseEncrypt) { in getSenderPubKeyFromCoseEncrypt() argument
493 if (!coseEncrypt || !coseEncrypt->asArray() || in getSenderPubKeyFromCoseEncrypt()
494 coseEncrypt->asArray()->size() != kCoseEncryptEntryCount) { in getSenderPubKeyFromCoseEncrypt()
498 auto& recipients = coseEncrypt->asArray()->get(kCoseEncryptRecipients); in getSenderPubKeyFromCoseEncrypt()
575 ErrMsgOr<bytevec> decryptCoseEncrypt(const bytevec& key, const cppbor::Item* coseEncrypt, in decryptCoseEncrypt() argument
577 if (!coseEncrypt || !coseEncrypt->asArray() || in decryptCoseEncrypt()
578 coseEncrypt->asArray()->size() != kCoseEncryptEntryCount) { in decryptCoseEncrypt()
582 auto& protParms = coseEncrypt->asArray()->get(kCoseEncryptProtectedParams); in decryptCoseEncrypt()
583 auto& unprotParms = coseEncrypt->asArray()->get(kCoseEncryptUnprotectedParams); in decryptCoseEncrypt()
584 auto& ciphertext = coseEncrypt->asArray()->get(kCoseEncryptPayload); in decryptCoseEncrypt()
[all …]