Searched refs:mCipher (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | DesCipherPerformanceTest.java | 88 private final Cipher mCipher; field in DesCipherPerformanceTest.KeystoreDesEncryptMeasurable 94 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesEncryptMeasurable() 104 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in setUp() 109 mCipher.doFinal(getMessage()); in measure() 114 private final Cipher mCipher; field in DesCipherPerformanceTest.KeystoreDesDecryptMeasurable 122 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreDesDecryptMeasurable() 128 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in initialSetUp() 129 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 130 mParameters = mCipher.getParameters(); in initialSetUp() 135 mCipher.init(Cipher.DECRYPT_MODE, mKey, mParameters); in setUp() [all …]
|
D | AesCipherPerformanceTest.java | 96 private final Cipher mCipher; field in AesCipherPerformanceTest.KeystoreAesEncryptMeasurable 102 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesEncryptMeasurable() 112 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in setUp() 117 mCipher.doFinal(getMessage()); in measure() 122 private final Cipher mCipher; field in AesCipherPerformanceTest.KeystoreAesDecryptMeasurable 130 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreAesDecryptMeasurable() 136 mCipher.init(Cipher.ENCRYPT_MODE, mKey); in initialSetUp() 137 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 138 mParameters = mCipher.getParameters(); in initialSetUp() 143 mCipher.init(Cipher.DECRYPT_MODE, mKey, mParameters); in setUp() [all …]
|
D | RsaCipherPerformanceTest.java | 104 private final Cipher mCipher; field in RsaCipherPerformanceTest.KeystoreRsaEncryptMeasurable 110 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaEncryptMeasurable() 120 mCipher.init(Cipher.ENCRYPT_MODE, mKey.getPublic()); in setUp() 125 mCipher.doFinal(getMessage()); in measure() 130 private final Cipher mCipher; field in RsaCipherPerformanceTest.KeystoreRsaDecryptMeasurable 138 mCipher = Cipher.getInstance(getAlgorithm()); in KeystoreRsaDecryptMeasurable() 144 mCipher.init(Cipher.ENCRYPT_MODE, mKey.getPublic()); in initialSetUp() 145 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 146 mAlgorithmParams = mCipher.getParameters(); in initialSetUp() 151 mCipher.init(Cipher.DECRYPT_MODE, mKey.getPrivate(), mAlgorithmParams); in setUp() [all …]
|
D | BlockCipherTestBase.java | 119 private Cipher mCipher; field in BlockCipherTestBase 124 assertEquals(getTransformation(), mCipher.getAlgorithm()); in testGetAlgorithm() 130 assertSame(expectedProvider, mCipher.getProvider()); in testGetProvider() 135 assertEquals(getBlockSize(), mCipher.getBlockSize()); in testGetBlockSize() 140 assertNull(mCipher.getExemptionMechanism()); in testGetExemptionMechanism() 160 AlgorithmParameters actualParameters = mCipher.getParameters(); in assertAlgoritmParametersIv() 173 mCipher.getOutputSize(blockSize); in testGetOutputSizeInEncryptionMode() 182 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode() 194 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode() 219 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | FingerprintBoundKeysTest.java | 76 private Cipher mCipher; field in FingerprintBoundKeysTest 206 return mCipher; in getCipher() 210 mCipher = null; in doValidityDurationTest() 227 if (mCipher == null) { in encryptInternal() 228 mCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in encryptInternal() 232 mCipher.init(Cipher.ENCRYPT_MODE, secretKey); in encryptInternal() 237 mCipher.doFinal(SECRET_BYTE_ARRAY); in encryptInternal() 372 new FingerprintManager.CryptoObject(mActivity.mCipher), in onCreateDialog()
|