/cts/tests/tests/keystore/src/android/keystore/cts/performance/ |
D | DesCipherPerformanceTest.java | 105 private final Cipher mCipher; field in DesCipherPerformanceTest.KeystoreDesEncryptMeasurable 111 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable() 121 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in setUp() 126 mCipher.doFinal(getMessage()); in measure() 131 private final Cipher mCipher; field in DesCipherPerformanceTest.KeystoreDesDecryptMeasurable 139 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable() 145 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in initialSetUp() 146 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 147 mParameters = mCipher.getParameters(); in initialSetUp() 152 mCipher.init(Cipher.DECRYPT_MODE, mKey, mParameters); in setUp() [all …]
|
D | AesCipherPerformanceTest.java | 103 private final Cipher mCipher; field in AesCipherPerformanceTest.KeystoreAesEncryptMeasurable 109 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable() 119 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in setUp() 124 mCipher.doFinal(getMessage()); in measure() 129 private final Cipher mCipher; field in AesCipherPerformanceTest.KeystoreAesDecryptMeasurable 137 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable() 143 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in initialSetUp() 144 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 145 mParameters = mCipher.getParameters(); in initialSetUp() 150 mCipher.init(Cipher.DECRYPT_MODE, mKey, mParameters); in setUp() [all …]
|
D | RsaCipherPerformanceTest.java | 110 private final Cipher mCipher; field in RsaCipherPerformanceTest.KeystoreRsaEncryptMeasurable 116 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaEncryptMeasurable() 126 mCipher.init(Cipher.ENCRYPT_MODE, mKey.getPublic()); in setUp() 131 mCipher.doFinal(getMessage()); in measure() 136 private final Cipher mCipher; field in RsaCipherPerformanceTest.KeystoreRsaDecryptMeasurable 144 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaDecryptMeasurable() 150 mCipher.init(Cipher.ENCRYPT_MODE, mKey.getPublic()); in initialSetUp() 151 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 152 mAlgorithmParams = mCipher.getParameters(); in initialSetUp() 157 mCipher.init(Cipher.DECRYPT_MODE, mKey.getPrivate(), mAlgorithmParams); in setUp() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
D | AbstractUserAuthenticationAeadCipherTest.java | 31 private Cipher mCipher; field in AbstractUserAuthenticationAeadCipherTest 52 mCipher = Utils.initAeadCipher(keyName); in initializeKeystoreOperation() 57 return new BiometricPrompt.CryptoObject(mCipher); in getCryptoObject() 64 mCipher.updateAAD(aad); in doKeystoreOperation() 65 Utils.doEncrypt(mCipher, payload); in doKeystoreOperation() 67 mCipher = null; in doKeystoreOperation()
|
D | AbstractUserAuthenticationCipherTest.java | 30 private Cipher mCipher; field in AbstractUserAuthenticationCipherTest 51 mCipher = Utils.initCipher(keyName); in initializeKeystoreOperation() 56 return new BiometricPrompt.CryptoObject(mCipher); in getCryptoObject() 62 Utils.doEncrypt(mCipher, payload); in doKeystoreOperation() 64 mCipher = null; in doKeystoreOperation()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | BlockCipherTestBase.java | 141 private Cipher mCipher; field in BlockCipherTestBase 147 assertEquals(getTransformation(), mCipher.getAlgorithm()); in testGetAlgorithm() 154 assertSame(expectedProvider, mCipher.getProvider()); in testGetProvider() 160 assertEquals(getBlockSize(), mCipher.getBlockSize()); in testGetBlockSize() 166 assertNull(mCipher.getExemptionMechanism()); in testGetExemptionMechanism() 187 AlgorithmParameters actualParameters = mCipher.getParameters(); in assertAlgoritmParametersIv() 201 mCipher.getOutputSize(blockSize); in testGetOutputSizeInEncryptionMode() 210 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode() 222 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode() 247 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | FingerprintBoundKeysTest.java | 80 private Cipher mCipher; field in FingerprintBoundKeysTest 232 return mCipher; in getCipher() 236 mCipher = null; in doValidityDurationTest() 253 if (mCipher == null) { in encryptInternal() 254 mCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in encryptInternal() 258 mCipher.init(Cipher.ENCRYPT_MODE, secretKey); in encryptInternal() 263 mCipher.doFinal(SECRET_BYTE_ARRAY); in encryptInternal() 410 new FingerprintManager.CryptoObject(mActivity.mCipher), in onCreateDialog()
|