/freebsd/crypto/openssl/crypto/modes/ |
H A D | cfb128.c | 27 unsigned char ivec[16], int *num, in CRYPTO_cfb128_encrypt() 45 *(out++) = ivec[n] ^= *(in++); in CRYPTO_cfb128_encrypt() 50 if (((size_t)in | (size_t)out | (size_t)ivec) % in CRYPTO_cfb128_encrypt() 55 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt() 58 *(size_t_aX *)(ivec + n) in CRYPTO_cfb128_encrypt() 67 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt() 69 out[n] = ivec[n] ^= in[n]; in CRYPTO_cfb128_encrypt() 81 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt() 83 out[l] = ivec[n] ^= in[l]; in CRYPTO_cfb128_encrypt() 94 *(out++) = ivec[n] ^ (c = *(in++)); in CRYPTO_cfb128_encrypt() [all …]
|
H A D | cts128.c | 29 const void *key, unsigned char ivec[16], in CRYPTO_cts128_encrypt_block() 42 CRYPTO_cbc128_encrypt(in, out, len, key, ivec, block); in CRYPTO_cts128_encrypt_block() 48 ivec[n] ^= in[n]; in CRYPTO_cts128_encrypt_block() 49 (*block) (ivec, ivec, key); in CRYPTO_cts128_encrypt_block() 51 memcpy(out - 16, ivec, 16); in CRYPTO_cts128_encrypt_block() 59 unsigned char ivec[16], in CRYPTO_nistcts128_encrypt_block() 71 CRYPTO_cbc128_encrypt(in, out, len, key, ivec, block); in CRYPTO_nistcts128_encrypt_block() 80 ivec[n] ^= in[n]; in CRYPTO_nistcts128_encrypt_block() 81 (*block) (ivec, ivec, key); in CRYPTO_nistcts128_encrypt_block() 82 memcpy(out - 16 + residue, ivec, 16); in CRYPTO_nistcts128_encrypt_block() [all …]
|
H A D | ofb128.c | 27 unsigned char ivec[16], int *num, block128_f block) in CRYPTO_ofb128_encrypt() 43 *(out++) = *(in++) ^ ivec[n]; in CRYPTO_ofb128_encrypt() 48 if (((size_t)in | (size_t)out | (size_t)ivec) % sizeof(size_t) != in CRYPTO_ofb128_encrypt() 53 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt() 57 ^ *(size_t_aX *)(ivec + n); in CRYPTO_ofb128_encrypt() 64 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt() 66 out[n] = in[n] ^ ivec[n]; in CRYPTO_ofb128_encrypt() 78 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt() 80 out[l] = in[l] ^ ivec[n]; in CRYPTO_ofb128_encrypt()
|
H A D | cbc128.c | 26 unsigned char ivec[16], block128_f block) in CRYPTO_cbc128_encrypt() 29 const unsigned char *iv = ivec; in CRYPTO_cbc128_encrypt() 36 ((size_t)in | (size_t)out | (size_t)ivec) % sizeof(size_t) != 0) { in CRYPTO_cbc128_encrypt() 72 if (ivec != iv) in CRYPTO_cbc128_encrypt() 73 memcpy(ivec, iv, 16); in CRYPTO_cbc128_encrypt() 78 unsigned char ivec[16], block128_f block) in CRYPTO_cbc128_decrypt() 91 const unsigned char *iv = ivec; in CRYPTO_cbc128_decrypt() 94 ((size_t)in | (size_t)out | (size_t)ivec) % sizeof(size_t) != 0) { in CRYPTO_cbc128_decrypt() 118 if (ivec != iv) in CRYPTO_cbc128_decrypt() 119 memcpy(ivec, iv, 16); in CRYPTO_cbc128_decrypt() [all …]
|
H A D | ctr128.c | 75 unsigned char ivec[16], in CRYPTO_ctr128_encrypt() 99 (*block) (ivec, ecount_buf, key); in CRYPTO_ctr128_encrypt() 100 ctr128_inc_aligned(ivec); in CRYPTO_ctr128_encrypt() 111 (*block) (ivec, ecount_buf, key); in CRYPTO_ctr128_encrypt() 112 ctr128_inc_aligned(ivec); in CRYPTO_ctr128_encrypt() 126 (*block) (ivec, ecount_buf, key); in CRYPTO_ctr128_encrypt() 127 ctr128_inc(ivec); in CRYPTO_ctr128_encrypt() 152 unsigned char ivec[16], in CRYPTO_ctr128_encrypt_ctr32() 166 ctr32 = GETU32(ivec + 12); in CRYPTO_ctr128_encrypt_ctr32() 187 (*func) (in, out, blocks, key, ivec); in CRYPTO_ctr128_encrypt_ctr32() [all …]
|
/freebsd/crypto/openssl/crypto/aes/ |
H A D | aes_ige.c | 50 unsigned char *ivec, const int enc) in AES_ige_encrypt() argument 58 OPENSSL_assert(in && out && key && ivec); in AES_ige_encrypt() 65 || ((size_t)in | (size_t)out | (size_t)ivec) % sizeof(long) == in AES_ige_encrypt() 67 aes_block_t *ivp = (aes_block_t *) ivec; in AES_ige_encrypt() 68 aes_block_t *iv2p = (aes_block_t *) (ivec + AES_BLOCK_SIZE); in AES_ige_encrypt() 86 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 87 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 93 load_block(iv, ivec); in AES_ige_encrypt() 94 load_block(iv2, ivec + AES_BLOCK_SIZE); in AES_ige_encrypt() 111 memcpy(ivec, iv.data, AES_BLOCK_SIZE); in AES_ige_encrypt() [all …]
|
H A D | aes_cfb.c | 27 unsigned char *ivec, int *num, const int enc) in AES_cfb128_encrypt() argument 30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb128_encrypt() 37 unsigned char *ivec, int *num, const int enc) in AES_cfb1_encrypt() argument 39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb1_encrypt() 45 unsigned char *ivec, int *num, const int enc) in AES_cfb8_encrypt() argument 47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb8_encrypt()
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | aes_platform.h | 28 const AES_KEY *key, unsigned char *ivec, int enc); 34 unsigned char ivec[16], int enc); 38 const unsigned char ivec[16]); 50 const unsigned char ivec[AES_BLOCK_SIZE]); 111 uint64_t *Xi, unsigned char ivec[16], const void *key); 113 uint64_t *Xi, unsigned char ivec[16], const void *key); 115 uint64_t *Xi, unsigned char ivec[16], const void *key); 117 uint64_t *Xi, unsigned char ivec[16], const void *key); 119 uint64_t *Xi, unsigned char ivec[16], const void *key); 121 uint64_t *Xi, unsigned char ivec[16], const void *key); [all …]
|
H A D | cmll_platform.h | 31 unsigned char *ivec, int /*unused*/); 34 unsigned char *ivec, int /*unused*/); 37 unsigned char *ivec, int /*unused*/); 40 unsigned char *ivec, int /*unused*/); 43 unsigned char *ivec); 46 unsigned char *ivec);
|
/freebsd/crypto/openssl/crypto/perlasm/ |
H A D | sparcv9_modes.pl | 37 my ($inp,$out,$len,$key,$ivec)=map("%i$_",(0..5)); 55 andcc $ivec, 7, $ivoff 56 alignaddr $ivec, %g0, $ivec 58 ldd [$ivec + 0], %f0 ! load ivec 60 ldd [$ivec + 8], %f2 61 ldd [$ivec + 16], %f4 67 ld [$ivec + 0], %f0 68 ld [$ivec + 4], %f1 69 ld [$ivec + 8], %f2 70 ld [$ivec + 12], %f3 [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | modes.h | 30 unsigned char ivec[16], int enc); 38 const unsigned char ivec[16]); 42 const unsigned char ivec[16], 47 unsigned char ivec[16], block128_f block); 50 unsigned char ivec[16], block128_f block); 54 unsigned char ivec[16], 60 unsigned char ivec[16], 66 unsigned char ivec[16], int *num, 71 unsigned char ivec[16], int *num, 75 unsigned char ivec[16], int *num, [all …]
|
H A D | des.h | 84 const_DES_cblock *ivec); 90 long length, DES_key_schedule *schedule, DES_cblock *ivec, 94 long length, DES_key_schedule *schedule, DES_cblock *ivec, 98 long length, DES_key_schedule *schedule, DES_cblock *ivec, 102 long length, DES_key_schedule *schedule, DES_cblock *ivec, 145 DES_cblock *ivec, int enc); 150 DES_cblock *ivec, int *num, int enc); 155 DES_cblock *ivec, int enc); 160 DES_cblock *ivec, int *num); 167 long length, DES_key_schedule *schedule, DES_cblock *ivec); [all …]
|
H A D | aes.h | 68 unsigned char *ivec, const int enc); 72 unsigned char *ivec, int *num, const int enc); 76 unsigned char *ivec, int *num, const int enc); 80 unsigned char *ivec, int *num, const int enc); 84 unsigned char *ivec, int *num); 90 unsigned char *ivec, const int enc); 95 const unsigned char *ivec, const int enc);
|
H A D | camellia.h | 75 unsigned char *ivec, 81 unsigned char *ivec, 88 unsigned char *ivec, 95 unsigned char *ivec, 102 unsigned char *ivec, 107 unsigned char ivec[CAMELLIA_BLOCK_SIZE],
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | crypto-des.c | 226 DES_cblock ivec; in evp_des_encrypt_null_ivec() local 227 memset(&ivec, 0, sizeof(ivec)); in evp_des_encrypt_null_ivec() 229 EVP_CipherInit_ex(c, NULL, NULL, NULL, (void *)&ivec, -1); in evp_des_encrypt_null_ivec() 245 DES_cblock ivec; in evp_des_encrypt_key_ivec() local 246 memcpy(&ivec, key->key->keyvalue.data, sizeof(ivec)); in evp_des_encrypt_key_ivec() 248 EVP_CipherInit_ex(c, NULL, NULL, NULL, (void *)&ivec, -1); in evp_des_encrypt_key_ivec() 262 DES_cblock ivec; in DES_CFB64_encrypt_null_ivec() local 265 memset(&ivec, 0, sizeof(ivec)); in DES_CFB64_encrypt_null_ivec() 267 DES_cfb64_encrypt(data, data, len, s, &ivec, &num, encryptp); in DES_CFB64_encrypt_null_ivec() 280 DES_cblock ivec; in DES_PCBC_encrypt_key_ivec() local [all …]
|
H A D | crypto-evp.c | 68 void *ivec) in _krb5_evp_encrypt() argument 73 if (ivec == NULL) { in _krb5_evp_encrypt() 85 EVP_CipherInit_ex(c, NULL, NULL, NULL, ivec, -1); in _krb5_evp_encrypt() 99 void *ivec) in _krb5_evp_encrypt_cts() argument 121 if (ivec) in _krb5_evp_encrypt_cts() 122 EVP_CipherInit_ex(c, NULL, NULL, NULL, ivec, -1); in _krb5_evp_encrypt_cts() 144 if (ivec) in _krb5_evp_encrypt_cts() 145 memcpy(ivec, p, blocksize); in _krb5_evp_encrypt_cts() 158 if (ivec) in _krb5_evp_encrypt_cts() 159 memcpy(ivec2, ivec, blocksize); in _krb5_evp_encrypt_cts() [all …]
|
H A D | crypto-des-common.c | 67 DES_cblock ivec; in _krb5_des_checksum() local 83 memset (&ivec, 0, sizeof(ivec)); in _krb5_des_checksum() 84 EVP_CipherInit_ex(ctx->ectx, NULL, NULL, NULL, (void *)&ivec, -1); in _krb5_des_checksum() 102 DES_cblock ivec; in _krb5_des_verify() local 111 memset(&ivec, 0, sizeof(ivec)); in _krb5_des_verify() 112 EVP_CipherInit_ex(ctx->dctx, NULL, NULL, NULL, (void *)&ivec, -1); in _krb5_des_verify()
|
/freebsd/crypto/openssl/crypto/des/asm/ |
H A D | dest4-sparcv9.pl | 102 { my ($inp,$out,$len,$key,$ivec) = map("%o$_",(0..4)); 112 ld [$ivec + 0], %f0 ! load ivec 113 ld [$ivec + 4], %f1 180 st %f0, [$ivec + 0] ! write out ivec 182 st %f1, [$ivec + 4] 201 st %f0, [$ivec + 0] ! write out ivec 203 st %f1, [$ivec + 4] 213 ld [$ivec + 0], %f2 ! load ivec 214 ld [$ivec + 4], %f3 283 st %f2, [$ivec + 0] ! write out ivec [all …]
|
/freebsd/crypto/openssl/crypto/camellia/ |
H A D | cmll_cfb.c | 27 unsigned char *ivec, int *num, const int enc) in Camellia_cfb128_encrypt() argument 30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb128_encrypt() 37 unsigned char *ivec, int *num, const int enc) in Camellia_cfb1_encrypt() argument 39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb1_encrypt() 45 unsigned char *ivec, int *num, const int enc) in Camellia_cfb8_encrypt() argument 47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb8_encrypt()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_sm4.c | 35 unsigned char *ivec, const int enc) in sm4_cbc_encrypt() argument 38 CRYPTO_cbc128_encrypt(in, out, len, key, ivec, in sm4_cbc_encrypt() 41 CRYPTO_cbc128_decrypt(in, out, len, key, ivec, in sm4_cbc_encrypt() 47 unsigned char *ivec, int *num, const int enc) in sm4_cfb128_encrypt() argument 49 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in sm4_cfb128_encrypt() 64 unsigned char *ivec, int *num) in sm4_ofb128_encrypt() argument 66 CRYPTO_ofb128_encrypt(in, out, length, key, ivec, num, in sm4_ofb128_encrypt()
|
/freebsd/crypto/heimdal/appl/rsh/ |
H A D | common.c | 74 do_read (int fd, void *buf, size_t sz, void *ivec) in do_read() argument 92 if(ivec != NULL) in do_read() 106 edata, outer_len, &data, ivec); in do_read() 111 if(ivec != NULL) { in do_read() 131 do_write (int fd, void *buf, size_t sz, void *ivec) in do_write() argument 142 if(ivec != NULL) { in do_write() 149 tmp, sz + 4, &data, ivec); in do_write() 153 buf, sz, &data, ivec); in do_write()
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_gcm_hw_armv8.inc | 16 const void *key, unsigned char ivec[16], u64 *Xi) 25 aes_gcm_enc_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 28 aes_gcm_enc_192_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 31 aes_gcm_enc_256_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 38 const void *key, unsigned char ivec[16], u64 *Xi) 47 aes_gcm_dec_128_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 50 aes_gcm_dec_192_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key); 53 aes_gcm_dec_256_kernel(in, align_bytes * 8, out, (uint64_t *)Xi, ivec, key);
|
/freebsd/crypto/openssl/crypto/rc2/ |
H A D | rc2cfb64.c | 26 long length, RC2_KEY *schedule, unsigned char *ivec, in RC2_cfb64_encrypt() argument 35 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 44 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 49 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 64 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 69 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt()
|
/freebsd/crypto/openssl/crypto/rc5/ |
H A D | rc5cfb64.c | 27 unsigned char *ivec, int *num, int encrypt) in RC5_32_cfb64_encrypt() argument 35 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 44 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 49 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 64 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 69 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt()
|
/freebsd/crypto/openssl/crypto/des/ |
H A D | cfb64enc.c | 26 DES_cblock *ivec, int *num, int enc) in DES_cfb64_encrypt() argument 34 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 43 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 48 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 63 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 68 iv = &(*ivec)[0]; in DES_cfb64_encrypt()
|