Home | History | Annotate | Download | only in keymaster

Lines Matching refs:Key

21 #include "key.h"
88 bool OperationFactory::GetAndValidatePadding(const AuthorizationSet& begin_params, const Key& key,
99 // If it's a public key operation, all padding modes are authorized.
101 // Otherwise the key needs to authorize the specific mode.
102 !key.authorizations().Contains(TAG_PADDING, *padding) &&
103 !key.authorizations().Contains(TAG_PADDING_OLD, *padding)) {
104 LOG_E("Padding mode %d was specified, but not authorized by key", *padding);
113 bool OperationFactory::GetAndValidateDigest(const AuthorizationSet& begin_params, const Key& key,
124 // If it's a public key operation, all digests are authorized.
126 // Otherwise the key needs to authorize the specific digest.
127 !key.authorizations().Contains(TAG_DIGEST, *digest) &&
128 !key.authorizations().Contains(TAG_DIGEST_OLD, *digest)) {
129 LOG_E("Digest %d was specified, but not authorized by key", *digest);