Home
last modified time | relevance | path

Searched refs:blockMode (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DKeyProperties.java373 public static int toKeymaster(@NonNull @BlockModeEnum String blockMode) { in toKeymaster() argument
374 if (BLOCK_MODE_ECB.equalsIgnoreCase(blockMode)) { in toKeymaster()
376 } else if (BLOCK_MODE_CBC.equalsIgnoreCase(blockMode)) { in toKeymaster()
378 } else if (BLOCK_MODE_CTR.equalsIgnoreCase(blockMode)) { in toKeymaster()
380 } else if (BLOCK_MODE_GCM.equalsIgnoreCase(blockMode)) { in toKeymaster()
383 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in toKeymaster()
388 public static @BlockModeEnum String fromKeymaster(int blockMode) { in fromKeymaster() argument
389 switch (blockMode) { in fromKeymaster()
399 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in fromKeymaster()
411 for (int blockMode : blockModes) { in allFromKeymaster()
[all …]
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreKeyGeneratorSpi.java302 ArrayUtils.forEach(mKeymasterBlockModes, (blockMode) -> { in engineGenerateKey()
303 if (blockMode == KeymasterDefs.KM_MODE_GCM in engineGenerateKey()
312 KeymasterDefs.KM_TAG_BLOCK_MODE, blockMode in engineGenerateKey()
DAndroidKeyStoreSpi.java485 for (String blockMode : spec.getBlockModes()) { in setPrivateKeyEntry()
488 KeyProperties.BlockMode.toKeymaster(blockMode) in setPrivateKeyEntry()
727 for (String blockMode : params.getBlockModes()) { in setSecretKeyEntry()
728 int keymasterBlockMode = KeyProperties.BlockMode.toKeymaster(blockMode); in setSecretKeyEntry()
734 + " block mode: " + blockMode in setSecretKeyEntry()
DKeyStore2ParameterUtils.java78 kp.value = KeyParameterValue.blockMode(v); in makeEnum()
DAndroidKeyStoreKeyPairGeneratorSpi.java756 ArrayUtils.forEach(mKeymasterBlockModes, (blockMode) -> { in constructKeyGenerationArguments()
758 KeymasterDefs.KM_TAG_BLOCK_MODE, blockMode in constructKeyGenerationArguments()
/frameworks/base/boot/
Dboot-image-profile.txt8638 HSPLandroid/hardware/security/keymint/KeyParameterValue;->blockMode(I)Landroid/hardware/security/ke…
/frameworks/base/config/
Dboot-image-profile.txt8633 HSPLandroid/hardware/security/keymint/KeyParameterValue;->blockMode(I)Landroid/hardware/security/ke…