Lines Matching refs:key_description
224 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in GenerateKey()
228 request.key_description.GetTagValue(TAG_EARLY_BOOT_ONLY) && in GenerateKey()
235 response->error = factory->GenerateKey(request.key_description, &key_blob, in GenerateKey()
441 if (!request.key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in ImportKey()
447 response->error = factory->ImportKey(request.key_description, request.key_format, in ImportKey()
494 AuthorizationSet key_description; in ImportWrappedKey() local
499 request.masking_key, &key_description, &key_format, &secret_key); in ImportWrappedKey()
505 int sid_idx = key_description.find(TAG_USER_SECURE_ID); in ImportWrappedKey()
507 uint8_t sids = key_description[sid_idx].long_integer; in ImportWrappedKey()
508 if (!key_description.erase(sid_idx)) { in ImportWrappedKey()
513 key_description.push_back(TAG_USER_SECURE_ID, request.password_sid); in ImportWrappedKey()
516 key_description.push_back(TAG_USER_SECURE_ID, request.biometric_sid); in ImportWrappedKey()
522 if (!key_description.GetTagValue(TAG_ALGORITHM, &algorithm) || in ImportWrappedKey()
528 factory->ImportKey(key_description, key_format, KeymasterKeyBlob(secret_key), &key_blob, in ImportWrappedKey()