Home
last modified time | relevance | path

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

12345678

/openssl/crypto/sha/asm/
H 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 …]
/openssl/providers/implementations/digests/
H A Dblake2_impl.h26 memcpy(&w, src, sizeof(w)); in load32()
29 uint32_t w = ((uint32_t)src[0]) in load32()
30 | ((uint32_t)src[1] << 8) in load32()
43 memcpy(&w, src, sizeof(w)); in load64()
46 uint64_t w = ((uint64_t)src[0]) in load64()
90 uint64_t w = ((uint64_t)src[0]) in load48()
91 | ((uint64_t)src[1] << 8) in load48()
92 | ((uint64_t)src[2] << 16) in load48()
93 | ((uint64_t)src[3] << 24) in load48()
94 | ((uint64_t)src[4] << 32) in load48()
[all …]
/openssl/crypto/ffc/
H 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 …]
/openssl/providers/common/
H A Dprovider_util.c37 if (src->alloc_cipher != NULL && !EVP_CIPHER_up_ref(src->alloc_cipher)) in ossl_prov_cipher_copy()
40 if (src->engine != NULL && !ENGINE_init(src->engine)) { in ossl_prov_cipher_copy()
45 dst->engine = src->engine; in ossl_prov_cipher_copy()
46 dst->cipher = src->cipher; in ossl_prov_cipher_copy()
153 if (src->alloc_md != NULL && !EVP_MD_up_ref(src->alloc_md)) in ossl_prov_digest_copy()
156 if (src->engine != NULL && !ENGINE_init(src->engine)) { in ossl_prov_digest_copy()
157 EVP_MD_free(src->alloc_md); in ossl_prov_digest_copy()
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()
[all …]
/openssl/providers/implementations/kdfs/
H A Dhmacdrbg_kdf.c81 if (src->ctx != NULL) { in ossl_drbg_hmac_dup()
82 dst->ctx = EVP_MAC_CTX_dup(src->ctx); in ossl_drbg_hmac_dup()
86 if (!ossl_prov_digest_copy(&dst->digest, &src->digest)) 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()
99 dst = hmac_drbg_kdf_new(src->provctx); in hmac_drbg_kdf_dup()
101 if (!ossl_drbg_hmac_dup(&dst->base, &src->base) in hmac_drbg_kdf_dup()
102 || !ossl_prov_memdup(src->entropy, src->entropylen, in hmac_drbg_kdf_dup()
104 || !ossl_prov_memdup(src->nonce, src->noncelen, in hmac_drbg_kdf_dup()
[all …]
H A Dkbkdf.c158 const KBKDF *src = (const KBKDF *)vctx; in kbkdf_dup() local
161 dest = kbkdf_new(src->provctx); in kbkdf_dup()
165 || !ossl_prov_memdup(src->ki, src->ki_len, in kbkdf_dup()
167 || !ossl_prov_memdup(src->label, src->label_len, in kbkdf_dup()
169 || !ossl_prov_memdup(src->context, src->context_len, in kbkdf_dup()
171 || !ossl_prov_memdup(src->iv, src->iv_len, in kbkdf_dup()
174 dest->mode = src->mode; in kbkdf_dup()
175 dest->r = src->r; in kbkdf_dup()
176 dest->use_l = src->use_l; in kbkdf_dup()
178 dest->is_kmac = src->is_kmac; in kbkdf_dup()
[all …]
H A Dx942kdf.c383 dest = x942kdf_new(src->provctx); in x942kdf_dup()
385 if (!ossl_prov_memdup(src->secret, src->secret_len, in x942kdf_dup()
387 || !ossl_prov_memdup(src->acvpinfo, src->acvpinfo_len, in x942kdf_dup()
389 || !ossl_prov_memdup(src->partyuinfo, src->partyuinfo_len, in x942kdf_dup()
391 || !ossl_prov_memdup(src->partyvinfo, src->partyvinfo_len, in x942kdf_dup()
393 || !ossl_prov_memdup(src->supp_pubinfo, src->supp_pubinfo_len, in x942kdf_dup()
396 || !ossl_prov_memdup(src->supp_privinfo, src->supp_privinfo_len, in x942kdf_dup()
401 dest->cek_oid = src->cek_oid; in x942kdf_dup()
402 dest->cek_oid_len = src->cek_oid_len; in x942kdf_dup()
403 dest->dkm_len = src->dkm_len; in x942kdf_dup()
[all …]
H A Dsshkdf.c95 const KDF_SSHKDF *src = (const KDF_SSHKDF *)vctx; in kdf_sshkdf_dup() local
98 dest = kdf_sshkdf_new(src->provctx); in kdf_sshkdf_dup()
100 if (!ossl_prov_memdup(src->key, src->key_len, in kdf_sshkdf_dup()
102 || !ossl_prov_memdup(src->xcghash, src->xcghash_len, in kdf_sshkdf_dup()
104 || !ossl_prov_memdup(src->session_id, src->session_id_len, in kdf_sshkdf_dup()
106 || !ossl_prov_digest_copy(&dest->digest, &src->digest)) in kdf_sshkdf_dup()
108 dest->type = src->type; in kdf_sshkdf_dup()
109 OSSL_FIPS_IND_COPY(dest, src) in kdf_sshkdf_dup()
H A Dscrypt.c101 const KDF_SCRYPT *src = (const KDF_SCRYPT *)vctx; in kdf_scrypt_dup() local
104 dest = kdf_scrypt_new_inner(src->libctx); in kdf_scrypt_dup()
106 if (src->sha256 != NULL && !EVP_MD_up_ref(src->sha256)) in kdf_scrypt_dup()
108 if (src->propq != NULL) { in kdf_scrypt_dup()
113 if (!ossl_prov_memdup(src->salt, src->salt_len, in kdf_scrypt_dup()
115 || !ossl_prov_memdup(src->pass, src->pass_len, in kdf_scrypt_dup()
118 dest->N = src->N; in kdf_scrypt_dup()
119 dest->r = src->r; in kdf_scrypt_dup()
120 dest->p = src->p; in kdf_scrypt_dup()
121 dest->maxmem_bytes = src->maxmem_bytes; in kdf_scrypt_dup()
[all …]
H A Dpbkdf1.c140 const KDF_PBKDF1 *src = (const KDF_PBKDF1 *)vctx; in kdf_pbkdf1_dup() local
143 dest = kdf_pbkdf1_new(src->provctx); in kdf_pbkdf1_dup()
145 if (!ossl_prov_memdup(src->salt, src->salt_len, in kdf_pbkdf1_dup()
147 || !ossl_prov_memdup(src->pass, src->pass_len, in kdf_pbkdf1_dup()
149 || !ossl_prov_digest_copy(&dest->digest, &src->digest)) in kdf_pbkdf1_dup()
151 dest->iter = src->iter; in kdf_pbkdf1_dup()
/openssl/crypto/engine/
H 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 …]
/openssl/crypto/
H A Ds390xcpuid.pl507 lrvg %r0,0($src)
508 lrvg %r1,8($src)
509 lrvg %r4,16($src)
510 lrvg %r5,24($src)
531 lrvg %r0,0($src)
532 lrvg %r1,8($src)
533 lrvg %r4,16($src)
534 lrvg %r5,24($src)
535 lrvg %r6,32($src)
536 lrvg %r7,40($src)
[all …]
/openssl/crypto/perlasm/
H 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])/)
/openssl/crypto/x509/
H 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 …]
/openssl/test/
H A Dbio_addr_test.c134 BIO_ADDR *src = NULL, *dst = NULL; in test_bio_addr_copy_dup() local
140 src = make_dummy_addr(families[idx]); in test_bio_addr_copy_dup()
141 if (!TEST_ptr(src)) 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()
157 if (!TEST_true(bio_addr_is_eq(src, dst))) in test_bio_addr_copy_dup()
162 BIO_ADDR_free(src); in test_bio_addr_copy_dup()
/openssl/crypto/ec/
H 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 …]
H 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 …]
H A Dec_lib.c167 if (dest->meth != src->meth) { in EC_GROUP_copy()
171 if (dest == src) in EC_GROUP_copy()
174 dest->libctx = src->libctx; in EC_GROUP_copy()
179 switch (src->pre_comp_type) { in EC_GROUP_copy()
213 if (src->mont_data != NULL) { in EC_GROUP_copy()
227 if (src->generator != NULL) { in EC_GROUP_copy()
248 dest->asn1_flag = src->asn1_flag; in EC_GROUP_copy()
252 if (src->seed) { in EC_GROUP_copy()
256 if (!memcpy(dest->seed, src->seed, src->seed_len)) in EC_GROUP_copy()
776 if (dest->meth != src->meth in EC_POINT_copy()
[all …]
/openssl/Configurations/
H A Dgentemplate.pm202 my $src = shift;
204 return "" unless defined $self->{info}->{generate}->{$src};
205 return "" if $cache{$src};
209 if ($self->{info}->{generate}->{$src}) {
211 if ref $self->{info}->{generate}->{$src} eq "";
212 my $script = $self->{info}->{generate}->{$src}->[0];
215 src => $src,
217 generator => $self->{info}->{generate}->{$src},
220 deps => $self->{info}->{depends}->{$src} // [],
227 foreach (@{$self->{info}->{depends}->{$src} // []}) {
[all …]
/openssl/crypto/evp/
H 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()
/openssl/ssl/
H A Dssl_sess.c184 if (src->peer != NULL) { in ssl_session_dup_intern()
185 if (!X509_up_ref(src->peer)) { in ssl_session_dup_intern()
189 dest->peer = src->peer; in ssl_session_dup_intern()
192 if (src->peer_chain != NULL) { in ssl_session_dup_intern()
200 if (src->peer_rpk != NULL) { in ssl_session_dup_intern()
207 if (src->psk_identity_hint) { in ssl_session_dup_intern()
212 if (src->psk_identity) { in ssl_session_dup_intern()
225 if (src->ext.hostname) { in ssl_session_dup_intern()
233 OPENSSL_memdup(src->ext.tick, src->ext.ticklen); in ssl_session_dup_intern()
249 if (src->srp_username) { in ssl_session_dup_intern()
[all …]
/openssl/include/openssl/
H A Dbuffer.h37 # 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/asn1/
H 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()
/openssl/providers/implementations/macs/
H A Dhmac_prov.c108 struct hmac_data_st *src = vsrc; in hmac_dup() local
114 dst = hmac_new(src->provctx); in hmac_dup()
119 *dst = *src; in hmac_dup()
124 if (!HMAC_CTX_copy(dst->ctx, src->ctx) in hmac_dup()
125 || !ossl_prov_digest_copy(&dst->digest, &src->digest)) { in hmac_dup()
129 if (src->key != NULL) { in hmac_dup()
131 dst->key = OPENSSL_secure_malloc(src->keylen > 0 ? src->keylen : 1); in hmac_dup()
136 memcpy(dst->key, src->key, src->keylen); in hmac_dup()
/openssl/include/internal/
H A Dquic_reactor.h80 const QUIC_TICK_RESULT *src) in ossl_quic_tick_result_merge_into() argument
82 r->net_read_desired = r->net_read_desired || src->net_read_desired; in ossl_quic_tick_result_merge_into()
83 r->net_write_desired = r->net_write_desired || src->net_write_desired; in ossl_quic_tick_result_merge_into()
84 r->tick_deadline = ossl_time_min(r->tick_deadline, src->tick_deadline); in ossl_quic_tick_result_merge_into()

Completed in 56 milliseconds

12345678