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

/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DRC2Cipher.java78 protected void engineInit(int opmode, Key key, SecureRandom random) argument
81 core.init(opmode, key, random);
84 protected void engineInit(int opmode, Key key, argument
93 core.init(opmode, key, params, random);
96 protected void engineInit(int opmode, Key key, argument
103 engineInit(opmode, key, rc2Params, random);
110 core.init(opmode, key, params, random);
H A DARCFOURCipher.java154 protected void engineInit(int opmode, Key key, SecureRandom random) argument
156 init(opmode, key);
160 protected void engineInit(int opmode, Key key, argument
167 init(opmode, key);
171 protected void engineInit(int opmode, Key key, argument
178 init(opmode, key);
181 // init method. Check opmode and key, then call init(byte[]).
182 private void init(int opmode, Key key) throws InvalidKeyException { argument
183 if ((opmode < Cipher.ENCRYPT_MODE) || (opmode > Ciphe
[all...]
H A DAESCipher.java159 * the value of <code>opmode</code>.
174 * @param opmode the operation mode of this cipher (this is one of
184 protected void engineInit(int opmode, Key key, SecureRandom random) argument
186 core.init(opmode, key, random);
195 * the value of <code>opmode</code>.
200 * @param opmode the operation mode of this cipher (this is one of
213 protected void engineInit(int opmode, Key key, argument
217 core.init(opmode, key, params, random);
220 protected void engineInit(int opmode, Key key, argument
224 core.init(opmode, ke
[all...]
H A DBlowfishCipher.java164 * the value of <code>opmode</code>.
179 * @param opmode the operation mode of this cipher (this is one of
189 protected void engineInit(int opmode, Key key, SecureRandom random) argument
191 core.init(opmode, key, random);
200 * the value of <code>opmode</code>.
205 * @param opmode the operation mode of this cipher (this is one of
218 protected void engineInit(int opmode, Key key, argument
222 core.init(opmode, key, params, random);
225 protected void engineInit(int opmode, Key key, argument
229 core.init(opmode, ke
[all...]
H A DDESCipher.java159 * the value of <code>opmode</code>.
174 * @param opmode the operation mode of this cipher (this is one of
184 protected void engineInit(int opmode, Key key, SecureRandom random) argument
186 core.init(opmode, key, random);
195 * the value of <code>opmode</code>.
200 * @param opmode the operation mode of this cipher (this is one of
213 protected void engineInit(int opmode, Key key, argument
217 core.init(opmode, key, params, random);
220 protected void engineInit(int opmode, Key key, argument
224 core.init(opmode, ke
[all...]
H A DDESedeCipher.java139 * the value of <code>opmode</code>.
154 * @param opmode the operation mode of this cipher (this is one of
164 protected void engineInit(int opmode, Key key, SecureRandom random) argument
166 core.init(opmode, key, random);
175 * the value of <code>opmode</code>.
180 * @param opmode the operation mode of this cipher (this is one of
193 protected void engineInit(int opmode, Key key, argument
197 core.init(opmode, key, params, random);
200 protected void engineInit(int opmode, Key key, argument
204 core.init(opmode, ke
[all...]
H A DPBEWithMD5AndDESCipher.java167 * the value of <code>opmode</code>.
172 * @param opmode the operation mode of this cipher (this is one of
182 protected void engineInit(int opmode, Key key, SecureRandom random) argument
185 engineInit(opmode, key, (AlgorithmParameterSpec) null, random);
199 * the value of <code>opmode</code>.
204 * @param opmode the operation mode of this cipher (this is one of
217 protected void engineInit(int opmode, Key key, argument
221 core.init(opmode, key, params, random);
224 protected void engineInit(int opmode, Key key, argument
228 core.init(opmode, ke
[all...]
H A DPBEWithMD5AndTripleDESCipher.java179 * the value of <code>opmode</code>.
184 * @param opmode the operation mode of this cipher (this is one of
194 protected void engineInit(int opmode, Key key, SecureRandom random) argument
197 core.init(opmode, key, (AlgorithmParameterSpec) null, random);
210 * the value of <code>opmode</code>.
215 * @param opmode the operation mode of this cipher (this is either
226 protected void engineInit(int opmode, Key key, argument
230 core.init(opmode, key, params, random);
233 protected void engineInit(int opmode, Key key, argument
238 core.init(opmode, ke
[all...]
H A DPKCS12PBECipherCore.java229 void implInit(int opmode, Key key, AlgorithmParameterSpec params, argument
255 if (((opmode == Cipher.DECRYPT_MODE) ||
256 (opmode == Cipher.UNWRAP_MODE)) &&
317 cipher.init(opmode, cipherKey, ivSpec, random);
320 void implInit(int opmode, Key key, AlgorithmParameters params, argument
332 implInit(opmode, key, paramSpec, random);
335 void implInit(int opmode, Key key, SecureRandom random) argument
338 implInit(opmode, key, (AlgorithmParameterSpec) null, random);
410 protected void engineInit(int opmode, Key key, argument
414 core.implInit(opmode, ke
416 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
422 engineInit(int opmode, Key key, SecureRandom random) argument
485 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
491 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
497 engineInit(int opmode, Key key, SecureRandom random) argument
[all...]
H A DRSACipher.java201 protected void engineInit(int opmode, Key key, SecureRandom random) argument
204 init(opmode, key, random, null);
216 protected void engineInit(int opmode, Key key, argument
219 init(opmode, key, random, params);
223 protected void engineInit(int opmode, Key key, argument
227 init(opmode, key, random, null);
232 init(opmode, key, random, spec);
243 private void init(int opmode, Key key, SecureRandom random, argument
247 switch (opmode) {
257 throw new InvalidKeyException("Unknown mode: " + opmode);
[all...]
H A DAESWrapCipher.java155 * @param opmode the operation mode of this cipher. Only
163 protected void engineInit(int opmode, Key key, SecureRandom random) argument
165 if (opmode == Cipher.WRAP_MODE) {
167 } else if (opmode == Cipher.UNWRAP_MODE) {
186 * @param opmode the operation mode of this cipher. Only
197 protected void engineInit(int opmode, Key key, argument
205 engineInit(opmode, key, random);
218 * @param opmode the operation mode of this cipher. Only
228 protected void engineInit(int opmode, Key key, argument
236 engineInit(opmode, ke
[all...]
H A DPBECipherCore.java195 * the value of <code>opmode</code>.
200 * @param opmode the operation mode of this cipher (this is one of
213 void init(int opmode, Key key, AlgorithmParameterSpec params, argument
216 if (((opmode == Cipher.DECRYPT_MODE) ||
217 (opmode == Cipher.UNWRAP_MODE)) && (params == null)) {
258 cipher.init(opmode, cipherKey, ivSpec, random);
323 void init(int opmode, Key key, AlgorithmParameters params, argument
337 init(opmode, key, pbeSpec, random);
H A DDESedeWrapCipher.java168 * @param opmode the operation mode of this cipher. Only
176 protected void engineInit(int opmode, Key key, SecureRandom random) argument
179 engineInit(opmode, key, (AlgorithmParameterSpec) null, random);
201 * @param opmode the operation mode of this cipher. Only
211 protected void engineInit(int opmode, Key key, argument
216 if (opmode == Cipher.WRAP_MODE) {
232 } else if (opmode == Cipher.UNWRAP_MODE) {
261 * @param opmode the operation mode of this cipher. Only
271 protected void engineInit(int opmode, Key key, argument
290 engineInit(opmode, ke
[all...]
H A DCipherCore.java358 * the value of <code>opmode</code>.
373 * @param opmode the operation mode of this cipher (this is one of
383 void init(int opmode, Key key, SecureRandom random) argument
386 init(opmode, key, (AlgorithmParameterSpec)null, random);
398 * the value of <code>opmode</code>.
403 * @param opmode the operation mode of this cipher (this is one of
416 void init(int opmode, Key key, AlgorithmParameterSpec params, argument
419 decrypting = (opmode == Cipher.DECRYPT_MODE)
420 || (opmode == Cipher.UNWRAP_MODE);
472 void init(int opmode, Ke argument
[all...]
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DCipher.java217 private int opmode = 0; field in class:Cipher
780 private void implInit(CipherSpi thisSpi, int type, int opmode, Key key, argument
787 thisSpi.engineInit(opmode, key, random);
791 thisSpi.engineInit(opmode, key, paramSpec, random);
795 thisSpi.engineInit(opmode, key, params, random);
799 thisSpi.engineInit(opmode, key, random);
806 private void chooseProvider(int initType, int opmode, Key key, argument
812 implInit(spi, initType, opmode, key, paramSpec, params, random);
849 implInit(thisSpi, initType, opmode, key, paramSpec,
1095 // check if opmode i
1097 checkOpmode(int opmode) argument
1152 init(int opmode, Key key) argument
1202 init(int opmode, Key key, SecureRandom random) argument
1279 init(int opmode, Key key, AlgorithmParameterSpec params) argument
1337 init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
1410 init(int opmode, Key key, AlgorithmParameters params) argument
1468 init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
1546 init(int opmode, Certificate certificate) argument
1613 init(int opmode, Certificate certificate, SecureRandom random) argument
[all...]
H A DCipherSpi.java312 * the value of <code>opmode</code>.
339 * @param opmode the operation mode of this cipher (this is one of
351 protected abstract void engineInit(int opmode, Key key, argument
361 * the value of <code>opmode</code>.
388 * @param opmode the operation mode of this cipher (this is one of
403 protected abstract void engineInit(int opmode, Key key, argument
414 * the value of <code>opmode</code>.
441 * @param opmode the operation mode of this cipher (this is one of
456 protected abstract void engineInit(int opmode, Key key, argument
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/
H A DRSACipher.java147 protected void engineInit(int opmode, Key key, SecureRandom random) argument
149 init(opmode, key);
153 protected void engineInit(int opmode, Key key, argument
161 init(opmode, key);
165 protected void engineInit(int opmode, Key key, argument
173 init(opmode, key);
177 private void init(int opmode, Key key) throws InvalidKeyException { argument
181 switch (opmode) {
193 throw new InvalidKeyException("Unknown mode: " + opmode);
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11RSACipher.java158 protected void engineInit(int opmode, Key key, SecureRandom random) argument
160 implInit(opmode, key);
164 protected void engineInit(int opmode, Key key, argument
171 implInit(opmode, key);
175 protected void engineInit(int opmode, Key key, AlgorithmParameters params, argument
182 implInit(opmode, key);
185 private void implInit(int opmode, Key key) throws InvalidKeyException { argument
189 if (opmode == Cipher.ENCRYPT_MODE) {
191 } else if (opmode == Cipher.DECRYPT_MODE) {
193 } else if (opmode
[all...]
H A DP11Cipher.java284 protected void engineInit(int opmode, Key key, SecureRandom random) argument
287 implInit(opmode, key, null, random);
294 protected void engineInit(int opmode, Key key, argument
308 implInit(opmode, key, ivValue, random);
312 protected void engineInit(int opmode, Key key, AlgorithmParameters params, argument
328 implInit(opmode, key, ivValue, random);
332 private void implInit(int opmode, Key key, byte[] iv, argument
336 switch (opmode) {
345 ("Unsupported mode: " + opmode);
/openjdk7/jdk/test/javax/crypto/Cipher/
H A DByteBuffersNull.java153 public void engineInit(int opmode, Key key, SecureRandom random) argument
156 public void engineInit(int opmode, Key key, argument
160 public void engineInit(int opmode, Key key, AlgorithmParameters params, argument
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/encryption/
H A DXMLCipher.java563 * value of opmode.
572 * @param opmode the operation mode of this cipher (this is one of the
578 public void init(int opmode, Key key) throws XMLEncryptionException { argument
585 switch (opmode) {
588 logger.log(java.util.logging.Level.FINE, "opmode = ENCRYPT_MODE");
592 logger.log(java.util.logging.Level.FINE, "opmode = DECRYPT_MODE");
595 logger.log(java.util.logging.Level.FINE, "opmode = WRAP_MODE");
599 logger.log(java.util.logging.Level.FINE, "opmode = UNWRAP_MODE");
606 _cipherMode = opmode;

Completed in 2458 milliseconds