Searched refs:iv (Results 1 - 25 of 52) sorted by relevance

123

/openjdk7/jdk/src/share/classes/javax/crypto/spec/
H A DIvParameterSpec.java42 private byte[] iv; field in class:IvParameterSpec
45 * Creates an IvParameterSpec object using the bytes in <code>iv</code>
48 * @param iv the buffer with the IV. The contents of the
50 * @throws NullPointerException if <code>iv</code> is <code>null</code>
52 public IvParameterSpec(byte[] iv) { argument
53 this(iv, 0, iv.length);
58 * bytes in <code>iv</code>, beginning at <code>offset</code>
62 * <code>iv[offset]</code> and <code>iv[offse
75 IvParameterSpec(byte[] iv, int offset, int len) argument
[all...]
H A DRC2ParameterSpec.java47 private byte[] iv = null; field in class:RC2ParameterSpec
65 * <code>iv[0]</code> and <code>iv[7]</code> inclusive.
68 * @param iv the buffer with the 8-byte IV. The first 8 bytes of
70 * @exception IllegalArgumentException if <code>iv</code> is null.
72 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv) { argument
73 this(effectiveKeyBits, iv, 0);
80 * <p> The IV is taken from <code>iv</code>, starting at
83 * <code>iv[offset]</code> and <code>iv[offse
93 RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) argument
[all...]
H A DRC5ParameterSpec.java49 private byte[] iv = null; field in class:RC5ParameterSpec
74 * <code>iv[0]</code> and <code>iv[2*(wordSize/8)-1]</code> inclusive.
79 * @param iv the buffer with the IV. The first <code>2*(wordSize/8)
82 * @exception IllegalArgumentException if <code>iv</code> is
83 * <code>null</code> or <code>(iv.length < 2 * (wordSize / 8))</code>
85 public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) { argument
86 this(version, rounds, wordSize, iv, 0);
93 * <p> The IV is taken from <code>iv</code>, starting at
98 * <code>iv[offse
112 RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset) argument
[all...]
H A DGCMParameterSpec.java67 private byte[] iv; field in class:GCMParameterSpec
127 iv = new byte[len];
128 System.arraycopy(src, offset, iv, 0, len);
147 return iv.clone();
/openjdk7/jdk/test/javax/crypto/spec/IvParameterSpec/
H A DInvalidArgs.java38 IvParameterSpec iv = new IvParameterSpec(in, 0, -2);
42 IvParameterSpec iv = new IvParameterSpec(in, -2, in.length);
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DDESedeWrapCipher.java60 * iv for (re-)initializing the internal cipher object.
62 private byte[] iv = null; field in class:DESedeWrapCipher
154 return (iv == null? null:(byte[]) iv.clone());
219 iv = new byte[8];
223 random.nextBytes(iv);
226 iv = ((IvParameterSpec) params).getIV();
231 currIv = iv;
237 iv = null;
391 if (iv !
[all...]
H A DFeedbackCipher.java52 byte[] iv; field in class:FeedbackCipher
91 * and iv.
96 * @param iv the iv (either null or blockSize bytes long)
102 byte[] iv) throws InvalidKeyException;
110 return iv;
114 * Resets the iv to its original value.
116 * cipher can be reused (with its original iv).
101 init(boolean decrypting, String algorithm, byte[] key, byte[] iv) argument
H A DBlockCipherParamsCore.java50 private byte[] iv = null; field in class:BlockCipherParamsCore
67 iv = (byte[]) tmpIv.clone();
81 iv = tmpIv;
97 return new IvParameterSpec(this.iv);
106 out.putOctetString(this.iv);
121 String ivString = LINE_SEP + " iv:" + LINE_SEP + "[";
123 ivString += encoder.encodeBuffer(this.iv);
H A DCipherBlockChaining.java45 * random bytes that are initialized with iv
74 * and iv.
79 * @param iv the iv
84 void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) argument
86 if ((key == null) || (iv == null) || (iv.length != blockSize)) {
89 this.iv = iv;
95 * Resets the iv t
[all...]
H A DCounterMode.java74 * Resets the iv to its original value.
76 * cipher can be reused (with its original iv).
79 System.arraycopy(iv, 0, counter, 0, blockSize);
109 * and iv.
114 * @param iv the iv
119 void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) argument
121 if ((key == null) || (iv == null) || (iv.length != blockSize)) {
124 this.iv
[all...]
H A DPCBC.java69 * and iv.
74 * @param iv the iv
79 void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) argument
81 if ((key == null) || (iv == null) || (iv.length != blockSize)) {
84 this.iv = iv;
90 * Resets the iv to its original value.
92 * cipher can be reused (with its original iv)
[all...]
H A DOutputFeedback.java83 * and iv.
88 * @param iv the iv
93 void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) argument
95 if ((key == null) || (iv == null) || (iv.length != blockSize)) {
98 this.iv = iv;
105 * Resets the iv to its original value.
107 * cipher can be reused (with its original iv)
[all...]
H A DElectronicCodeBook.java58 * Resets the iv to its original value.
60 * cipher can be reused (with its original iv).
78 * and iv.
83 * @param iv the iv
88 void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) argument
90 if ((key == null) || (iv != null)) {
H A DRC2Parameters.java42 * iv IV,
45 * iv IV
98 // the iv
99 private byte[] iv; field in class:RC2Parameters
131 this.iv = rps.getIV();
157 iv = val.data.getOctetString();
160 iv = val.getOctetString();
165 if (iv.length != 8) {
166 throw new IOException("RC2 parameter parsing error: iv length " +
167 "must be 8 bits, actual: " + iv
[all...]
H A DCipherFeedback.java50 * register value, initialized with iv
84 * and iv.
89 * @param iv the iv
94 void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) argument
96 if ((key == null) || (iv == null) || (iv.length != blockSize)) {
99 this.iv = iv;
106 * Resets the iv t
[all...]
H A DCipherCore.java303 byte[] iv = cipher.getIV();
304 return (iv == null) ? null : (byte[])iv.clone();
323 byte[] iv = getIV();
324 if (iv != null) {
329 iv);
331 ivSpec = new IvParameterSpec(iv);
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DFlushBug.java52 IvParameterSpec iv = new IvParameterSpec(iv_bytes);
56 decrypter.init(Cipher.DECRYPT_MODE, key, iv);
62 encrypter.init(Cipher.ENCRYPT_MODE, key, iv);
/openjdk7/jdk/test/javax/swing/plaf/synth/
H A DTest6933784.java64 ImageView iv = new ImageView(elem);
66 if (iv.getLoadingImageIcon() == null) {
70 if (iv.getNoImageIcon() == null) {
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/RC2ArcFour/
H A DCipherKAT.java110 private final byte[] iv; field in class:CipherKAT.CipherTest
111 CipherTest(String alg, byte[] plaintext, byte[] ciphertext, byte[] key, byte[] iv) { argument
116 this.iv = iv;
122 if (iv == null) {
125 ivSpec = new IvParameterSpec(iv);
137 System.out.println("iv: " + CipherKAT.toString(iv));
154 System.out.println("iv: " + CipherKAT.toString(iv));
[all...]
/openjdk7/jdk/src/share/native/sun/security/pkcs11/wrapper/
H A Dpkcs-11v2-20a3.h102 CK_BYTE iv[16]; member in struct:CK_CAMELLIA_CBC_ENCRYPT_DATA_PARAMS
111 CK_BYTE iv[16]; member in struct:CK_ARIA_CBC_ENCRYPT_DATA_PARAMS
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/AES/
H A DTest4517355.java62 byte[] iv = ci.getIV();
63 AlgorithmParameterSpec aps = new IvParameterSpec(iv);
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11Cipher.java161 private byte[] iv; field in class:P11Cipher
261 return (iv == null) ? null : (byte[]) iv.clone();
266 if (iv == null) {
269 IvParameterSpec ivSpec = new IvParameterSpec(iv);
332 private void implInit(int opmode, Key key, byte[] iv, argument
348 if (iv != null) {
358 if (iv == null) {
370 iv = new byte[blockSize];
371 random.nextBytes(iv);
[all...]
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/CTR/
H A DCounterMode.java167 IvParameterSpec iv = new IvParameterSpec(IVS[i]);
170 cipher.init(Cipher.ENCRYPT_MODE, key, iv);
178 cipher.init(Cipher.DECRYPT_MODE, key, iv);
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DCipherBox.java146 SecretKey key, IvParameterSpec iv, SecureRandom random,
165 * later, so if the "iv" parameter is null, we use the default
169 if (iv == null && bulkCipher.ivSize != 0 &&
172 iv = getFixedMask(bulkCipher.ivSize);
175 cipher.init(mode, key, iv, random);
199 SecretKey key, IvParameterSpec iv, SecureRandom random,
208 return new CipherBox(version, cipher, key, iv, random, encrypt);
220 IvParameterSpec iv = masks.get(ivSize);
221 if (iv == null) {
222 iv
145 CipherBox(ProtocolVersion protocolVersion, BulkCipher bulkCipher, SecretKey key, IvParameterSpec iv, SecureRandom random, boolean encrypt) argument
198 newCipherBox(ProtocolVersion version, BulkCipher cipher, SecretKey key, IvParameterSpec iv, SecureRandom random, boolean encrypt) argument
[all...]
/openjdk7/jdk/test/javax/crypto/spec/RC2ParameterSpec/
H A DRC2AlgorithmParameters.java66 // test parameters with effective key size and iv
69 // test parameters with just iv
102 byte[] iv = rc2Cipher.getIV();
103 if (!Arrays.equals(iv, rc2Spec.getIV())) {
117 iv = rc2Cipher.getIV();
118 if (!Arrays.equals(iv, rc2Spec.getIV())) {

Completed in 65 milliseconds

123