Lines Matching refs:key_description
224 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in GenerateKey()
231 response->error = factory->GenerateKey(request.key_description, &key_blob, in GenerateKey()
437 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in ImportKey()
443 response->error = factory->ImportKey(request.key_description, request.key_format, in ImportKey()
490 AuthorizationSet key_description; in ImportWrappedKey() local
495 request.masking_key, &key_description, &key_format, &secret_key); in ImportWrappedKey()
501 int sid_idx = key_description.find(TAG_USER_SECURE_ID); in ImportWrappedKey()
503 uint8_t sids = key_description[sid_idx].long_integer; in ImportWrappedKey()
504 if (!key_description.erase(sid_idx)) { in ImportWrappedKey()
509 key_description.push_back(TAG_USER_SECURE_ID, request.password_sid); in ImportWrappedKey()
512 key_description.push_back(TAG_USER_SECURE_ID, request.biometric_sid); in ImportWrappedKey()
518 if (!key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in ImportWrappedKey()
524 factory->ImportKey(key_description, key_format, KeymasterKeyBlob(secret_key), &key_blob, in ImportWrappedKey()