Home
last modified time | relevance | path

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

/system/keymaster/cppcose/
Dcppcose.cpp257 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()
[all …]