Searched refs:blockMode (Results 1 – 7 of 7) sorted by relevance
382 public static int toKeymaster(@NonNull @BlockModeEnum String blockMode) { in toKeymaster() argument383 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() argument398 switch (blockMode) { in fromKeymaster()408 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in fromKeymaster()420 for (int blockMode : blockModes) { in allFromKeymaster()[all …]
304 ArrayUtils.forEach(mKeymasterBlockModes, (blockMode) -> { in engineGenerateKey()305 if (blockMode == KeymasterDefs.KM_MODE_GCM in engineGenerateKey()314 KeymasterDefs.KM_TAG_BLOCK_MODE, blockMode in engineGenerateKey()
509 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()
78 kp.value = KeyParameterValue.blockMode(v); in makeEnum()
869 ArrayUtils.forEach(mKeymasterBlockModes, (blockMode) -> { in constructKeyGenerationArguments()871 KeymasterDefs.KM_TAG_BLOCK_MODE, blockMode in constructKeyGenerationArguments()
8346 HSPLandroid/hardware/security/keymint/KeyParameterValue;->blockMode(I)Landroid/hardware/security/ke…
8349 HSPLandroid/hardware/security/keymint/KeyParameterValue;->blockMode(I)Landroid/hardware/security/ke…