Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 73) sorted by relevance

123

/crypto/sha/asm/
A Dkeccak1600-s390x.pl75 lg @C[0],$A[4][0]($src)
76 lg @C[1],$A[4][1]($src)
77 lg @C[2],$A[4][2]($src)
78 lg @C[3],$A[4][3]($src)
79 lg @C[4],$A[4][4]($src)
85 lg @D[0],$A[0][0]($src)
86 lg @D[1],$A[1][1]($src)
87 lg @D[2],$A[2][2]($src)
293 xgr $dst,$src # xchg $dst,$src
297 xgr $src,$dst
[all …]
/crypto/slh_dsa/
A Dslh_dsa_hash_ctx.c68 SLH_DSA_HASH_CTX *ossl_slh_dsa_hash_ctx_dup(const SLH_DSA_HASH_CTX *src) in ossl_slh_dsa_hash_ctx_dup() argument
75 ret->hmac_digest_used = src->hmac_digest_used; in ossl_slh_dsa_hash_ctx_dup()
77 ret->key = src->key; in ossl_slh_dsa_hash_ctx_dup()
79 if (src->md_ctx != NULL in ossl_slh_dsa_hash_ctx_dup()
80 && (ret->md_ctx = EVP_MD_CTX_dup(src->md_ctx)) == NULL) in ossl_slh_dsa_hash_ctx_dup()
82 if (src->md_big_ctx != NULL) { in ossl_slh_dsa_hash_ctx_dup()
83 if (src->md_big_ctx != src->md_ctx) { in ossl_slh_dsa_hash_ctx_dup()
84 if ((ret->md_big_ctx = EVP_MD_CTX_dup(src->md_big_ctx)) == NULL) in ossl_slh_dsa_hash_ctx_dup()
90 if (src->hmac_ctx != NULL in ossl_slh_dsa_hash_ctx_dup()
91 && (ret->hmac_ctx = EVP_MAC_CTX_dup(src->hmac_ctx)) == NULL) in ossl_slh_dsa_hash_ctx_dup()
A Dslh_dsa_key.c71 if (src->md_big != NULL && src->md_big != src->md) in slh_dsa_key_hash_dup()
72 EVP_MD_up_ref(src->md_big); in slh_dsa_key_hash_dup()
73 if (src->md != NULL) in slh_dsa_key_hash_dup()
74 EVP_MD_up_ref(src->md); in slh_dsa_key_hash_dup()
75 if (src->hmac != NULL) in slh_dsa_key_hash_dup()
76 EVP_MAC_up_ref(src->hmac); in slh_dsa_key_hash_dup()
139 if (src == NULL) in ossl_slh_dsa_key_dup()
148 slh_dsa_key_hash_dup(ret, src); in ossl_slh_dsa_key_dup()
149 if (src->propq != NULL) { in ossl_slh_dsa_key_dup()
156 if (src->pub != NULL) in ossl_slh_dsa_key_dup()
[all …]
A Dslh_adrs.c91 static void slh_adrs_copy_keypair_address(uint8_t *dst, const uint8_t *src) in slh_adrs_copy_keypair_address() argument
93 memcpy(dst + SLH_ADRS_OFF_KEYPAIR_ADDR, src + SLH_ADRS_OFF_KEYPAIR_ADDR, in slh_adrs_copy_keypair_address()
108 static void slh_adrs_copy(uint8_t *dst, const uint8_t *src) in slh_adrs_copy() argument
110 memcpy(dst, src, SLH_ADRS_SIZE); in slh_adrs_copy()
131 static void slh_adrsc_copy_keypair_address(uint8_t *dst, const uint8_t *src) in slh_adrsc_copy_keypair_address() argument
133 memcpy(dst + SLH_ADRSC_OFF_KEYPAIR_ADDR, src + SLH_ADRSC_OFF_KEYPAIR_ADDR, in slh_adrsc_copy_keypair_address()
148 static void slh_adrsc_copy(uint8_t *dst, const uint8_t *src) in slh_adrsc_copy() argument
150 memcpy(dst, src, SLH_ADRSC_SIZE); in slh_adrsc_copy()
/crypto/ffc/
A Dffc_params.c169 if (src == NULL) in ffc_bn_cpy()
173 a = (BIGNUM *)src; in ffc_bn_cpy()
189 dst->mdname = src->mdname; in ossl_ffc_params_copy()
190 dst->mdprops = src->mdprops; in ossl_ffc_params_copy()
192 dst->seedlen = src->seedlen; in ossl_ffc_params_copy()
193 if (src->seed != NULL) { in ossl_ffc_params_copy()
194 dst->seed = OPENSSL_memdup(src->seed, src->seedlen); 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 …]
/crypto/ml_dsa/
A Dml_dsa_key.c189 if (src == NULL) in ossl_ml_dsa_key_dup()
193 if (src->pub_encoding == NULL in ossl_ml_dsa_key_dup()
194 && (src->priv_encoding != NULL || src->seed != NULL)) in ossl_ml_dsa_key_dup()
199 ret->libctx = src->libctx; in ossl_ml_dsa_key_dup()
200 ret->params = src->params; in ossl_ml_dsa_key_dup()
205 memcpy(ret->rho, src->rho, sizeof(src->rho)); in ossl_ml_dsa_key_dup()
206 memcpy(ret->tr, src->tr, sizeof(src->tr)); in ossl_ml_dsa_key_dup()
218 memcpy(ret->K, src->K, sizeof(src->K)); in ossl_ml_dsa_key_dup()
229 memcpy(ret->priv_encoding, src->priv_encoding, src->params->sk_len); in ossl_ml_dsa_key_dup()
231 if (src->seed != NULL) { in ossl_ml_dsa_key_dup()
[all …]
/crypto/engine/
A Deng_list.c380 dest->id = src->id; in engine_cpy()
381 dest->name = src->name; in engine_cpy()
387 dest->dh_meth = src->dh_meth; in engine_cpy()
390 dest->ec_meth = src->ec_meth; in engine_cpy()
393 dest->ciphers = src->ciphers; in engine_cpy()
394 dest->digests = src->digests; in engine_cpy()
396 dest->destroy = src->destroy; in engine_cpy()
397 dest->init = src->init; in engine_cpy()
398 dest->finish = src->finish; in engine_cpy()
399 dest->ctrl = src->ctrl; in engine_cpy()
[all …]
/crypto/
A Ds390xcpuid.pl487 lrvg %r0,0($src)
488 lrvg %r1,8($src)
489 lrvg %r4,16($src)
490 lrvg %r5,24($src)
511 lrvg %r0,0($src)
512 lrvg %r1,8($src)
513 lrvg %r4,16($src)
514 lrvg %r5,24($src)
515 lrvg %r6,32($src)
516 lrvg %r7,40($src)
[all …]
A Dparams_dup.c63 static OSSL_PARAM *ossl_param_dup(const OSSL_PARAM *src, OSSL_PARAM *dst, in ossl_param_dup() argument
72 for (in = src; in->key != NULL; in++) { in ossl_param_dup()
105 OSSL_PARAM *OSSL_PARAM_dup(const OSSL_PARAM *src) in OSSL_PARAM_dup() argument
112 if (src == NULL) { in OSSL_PARAM_dup()
120 (void)ossl_param_dup(src, NULL, buf, &param_count); in OSSL_PARAM_dup()
122 param_blocks = ossl_param_bytes_to_blocks(param_count * sizeof(*src)); in OSSL_PARAM_dup()
138 last = ossl_param_dup(src, dst, buf, NULL); in OSSL_PARAM_dup()
A Do_str.c77 size_t OPENSSL_strlcpy(char *dst, const char *src, size_t size) in OPENSSL_strlcpy() argument
80 for (; size > 1 && *src; size--) { in OPENSSL_strlcpy()
81 *dst++ = *src++; in OPENSSL_strlcpy()
86 return l + strlen(src); in OPENSSL_strlcpy()
89 size_t OPENSSL_strlcat(char *dst, const char *src, size_t size) in OPENSSL_strlcat() argument
94 return l + OPENSSL_strlcpy(dst, src, size); in OPENSSL_strlcat()
A Dparams.c129 memcpy(dest + n, src, src_len); in copy_integer()
132 if (!check_sign_bytes(src, n, pad) in copy_integer()
141 memcpy(dest, src + n, dest_len); in copy_integer()
147 memcpy(dest, src, src_len); in copy_integer()
150 if (!check_sign_bytes(src + dest_len, n, pad) in copy_integer()
159 memcpy(dest, src, dest_len); in copy_integer()
169 return copy_integer(dest, dest_len, src, src_len, in signed_from_signed()
177 return copy_integer(dest, dest_len, src, src_len, 0, 1); in signed_from_unsigned()
184 if (is_negative(src, src_len)) { in unsigned_from_signed()
188 return copy_integer(dest, dest_len, src, src_len, 0, 0); in unsigned_from_signed()
[all …]
/crypto/x509/
A Dx509_vpm.c149 dest->field = src->field;
157 if (src == NULL) in X509_VERIFY_PARAM_inherit()
159 inh_flags = dest->inh_flags | src->inh_flags; in X509_VERIFY_PARAM_inherit()
178 dest->check_time = src->check_time; in X509_VERIFY_PARAM_inherit()
186 dest->flags |= src->flags; in X509_VERIFY_PARAM_inherit()
198 if (src->hosts != NULL) { in X509_VERIFY_PARAM_inherit()
207 if (!X509_VERIFY_PARAM_set1_email(dest, src->email, src->emaillen)) in X509_VERIFY_PARAM_inherit()
212 if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen)) in X509_VERIFY_PARAM_inherit()
241 if (src != NULL) { in int_x509_param_set1()
243 srclen = strlen(src); in int_x509_param_set1()
[all …]
A Dx509aset.c15 static int replace_gentime(ASN1_STRING **dest, const ASN1_GENERALIZEDTIME *src) in replace_gentime() argument
19 if (src->type != V_ASN1_GENERALIZEDTIME) in replace_gentime()
22 if (*dest == src) in replace_gentime()
25 s = ASN1_STRING_dup(src); in replace_gentime()
/crypto/perlasm/
A Dx86asm.pl94 { my($dst,$src,$imm)=@_;
95 if ("$dst:$src" =~ /(e[a-dsd][ixp]):xmm([0-7])/)
102 { my($dst,$src,$imm)=@_;
103 if ("$dst:$src" =~ /xmm([0-7]):(e[a-dsd][ixp])/)
110 { my($dst,$src)=@_;
111 if ("$dst:$src" =~ /xmm([0-7]):xmm([0-7])/)
118 { my($dst,$src,$imm)=@_;
119 if ("$dst:$src" =~ /xmm([0-7]):xmm([0-7])/)
126 { my($dst,$src,$imm)=@_;
127 if ("$dst:$src" =~ /xmm([0-7]):xmm([0-7])/)
A Dx86_64-xlate.pl1212 my ($dst,$src,$rex)=@_;
1215 $rex|=0x01 if($src>=8);
1223 my ($src,$dst)=($1,$2);
1225 rex(\@opcode,$src,$dst,0x8);
1230 my ($src,$dst)=($2,$1);
1245 my $src=$2;
1249 rex(\@opcode,$src,$dst);
1263 my $src=$2;
1265 if ($src =~ /%r([0-9]+)/) { $src = $1; }
1266 elsif ($src =~ /%e/) { $src = $regrm{$src}; }
[all …]
A Dx86gas.pl34 my($suffix,$dst,$src);
46 $src = $arg[$#arg-1] if ($#arg>=1);
48 elsif ($src =~ m/^%/o) { $suffix=&opsize($src); }
50 undef $suffix if ($dst =~ m/^%[xm]/o || $src =~ m/^%[xm]/o);
/crypto/ec/
A Dec_backend.c601 if (src == NULL) { in ossl_ec_key_dup()
606 if ((ret = ossl_ec_key_new_method_int(src->libctx, src->propq, in ossl_ec_key_dup()
611 if (src->group != NULL in ossl_ec_key_dup()
613 ret->group = ossl_ec_group_new_ex(src->libctx, src->propq, in ossl_ec_key_dup()
619 if (src->meth != NULL) in ossl_ec_key_dup()
620 ret->meth = src->meth; in ossl_ec_key_dup()
624 if (src->pub_key != NULL in ossl_ec_key_dup()
636 if (src->priv_key != NULL in ossl_ec_key_dup()
651 ret->enc_flag = src->enc_flag; in ossl_ec_key_dup()
655 ret->version = src->version; in ossl_ec_key_dup()
[all …]
A Dec_key.c112 if (src->meth != dest->meth) { in EC_KEY_copy()
123 dest->libctx = src->libctx; in EC_KEY_copy()
125 if (src->group != NULL) { in EC_KEY_copy()
128 dest->group = ossl_ec_group_new_ex(src->libctx, src->propq, in EC_KEY_copy()
154 && src->group->meth->keycopy(dest, src) == 0) in EC_KEY_copy()
163 dest->version = src->version; in EC_KEY_copy()
164 dest->flags = src->flags; in EC_KEY_copy()
171 if (src->meth != dest->meth) { in EC_KEY_copy()
173 if (src->engine != NULL && ENGINE_init(src->engine) == 0) in EC_KEY_copy()
177 dest->meth = src->meth; in EC_KEY_copy()
[all …]
A Dec_lib.c168 if (dest->meth != src->meth) { in EC_GROUP_copy()
172 if (dest == src) in EC_GROUP_copy()
175 dest->libctx = src->libctx; in EC_GROUP_copy()
180 switch (src->pre_comp_type) { in EC_GROUP_copy()
214 if (src->mont_data != NULL) { in EC_GROUP_copy()
228 if (src->generator != NULL) { in EC_GROUP_copy()
249 dest->asn1_flag = src->asn1_flag; in EC_GROUP_copy()
253 if (src->seed) { in EC_GROUP_copy()
257 if (!memcpy(dest->seed, src->seed, src->seed_len)) in EC_GROUP_copy()
777 if (dest->meth != src->meth in EC_POINT_copy()
[all …]
A Decp_mont.c111 int ossl_ec_GFp_mont_group_copy(EC_GROUP *dest, const EC_GROUP *src) in ossl_ec_GFp_mont_group_copy() argument
118 if (!ossl_ec_GFp_simple_group_copy(dest, src)) in ossl_ec_GFp_mont_group_copy()
121 if (src->field_data1 != NULL) { in ossl_ec_GFp_mont_group_copy()
125 if (!BN_MONT_CTX_copy(dest->field_data1, src->field_data1)) in ossl_ec_GFp_mont_group_copy()
128 if (src->field_data2 != NULL) { in ossl_ec_GFp_mont_group_copy()
129 dest->field_data2 = BN_dup(src->field_data2); in ossl_ec_GFp_mont_group_copy()
A Dec2_smpl.c79 if (!BN_copy(dest->a, src->a)) in ossl_ec_GF2m_simple_group_copy()
81 if (!BN_copy(dest->b, src->b)) in ossl_ec_GF2m_simple_group_copy()
83 dest->poly[0] = src->poly[0]; in ossl_ec_GF2m_simple_group_copy()
84 dest->poly[1] = src->poly[1]; in ossl_ec_GF2m_simple_group_copy()
85 dest->poly[2] = src->poly[2]; in ossl_ec_GF2m_simple_group_copy()
86 dest->poly[3] = src->poly[3]; in ossl_ec_GF2m_simple_group_copy()
87 dest->poly[4] = src->poly[4]; in ossl_ec_GF2m_simple_group_copy()
88 dest->poly[5] = src->poly[5]; in ossl_ec_GF2m_simple_group_copy()
260 if (!BN_copy(dest->X, src->X)) in ossl_ec_GF2m_simple_point_copy()
262 if (!BN_copy(dest->Y, src->Y)) in ossl_ec_GF2m_simple_point_copy()
[all …]
/crypto/evp/
A Dkdf_lib.c55 EVP_KDF_CTX *EVP_KDF_CTX_dup(const EVP_KDF_CTX *src) in EVP_KDF_CTX_dup() argument
59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL) in EVP_KDF_CTX_dup()
66 memcpy(dst, src, sizeof(*dst)); in EVP_KDF_CTX_dup()
73 dst->algctx = src->meth->dupctx(src->algctx); in EVP_KDF_CTX_dup()
/crypto/asn1/
A Dx_algor.c108 int X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src) in X509_ALGOR_copy() argument
110 if (src == NULL || dest == NULL) in X509_ALGOR_copy()
121 if (src->algorithm) in X509_ALGOR_copy()
122 if ((dest->algorithm = OBJ_dup(src->algorithm)) == NULL) in X509_ALGOR_copy()
125 if (src->parameter != NULL) { in X509_ALGOR_copy()
133 if (ASN1_TYPE_set1(dest->parameter, src->parameter->type, in X509_ALGOR_copy()
134 src->parameter->value.ptr) == 0) in X509_ALGOR_copy()
/crypto/srp/
A Dsrp_vfy.c44 static int t_fromb64(unsigned char *a, size_t alen, const char *src) in t_fromb64() argument
51 while (*src == ' ' || *src == '\t' || *src == '\n') in t_fromb64()
52 ++src; in t_fromb64()
53 size = strlen(src); in t_fromb64()
133 static int t_tob64(char *dst, const unsigned char *src, int size) in t_tob64() argument
160 if (!EVP_EncodeUpdate(ctx, (unsigned char *)dst + outl, &outl2, src, in t_tob64()
260 static SRP_user_pwd *srp_user_pwd_dup(SRP_user_pwd *src) in srp_user_pwd_dup() argument
264 if (src == NULL) in srp_user_pwd_dup()
269 SRP_user_pwd_set_gN(ret, src->g, src->N); in srp_user_pwd_dup()
270 if (!SRP_user_pwd_set1_ids(ret, src->id, src->info) in srp_user_pwd_dup()
[all …]
/crypto/bn/
A Dbn_const.c13 #define COPY_BN(dst, src) (dst != NULL) ? BN_copy(dst, &src) : BN_dup(&src) argument

Completed in 108 milliseconds

123