Lines Matching refs:digest
42 bool OperationFactory::supported(keymaster_digest_t digest) const { in supported()
46 if (digest == supported_digests[i]) in supported()
115 keymaster_digest_t* digest, in GetAndValidateDigest() argument
117 return GetAndValidateDigest(begin_params, key, digest, error, false); in GetAndValidateDigest()
121 keymaster_digest_t* digest, keymaster_error_t* error, in GetAndValidateDigest() argument
124 if (!begin_params.GetTagValue(TAG_DIGEST, digest)) { in GetAndValidateDigest()
129 *digest = KM_DIGEST_NONE; in GetAndValidateDigest()
135 } else if (!supported(*digest)) { in GetAndValidateDigest()
136 LOG_E("Digest %d not supported", *digest); in GetAndValidateDigest()
142 !key.authorizations().Contains(TAG_DIGEST, *digest) && in GetAndValidateDigest()
143 !key.authorizations().Contains(TAG_DIGEST_OLD, *digest)) { in GetAndValidateDigest()
144 LOG_E("Digest %d was specified, but not authorized by key", *digest); in GetAndValidateDigest()