Home | History | Annotate | Download | only in provider

Lines Matching refs:cipher

17 import javax.crypto.Cipher;
61 private BufferedBlockCipher cipher;
76 cipher = new PaddedBufferedBlockCipher(engine);
86 cipher = new PaddedBufferedBlockCipher(engine);
96 return cipher.getBlockSize();
113 return cipher.getOutputSize(inputLen);
122 String name = cipher.getUnderlyingCipher().getAlgorithmName();
152 cipher = new PaddedBufferedBlockCipher(cipher.getUnderlyingCipher());
156 ivLength = cipher.getUnderlyingCipher().getBlockSize();
157 cipher = new PaddedBufferedBlockCipher(
158 new CBCBlockCipher(cipher.getUnderlyingCipher()));
162 ivLength = cipher.getUnderlyingCipher().getBlockSize();
167 cipher = new PaddedBufferedBlockCipher(
168 new OFBBlockCipher(cipher.getUnderlyingCipher(), wordSize));
172 cipher = new PaddedBufferedBlockCipher(
173 new OFBBlockCipher(cipher.getUnderlyingCipher(), 8 * cipher.getBlockSize()));
178 ivLength = cipher.getUnderlyingCipher().getBlockSize();
183 cipher = new PaddedBufferedBlockCipher(
184 new CFBBlockCipher(cipher.getUnderlyingCipher(), wordSize));
188 cipher = new PaddedBufferedBlockCipher(
189 new CFBBlockCipher(cipher.getUnderlyingCipher(), 8 * cipher.getBlockSize()));
206 cipher = new BufferedBlockCipher(cipher.getUnderlyingCipher());
210 cipher = new PaddedBufferedBlockCipher(cipher.getUnderlyingCipher());
214 cipher = new CTSBlockCipher(cipher.getUnderlyingCipher());
237 cipher.getUnderlyingCipher().getAlgorithmName(), pbeKeySize, pbeIvSize);
299 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE))
315 case Cipher.ENCRYPT_MODE:
316 case Cipher.WRAP_MODE:
317 cipher.init(true, param);
319 case Cipher.DECRYPT_MODE:
320 case Cipher.UNWRAP_MODE:
321 cipher.init(false, param);
383 int length = cipher.getUpdateOutputSize(inputLen);
389 cipher.processBytes(input, inputOffset, inputLen, out, 0);
393 cipher.processBytes(input, inputOffset, inputLen, null, 0);
405 return cipher.processBytes(input, inputOffset, inputLen, output, outputOffset);
419 len = cipher.processBytes(input, inputOffset, inputLen, tmp, 0);
424 len += cipher.doFinal(tmp, len);
454 len = cipher.processBytes(input, inputOffset, inputLen, output, outputOffset);
459 return len + cipher.doFinal(output, outputOffset + len);
511 if (wrappedKeyType == Cipher.SECRET_KEY)
521 if (wrappedKeyType == Cipher.PUBLIC_KEY)
525 else if (wrappedKeyType == Cipher.PRIVATE_KEY)