Lines Matching refs:keyConfig

31 void checkEnforcedCharacteristics(const hidl_vec<KeyParameter>& keyParams, KeyConfig* keyConfig) {  in checkEnforcedCharacteristics()  argument
35 keyConfig->add_purpose(toString(accessTagValue(TAG_PURPOSE, keyParam))); in checkEnforcedCharacteristics()
38 keyConfig->set_algorithm(toString(accessTagValue(TAG_ALGORITHM, keyParam))); in checkEnforcedCharacteristics()
41 keyConfig->set_key_size(accessTagValue(TAG_KEY_SIZE, keyParam)); in checkEnforcedCharacteristics()
44 keyConfig->add_block_mode(toString(accessTagValue(TAG_BLOCK_MODE, keyParam))); in checkEnforcedCharacteristics()
47 keyConfig->add_padding(toString(accessTagValue(TAG_PADDING, keyParam))); in checkEnforcedCharacteristics()
50 keyConfig->add_digest(toString(accessTagValue(TAG_DIGEST, keyParam))); in checkEnforcedCharacteristics()
53 keyConfig->set_ec_curve(toString(accessTagValue(TAG_EC_CURVE, keyParam))); in checkEnforcedCharacteristics()
56 keyConfig->set_user_auth_key_timeout(accessTagValue(TAG_AUTH_TIMEOUT, keyParam)); in checkEnforcedCharacteristics()
59 keyConfig->set_origin(toString(accessTagValue(TAG_ORIGIN, keyParam))); in checkEnforcedCharacteristics()
62 keyConfig->set_key_blob_usage_reqs( in checkEnforcedCharacteristics()
66 keyConfig->set_user_auth_type(toString(accessTagValue(TAG_USER_AUTH_TYPE, keyParam))); in checkEnforcedCharacteristics()
76 KeyConfig keyConfig; in uploadKeyCharacteristicsAsProto() local
77 checkEnforcedCharacteristics(keyParams, &keyConfig); in uploadKeyCharacteristicsAsProto()
79 keyConfig.set_was_creation_successful(wasCreationSuccessful); in uploadKeyCharacteristicsAsProto()
81 size_t size = keyConfig.ByteSize(); in uploadKeyCharacteristicsAsProto()
83 keyConfig.SerializeWithCachedSizesToArray(data.get()); in uploadKeyCharacteristicsAsProto()