Searched refs:kps (Results 1 – 3 of 3) sorted by relevance
/system/security/keystore2/src/km_compat/ |
D | slot_test.cpp | 59 std::vector<KeyParameter> kps; in begin() local 61 kps.push_back(KMV1::makeKeyParameter(KMV1::TAG_BLOCK_MODE, BlockMode::CBC)); in begin() 62 kps.push_back(KMV1::makeKeyParameter(KMV1::TAG_PADDING, PaddingMode::NONE)); in begin() 65 auto status = device->begin(KeyPurpose::ENCRYPT, blob, kps, HardwareAuthToken(), &beginResult); in begin() 145 auto kps = std::vector<KeyParameter>({ in TEST() local 156 status = device->generateKey(kps, std::nullopt /* attest_key */, &creationResult); in TEST() 159 kps.pop_back(); in TEST() 160 status = device->generateKey(kps, std::nullopt /* attest_key */, &creationResult); in TEST()
|
D | lib.rs | 74 fn generate_key(legacy: &dyn IKeyMintDevice, kps: Vec<KeyParameter>) -> KeyCreationResult { in generate_key() 76 legacy.generateKey(&kps, None /* attest_key */).expect("Failed to generate key"); in generate_key() 86 let mut kps = vec![ in generate_rsa_key() localVariable 116 kps.push(KeyParameter { in generate_rsa_key() 122 kps.push(KeyParameter { in generate_rsa_key() 126 kps.push(KeyParameter { in generate_rsa_key() 131 let creation_result = generate_key(legacy, kps); in generate_rsa_key() 162 let kps = [KeyParameter { in test_import_key() localVariable 169 legacy.importKey(&kps, kf, &kd, None /* attest_key */).expect("Failed to import key"); in test_import_key() 215 let kps = vec![ in generate_aes_key() localVariable [all …]
|
D | km_compat.cpp | 285 convertKeyParametersToLegacy(const std::vector<KeyParameter>& kps) { in convertKeyParametersToLegacy() argument 287 legacyKps.reserve(kps.size()); in convertKeyParametersToLegacy() 288 for (const auto& kp : kps) { in convertKeyParametersToLegacy() 299 std::vector<KeyParameter> kps(legacyKps.size()); in convertKeyParametersFromLegacy() local 300 std::transform(legacyKps.begin(), legacyKps.end(), kps.begin(), convertKeyParameterFromLegacy); in convertKeyParametersFromLegacy() 301 return kps; in convertKeyParametersFromLegacy() 1088 std::vector<KeyParameter> kps = { in signCertificate() local 1092 kps.push_back(KMV1::makeKeyParameter(KMV1::TAG_PADDING, origPadding)); in signCertificate() 1096 begin(KeyPurpose::SIGN, prefixedKeyBlob, kps, HardwareAuthToken(), &beginResult); in signCertificate()
|