Home
last modified time | relevance | path

Searched refs:keymasterAlgorithm (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyPairGeneratorSpi.java172 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); in initialize()
314 keymasterAlgorithm); in initialize()
711 private static int getDefaultKeySize(int keymasterAlgorithm) { in getDefaultKeySize() argument
[all …]
DAndroidKeyStoreProvider.java235 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStorePublicKeyFromKeystore() local
236 if (keymasterAlgorithm == null) { in loadAndroidKeyStorePublicKeyFromKeystore()
243 keymasterAlgorithm); in loadAndroidKeyStorePublicKeyFromKeystore()
286 Integer keymasterAlgorithm = keyCharacteristics.getEnum(KeymasterDefs.KM_TAG_ALGORITHM); in loadAndroidKeyStoreSecretKeyFromKeystore() local
287 if (keymasterAlgorithm == null) { in loadAndroidKeyStoreSecretKeyFromKeystore()
304 keymasterAlgorithm, keymasterDigest); in loadAndroidKeyStoreSecretKeyFromKeystore()
DKeyProperties.java184 int keymasterAlgorithm) { in fromKeymasterAsymmetricKeyAlgorithm() argument
185 switch (keymasterAlgorithm) { in fromKeymasterAsymmetricKeyAlgorithm()
192 "Unsupported key algorithm: " + keymasterAlgorithm); in fromKeymasterAsymmetricKeyAlgorithm()
210 int keymasterAlgorithm, int keymasterDigest) { in fromKeymasterSecretKeyAlgorithm() argument
211 switch (keymasterAlgorithm) { in fromKeymasterSecretKeyAlgorithm()
232 "Unsupported key algorithm: " + keymasterAlgorithm); in fromKeymasterSecretKeyAlgorithm()
DAndroidKeyStoreKeyGeneratorSpi.java116 int keymasterAlgorithm, in AndroidKeyStoreKeyGeneratorSpi() argument
118 this(keymasterAlgorithm, -1, defaultKeySizeBits); in AndroidKeyStoreKeyGeneratorSpi()
122 int keymasterAlgorithm, in AndroidKeyStoreKeyGeneratorSpi() argument
125 mKeymasterAlgorithm = keymasterAlgorithm; in AndroidKeyStoreKeyGeneratorSpi()
DKeymasterUtils.java173 int keymasterAlgorithm, in addMinMacLengthAuthorizationIfNecessary() argument
176 switch (keymasterAlgorithm) { in addMinMacLengthAuthorizationIfNecessary()
DAndroidKeyStoreSpi.java631 int keymasterAlgorithm = in setSecretKeyEntry() local
633 args.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, keymasterAlgorithm); in setSecretKeyEntry()
636 if (keymasterAlgorithm == KeymasterDefs.KM_ALGORITHM_HMAC) { in setSecretKeyEntry()
707 keymasterAlgorithm, in setSecretKeyEntry()