Searched refs:keymasterAlgorithm (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreProvider.java | 263 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStorePublicKeyFromKeystore() local 264 if (keymasterAlgorithm == null) { in loadAndroidKeyStorePublicKeyFromKeystore() 271 keymasterAlgorithm); in loadAndroidKeyStorePublicKeyFromKeystore() 333 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStoreSecretKeyFromKeystore() local 334 if (keymasterAlgorithm == null) { in loadAndroidKeyStoreSecretKeyFromKeystore() 351 keymasterAlgorithm, keymasterDigest); in loadAndroidKeyStoreSecretKeyFromKeystore() 366 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStoreKeyFromKeystore() local 367 if (keymasterAlgorithm == null) { in loadAndroidKeyStoreKeyFromKeystore() 371 if (keymasterAlgorithm == KeymasterDefs.KM_ALGORITHM_HMAC || in loadAndroidKeyStoreKeyFromKeystore() 372 keymasterAlgorithm == KeymasterDefs.KM_ALGORITHM_AES || in loadAndroidKeyStoreKeyFromKeystore() [all …]
|
D | AndroidKeyStoreKeyPairGeneratorSpi.java | 172 protected AndroidKeyStoreKeyPairGeneratorSpi(int keymasterAlgorithm) { in AndroidKeyStoreKeyPairGeneratorSpi() argument 173 mOriginalKeymasterAlgorithm = keymasterAlgorithm; in AndroidKeyStoreKeyPairGeneratorSpi() 200 int keymasterAlgorithm = mOriginalKeymasterAlgorithm; in initialize() local 212 keymasterAlgorithm = in initialize() 220 switch (keymasterAlgorithm) { in initialize() 298 mKeymasterAlgorithm = keymasterAlgorithm; in initialize() 303 mKeySizeBits = getDefaultKeySize(keymasterAlgorithm); in initialize() 305 checkValidKeySize(keymasterAlgorithm, mKeySizeBits, mSpec.isStrongBoxBacked()); in initialize() 314 keymasterAlgorithm); in initialize() 735 private static int getDefaultKeySize(int keymasterAlgorithm) { in getDefaultKeySize() argument [all …]
|
D | KeyProperties.java | 202 int keymasterAlgorithm) { in fromKeymasterAsymmetricKeyAlgorithm() argument 203 switch (keymasterAlgorithm) { in fromKeymasterAsymmetricKeyAlgorithm() 210 "Unsupported key algorithm: " + keymasterAlgorithm); in fromKeymasterAsymmetricKeyAlgorithm() 230 int keymasterAlgorithm, int keymasterDigest) { in fromKeymasterSecretKeyAlgorithm() argument 231 switch (keymasterAlgorithm) { in fromKeymasterSecretKeyAlgorithm() 254 "Unsupported key algorithm: " + keymasterAlgorithm); in fromKeymasterSecretKeyAlgorithm()
|
D | AndroidKeyStoreKeyGeneratorSpi.java | 121 int keymasterAlgorithm, in AndroidKeyStoreKeyGeneratorSpi() argument 123 this(keymasterAlgorithm, -1, defaultKeySizeBits); in AndroidKeyStoreKeyGeneratorSpi() 127 int keymasterAlgorithm, in AndroidKeyStoreKeyGeneratorSpi() argument 130 mKeymasterAlgorithm = keymasterAlgorithm; in AndroidKeyStoreKeyGeneratorSpi()
|
D | KeymasterUtils.java | 204 int keymasterAlgorithm, in addMinMacLengthAuthorizationIfNecessary() argument 207 switch (keymasterAlgorithm) { in addMinMacLengthAuthorizationIfNecessary()
|
D | AndroidKeyStoreSpi.java | 650 int keymasterAlgorithm = in setSecretKeyEntry() local 652 args.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, keymasterAlgorithm); in setSecretKeyEntry() 655 if (keymasterAlgorithm == KeymasterDefs.KM_ALGORITHM_HMAC) { in setSecretKeyEntry() 721 keymasterAlgorithm, in setSecretKeyEntry()
|