/openssl/crypto/md5/asm/ |
H A D | md5-x86_64.pl | 28 lea $T_i($dst,%r10d),$dst /* Const + dst + ... */ 32 add %r11d, $dst /* dst += ... */ 33 rol \$$s, $dst /* dst <<< s */ 35 add $x, $dst /* dst += x */ 53 lea $T_i($dst,%r10d),$dst /* Const + dst + ... */ 60 rol \$$s, $dst /* dst <<< s */ 61 add $x, $dst /* dst += x */ 76 lea $T_i($dst,%r10d),$dst /* Const + dst + ... */ 91 add $x, $dst /* dst += x */ 109 lea $T_i($dst,%r10d),$dst /* Const + dst + ... */ [all …]
|
H A D | md5-loongarch64.pl | 56 add.w $dst,$t7,$t1 /* dst += ... */ 60 $code .= " rotri.w $dst,$dst,32-$s /* dst <<< s */\n"; 67 $code .= " add.w $dst,$dst,$x /* dst += x */\n"; 94 $code .= " rotri.w $dst,$dst,32-$s /* dst <<< s */\n"; 101 $code .= " add.w $dst,$dst,$x /* dst += x */\n"; 125 $code .= " rotri.w $dst,$dst,32-$s /* dst <<< s */\n"; 131 $code .= " add.w $dst,$dst,$x /* dst += x */\n"; 157 $code .= " rotri.w $dst,$dst,32-$s /* dst <<< s */\n"; 159 $code .= " add.w $dst,$dst,$x /* dst += x */\n"; 164 $code .= " rotri.w $dst,$dst,32-$s /* dst <<< s */\n"; [all …]
|
/openssl/crypto/perlasm/ |
H A D | x86asm.pl | 94 { my($dst,$src,$imm)=@_; 102 { my($dst,$src,$imm)=@_; 110 { my($dst,$src)=@_; 118 { my($dst,$src,$imm)=@_; 126 { my($dst,$src,$imm)=@_; 134 { my ($dst)=@_; 135 if ($dst =~ /(e[a-dsd][ixp])/) 142 { my ($dst)=@_; 143 if ($dst =~ /(e[a-dsd][ixp])/) 151 my ($dst,$src1,$src2,$rxb)=@_; [all …]
|
H A D | x86gas.pl | 36 my($suffix,$dst,$src); 47 $dst = $arg[$#arg] if ($#arg>=0); 49 if ($dst =~ m/^%/o) { $suffix=&opsize($dst); } 52 undef $suffix if ($dst =~ m/^%[xm]/o || $src =~ m/^%[xm]/o); 212 { my($dst,$sym,$base,$reflabel)=@_; 218 &::blindpop($dst); 219 $base=$dst; 224 &::mov($dst,&::DWP("$indirect-$reflabel",$base)); 228 { &::lea($dst,&::DWP("$sym-$reflabel",$base)); } 232 &::mov($dst,&::DWP("$sym\@GOT",$dst)); [all …]
|
H A D | x86_64-xlate.pl | 1190 my ($dst,$src,$rex)=@_; 1202 if ($dst !~ /[0-9]+/) { $dst = $regrm{"%e$dst"}; } 1209 if ($dst !~ /[0-9]+/) { $dst = $regrm{"%e$dst"}; } 1224 my $dst=$3; 1225 if ($dst =~ /%r([0-9]+)d/) { $dst = $1; } 1226 elsif ($dst =~ /%e/) { $dst = $regrm{$dst}; } 1242 my $dst=$3; 1297 my $dst=$1; 1298 if ($dst !~ /[0-9]+/) { $dst = $regrm{"%e$dst"}; } 1310 my $dst=$1; [all …]
|
/openssl/crypto/ |
H A D | params_dup.c | 61 int has_dst = (dst != NULL); in ossl_param_dup() 68 *dst = *in; in ossl_param_dup() 87 dst++; in ossl_param_dup() 95 return dst; in ossl_param_dup() 102 OSSL_PARAM *last, *dst; in OSSL_PARAM_dup() local 135 return dst; in OSSL_PARAM_dup() 152 OSSL_PARAM *params, *dst; in OSSL_PARAM_merge() local 187 dst = params; in OSSL_PARAM_merge() 211 *dst++ = **p2cur; in OSSL_PARAM_merge() 215 *dst++ = **p2cur; in OSSL_PARAM_merge() [all …]
|
H A D | s390xcpuid.pl | 511 stg %r0,24($dst) 512 stg %r1,16($dst) 513 stg %r4,8($dst) 514 stg %r5,0($dst) 539 stg %r0,56($dst) 540 stg %r1,48($dst) 541 stg %r4,40($dst) 542 stg %r5,32($dst) 543 stg %r6,24($dst) 545 stg %r8,8($dst) [all …]
|
/openssl/providers/implementations/kdfs/ |
H A D | hmacdrbg_kdf.c | 83 if (dst->ctx == NULL) in ossl_drbg_hmac_dup() 88 memcpy(dst->K, src->K, sizeof(dst->K)); in ossl_drbg_hmac_dup() 89 memcpy(dst->V, src->V, sizeof(dst->V)); in ossl_drbg_hmac_dup() 90 dst->blocklen = src->blocklen; in ossl_drbg_hmac_dup() 97 KDF_HMAC_DRBG *dst; in hmac_drbg_kdf_dup() local 100 if (dst != NULL) { in hmac_drbg_kdf_dup() 103 &dst->entropy , &dst->entropylen) in hmac_drbg_kdf_dup() 105 &dst->nonce, &dst->noncelen)) in hmac_drbg_kdf_dup() 107 dst->init = src->init; in hmac_drbg_kdf_dup() 109 return dst; in hmac_drbg_kdf_dup() [all …]
|
/openssl/crypto/ffc/ |
H A D | ffc_params.c | 176 BN_clear_free(*dst); in ffc_bn_cpy() 177 *dst = a; in ffc_bn_cpy() 189 dst->mdname = src->mdname; in ossl_ffc_params_copy() 190 dst->mdprops = src->mdprops; in ossl_ffc_params_copy() 191 OPENSSL_free(dst->seed); in ossl_ffc_params_copy() 195 if (dst->seed == NULL) in ossl_ffc_params_copy() 198 dst->seed = NULL; in ossl_ffc_params_copy() 200 dst->nid = src->nid; in ossl_ffc_params_copy() 202 dst->h = src->h; in ossl_ffc_params_copy() 203 dst->gindex = src->gindex; in ossl_ffc_params_copy() [all …]
|
/openssl/crypto/evp/ |
H A D | kdf_lib.c | 57 EVP_KDF_CTX *dst; in EVP_KDF_CTX_dup() local 62 dst = OPENSSL_malloc(sizeof(*dst)); in EVP_KDF_CTX_dup() 63 if (dst == NULL) in EVP_KDF_CTX_dup() 66 memcpy(dst, src, sizeof(*dst)); in EVP_KDF_CTX_dup() 67 if (!EVP_KDF_up_ref(dst->meth)) { in EVP_KDF_CTX_dup() 69 OPENSSL_free(dst); in EVP_KDF_CTX_dup() 73 dst->algctx = src->meth->dupctx(src->algctx); in EVP_KDF_CTX_dup() 74 if (dst->algctx == NULL) { in EVP_KDF_CTX_dup() 75 EVP_KDF_CTX_free(dst); in EVP_KDF_CTX_dup() 78 return dst; in EVP_KDF_CTX_dup()
|
H A D | mac_lib.c | 52 EVP_MAC_CTX *dst; in EVP_MAC_CTX_dup() local 57 dst = OPENSSL_malloc(sizeof(*dst)); in EVP_MAC_CTX_dup() 58 if (dst == NULL) in EVP_MAC_CTX_dup() 61 *dst = *src; in EVP_MAC_CTX_dup() 62 if (!EVP_MAC_up_ref(dst->meth)) { in EVP_MAC_CTX_dup() 64 OPENSSL_free(dst); in EVP_MAC_CTX_dup() 68 dst->algctx = src->meth->dupctx(src->algctx); in EVP_MAC_CTX_dup() 69 if (dst->algctx == NULL) { in EVP_MAC_CTX_dup() 70 EVP_MAC_CTX_free(dst); in EVP_MAC_CTX_dup() 74 return dst; in EVP_MAC_CTX_dup()
|
/openssl/crypto/sha/asm/ |
H A D | keccak1600-s390x.pl | 53 my ($src,$dst,$iotas) = map("%r$_",(2..4)); 155 stg @C[4],$A[0][2]($dst) # R[0][2] = C[2] ^ ( C[4] & C[3]) 163 stg @T[0],$A[0][4]($dst) # R[0][4] = C[4] ^ ( C[1] & C[0]) 188 stg @C[0],$A[1][3]($dst) # R[1][3] = C[3] ^ (C[0] | C[4]) 195 stg @C[1],$A[1][4]($dst) # R[1][4] = C[4] ^ (C[1] & C[0]) 204 stg @C[3],$A[1][1]($dst) # R[1][1] = C[1] ^ (C[3] & C[2]) 293 xgr $dst,$src # xchg $dst,$src 297 xgr $src,$dst 299 xgr $dst,$src 368 la $dst,$stdframe($sp) [all …]
|
/openssl/providers/implementations/macs/ |
H A D | hmac_prov.c | 109 struct hmac_data_st *dst; in hmac_dup() local 115 if (dst == NULL) in hmac_dup() 118 ctx = dst->ctx; in hmac_dup() 119 *dst = *src; in hmac_dup() 120 dst->ctx = ctx; in hmac_dup() 121 dst->key = NULL; in hmac_dup() 122 memset(&dst->digest, 0, sizeof(dst->digest)); in hmac_dup() 126 hmac_free(dst); in hmac_dup() 132 if (dst->key == NULL) { in hmac_dup() 133 hmac_free(dst); in hmac_dup() [all …]
|
H A D | kmac_prov.c | 234 struct kmac_data_st *dst; in kmac_dup() local 239 dst = kmac_new(src->provctx); in kmac_dup() 240 if (dst == NULL) in kmac_dup() 245 kmac_free(dst); in kmac_dup() 249 dst->internal = src->internal; in kmac_dup() 251 dst->out_len = src->out_len; in kmac_dup() 252 dst->key_len = src->key_len; in kmac_dup() 254 dst->xof_mode = src->xof_mode; in kmac_dup() 256 memcpy(dst->custom, src->custom, dst->custom_len); in kmac_dup() 257 OSSL_FIPS_IND_COPY(dst, src) in kmac_dup() [all …]
|
H A D | poly1305_prov.c | 64 struct poly1305_data_st *dst; in poly1305_dup() local 68 dst = OPENSSL_malloc(sizeof(*dst)); in poly1305_dup() 69 if (dst == NULL) in poly1305_dup() 72 *dst = *src; in poly1305_dup() 73 return dst; in poly1305_dup()
|
H A D | cmac_prov.c | 89 struct cmac_data_st *dst; in cmac_dup() local 94 dst = cmac_new(src->provctx); in cmac_dup() 95 if (dst == NULL) in cmac_dup() 97 if (!CMAC_CTX_copy(dst->ctx, src->ctx) in cmac_dup() 98 || !ossl_prov_cipher_copy(&dst->cipher, &src->cipher)) { in cmac_dup() 99 cmac_free(dst); in cmac_dup() 102 OSSL_FIPS_IND_COPY(dst, src) in cmac_dup() 103 return dst; in cmac_dup()
|
H A D | gmac_prov.c | 78 struct gmac_data_st *dst; in gmac_dup() local 83 dst = gmac_new(src->provctx); in gmac_dup() 84 if (dst == NULL) in gmac_dup() 87 if (!EVP_CIPHER_CTX_copy(dst->ctx, src->ctx) in gmac_dup() 88 || !ossl_prov_cipher_copy(&dst->cipher, &src->cipher)) { in gmac_dup() 89 gmac_free(dst); in gmac_dup() 92 return dst; in gmac_dup()
|
H A D | blake2_mac_impl.c | 59 struct blake2_mac_data_st *dst; in blake2_mac_dup() local 65 dst = OPENSSL_zalloc(sizeof(*dst)); in blake2_mac_dup() 66 if (dst == NULL) in blake2_mac_dup() 69 *dst = *src; in blake2_mac_dup() 70 return dst; in blake2_mac_dup()
|
/openssl/providers/implementations/digests/ |
H A D | blake2_impl.h | 58 static ossl_inline void store32(uint8_t *dst, uint32_t w) in store32() argument 63 memcpy(dst, &w, sizeof(w)); in store32() 65 uint8_t *p = (uint8_t *)dst; in store32() 73 static ossl_inline void store64(uint8_t *dst, uint64_t w) in store64() argument 78 memcpy(dst, &w, sizeof(w)); in store64() 80 uint8_t *p = (uint8_t *)dst; in store64() 99 static ossl_inline void store48(uint8_t *dst, uint64_t w) in store48() argument 101 uint8_t *p = (uint8_t *)dst; in store48()
|
/openssl/test/ |
H A D | bio_addr_test.c | 134 BIO_ADDR *src = NULL, *dst = NULL; in test_bio_addr_copy_dup() local 145 dst = BIO_ADDR_new(); in test_bio_addr_copy_dup() 146 if (!TEST_ptr(dst)) in test_bio_addr_copy_dup() 149 if (!TEST_true(BIO_ADDR_copy(dst, src))) in test_bio_addr_copy_dup() 152 dst = BIO_ADDR_dup(src); in test_bio_addr_copy_dup() 153 if (!TEST_ptr(dst)) in test_bio_addr_copy_dup() 157 if (!TEST_true(bio_addr_is_eq(src, dst))) in test_bio_addr_copy_dup() 163 BIO_ADDR_free(dst); in test_bio_addr_copy_dup()
|
/openssl/crypto/rsa/ |
H A D | rsa_acvp_test_params.c | 16 int ossl_rsa_acvp_test_gen_params_new(OSSL_PARAM **dst, const OSSL_PARAM src[]) in ossl_rsa_acvp_test_gen_params_new() argument 59 if (*dst != NULL) in ossl_rsa_acvp_test_gen_params_new() 60 ossl_rsa_acvp_test_gen_params_free(*dst); in ossl_rsa_acvp_test_gen_params_new() 61 *dst = alloc; in ossl_rsa_acvp_test_gen_params_new() 65 void ossl_rsa_acvp_test_gen_params_free(OSSL_PARAM *dst) in ossl_rsa_acvp_test_gen_params_free() argument 69 if (dst == NULL) in ossl_rsa_acvp_test_gen_params_free() 72 for (p = dst; p->key != NULL; ++p) { in ossl_rsa_acvp_test_gen_params_free() 76 OPENSSL_free(dst); in ossl_rsa_acvp_test_gen_params_free()
|
/openssl/crypto/asn1/ |
H A D | ameth_lib.c | 254 int pkey_id = dst->pkey_id; in EVP_PKEY_asn1_copy() 255 int pkey_base_id = dst->pkey_base_id; in EVP_PKEY_asn1_copy() 256 unsigned long pkey_flags = dst->pkey_flags; in EVP_PKEY_asn1_copy() 257 char *pem_str = dst->pem_str; in EVP_PKEY_asn1_copy() 258 char *info = dst->info; in EVP_PKEY_asn1_copy() 260 *dst = *src; in EVP_PKEY_asn1_copy() 263 dst->pkey_id = pkey_id; in EVP_PKEY_asn1_copy() 264 dst->pkey_base_id = pkey_base_id; in EVP_PKEY_asn1_copy() 265 dst->pkey_flags = pkey_flags; in EVP_PKEY_asn1_copy() 266 dst->pem_str = pem_str; in EVP_PKEY_asn1_copy() [all …]
|
/openssl/include/openssl/ |
H A D | buffer.h | 37 # define BUF_strlcpy(dst, src, size) OPENSSL_strlcpy(dst, src, size) argument 38 # define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size) argument
|
/openssl/crypto/bn/ |
H A D | bn_const.c | 13 #define COPY_BN(dst, src) (dst != NULL) ? BN_copy(dst, &src) : BN_dup(&src) argument
|
/openssl/providers/common/ |
H A D | provider_util.c | 35 int ossl_prov_cipher_copy(PROV_CIPHER *dst, const PROV_CIPHER *src) in ossl_prov_cipher_copy() argument 45 dst->engine = src->engine; in ossl_prov_cipher_copy() 46 dst->cipher = src->cipher; in ossl_prov_cipher_copy() 47 dst->alloc_cipher = src->alloc_cipher; in ossl_prov_cipher_copy() 151 int ossl_prov_digest_copy(PROV_DIGEST *dst, const PROV_DIGEST *src) in ossl_prov_digest_copy() argument 161 dst->engine = src->engine; in ossl_prov_digest_copy() 162 dst->md = src->md; in ossl_prov_digest_copy() 163 dst->alloc_md = src->alloc_md; in ossl_prov_digest_copy()
|