Home
last modified time | relevance | path

Searched refs:forEncryption (Results 1 – 20 of 20) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRSACoreEngine.java17 private boolean forEncryption; field in RSACoreEngine
26 boolean forEncryption, in init() argument
40 this.forEncryption = forEncryption; in init()
54 if (forEncryption) in getInputBlockSize()
75 if (forEncryption) in getOutputBlockSize()
94 else if (inLen == (getInputBlockSize() + 1) && !forEncryption) in convertInput()
126 if (forEncryption) in convertOutput()
DDESedeEngine.java20 private boolean forEncryption; field in DESedeEngine
53 this.forEncryption = encrypting; in init()
108 if (forEncryption) in processBlock()
DAESEngine.java283 private int[][] generateWorkingKey(byte[] key, boolean forEncryption) in generateWorkingKey() argument
400 if (!forEncryption) in generateWorkingKey()
417 private boolean forEncryption; field in AESEngine
439 boolean forEncryption, in init() argument
444 WorkingKey = generateWorkingKey(((KeyParameter)params).getKey(), forEncryption); in init()
445 this.forEncryption = forEncryption; in init()
446 if (forEncryption) in init()
491 if (forEncryption) in processBlock()
DAESFastEngine.java612 private int[][] generateWorkingKey(byte[] key, boolean forEncryption) in generateWorkingKey() argument
729 if (!forEncryption) in generateWorkingKey()
746 private boolean forEncryption; field in AESFastEngine
766 boolean forEncryption, in init() argument
771 WorkingKey = generateWorkingKey(((KeyParameter)params).getKey(), forEncryption); in init()
772 this.forEncryption = forEncryption; in init()
812 if (forEncryption) in processBlock()
DRSABlindedEngine.java33 boolean forEncryption, in init() argument
36 core.init(forEncryption, param); in init()
DRC4Engine.java32 boolean forEncryption, in init() argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DGCMBlockCipher.java39 private boolean forEncryption; field in GCMBlockCipher
98 public void init(boolean forEncryption, CipherParameters params) in init() argument
101 this.forEncryption = forEncryption; in init()
138 int bufLength = forEncryption ? BLOCK_SIZE : (BLOCK_SIZE + macSize); in init()
146 if (forEncryption) in init()
233 if (forEncryption) in getOutputSize()
252 if (!forEncryption) in getUpdateOutputSize()
381 if (forEncryption) in outputBlock()
404 if (forEncryption) in doFinal()
490 if (forEncryption) in doFinal()
[all …]
DCCMBlockCipher.java27 private boolean forEncryption; field in CCMBlockCipher
64 public void init(boolean forEncryption, CipherParameters params) in init() argument
67 this.forEncryption = forEncryption; in init()
184 if (forEncryption) in getOutputSize()
207 if (forEncryption) in processPacket()
264 ctrCipher.init(forEncryption, new ParametersWithIV(keyParam, iv)); in processPacket()
270 if (forEncryption) in processPacket()
DAEADBlockCipher.java31 public void init(boolean forEncryption, CipherParameters params) in init() argument
DSICBlockCipher.java46 boolean forEncryption, //ignored by this CTR mode in init() argument
DCTSBlockCipher.java202 if (forEncryption) in doFinal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
DPaddedBufferedBlockCipher.java61 boolean forEncryption, in init() argument
65 this.forEncryption = forEncryption; in init()
75 cipher.init(forEncryption, p.getParameters()); in init()
81 cipher.init(forEncryption, params); in init()
101 if (forEncryption) in getOutputSize()
250 if (forEncryption) in doFinal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/
DPKCS1Encoding.java40 private boolean forEncryption; field in PKCS1Encoding
127 boolean forEncryption, in init() argument
142 if (!kParam.isPrivate() && forEncryption) in init()
148 engine.init(forEncryption, param); in init()
151 this.forEncryption = forEncryption; in init()
164 if (forEncryption) in getInputBlockSize()
178 if (forEncryption) in getOutputBlockSize()
194 if (forEncryption) in processBlock()
DOAEPEncoding.java30 private boolean forEncryption; field in OAEPEncoding
82 boolean forEncryption, in init() argument
96 engine.init(forEncryption, param); in init()
98 this.forEncryption = forEncryption; in init()
105 if (forEncryption) in getInputBlockSize()
119 if (forEncryption) in getOutputBlockSize()
135 if (forEncryption) in processBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DBufferedBlockCipher.java17 protected boolean forEncryption; field in BufferedBlockCipher
81 boolean forEncryption, in init() argument
85 this.forEncryption = forEncryption; in init()
89 cipher.init(forEncryption, params); in init()
118 if (forEncryption) in getUpdateOutputSize()
DAsymmetricBlockCipher.java17 public void init(boolean forEncryption, CipherParameters param); in init() argument
DBlockCipher.java18 public void init(boolean forEncryption, CipherParameters params) in init() argument
DStreamCipher.java17 public void init(boolean forEncryption, CipherParameters params) in init() argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseBlockCipher.java1206 public void init(boolean forEncryption, CipherParameters params) in init() argument
1252 public void init(boolean forEncryption, CipherParameters params) in init() argument
1255 cipher.init(forEncryption, params); in init()
1347 public void init(boolean forEncryption, CipherParameters params) in init() argument
1350 cipher.init(forEncryption, params); in init()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java682 boolean forEncryption, in cryptData() argument
690 int mode = forEncryption ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in cryptData()