Lines Matching refs:digest
39 bool OperationFactory::supported(keymaster_digest_t digest) const { in supported()
43 if (digest == supported_digests[i]) return true; in supported()
112 keymaster_digest_t* digest, in GetAndValidateDigest() argument
114 return GetAndValidateDigest(begin_params, key, digest, error, false); in GetAndValidateDigest()
118 keymaster_digest_t* digest, keymaster_error_t* error, in GetAndValidateDigest() argument
121 if (!begin_params.GetTagValue(TAG_DIGEST, digest)) { in GetAndValidateDigest()
126 *digest = KM_DIGEST_NONE; in GetAndValidateDigest()
132 } else if (!supported(*digest)) { in GetAndValidateDigest()
133 LOG_E("Digest %d not supported", *digest); in GetAndValidateDigest()
139 !key.authorizations().Contains(TAG_DIGEST, *digest) && in GetAndValidateDigest()
140 !key.authorizations().Contains(TAG_DIGEST_OLD, *digest)) { in GetAndValidateDigest()
141 LOG_E("Digest %d was specified, but not authorized by key", *digest); in GetAndValidateDigest()