Searched refs:opmode (Results 1 - 7 of 7) sorted by relevance

/libcore/luni/src/main/java/javax/crypto/
H A DCipher.java450 * {@code opmode}.
462 * @param opmode
472 public final void init(int opmode, Key key) throws InvalidKeyException { argument
479 init(opmode, key, secureRandom);
488 * {@code opmode}.
500 * @param opmode
512 * if the specified opmode is invalid.
514 public final void init(int opmode, Key key, SecureRandom random) throws InvalidKeyException { argument
515 checkMode(opmode);
519 spiImpl.engineInit(opmode, ke
561 init(int opmode, Key key, AlgorithmParameterSpec params) argument
606 init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
653 init(int opmode, Key key, AlgorithmParameters params) argument
697 init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
743 init(int opmode, Certificate certificate) argument
786 init(int opmode, Certificate certificate, SecureRandom random) argument
[all...]
H A DCipherSpi.java161 * {@code opmode}.
173 * @param opmode
185 protected abstract void engineInit(int opmode, Key key, SecureRandom random) argument
194 * {@code opmode}.
205 * @param opmode
222 protected abstract void engineInit(int opmode, Key key, argument
232 * {@code opmode}.
243 * @param opmode
260 protected abstract void engineInit(int opmode, Key key, argument
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLCipherRSA.java154 private void engineInitInternal(int opmode, Key key) throws InvalidKeyException { argument
155 if (opmode == Cipher.ENCRYPT_MODE || opmode == Cipher.WRAP_MODE) {
157 } else if (opmode == Cipher.DECRYPT_MODE || opmode == Cipher.UNWRAP_MODE) {
160 throw new InvalidParameterException("Unsupported opmode " + opmode);
192 protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException { argument
193 engineInitInternal(opmode, key);
197 protected void engineInit(int opmode, Ke argument
208 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
H A DOpenSSLCipher.java237 private void engineInitInternal(int opmode, Key key, byte[] iv, SecureRandom random) argument
239 if (opmode == Cipher.ENCRYPT_MODE || opmode == Cipher.WRAP_MODE) {
241 } else if (opmode == Cipher.DECRYPT_MODE || opmode == Cipher.UNWRAP_MODE) {
244 throw new InvalidParameterException("Unsupported opmode " + opmode);
298 protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException { argument
300 engineInitInternal(opmode, key, null, random);
307 protected void engineInit(int opmode, Ke argument
321 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyCipher.java82 protected void engineInit(int opmode, Key key, SecureRandom random) argument
87 protected void engineInit(int opmode, Key key, argument
93 protected void engineInit(int opmode, Key key, AlgorithmParameters params, argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherSpiTest.java83 protected void engineInit(int opmode, Key key, SecureRandom random) argument
85 super.engineInit(opmode, key, random);
89 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, argument
91 super.engineInit(opmode, key, params, random);
95 protected void engineInit(int opmode, Key key, AlgorithmParameters params, argument
97 super.engineInit(opmode, key, params, random);
340 protected void engineInit(int opmode, Key key, SecureRandom random) argument
344 protected void engineInit(int opmode, Key key, argument
349 protected void engineInit(int opmode, Key key, AlgorithmParameters params, argument
/libcore/luni/src/main/java/org/apache/harmony/crypto/internal/
H A DNullCipherSpi.java76 public void engineInit(int opmode, Key key, SecureRandom random) argument
82 public void engineInit(int opmode, Key key, AlgorithmParameterSpec params, argument
89 public void engineInit(int opmode, Key key, AlgorithmParameters params, argument

Completed in 116 milliseconds