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.java382 public static int toKeymaster(@NonNull @BlockModeEnum String blockMode) { in toKeymaster() argument
383 if (BLOCK_MODE_ECB.equalsIgnoreCase(blockMode)) { in toKeymaster()
385 } else if (BLOCK_MODE_CBC.equalsIgnoreCase(blockMode)) { in toKeymaster()
387 } else if (BLOCK_MODE_CTR.equalsIgnoreCase(blockMode)) { in toKeymaster()
389 } else if (BLOCK_MODE_GCM.equalsIgnoreCase(blockMode)) { in toKeymaster()
392 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in toKeymaster()
397 public static @BlockModeEnum String fromKeymaster(int blockMode) { in fromKeymaster() argument
398 switch (blockMode) { in fromKeymaster()
408 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in fromKeymaster()
420 for (int blockMode : blockModes) { in allFromKeymaster()
[all …]
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreKeyGeneratorSpi.java304 ArrayUtils.forEach(mKeymasterBlockModes, (blockMode) -> { in engineGenerateKey()
305 if (blockMode == KeymasterDefs.KM_MODE_GCM in engineGenerateKey()
314 KeymasterDefs.KM_TAG_BLOCK_MODE, blockMode in engineGenerateKey()
DAndroidKeyStoreSpi.java509 for (String blockMode : spec.getBlockModes()) { in setPrivateKeyEntry()
512 KeyProperties.BlockMode.toKeymaster(blockMode) in setPrivateKeyEntry()
822 for (String blockMode : params.getBlockModes()) { in setSecretKeyEntry()
823 int keymasterBlockMode = KeyProperties.BlockMode.toKeymaster(blockMode); in setSecretKeyEntry()
829 + " block mode: " + blockMode in setSecretKeyEntry()
DKeyStore2ParameterUtils.java78 kp.value = KeyParameterValue.blockMode(v); in makeEnum()
DAndroidKeyStoreKeyPairGeneratorSpi.java869 ArrayUtils.forEach(mKeymasterBlockModes, (blockMode) -> { in constructKeyGenerationArguments()
871 KeymasterDefs.KM_TAG_BLOCK_MODE, blockMode in constructKeyGenerationArguments()
/frameworks/base/boot/
Dboot-image-profile.txt8346 HSPLandroid/hardware/security/keymint/KeyParameterValue;->blockMode(I)Landroid/hardware/security/ke…
/frameworks/base/config/
Dboot-image-profile.txt8349 HSPLandroid/hardware/security/keymint/KeyParameterValue;->blockMode(I)Landroid/hardware/security/ke…