Lines Matching refs:KeyPurpose
43 static ErrorCode authorized_purpose(const KeyPurpose purpose, const AuthorizationSet& auth_set) { in authorized_purpose()
45 case KeyPurpose::VERIFY: in authorized_purpose()
46 case KeyPurpose::ENCRYPT: in authorized_purpose()
47 case KeyPurpose::SIGN: in authorized_purpose()
48 case KeyPurpose::DECRYPT: in authorized_purpose()
57 inline bool is_origination_purpose(KeyPurpose purpose) { in is_origination_purpose()
58 return purpose == KeyPurpose::ENCRYPT || purpose == KeyPurpose::SIGN; in is_origination_purpose()
61 inline bool is_usage_purpose(KeyPurpose purpose) { in is_usage_purpose()
62 return purpose == KeyPurpose::DECRYPT || purpose == KeyPurpose::VERIFY; in is_usage_purpose()
72 ErrorCode KeymasterEnforcement::AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid, in AuthorizeOperation()
79 case KeyPurpose::ENCRYPT: in AuthorizeOperation()
80 case KeyPurpose::VERIFY: in AuthorizeOperation()
84 case KeyPurpose::DECRYPT: in AuthorizeOperation()
85 case KeyPurpose::SIGN: in AuthorizeOperation()
88 case KeyPurpose::WRAP_KEY: in AuthorizeOperation()
147 ErrorCode KeymasterEnforcement::AuthorizeBegin(const KeyPurpose purpose, const km_id_t keyid, in AuthorizeBegin()
326 case KeyPurpose::ENCRYPT: in AuthorizeBegin()
327 case KeyPurpose::VERIFY: in AuthorizeBegin()
330 case KeyPurpose::DECRYPT: in AuthorizeBegin()
331 case KeyPurpose::SIGN: in AuthorizeBegin()
332 case KeyPurpose::WRAP_KEY: in AuthorizeBegin()