/openssl/crypto/ |
H A D | ebcdic.c | 337 void *ebcdic2ascii(void *dest, const void *srce, size_t count) 339 unsigned char *udest = dest; 346 return dest; 349 void *ascii2ebcdic(void *dest, const void *srce, size_t count) 351 unsigned char *udest = dest; 358 return dest;
|
/openssl/crypto/engine/ |
H A D | eng_list.c | 380 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/asn1/ |
H A D | x_algor.c | 108 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() 113 if (dest->algorithm) in X509_ALGOR_copy() 114 ASN1_OBJECT_free(dest->algorithm); in X509_ALGOR_copy() 115 dest->algorithm = NULL; in X509_ALGOR_copy() 117 if (dest->parameter) in X509_ALGOR_copy() 118 ASN1_TYPE_free(dest->parameter); in X509_ALGOR_copy() 119 dest->parameter = NULL; in X509_ALGOR_copy() 122 if ((dest->algorithm = OBJ_dup(src->algorithm)) == NULL) in X509_ALGOR_copy() 126 dest->parameter = ASN1_TYPE_new(); in X509_ALGOR_copy() [all …]
|
H A D | a_mbstr.c | 50 ASN1_STRING *dest; in ASN1_mbstring_ncopy() local 141 dest = *out; in ASN1_mbstring_ncopy() 142 ASN1_STRING_set0(dest, NULL, 0); in ASN1_mbstring_ncopy() 143 dest->type = str_type; in ASN1_mbstring_ncopy() 146 dest = ASN1_STRING_type_new(str_type); in ASN1_mbstring_ncopy() 147 if (dest == NULL) { in ASN1_mbstring_ncopy() 151 *out = dest; in ASN1_mbstring_ncopy() 157 ASN1_STRING_free(dest); in ASN1_mbstring_ncopy() 191 ASN1_STRING_free(dest); in ASN1_mbstring_ncopy() 196 dest->length = outlen; in ASN1_mbstring_ncopy() [all …]
|
/openssl/crypto/ec/ |
H A D | ecp_mont.c | 113 BN_MONT_CTX_free(dest->field_data1); in ossl_ec_GFp_mont_group_copy() 114 dest->field_data1 = NULL; in ossl_ec_GFp_mont_group_copy() 115 BN_clear_free(dest->field_data2); in ossl_ec_GFp_mont_group_copy() 116 dest->field_data2 = NULL; in ossl_ec_GFp_mont_group_copy() 118 if (!ossl_ec_GFp_simple_group_copy(dest, src)) in ossl_ec_GFp_mont_group_copy() 122 dest->field_data1 = BN_MONT_CTX_new(); in ossl_ec_GFp_mont_group_copy() 123 if (dest->field_data1 == NULL) in ossl_ec_GFp_mont_group_copy() 129 dest->field_data2 = BN_dup(src->field_data2); in ossl_ec_GFp_mont_group_copy() 130 if (dest->field_data2 == NULL) in ossl_ec_GFp_mont_group_copy() 137 BN_MONT_CTX_free(dest->field_data1); in ossl_ec_GFp_mont_group_copy() [all …]
|
H A D | ec_key.c | 114 dest->meth->finish(dest); in EC_KEY_copy() 115 if (dest->group && dest->group->meth->keyfinish) in EC_KEY_copy() 116 dest->group->meth->keyfinish(dest); in EC_KEY_copy() 120 dest->engine = NULL; in EC_KEY_copy() 123 dest->libctx = src->libctx; in EC_KEY_copy() 130 if (dest->group == NULL) in EC_KEY_copy() 163 dest->version = src->version; in EC_KEY_copy() 164 dest->flags = src->flags; in EC_KEY_copy() 177 dest->meth = src->meth; in EC_KEY_copy() 183 dest->dirty_cnt++; in EC_KEY_copy() [all …]
|
H A D | ec_lib.c | 171 if (dest == src) in EC_GROUP_copy() 174 dest->libctx = src->libctx; in EC_GROUP_copy() 181 dest->pre_comp.ec = NULL; in EC_GROUP_copy() 224 dest->mont_data = NULL; in EC_GROUP_copy() 229 dest->generator = EC_POINT_new(dest); in EC_GROUP_copy() 238 dest->generator = NULL; in EC_GROUP_copy() 261 dest->seed = NULL; in EC_GROUP_copy() 262 dest->seed_len = 0; in EC_GROUP_copy() 265 return dest->meth->group_copy(dest, src); in EC_GROUP_copy() 783 if (dest == src) in EC_POINT_copy() [all …]
|
H A D | ec2_smpl.c | 79 if (!BN_copy(dest->a, src->a)) 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() 89 if (bn_wexpand(dest->a, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == in ossl_ec_GF2m_simple_group_copy() 92 if (bn_wexpand(dest->b, (int)(dest->poly[0] + BN_BITS2 - 1) / BN_BITS2) == in ossl_ec_GF2m_simple_group_copy() 95 bn_set_all_zero(dest->a); in ossl_ec_GF2m_simple_group_copy() [all …]
|
/openssl/providers/implementations/kdfs/ |
H A D | kbkdf.c | 159 KBKDF *dest; in kbkdf_dup() local 162 if (dest != NULL) { in kbkdf_dup() 166 &dest->ki, &dest->ki_len) in kbkdf_dup() 168 &dest->label, &dest->label_len) in kbkdf_dup() 170 &dest->context, &dest->context_len) in kbkdf_dup() 172 &dest->iv, &dest->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() 181 return dest; in kbkdf_dup() [all …]
|
H A D | x942kdf.c | 381 KDF_X942 *dest; in x942kdf_dup() local 383 dest = x942kdf_new(src->provctx); in x942kdf_dup() 384 if (dest != NULL) { in x942kdf_dup() 386 &dest->secret , &dest->secret_len) in x942kdf_dup() 388 &dest->acvpinfo , &dest->acvpinfo_len) in x942kdf_dup() 390 &dest->partyuinfo , &dest->partyuinfo_len) in x942kdf_dup() 392 &dest->partyvinfo , &dest->partyvinfo_len) in x942kdf_dup() 401 dest->cek_oid = src->cek_oid; in x942kdf_dup() 403 dest->dkm_len = src->dkm_len; in x942kdf_dup() 407 return dest; in x942kdf_dup() [all …]
|
H A D | pbkdf1.c | 141 KDF_PBKDF1 *dest; in kdf_pbkdf1_dup() local 143 dest = kdf_pbkdf1_new(src->provctx); in kdf_pbkdf1_dup() 144 if (dest != NULL) { in kdf_pbkdf1_dup() 146 &dest->salt, &dest->salt_len) in kdf_pbkdf1_dup() 148 &dest->pass , &dest->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() 153 return dest; in kdf_pbkdf1_dup() 156 kdf_pbkdf1_free(dest); in kdf_pbkdf1_dup()
|
H A D | sshkdf.c | 96 KDF_SSHKDF *dest; in kdf_sshkdf_dup() local 98 dest = kdf_sshkdf_new(src->provctx); in kdf_sshkdf_dup() 99 if (dest != NULL) { in kdf_sshkdf_dup() 101 &dest->key, &dest->key_len) in kdf_sshkdf_dup() 103 &dest->xcghash , &dest->xcghash_len) in kdf_sshkdf_dup() 105 &dest->session_id , &dest->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() 111 return dest; in kdf_sshkdf_dup() [all …]
|
H A D | pvkkdf.c | 77 KDF_PVK *dest; in kdf_pvk_dup() local 79 dest = kdf_pvk_new(src->provctx); in kdf_pvk_dup() 80 if (dest != NULL) in kdf_pvk_dup() 82 &dest->salt, &dest->salt_len) in kdf_pvk_dup() 84 &dest->pass , &dest->pass_len) in kdf_pvk_dup() 85 || !ossl_prov_digest_copy(&dest->digest, &src->digest)) in kdf_pvk_dup() 87 return dest; in kdf_pvk_dup() 90 kdf_pvk_free(dest); in kdf_pvk_dup()
|
H A D | pkcs12kdf.c | 181 KDF_PKCS12 *dest; in kdf_pkcs12_dup() local 183 dest = kdf_pkcs12_new(src->provctx); in kdf_pkcs12_dup() 184 if (dest != NULL) { in kdf_pkcs12_dup() 186 &dest->salt, &dest->salt_len) in kdf_pkcs12_dup() 188 &dest->pass , &dest->pass_len) in kdf_pkcs12_dup() 189 || !ossl_prov_digest_copy(&dest->digest, &src->digest)) in kdf_pkcs12_dup() 191 dest->iter = src->iter; in kdf_pkcs12_dup() 192 dest->id = src->id; in kdf_pkcs12_dup() 194 return dest; in kdf_pkcs12_dup() 197 kdf_pkcs12_free(dest); in kdf_pkcs12_dup()
|
H A D | pbkdf2.c | 128 KDF_PBKDF2 *dest; in kdf_pbkdf2_dup() local 131 dest = kdf_pbkdf2_new_no_init(src->provctx); in kdf_pbkdf2_dup() 132 if (dest != NULL) { in kdf_pbkdf2_dup() 134 &dest->salt, &dest->salt_len) in kdf_pbkdf2_dup() 136 &dest->pass, &dest->pass_len) in kdf_pbkdf2_dup() 137 || !ossl_prov_digest_copy(&dest->digest, &src->digest)) in kdf_pbkdf2_dup() 139 dest->iter = src->iter; in kdf_pbkdf2_dup() 140 dest->lower_bound_checks = src->lower_bound_checks; in kdf_pbkdf2_dup() 141 OSSL_FIPS_IND_COPY(dest, src) in kdf_pbkdf2_dup() 143 return dest; in kdf_pbkdf2_dup() [all …]
|
H A D | scrypt.c | 102 KDF_SCRYPT *dest; in kdf_scrypt_dup() local 105 if (dest != NULL) { in kdf_scrypt_dup() 110 if (dest->propq == NULL) in kdf_scrypt_dup() 114 &dest->salt, &dest->salt_len) in kdf_scrypt_dup() 116 &dest->pass , &dest->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() 122 dest->sha256 = src->sha256; in kdf_scrypt_dup() 124 return dest; in kdf_scrypt_dup() [all …]
|
H A D | sskdf.c | 350 KDF_SSKDF *dest; in sskdf_dup() local 352 dest = sskdf_new(src->provctx); in sskdf_dup() 353 if (dest != NULL) { in sskdf_dup() 356 if (dest->macctx == NULL) in sskdf_dup() 360 &dest->info, &dest->info_len) in sskdf_dup() 362 &dest->salt , &dest->salt_len) in sskdf_dup() 364 &dest->secret, &dest->secret_len) in sskdf_dup() 367 dest->out_len = src->out_len; in sskdf_dup() 368 dest->is_kmac = src->is_kmac; in sskdf_dup() 371 return dest; in sskdf_dup() [all …]
|
H A D | hkdf.c | 148 KDF_HKDF *dest; in kdf_hkdf_dup() local 151 if (dest != NULL) { in kdf_hkdf_dup() 155 &dest->key , &dest->key_len) in kdf_hkdf_dup() 157 &dest->prefix, &dest->prefix_len) in kdf_hkdf_dup() 159 &dest->label, &dest->label_len) in kdf_hkdf_dup() 161 &dest->data, &dest->data_len) in kdf_hkdf_dup() 163 &dest->info, &dest->info_len) in kdf_hkdf_dup() 166 dest->mode = src->mode; in kdf_hkdf_dup() 167 OSSL_FIPS_IND_COPY(dest, src) in kdf_hkdf_dup() 169 return dest; in kdf_hkdf_dup() [all …]
|
H A D | tls1_prf.c | 153 TLS1_PRF *dest; in kdf_tls1_prf_dup() local 155 dest = kdf_tls1_prf_new(src->provctx); in kdf_tls1_prf_dup() 156 if (dest != NULL) { in kdf_tls1_prf_dup() 158 && (dest->P_hash = EVP_MAC_CTX_dup(src->P_hash)) == NULL) in kdf_tls1_prf_dup() 161 && (dest->P_sha1 = EVP_MAC_CTX_dup(src->P_sha1)) == NULL) in kdf_tls1_prf_dup() 163 if (!ossl_prov_memdup(src->sec, src->seclen, &dest->sec, &dest->seclen)) in kdf_tls1_prf_dup() 165 if (!ossl_prov_memdup(src->seed, src->seedlen, &dest->seed, in kdf_tls1_prf_dup() 166 &dest->seedlen)) in kdf_tls1_prf_dup() 168 OSSL_FIPS_IND_COPY(dest, src) in kdf_tls1_prf_dup() 170 return dest; in kdf_tls1_prf_dup() [all …]
|
/openssl/ssl/ |
H A D | ssl_sess.c | 137 SSL_SESSION *dest; in ssl_session_dup_intern() local 139 dest = OPENSSL_malloc(sizeof(*dest)); in ssl_session_dup_intern() 140 if (dest == NULL) in ssl_session_dup_intern() 164 dest->peer = NULL; in ssl_session_dup_intern() 167 memset(&dest->ex_data, 0, sizeof(dest->ex_data)); in ssl_session_dup_intern() 170 dest->prev = NULL; in ssl_session_dup_intern() 171 dest->next = NULL; in ssl_session_dup_intern() 172 dest->owner = NULL; in ssl_session_dup_intern() 179 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, dest, &dest->ex_data)) { in ssl_session_dup_intern() 232 dest->ext.tick = in ssl_session_dup_intern() [all …]
|
/openssl/util/ |
H A D | copy.pl | 49 $dest = pop @filelist; 51 if ($fnum > 2 && ! -d $dest) 58 if (-d $dest) 62 $dfile = "$dest/$dfile"; 66 $dfile = $dest;
|
/openssl/ |
H A D | Configure | 2380 my $dest = $_; 2425 my $dest = $_; 2476 my $dest = $_; 2499 my $dest = $_; 2500 my $ddest = $dest; 2506 } elsif ($dest eq '') { 2570 my $dest = $_; 2591 if ($dest ne "") { 2603 if ($dest ne "") { 2732 next if $dest eq ""; [all …]
|
/openssl/crypto/x509/ |
H A D | x509_vpm.c | 149 dest->field = src->field; 151 int X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *dest, in X509_VERIFY_PARAM_inherit() argument 159 inh_flags = dest->inh_flags | src->inh_flags; in X509_VERIFY_PARAM_inherit() 162 dest->inh_flags = 0; in X509_VERIFY_PARAM_inherit() 178 dest->check_time = src->check_time; in X509_VERIFY_PARAM_inherit() 179 dest->flags &= ~X509_V_FLAG_USE_CHECK_TIME; in X509_VERIFY_PARAM_inherit() 184 dest->flags = 0; in X509_VERIFY_PARAM_inherit() 186 dest->flags |= src->flags; in X509_VERIFY_PARAM_inherit() 197 dest->hosts = NULL; in X509_VERIFY_PARAM_inherit() 199 dest->hosts = in X509_VERIFY_PARAM_inherit() [all …]
|
/openssl/doc/man3/ |
H A D | BN_copy.pod | 15 void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags); 22 BN_with_flags creates a B<temporary> shallow copy of B<b> in B<dest>. It places 26 be set in B<dest> in addition to any flags already set in B<b>. For example this 29 B<dest> will share some internal state with B<b>. For this reason the following 30 restrictions apply to the use of B<dest>: 36 B<dest> should be a newly allocated BIGNUM obtained via a call to BN_new(). It 41 B<dest> must only be used in "read-only" operations, i.e. typically those 46 B<dest> must be used and freed before any further subsequent use of B<b>
|
/openssl/crypto/modes/ |
H A D | siv128.c | 223 memcpy(&dest->d, &src->d, sizeof(src->d)); in ossl_siv128_copy_ctx() 224 if (dest->cipher_ctx == NULL) { in ossl_siv128_copy_ctx() 225 dest->cipher_ctx = EVP_CIPHER_CTX_new(); in ossl_siv128_copy_ctx() 226 if (dest->cipher_ctx == NULL) in ossl_siv128_copy_ctx() 229 if (!EVP_CIPHER_CTX_copy(dest->cipher_ctx, src->cipher_ctx)) in ossl_siv128_copy_ctx() 231 EVP_MAC_CTX_free(dest->mac_ctx_init); in ossl_siv128_copy_ctx() 232 dest->mac_ctx_init = EVP_MAC_CTX_dup(src->mac_ctx_init); in ossl_siv128_copy_ctx() 233 if (dest->mac_ctx_init == NULL) in ossl_siv128_copy_ctx() 235 dest->mac = src->mac; in ossl_siv128_copy_ctx() 236 if (dest->mac != NULL) in ossl_siv128_copy_ctx() [all …]
|