| /freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
| H A D | evpciph_aes_ccm_cavs.txt | 15 IV = 5a8aa485c316e9 23 IV = 3796cf51b87266 33 IV = 89ca5a64050f9f 43 IV = ec9d8edff25645 53 IV = 05e16f0f42a6f4 61 IV = 2e504b694f8df5 71 IV = 06d102a9328863 81 IV = c288b810fb5334 91 IV = 08a166d9eb6610 101 IV = 4a5810b121c91b [all …]
|
| H A D | evpciph_aes_common.txt | 180 # AES-bits-CBC:key:IV/ciphertext':plaintext:ciphertext:encdec 184 IV = 000102030405060708090A0B0C0D0E0F 191 IV = 7649ABAC8119B246CEE98E9B12E9197D 198 IV = 5086CB9B507219EE95DB113A917678B2 205 IV = 73BED6B8E3C1743B7116E69E22229516 213 IV = ced2c3991da2a1d485990e2e9c9246f3 221 IV = 8b32cb9ef61ee47acdb5299f7fb4c705 229 IV = 000102030405060708090A0B0C0D0E0F 236 IV = 4F021DB243BC633D7178183A9FA071E8 243 IV = B4D9ADA9AD7DEDF4E5E738763F69145A [all …]
|
| H A D | evpciph_cast5.txt | 14 IV = 2fe2b333ceda8f98 21 IV = aad1583cd91365e3 28 IV = 19153c673160df2b 35 IV = c80f095d8bb1a060 42 IV = 3f9d5ebe250ee7ce 49 IV = 7f65b5ee3630bed6 56 IV = f724558db3433a52 63 IV = 9ef934946e5cd0ae 70 IV = 1c245f26195b76eb 77 IV = 1dbbeb2f19abb448 [all …]
|
| H A D | evpciph_camellia.txt | 120 # CAMELLIA-bits-CBC:key:IV/ciphertext':plaintext:ciphertext:encdec 124 IV = 000102030405060708090A0B0C0D0E0F 131 IV = 1607CF494B36BBF00DAEB0B503C831AB 138 IV = A2F2CF671629EF7840C5A5DFB5074887 145 IV = 36A84CDAFD5F9A85ADA0F0A993D6D577 154 IV = 000102030405060708090A0B0C0D0E0F 161 IV = 2A4830AB5AC4A1A2405955FD2195CF93 168 IV = 5D5A869BD14CE54264F892A6DD2EC3D5 175 IV = 37D359C3349836D884E310ADDF68C449 184 IV = 000102030405060708090A0B0C0D0E0F [all …]
|
| H A D | evpciph_idea.txt | 15 IV = 2fe2b333ceda8f98 22 IV = aad1583cd91365e3 29 IV = 19153c673160df2b 36 IV = c80f095d8bb1a060 43 IV = 3f9d5ebe250ee7ce 50 IV = 7f65b5ee3630bed6 57 IV = f724558db3433a52 64 IV = 9ef934946e5cd0ae 71 IV = 1c245f26195b76eb 78 IV = 1dbbeb2f19abb448 [all …]
|
| H A D | evpciph_seed.txt | 14 IV = 93eb149f92c9905bae5cd34da06c3c8e 22 IV = 268d66a735a81a816fbad9fa36162501 90 IV = 58cb2b12bb52c6f14b56da9210524864 98 IV = 5337ddeaf89a00dd4d58d860de968469 106 IV = b125a20ecd79e8b5ae91af738037acf7 114 IV = 95511452b71e53e93afad07ba1aa4d98 122 IV = 8e4722ad2230b15f2eea302173bc1795 130 IV = bc4659fbb7073c1f2185cd8ac5314bd1 138 IV = 1155cf4231bf7ac55d5e6eb27a974fad 146 IV = 8c37f33405051b4c50abd16c6456643e [all …]
|
| H A D | evpciph_aes_gcm_siv.txt | 19 IV = 030000000000000000000000 28 IV = f46e44bb3da0015c94f70887 37 IV = 030000000000000000000000 46 IV = 030000000000000000000000 55 IV = 030000000000000000000000 64 IV = 030000000000000000000000 73 IV = 030000000000000000000000 82 IV = 030000000000000000000000 92 IV = 030000000000000000000000 102 IV = 030000000000000000000000 [all …]
|
| H A D | evpciph_chacha.txt | 19 IV = 00000000000000000000000000000000 26 IV = 01000000000000000000000000000000 35 IV = 01000000000000000000000000000002 43 IV = 2a000000000000000000000000000002 51 IV = 00000000000000000000000000000000 57 IV = 00000000000000000000000000000001 63 IV = 00000000000000000100000000000000 69 IV = 00000000000000000001020304050607 75 IV = 00000000000000000001020304050607 81 IV = 00000000000000000001020304050607 [all …]
|
| H A D | evpciph_aes_cts.txt | 10 # These have an IV of all zeros, for a 128 bit AES key. 20 IV = 00000000000000000000000000000000 27 IV = 00000000000000000000000000000000 34 IV = 00000000000000000000000000000000 48 IV = 00000000000000000000000000000000 57 IV = 00000000000000000000000000000000 66 IV = 00000000000000000000000000000000 74 IV = 00000000000000000000000000000000 83 IV = 00000000000000000000000000000000 89 # Generated test values using an IV. [all …]
|
| H A D | evpciph_aes_ocb.txt | 18 IV = 000102030405060708090A0B 26 IV = 000102030405060708090A0B 34 IV = 000102030405060708090A0B 42 IV = 000102030405060708090A0B 50 IV = 000102030405060708090A0B 58 IV = 000102030405060708090A0B 66 IV = 000102030405060708090A0B 74 IV = 000102030405060708090A0B 82 IV = 000102030405060708090A0B 90 IV = 000102030405060708090A0B [all …]
|
| H A D | evpciph_aria.txt | 39 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 46 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 53 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 59 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 66 IV = 00000000000000000000000000000000 78 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 85 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 92 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 98 IV = 0f1e2d3c4b5a69788796a5b4c3d2e1f0 105 IV = 00000000000000000000000000000000 [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/crypto/ |
| H A D | aes_gcm_test.txt | 7 iv: 028318abc1824029138141a2 18 iv: 921d2507fa8007b7bd067d34 29 iv: 0432bc49ac34412081288127 40 iv: 438a547a94ea88dce46c6c85 51 iv: b30c084727ad1c592ac21d12 62 iv: b5e006ded553110e6dc56529 73 iv: ecb0c42f7000ef0e6f95f24d 84 iv: 0e1666f2dc652f7708fb8f0d 95 iv: 965ff6643116ac1443a2dec7 106 iv: fbbc04fd6e025b7193eb57f6 [all …]
|
| H A D | aes_ccm_test.txt | 7 iv: 438a547a94ea88dce46c6c85 18 iv: b30c084727ad1c592ac21d12 29 iv: b5e006ded553110e6dc56529 40 iv: 0e1666f2dc652f7708fb8f0d 51 iv: 965ff6643116ac1443a2dec7 62 iv: fbbc04fd6e025b7193eb57f6 73 iv: 42b51388f6f9047a2a994575 84 iv: eef1a6e651321852f0b25a31 95 iv: 5dfc37366f5688275147d3f9 106 iv: 064b3cfbe04d94d4d5c19b30 [all …]
|
| H A D | aes_gcm_test.json | 17 … : "When the size of the IV is not 12 bytes then detecting incorrect encryptions leaks the informa… 25 … using GHASH to generate the CTR values. Some implementations restrict the range of the IV sizes.", 26 …"effect" : "If IV sizes other than 12 bytes are supported then the correctness of the implementati… 35 …ries do not support all the parameter sizes. In particular the size of the IV is often restricted." 39 …IV is used twice. Hence short IV sizes are typically discouraged or generated with a special const… 43 "description" : "The test vector contains special cases for iv and tag." 47 …n" : "GCM does not allow an IV of length 0. Encrypting with an IV of length 0 leaks the authentica… 67 "iv" : "028318abc1824029138141a2", string 81 "iv" : "921d2507fa8007b7bd067d34", string 95 "iv" : "0432bc49ac34412081288127", string [all …]
|
| H A D | aes_ccm_test.json | 61 "iv" : "438a547a94ea88dce46c6c85", string 75 "iv" : "b30c084727ad1c592ac21d12", string 89 "iv" : "b5e006ded553110e6dc56529", string 103 "iv" : "0e1666f2dc652f7708fb8f0d", string 117 "iv" : "965ff6643116ac1443a2dec7", string 131 "iv" : "fbbc04fd6e025b7193eb57f6", string 145 "iv" : "42b51388f6f9047a2a994575", string 159 "iv" : "eef1a6e651321852f0b25a31", string 173 "iv" : "5dfc37366f5688275147d3f9", string 187 "iv" : "064b3cfbe04d94d4d5c19b30", string [all …]
|
| /freebsd/sys/crypto/rijndael/ |
| H A D | rijndael-api-fst.c | 67 int rijndael_cipherInit(cipherInstance *cipher, BYTE mode, char *IV) { in rijndael_cipherInit() argument 73 if (IV != NULL) { in rijndael_cipherInit() 74 memcpy(cipher->IV, IV, RIJNDAEL_MAX_IV_SIZE); in rijndael_cipherInit() 76 memset(cipher->IV, 0, RIJNDAEL_MAX_IV_SIZE); in rijndael_cipherInit() 84 uint8_t block[16], iv[4][4]; in rijndael_blockEncrypt() local 108 memcpy(block, cipher->IV, 16); in rijndael_blockEncrypt() 109 memcpy(iv, input, 16); in rijndael_blockEncrypt() 110 ((uint32_t*)block)[0] ^= ((uint32_t*)iv)[0]; in rijndael_blockEncrypt() 111 ((uint32_t*)block)[1] ^= ((uint32_t*)iv)[1]; in rijndael_blockEncrypt() 112 ((uint32_t*)block)[2] ^= ((uint32_t*)iv)[2]; in rijndael_blockEncrypt() [all …]
|
| /freebsd/crypto/openssl/crypto/des/ |
| H A D | cfb64ede.c | 33 unsigned char *iv, c, cc; in DES_ede3_cfb64_encrypt() local 35 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 39 c2l(iv, v0); in DES_ede3_cfb64_encrypt() 40 c2l(iv, v1); in DES_ede3_cfb64_encrypt() 48 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 49 l2c(v0, iv); in DES_ede3_cfb64_encrypt() 50 l2c(v1, iv); in DES_ede3_cfb64_encrypt() 51 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 53 c = *(in++) ^ iv[n]; in DES_ede3_cfb64_encrypt() 55 iv[n] = c; in DES_ede3_cfb64_encrypt() [all …]
|
| H A D | cfb64enc.c | 32 unsigned char *iv, c, cc; in DES_cfb64_encrypt() local 34 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 38 c2l(iv, v0); in DES_cfb64_encrypt() 40 c2l(iv, v1); in DES_cfb64_encrypt() 43 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 45 l2c(v0, iv); in DES_cfb64_encrypt() 47 l2c(v0, iv); in DES_cfb64_encrypt() 48 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 50 c = *(in++) ^ iv[n]; in DES_cfb64_encrypt() 52 iv[n] = c; in DES_cfb64_encrypt() [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A D | igetest.c | 39 const unsigned char iv[32]; member 52 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f}, /* iv */ 68 0x72, 0x20, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x53}, /* iv */ 83 const unsigned char iv[64]; member 103 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f}, /* iv */ 128 0x48, 0x79, 0x37, 0x99, 0xff, 0x27, 0x93, 0xa3}, /* iv */ 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() [all …]
|
| /freebsd/crypto/openssl/crypto/rc2/ |
| H A D | rc2cfb64.c | 33 unsigned char *iv, c, cc; in RC2_cfb64_encrypt() local 35 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 39 c2l(iv, v0); in RC2_cfb64_encrypt() 41 c2l(iv, v1); in RC2_cfb64_encrypt() 44 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 46 l2c(t, iv); in RC2_cfb64_encrypt() 48 l2c(t, iv); in RC2_cfb64_encrypt() 49 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 51 c = *(in++) ^ iv[n]; in RC2_cfb64_encrypt() 53 iv[n] = c; in RC2_cfb64_encrypt() [all …]
|
| /freebsd/crypto/openssl/crypto/rc5/ |
| H A D | rc5cfb64.c | 33 unsigned char *iv, c, cc; in RC5_32_cfb64_encrypt() local 35 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 39 c2l(iv, v0); in RC5_32_cfb64_encrypt() 41 c2l(iv, v1); in RC5_32_cfb64_encrypt() 44 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 46 l2c(t, iv); in RC5_32_cfb64_encrypt() 48 l2c(t, iv); in RC5_32_cfb64_encrypt() 49 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 51 c = *(in++) ^ iv[n]; in RC5_32_cfb64_encrypt() 53 iv[n] = c; in RC5_32_cfb64_encrypt() [all …]
|
| /freebsd/crypto/openssl/crypto/bf/ |
| H A D | bf_cfb64.c | 33 unsigned char *iv, c, cc; in BF_cfb64_encrypt() local 35 iv = (unsigned char *)ivec; in BF_cfb64_encrypt() 39 n2l(iv, v0); in BF_cfb64_encrypt() 41 n2l(iv, v1); in BF_cfb64_encrypt() 44 iv = (unsigned char *)ivec; in BF_cfb64_encrypt() 46 l2n(t, iv); in BF_cfb64_encrypt() 48 l2n(t, iv); in BF_cfb64_encrypt() 49 iv = (unsigned char *)ivec; in BF_cfb64_encrypt() 51 c = *(in++) ^ iv[n]; in BF_cfb64_encrypt() 53 iv[n] = c; in BF_cfb64_encrypt() [all …]
|
| /freebsd/crypto/openssl/crypto/cast/ |
| H A D | c_cfb64.c | 33 unsigned char *iv, c, cc; in CAST_cfb64_encrypt() local 35 iv = ivec; in CAST_cfb64_encrypt() 39 n2l(iv, v0); in CAST_cfb64_encrypt() 41 n2l(iv, v1); in CAST_cfb64_encrypt() 44 iv = ivec; in CAST_cfb64_encrypt() 46 l2n(t, iv); in CAST_cfb64_encrypt() 48 l2n(t, iv); in CAST_cfb64_encrypt() 49 iv = ivec; in CAST_cfb64_encrypt() 51 c = *(in++) ^ iv[n]; in CAST_cfb64_encrypt() 53 iv[n] = c; in CAST_cfb64_encrypt() [all …]
|
| /freebsd/crypto/openssl/crypto/idea/ |
| H A D | i_cfb64.c | 34 unsigned char *iv, c, cc; in IDEA_cfb64_encrypt() local 41 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt() 45 n2l(iv, v0); in IDEA_cfb64_encrypt() 47 n2l(iv, v1); in IDEA_cfb64_encrypt() 50 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt() 52 l2n(t, iv); in IDEA_cfb64_encrypt() 54 l2n(t, iv); in IDEA_cfb64_encrypt() 55 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt() 57 c = *(in++) ^ iv[n]; in IDEA_cfb64_encrypt() 59 iv[n] = c; in IDEA_cfb64_encrypt() [all …]
|
| /freebsd/crypto/krb5/src/lib/crypto/builtin/enc_provider/ |
| H A D | aes.c | 57 unsigned char *iv; member 110 aesni_enc(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv) in aesni_enc() argument 118 d.iv = iv; in aesni_enc() 127 aesni_dec(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv) in aesni_dec() argument 135 d.iv = iv; in aesni_dec() 149 #define aesni_enc(key, data, nblocks, iv) argument 150 #define aesni_dec(key, data, nblocks, iv) argument 201 /* CBC encrypt nblocks blocks of data in place, using and updating iv. */ 203 cbc_enc(krb5_key key, unsigned char *data, size_t nblocks, unsigned char *iv) in cbc_enc() argument 206 aesni_enc(key, data, nblocks, iv); in cbc_enc() [all …]
|