/third_party/openssl/crypto/modes/ |
D | cfb128.c | 27 unsigned char ivec[16], int *num, in CRYPTO_cfb128_encrypt() 40 *(out++) = ivec[n] ^= *(in++); in CRYPTO_cfb128_encrypt() 45 if (((size_t)in | (size_t)out | (size_t)ivec) % in CRYPTO_cfb128_encrypt() 50 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt() 53 *(size_t_aX *)(ivec + n) in CRYPTO_cfb128_encrypt() 62 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt() 64 out[n] = ivec[n] ^= in[n]; in CRYPTO_cfb128_encrypt() 76 (*block) (ivec, ivec, key); in CRYPTO_cfb128_encrypt() 78 out[l] = ivec[n] ^= in[l]; in CRYPTO_cfb128_encrypt() 89 *(out++) = ivec[n] ^ (c = *(in++)); in CRYPTO_cfb128_encrypt() [all …]
|
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 …]
|
D | ofb128.c | 27 unsigned char ivec[16], int *num, block128_f block) in CRYPTO_ofb128_encrypt() 38 *(out++) = *(in++) ^ ivec[n]; in CRYPTO_ofb128_encrypt() 43 if (((size_t)in | (size_t)out | (size_t)ivec) % sizeof(size_t) != in CRYPTO_ofb128_encrypt() 48 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt() 52 ^ *(size_t_aX *)(ivec + n); in CRYPTO_ofb128_encrypt() 59 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt() 61 out[n] = in[n] ^ ivec[n]; in CRYPTO_ofb128_encrypt() 73 (*block) (ivec, ivec, key); in CRYPTO_ofb128_encrypt() 75 out[l] = in[l] ^ ivec[n]; in CRYPTO_ofb128_encrypt()
|
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 …]
|
D | ctr128.c | 79 unsigned char ivec[16], in CRYPTO_ctr128_encrypt() 103 (*block) (ivec, ecount_buf, key); in CRYPTO_ctr128_encrypt() 104 ctr128_inc_aligned(ivec); in CRYPTO_ctr128_encrypt() 115 (*block) (ivec, ecount_buf, key); in CRYPTO_ctr128_encrypt() 116 ctr128_inc_aligned(ivec); in CRYPTO_ctr128_encrypt() 130 (*block) (ivec, ecount_buf, key); in CRYPTO_ctr128_encrypt() 131 ctr128_inc(ivec); in CRYPTO_ctr128_encrypt() 156 unsigned char ivec[16], in CRYPTO_ctr128_encrypt_ctr32() 170 ctr32 = GETU32(ivec + 12); in CRYPTO_ctr128_encrypt_ctr32() 191 (*func) (in, out, blocks, key, ivec); in CRYPTO_ctr128_encrypt_ctr32() [all …]
|
/third_party/openssl/crypto/aes/ |
D | aes_ige.c | 43 unsigned char *ivec, const int enc) in AES_ige_encrypt() argument 51 OPENSSL_assert(in && out && key && ivec); in AES_ige_encrypt() 60 || ((size_t)in | (size_t)out | (size_t)ivec) % sizeof(long) == in AES_ige_encrypt() 62 aes_block_t *ivp = (aes_block_t *) ivec; in AES_ige_encrypt() 63 aes_block_t *iv2p = (aes_block_t *) (ivec + AES_BLOCK_SIZE); in AES_ige_encrypt() 81 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 82 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 88 load_block(iv, ivec); in AES_ige_encrypt() 89 load_block(iv2, ivec + AES_BLOCK_SIZE); in AES_ige_encrypt() 106 memcpy(ivec, iv.data, AES_BLOCK_SIZE); in AES_ige_encrypt() [all …]
|
D | aes_cfb.c | 21 unsigned char *ivec, int *num, const int enc) in AES_cfb128_encrypt() argument 24 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb128_encrypt() 31 unsigned char *ivec, int *num, const int enc) in AES_cfb1_encrypt() argument 33 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb1_encrypt() 39 unsigned char *ivec, int *num, const int enc) in AES_cfb8_encrypt() argument 41 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb8_encrypt()
|
/third_party/openssl/crypto/perlasm/ |
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 …]
|
/third_party/openssl/include/openssl/ |
D | modes.h | 23 unsigned char ivec[16], int enc); 27 const unsigned char ivec[16]); 31 const unsigned char ivec[16], 36 unsigned char ivec[16], block128_f block); 39 unsigned char ivec[16], block128_f block); 43 unsigned char ivec[16], 49 unsigned char ivec[16], 55 unsigned char ivec[16], int *num, 60 unsigned char ivec[16], int *num, 64 unsigned char ivec[16], int *num, [all …]
|
D | des.h | 75 const_DES_cblock *ivec); 79 DES_cblock *ivec, int enc); 82 DES_cblock *ivec, int enc); 85 DES_cblock *ivec, const_DES_cblock *inw, 89 DES_cblock *ivec, int enc); 122 DES_key_schedule *ks3, DES_cblock *ivec, int enc); 126 DES_cblock *ivec, int *num, int enc); 130 DES_cblock *ivec, int enc); 134 DES_cblock *ivec, int *num); 139 DES_cblock *ivec); [all …]
|
D | aes.h | 57 unsigned char *ivec, const int enc); 60 unsigned char *ivec, int *num, const int enc); 63 unsigned char *ivec, int *num, const int enc); 66 unsigned char *ivec, int *num, const int enc); 69 unsigned char *ivec, int *num); 73 unsigned char *ivec, const int enc); 77 const AES_KEY *key2, const unsigned char *ivec,
|
D | camellia.h | 59 unsigned char *ivec, const int enc); 62 unsigned char *ivec, int *num, const int enc); 65 unsigned char *ivec, int *num, const int enc); 68 unsigned char *ivec, int *num, const int enc); 71 unsigned char *ivec, int *num); 74 unsigned char ivec[CAMELLIA_BLOCK_SIZE],
|
/third_party/openssl/crypto/aes/asm/ |
D | aesv8-armx.pl | 367 my ($dat0,$dat1,$in0,$in1,$tmp0,$tmp1,$ivec,$rndlast)=map("q$_",(0..7)); 399 vld1.8 {$ivec},[$ivp] 416 veor $dat,$dat,$ivec 434 vst1.8 {$ivec},[$out],#16 476 veor $ivec,$dat,$rndlast 479 vst1.8 {$ivec},[$out],#16 491 vst1.8 {$ivec},[$out],#16 514 veor $ivec,$dat,$rndlast 517 vst1.8 {$ivec},[$out],#16 563 veor $tmp0,$ivec,$rndlast [all …]
|
/third_party/mindspore/mindspore/ccsrc/fl/armour/secure_protocol/ |
D | encrypt.cc | 21 AESEncrypt::AESEncrypt(const uint8_t *key, int key_len, const uint8_t *ivec, int ivec_len, const AE… in AESEncrypt() argument 24 ivec_ = ivec; in AESEncrypt() 97 …crypt::evp_aes_encrypt(const uint8_t *data, const int len, const uint8_t *key, const uint8_t *ivec, in evp_aes_encrypt() argument 108 ret = EVP_EncryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, ivec); in evp_aes_encrypt() 111 ret = EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, key, ivec); in evp_aes_encrypt() 125 ret = EVP_EncryptInit_ex(ctx, EVP_aes_128_ctr(), NULL, key, ivec); in evp_aes_encrypt() 128 ret = EVP_EncryptInit_ex(ctx, EVP_aes_256_ctr(), NULL, key, ivec); in evp_aes_encrypt() 159 …vp_aes_decrypt(const uint8_t *encrypt_data, const int len, const uint8_t *key, const uint8_t *ivec, in evp_aes_decrypt() argument 170 ret = EVP_DecryptInit_ex(ctx, EVP_aes_128_cbc(), NULL, key, ivec); in evp_aes_decrypt() 173 ret = EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, key, ivec); in evp_aes_decrypt() [all …]
|
/third_party/openssl/crypto/des/asm/ |
D | dest4-sparcv9.pl | 100 { my ($inp,$out,$len,$key,$ivec) = map("%o$_",(0..4)); 110 ld [$ivec + 0], %f0 ! load ivec 111 ld [$ivec + 4], %f1 178 st %f0, [$ivec + 0] ! write out ivec 180 st %f1, [$ivec + 4] 199 st %f0, [$ivec + 0] ! write out ivec 201 st %f1, [$ivec + 4] 211 ld [$ivec + 0], %f2 ! load ivec 212 ld [$ivec + 4], %f3 281 st %f2, [$ivec + 0] ! write out ivec [all …]
|
/third_party/openssl/crypto/camellia/ |
D | cmll_cfb.c | 21 unsigned char *ivec, int *num, const int enc) in Camellia_cfb128_encrypt() argument 24 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb128_encrypt() 31 unsigned char *ivec, int *num, const int enc) in Camellia_cfb1_encrypt() argument 33 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb1_encrypt() 39 unsigned char *ivec, int *num, const int enc) in Camellia_cfb8_encrypt() argument 41 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb8_encrypt()
|
/third_party/openssl/crypto/evp/ |
D | e_sm4.c | 32 unsigned char *ivec, const int enc) in sm4_cbc_encrypt() argument 35 CRYPTO_cbc128_encrypt(in, out, len, key, ivec, in sm4_cbc_encrypt() 38 CRYPTO_cbc128_decrypt(in, out, len, key, ivec, in sm4_cbc_encrypt() 44 unsigned char *ivec, int *num, const int enc) in sm4_cfb128_encrypt() argument 46 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in sm4_cfb128_encrypt() 61 unsigned char *ivec, int *num) in sm4_ofb128_encrypt() argument 63 CRYPTO_ofb128_encrypt(in, out, length, key, ivec, num, in sm4_ofb128_encrypt()
|
/third_party/openssl/crypto/rc5/ |
D | rc5cfb64.c | 21 unsigned char *ivec, int *num, int encrypt) in RC5_32_cfb64_encrypt() argument 29 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 38 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 43 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 58 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt() 63 iv = (unsigned char *)ivec; in RC5_32_cfb64_encrypt()
|
/third_party/openssl/crypto/bf/ |
D | bf_cfb64.c | 21 unsigned char *ivec, int *num, int encrypt) in BF_cfb64_encrypt() argument 29 iv = (unsigned char *)ivec; in BF_cfb64_encrypt() 38 iv = (unsigned char *)ivec; in BF_cfb64_encrypt() 43 iv = (unsigned char *)ivec; in BF_cfb64_encrypt() 58 iv = (unsigned char *)ivec; in BF_cfb64_encrypt() 63 iv = (unsigned char *)ivec; in BF_cfb64_encrypt()
|
D | bf_enc.c | 103 const BF_KEY *schedule, unsigned char *ivec, int encrypt) in BF_cbc_encrypt() argument 111 n2l(ivec, tout0); in BF_cbc_encrypt() 112 n2l(ivec, tout1); in BF_cbc_encrypt() 113 ivec -= 8; in BF_cbc_encrypt() 139 l2n(tout0, ivec); in BF_cbc_encrypt() 140 l2n(tout1, ivec); in BF_cbc_encrypt() 142 n2l(ivec, xor0); in BF_cbc_encrypt() 143 n2l(ivec, xor1); in BF_cbc_encrypt() 144 ivec -= 8; in BF_cbc_encrypt() 170 l2n(xor0, ivec); in BF_cbc_encrypt() [all …]
|
/third_party/openssl/crypto/rc2/ |
D | rc2cfb64.c | 20 long length, RC2_KEY *schedule, unsigned char *ivec, in RC2_cfb64_encrypt() argument 29 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 38 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 43 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 58 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt() 63 iv = (unsigned char *)ivec; in RC2_cfb64_encrypt()
|
/third_party/openssl/crypto/des/ |
D | cfb64enc.c | 20 DES_cblock *ivec, int *num, int enc) in DES_cfb64_encrypt() argument 28 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 37 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 42 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 57 iv = &(*ivec)[0]; in DES_cfb64_encrypt() 62 iv = &(*ivec)[0]; in DES_cfb64_encrypt()
|
D | cfb64ede.c | 21 DES_cblock *ivec, int *num, int enc) in DES_ede3_cfb64_encrypt() argument 29 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 42 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 45 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 64 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 67 iv = &(*ivec)[0]; in DES_ede3_cfb64_encrypt() 88 DES_cblock *ivec, int enc) in DES_ede3_cfb_encrypt() argument 99 iv = &(*ivec)[0]; in DES_ede3_cfb_encrypt() 185 iv = &(*ivec)[0]; in DES_ede3_cfb_encrypt()
|
/third_party/openssl/crypto/cast/ |
D | c_cfb64.c | 21 unsigned char *ivec, int *num, int enc) in CAST_cfb64_encrypt() argument 29 iv = ivec; in CAST_cfb64_encrypt() 38 iv = ivec; in CAST_cfb64_encrypt() 43 iv = ivec; in CAST_cfb64_encrypt() 58 iv = ivec; in CAST_cfb64_encrypt() 63 iv = ivec; in CAST_cfb64_encrypt()
|
/third_party/openssl/crypto/idea/ |
D | i_cfb64.c | 21 unsigned char *ivec, int *num, int encrypt) in IDEA_cfb64_encrypt() argument 29 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt() 38 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt() 43 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt() 58 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt() 63 iv = (unsigned char *)ivec; in IDEA_cfb64_encrypt()
|