Home
last modified time | relevance | path

Searched refs:mCipher (Results 1 – 5 of 5) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMac.java42 private final Cipher mCipher; field in IkeMac
52 mCipher = Cipher.getInstance(getAlgorithmName()); in IkeMac()
55 mCipher = null; in IkeMac()
79 return new AesXCbcImpl(mCipher) in signBytes()
83 return new AesXCbcImpl(mCipher) in signBytes()
118 new AesXCbcImpl(mCipher) in modifyKeyIfNeeded()
DAesXCbcImpl.java45 private final Cipher mCipher; field in AesXCbcImpl
59 mCipher = aesCbcCipher; in AesXCbcImpl()
64 int blockSize = mCipher.getBlockSize(); in signBytes()
151 mCipher.init( in encryptAesBlock()
152 Cipher.ENCRYPT_MODE, new SecretKeySpec(keyBytes, mCipher.getAlgorithm()), iv); in encryptAesBlock()
153 mCipher.doFinal(inputBuffer, outputBuffer); in encryptAesBlock()
DIkeCipher.java46 protected final Cipher mCipher; field in IkeCipher
55 mCipher = Cipher.getInstance(getAlgorithmName()); in IkeCipher()
116 return mCipher.getBlockSize(); in getBlockSize()
DIkeCombinedModeCipher.java94 mCipher.init(opmode, key, getParamSpec(nonceBuffer.array())); in doCipherAction()
95 mCipher.updateAAD(additionalAuthData); in doCipherAction()
103 mCipher.doFinal(inputBuffer, outputBuffer); in doCipherAction()
DIkeNormalModeCipher.java57 mCipher.init(opmode, key, iv); in doCipherAction()
62 mCipher.doFinal(inputBuffer, outputBuffer); in doCipherAction()