Searched defs:iv (Results 1 - 25 of 31) sorted by relevance

12

/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 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();
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...]
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
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 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 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 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 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 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 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 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 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 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...]
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DDoFinalReturnLen.java76 static byte[] iv = { field in class:DoFinalReturnLen
115 IvParamSpec = new IvParameterSpec(iv, 0, 8);
H A DDesAPITest.java56 public static byte[] iv = { field in class:DesAPITest
115 // retrieve iv
117 params = new IvParameterSpec(iv);
H A DPaddingTest.java59 public static byte[] iv = { field in class:PaddingTest
137 // retrieve iv
139 params = new IvParameterSpec(iv);
H A DPerformanceTest.java61 public static byte[] iv = { field in class:PerformanceTest
171 // retrieve iv
173 params = new IvParameterSpec(iv);
/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/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/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
H A Dp11_keymgmt.c633 CK_BYTE_PTR iv; local
706 iv = ckSSL3KeyMatOut->pIVClient;
714 jBytes[i] = ckByteToJByte(iv[i]);
726 iv = ckSSL3KeyMatOut->pIVServer;
734 jBytes[i] = ckByteToJByte(iv[i]);
/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/hotspot/src/share/vm/opto/
H A DidealKit.cpp155 // * iv = init
157 // * if (iv relop limit) {
165 void IdealKit::loop(GraphKit* gkit, int nargs, IdealVariable& iv, Node* init, BoolTest::mask relop, Node* limit, float prob, float cnt) { argument
175 set(iv, init);
180 if_then(value(iv), relop, limit, prob, cnt, false /* no new state */);
H A DloopPredicate.cpp583 // Returns true if the predicate of iff is in "scale*iv + offset u< load_range(ptr)" format
618 Node *iv = _head->as_CountedLoop()->phi(); local
621 if (!phase->is_scaled_iv_plus_offset(cmp->in(1), iv, &scale, &offset)) {

Completed in 132 milliseconds

12