• Home
  • Raw
  • Download

Lines Matching refs:iv

39     const unsigned char iv[32];  member
83 const unsigned char iv[64]; member
154 unsigned char iv[AES_BLOCK_SIZE * 2]; in test_ige_vectors() local
164 memcpy(iv, v->iv, sizeof(iv)); in test_ige_vectors()
165 AES_ige_encrypt(v->in, buf, v->length, &key, iv, v->encrypt); in test_ige_vectors()
170 test_output_memory("iv", v->iv, sizeof(v->iv)); in test_ige_vectors()
176 memcpy(iv, v->iv, sizeof(iv)); in test_ige_vectors()
178 AES_ige_encrypt(buf, buf, v->length, &key, iv, v->encrypt); in test_ige_vectors()
183 test_output_memory("iv", v->iv, sizeof(v->iv)); in test_ige_vectors()
209 AES_bi_ige_encrypt(v->in, buf, v->length, &key1, &key2, v->iv, in test_bi_ige_vectors()
215 test_output_memory("iv", v->iv, sizeof(v->iv)); in test_bi_ige_vectors()
226 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_enc_dec() local
230 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_dec()
232 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, iv, AES_ENCRYPT); in test_ige_enc_dec()
235 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_dec()
236 AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT); in test_ige_enc_dec()
244 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_enc_chaining() local
249 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_chaining()
250 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_enc_chaining()
254 &key, iv, AES_ENCRYPT); in test_ige_enc_chaining()
257 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_enc_chaining()
258 AES_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, iv, AES_DECRYPT); in test_ige_enc_chaining()
266 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_dec_chaining() local
271 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_dec_chaining()
272 AES_ige_encrypt(plaintext, ciphertext, TEST_SIZE / 2, &key, iv, in test_ige_dec_chaining()
276 &key, iv, AES_ENCRYPT); in test_ige_dec_chaining()
279 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_dec_chaining()
280 AES_ige_encrypt(ciphertext, checktext, TEST_SIZE / 2, &key, iv, in test_ige_dec_chaining()
283 checktext + TEST_SIZE / 2, TEST_SIZE / 2, &key, iv, in test_ige_dec_chaining()
292 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_ige_garble_forwards() local
301 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_garble_forwards()
302 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv, in test_ige_garble_forwards()
308 memcpy(iv, saved_iv, sizeof(iv)); in test_ige_garble_forwards()
309 AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv, in test_ige_garble_forwards()
330 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_enc_dec() local
334 memcpy(iv, saved_iv, sizeof(iv)); in test_bi_ige_enc_dec()
337 AES_bi_ige_encrypt(plaintext, ciphertext, TEST_SIZE, &key, &key2, iv, in test_bi_ige_enc_dec()
342 AES_bi_ige_encrypt(ciphertext, checktext, TEST_SIZE, &key, &key2, iv, in test_bi_ige_enc_dec()
351 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_garble1() local
357 memcpy(iv, saved_iv, sizeof(iv)); in test_bi_ige_garble1()
360 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv, in test_bi_ige_garble1()
367 AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv, in test_bi_ige_garble1()
382 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_garble2() local
388 memcpy(iv, saved_iv, sizeof(iv)); in test_bi_ige_garble2()
391 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv, in test_bi_ige_garble2()
398 AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv, in test_bi_ige_garble2()
413 unsigned char iv[AES_BLOCK_SIZE * 4]; in test_bi_ige_garble3() local
419 memcpy(iv, saved_iv, sizeof(iv)); in test_bi_ige_garble3()
422 AES_ige_encrypt(plaintext, ciphertext, sizeof(plaintext), &key, iv, in test_bi_ige_garble3()
429 AES_ige_encrypt(ciphertext, checktext, sizeof(checktext), &key, iv, in test_bi_ige_garble3()