Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java196 String blockMode = fileName.substring(0, 3); in runTestsForKatFile() local
197 if ("CFB".equals(blockMode)) { in runTestsForKatFile()
198 blockMode = fileName.substring(0, 4); in runTestsForKatFile()
200 runTestsForKatFile(blockMode, entryContents); in runTestsForKatFile()
204 private void runTestsForKatFile(String blockMode, byte[] fileContents) throws Exception { in runTestsForKatFile() argument
268 runKatTest(blockMode, encrypt, testVector); in runTestsForKatFile()
DCipherTest.java1919 String blockMode = TestUtils.getCipherBlockMode(transformation); in getWorkingDecryptionParameterSpec() local
1920 if (KeyProperties.BLOCK_MODE_ECB.equalsIgnoreCase(blockMode)) { in getWorkingDecryptionParameterSpec()
1922 } else if ((KeyProperties.BLOCK_MODE_CBC.equalsIgnoreCase(blockMode)) in getWorkingDecryptionParameterSpec()
1923 || (KeyProperties.BLOCK_MODE_CTR.equalsIgnoreCase(blockMode))) { in getWorkingDecryptionParameterSpec()
1926 } else if (KeyProperties.BLOCK_MODE_GCM.equalsIgnoreCase(blockMode)) { in getWorkingDecryptionParameterSpec()
1931 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in getWorkingDecryptionParameterSpec()
1934 String blockMode = TestUtils.getCipherBlockMode(transformation); in getWorkingDecryptionParameterSpec() local
1935 if (KeyProperties.BLOCK_MODE_ECB.equalsIgnoreCase(blockMode)) { in getWorkingDecryptionParameterSpec()
1937 } else if (KeyProperties.BLOCK_MODE_CBC.equalsIgnoreCase(blockMode)) { in getWorkingDecryptionParameterSpec()
1941 throw new IllegalArgumentException("Unsupported block mode: " + blockMode); in getWorkingDecryptionParameterSpec()
DImportWrappedKeyTest.java545 DERTaggedObject blockMode = in makeSymKeyAuthList() local
563 allItems.add(blockMode); in makeSymKeyAuthList()
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java1188 String blockMode = TestUtils.getCipherBlockMode(transformation); in getMinimalWorkingImportParametersForCipheringWith() local
1190 if (KeyProperties.BLOCK_MODE_ECB.equalsIgnoreCase(blockMode)) { in getMinimalWorkingImportParametersForCipheringWith()
1198 .setBlockModes(blockMode) in getMinimalWorkingImportParametersForCipheringWith()