Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 721) sorted by relevance

12345678910>>...29

/openssl/crypto/
H A Dparams.c56 for (; p->key != NULL; p++) in OSSL_PARAM_locate()
82 return p != NULL && p->return_size != OSSL_PARAM_UNMODIFIED; in OSSL_PARAM_modified()
87 if (p != NULL) in OSSL_PARAM_set_all_unmodified()
221 r = signed_from_signed(p->data, p->data_size, val, val_size); in general_set_int()
226 p->return_size = r ? p->data_size : val_size; in general_set_int()
260 p->return_size = r ? p->data_size : val_size; in general_set_uint()
1072 if (val == NULL || p == NULL || p->data == NULL) { in OSSL_PARAM_get_BN()
1079 b = BN_native2bn(p->data, (int)p->data_size, *val); in OSSL_PARAM_get_BN()
1128 p->return_size = p->data_size; in OSSL_PARAM_set_BN()
1164 if (val == NULL || p == NULL || p->data == NULL) { in OSSL_PARAM_get_double()
[all …]
H A Dparam_build_set.c27 p = OSSL_PARAM_locate(p, key); in DEFINE_SPECIAL_STACK_OF_CONST()
28 if (p != NULL) in DEFINE_SPECIAL_STACK_OF_CONST()
38 p = OSSL_PARAM_locate(p, key); in ossl_param_build_set_long()
39 if (p != NULL) in ossl_param_build_set_long()
49 p = OSSL_PARAM_locate(p, key); in ossl_param_build_set_utf8_string()
50 if (p != NULL) in ossl_param_build_set_utf8_string()
63 p = OSSL_PARAM_locate(p, key); in ossl_param_build_set_octet_string()
64 if (p != NULL) in ossl_param_build_set_octet_string()
74 p = OSSL_PARAM_locate(p, key); in ossl_param_build_set_bn_pad()
92 p = OSSL_PARAM_locate(p, key); in ossl_param_build_set_bn()
[all …]
H A Dsparse_array.c86 if (p != NULL && p[n] != NULL) { in sa_doall()
102 OPENSSL_free(p); in sa_free_node()
107 OPENSSL_free(p); in sa_free_leaf()
165 p = sa->nodes; in ossl_sa_get()
167 p = (void **)p[(n >> (OPENSSL_SA_BLOCK_BITS * level)) in ossl_sa_get()
169 r = p == NULL ? NULL : p[n & SA_BLOCK_MASK]; in ossl_sa_get()
183 void **p; in ossl_sa_set() local
202 p = sa->nodes; in ossl_sa_set()
205 if (p[i] == NULL && (p[i] = alloc_node()) == NULL) in ossl_sa_set()
207 p = p[i]; in ossl_sa_set()
[all …]
H A Dparams_from_text.c31 const OSSL_PARAM *p; in prepare_from_text() local
43 *found = p != NULL; in prepare_from_text()
44 if (p == NULL) in prepare_from_text()
47 switch (p->data_type) { in prepare_from_text()
100 if (p->data_size > 0) { in prepare_from_text()
230 for (; p->key != NULL; p++) { in OSSL_PARAM_print_to_bio()
246 switch (p->data_type) { in OSSL_PARAM_print_to_bio()
274 ok = BIO_dump(bio, p->data, p->data_size); in OSSL_PARAM_print_to_bio()
277 ok = BIO_dump(bio, (char *)p->data, p->data_size); in OSSL_PARAM_print_to_bio()
281 ok = BIO_dump(bio, (char *)p->data, p->data_size); in OSSL_PARAM_print_to_bio()
[all …]
/openssl/test/
H A Dparam_build_test.c148 || !TEST_str_eq(p->key, "i") in template_public_test()
155 || !TEST_str_eq(p->key, "i32") in template_public_test()
168 || !TEST_str_eq(p->key, "l") in template_public_test()
175 || !TEST_str_eq(p->key, "t") in template_public_test()
183 || !TEST_str_eq(p->key, "d") in template_public_test()
304 || !TEST_str_eq(p->key, "i") in template_private_test()
327 || !TEST_str_eq(p->key, "l") in template_private_test()
345 || !TEST_mem_eq(p->data, p->data_size, data1, data1_size) in template_private_test()
352 || !TEST_mem_eq(*(void **)p->data, p->data_size, data2, data2_size) in template_private_test()
520 || !TEST_mem_eq(p->data, p->data_size, data1, sizeof(data1)) in builder_merge_test()
[all …]
/openssl/crypto/conf/
H A Dconf_def.c53 #define scan_esc(conf,p) (((IS_EOF((conf),(p)[1]))?((p)+1):((p)+2))) argument
273 memmove(p, p + 3, i - 3); in def_load_bio()
363 if (*p != '\0' && ss != p) { in def_load_bio()
394 && (p != pname || *p == '=')) { in def_load_bio()
399 p = eat_ws(conf, p); in def_load_bio()
463 p = eat_ws(conf, p); in def_load_bio()
624 p = scan_dquote(conf, p); in clear_comments()
628 p = scan_quote(conf, p); in clear_comments()
632 p = scan_esc(conf, p); in clear_comments()
931 while ((p >= start) && IS_WS(conf, *p)) in trim_ws()
[all …]
/openssl/crypto/ct/
H A Dct_oct.c46 p = *in; in o2i_SCT_signature()
55 n2s(p, siglen); in o2i_SCT_signature()
65 *in = p + siglen; in o2i_SCT_signature()
83 p = *in; in o2i_SCT()
103 p++; in o2i_SCT()
123 p += len2; in o2i_SCT()
222 p = *out; in i2o_SCT()
228 *out = p; in i2o_SCT()
355 p = *pp; in i2o_SCT_LIST()
377 p = *pp; in STACK_OF()
[all …]
/openssl/crypto/bf/
H A Dbf_enc.c35 p = key->P; in BF_encrypt()
40 l ^= p[0]; in BF_encrypt()
41 BF_ENC(r, l, s, p[1]); in BF_encrypt()
42 BF_ENC(l, r, s, p[2]); in BF_encrypt()
43 BF_ENC(r, l, s, p[3]); in BF_encrypt()
44 BF_ENC(l, r, s, p[4]); in BF_encrypt()
45 BF_ENC(r, l, s, p[5]); in BF_encrypt()
46 BF_ENC(l, r, s, p[6]); in BF_encrypt()
47 BF_ENC(r, l, s, p[7]); in BF_encrypt()
74 p = key->P; in BF_decrypt()
[all …]
/openssl/crypto/asn1/
H A Dasn1_lib.c28 if ((len >= 2) && ((*p)[0] == 0) && ((*p)[1] == 0)) { in _asn1_check_infinite_end()
63 p++; in ASN1_get_object()
82 p++; in ASN1_get_object()
102 *pp = p; in ASN1_get_object()
127 p++; in asn1_get_length()
152 *pp = p; in asn1_get_length()
187 *pp = p; in ASN1_put_object()
194 *p++ = 0; in ASN1_put_eoc()
195 *p++ = 0; in ASN1_put_eoc()
196 *pp = p; in ASN1_put_eoc()
[all …]
H A Da_utf8.c30 const unsigned char *p; in UTF8_getc() local
35 p = str; in UTF8_getc()
38 if ((*p & 0x80) == 0) { in UTF8_getc()
39 value = *p++ & 0x7f; in UTF8_getc()
44 if ((p[1] & 0xc0) != 0x80) in UTF8_getc()
46 value = (*p++ & 0x1f) << 6; in UTF8_getc()
47 value |= *p++ & 0x3f; in UTF8_getc()
54 if (((p[1] & 0xc0) != 0x80) in UTF8_getc()
57 value = (*p++ & 0xf) << 12; in UTF8_getc()
59 value |= *p++ & 0x3f; in UTF8_getc()
[all …]
H A Da_mbstr.c307 p = arg; in cpy_asc()
308 q = *p; in cpy_asc()
310 (*p)++; in cpy_asc()
319 p = arg; in cpy_bmp()
320 q = *p; in cpy_bmp()
323 *p += 2; in cpy_bmp()
332 p = arg; in cpy_univ()
333 q = *p; in cpy_univ()
338 *p += 4; in cpy_univ()
348 p = arg; in cpy_utf8()
[all …]
/openssl/crypto/rsa/
H A Drsa_acvp_test_params.c18 const OSSL_PARAM *p, *s; in ossl_rsa_acvp_test_gen_params_new() local
34 if (p == NULL) in ossl_rsa_acvp_test_gen_params_new()
46 if (p != NULL) { in ossl_rsa_acvp_test_gen_params_new()
48 d->data_size = p->data_size; in ossl_rsa_acvp_test_gen_params_new()
49 d->data = OPENSSL_memdup(p->data, p->data_size); in ossl_rsa_acvp_test_gen_params_new()
67 OSSL_PARAM *p; in ossl_rsa_acvp_test_gen_params_free() local
72 for (p = dst; p->key != NULL; ++p) { in ossl_rsa_acvp_test_gen_params_free()
73 OPENSSL_free(p->data); in ossl_rsa_acvp_test_gen_params_free()
74 p->data = NULL; in ossl_rsa_acvp_test_gen_params_free()
82 const OSSL_PARAM *p; in ossl_rsa_acvp_test_set_params() local
[all …]
H A Drsa_x931.c47 unsigned char *p; in RSA_padding_add_X931() local
64 *p++ = 0x6A; in RSA_padding_add_X931()
66 *p++ = 0x6B; in RSA_padding_add_X931()
69 p += j - 1; in RSA_padding_add_X931()
71 *p++ = 0xBA; in RSA_padding_add_X931()
74 p += flen; in RSA_padding_add_X931()
75 *p = 0xCC; in RSA_padding_add_X931()
85 p = from; in RSA_padding_check_X931()
86 if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B))) { in RSA_padding_check_X931()
91 if (*p++ == 0x6B) { in RSA_padding_check_X931()
[all …]
/openssl/include/openssl/
H A Dparams.h117 int OSSL_PARAM_set_int(OSSL_PARAM *p, int val);
119 int OSSL_PARAM_set_long(OSSL_PARAM *p, long int val);
121 int OSSL_PARAM_set_int32(OSSL_PARAM *p, int32_t val);
123 int OSSL_PARAM_set_int64(OSSL_PARAM *p, int64_t val);
125 int OSSL_PARAM_set_size_t(OSSL_PARAM *p, size_t val);
126 int OSSL_PARAM_set_time_t(OSSL_PARAM *p, time_t val);
129 int OSSL_PARAM_set_double(OSSL_PARAM *p, double val);
153 int OSSL_PARAM_modified(const OSSL_PARAM *p);
154 void OSSL_PARAM_set_all_unmodified(OSSL_PARAM *p);
156 OSSL_PARAM *OSSL_PARAM_dup(const OSSL_PARAM *p);
[all …]
/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305.c102 OSSL_PARAM *p; in chacha20_poly1305_get_ctx_params() local
105 if (p != NULL) { in chacha20_poly1305_get_ctx_params()
117 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tag_len)) { in chacha20_poly1305_get_ctx_params()
122 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tls_aad_pad_sz)) { in chacha20_poly1305_get_ctx_params()
128 if (p != NULL) { in chacha20_poly1305_get_ctx_params()
137 if (p->data_size == 0 || p->data_size > POLY1305_BLOCK_SIZE) { in chacha20_poly1305_get_ctx_params()
141 memcpy(p->data, ctx->tag, p->data_size); in chacha20_poly1305_get_ctx_params()
174 if (p != NULL) { in chacha20_poly1305_set_ctx_params()
185 if (p != NULL) { in chacha20_poly1305_set_ctx_params()
211 memcpy(ctx->tag, p->data, p->data_size); in chacha20_poly1305_set_ctx_params()
[all …]
H A Dciphercommon_ccm.c78 if (p != NULL) { in ossl_ccm_set_ctx_params()
83 if ((p->data_size & 1) || (p->data_size < 4) || p->data_size > 16) { in ossl_ccm_set_ctx_params()
93 memcpy(ctx->buf, p->data, p->data_size); in ossl_ccm_set_ctx_params()
100 if (p != NULL) { in ossl_ccm_set_ctx_params()
124 sz = ccm_tls_init(ctx, p->data, p->data_size); in ossl_ccm_set_ctx_params()
138 if (ccm_tls_iv_set_fixed(ctx, p->data, p->data_size) == 0) { in ossl_ccm_set_ctx_params()
150 OSSL_PARAM *p; in ossl_ccm_get_ctx_params() local
174 if (!OSSL_PARAM_set_octet_string(p, ctx->iv, p->data_size) in ossl_ccm_get_ctx_params()
187 if (!OSSL_PARAM_set_octet_string(p, ctx->iv, p->data_size) in ossl_ccm_get_ctx_params()
195 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->keylen)) { in ossl_ccm_get_ctx_params()
[all …]
H A Dcipher_aes_cbc_hmac_sha.c101 if (p != NULL) { in aes_set_ctx_params()
106 hw->init_mac_key(ctx, p->data, p->data_size); in aes_set_ctx_params()
112 if (p != NULL in aes_set_ctx_params()
127 if (p != NULL) { in aes_set_ctx_params()
180 if (hw->set_tls1_aad(ctx, p->data, p->data_size) <= 0) in aes_set_ctx_params()
223 OSSL_PARAM *p; in aes_get_ctx_params() local
258 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tls_aad_pad)) { in aes_get_ctx_params()
263 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.keylen)) { in aes_get_ctx_params()
268 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.ivlen)) { in aes_get_ctx_params()
273 if (p != NULL in aes_get_ctx_params()
[all …]
H A Dciphercommon.c45 OSSL_PARAM *p; in ossl_cipher_generic_get_params() local
48 if (p != NULL && !OSSL_PARAM_set_uint(p, md)) { in ossl_cipher_generic_get_params()
53 if (p != NULL in ossl_cipher_generic_get_params()
59 if (p != NULL in ossl_cipher_generic_get_params()
65 if (p != NULL in ossl_cipher_generic_get_params()
71 if (p != NULL in ossl_cipher_generic_get_params()
83 if (p != NULL && !OSSL_PARAM_set_size_t(p, kbits / 8)) { in ossl_cipher_generic_get_params()
88 if (p != NULL && !OSSL_PARAM_set_size_t(p, blkbits / 8)) { in ossl_cipher_generic_get_params()
93 if (p != NULL && !OSSL_PARAM_set_size_t(p, ivbits / 8)) { in ossl_cipher_generic_get_params()
586 if (p != NULL && !OSSL_PARAM_set_uint(p, ctx->pad)) { in ossl_cipher_generic_get_ctx_params()
[all …]
H A Dcipher_rc4_hmac_md5.c117 OSSL_PARAM *p; in rc4_hmac_md5_get_ctx_params() local
120 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.keylen)) { in rc4_hmac_md5_get_ctx_params()
126 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.ivlen)) { in rc4_hmac_md5_get_ctx_params()
131 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tls_aad_pad_sz)) { in rc4_hmac_md5_get_ctx_params()
160 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
172 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
184 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
189 sz = GET_HW(ctx)->tls_init(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
197 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
202 GET_HW(ctx)->init_mackey(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
[all …]
/openssl/crypto/pem/
H A Dpvkfmt.c46 *in = p; in read_ledword()
192 p++; in ossl_do_blob_header()
199 p += 6; in ossl_do_blob_header()
249 *in = p; in ossl_do_blob_header()
350 p = buf; in ossl_b2i_bio()
427 *in = p; in ossl_b2i_DSA_after_header()
550 *out = p; in write_ledword()
604 *p++ = 0; in do_i2b()
784 p += 4; in ossl_do_PVK_header()
800 *in = p; in ossl_do_PVK_header()
[all …]
/openssl/crypto/bn/
H A Dbn_ctx.c292 p->head = p->current = p->tail = NULL; in BN_POOL_init()
293 p->used = p->size = 0; in BN_POOL_init()
305 p->current = p->head->next; in BN_POOL_finish()
307 p->head = p->current; in BN_POOL_finish()
318 if (p->used == p->size) { in BN_POOL_get()
332 p->head = p->current = p->tail = item; in BN_POOL_get()
344 if (!p->used) in BN_POOL_get()
345 p->current = p->head; in BN_POOL_get()
347 p->current = p->current->next; in BN_POOL_get()
348 return p->current->vals + ((p->used++) % BN_CTX_POOL_SIZE); in BN_POOL_get()
[all …]
H A Dbn_sqrt.c28 if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { in BN_mod_sqrt()
29 if (BN_abs_is_word(p, 2)) { in BN_mod_sqrt()
78 if (!BN_nnmod(A, a, p, ctx)) in BN_mod_sqrt()
83 while (!BN_is_bit_set(p, e)) in BN_mod_sqrt()
96 if (!BN_rshift(q, p, 2)) in BN_mod_sqrt()
141 if (!BN_rshift(q, p, 3)) in BN_mod_sqrt()
173 if (!BN_copy(q, p)) in BN_mod_sqrt()
188 if (BN_ucmp(y, p) >= 0) { in BN_mod_sqrt()
189 if (!(p->neg ? BN_add : BN_sub) (y, y, p)) in BN_mod_sqrt()
259 if (!BN_nnmod(t, A, p, ctx)) in BN_mod_sqrt()
[all …]
/openssl/providers/common/
H A Dprovider_util.c54 const OSSL_PARAM *p; in load_common() local
58 if (p != NULL) { in load_common()
61 *propquery = p->data; in load_common()
71 if (p != NULL) { in load_common()
95 const OSSL_PARAM *p; in ossl_prov_cipher_load_from_params() local
105 if (p == NULL) in ossl_prov_cipher_load_from_params()
180 const OSSL_PARAM *p; in ossl_prov_digest_load_from_params() local
190 if (p == NULL) in ossl_prov_digest_load_from_params()
233 const OSSL_PARAM *p; in ossl_prov_set_macctx() local
297 const OSSL_PARAM *p; in ossl_prov_macctx_load_from_params() local
[all …]
/openssl/crypto/evp/
H A Ddsa_ctrl.c33 OSSL_PARAM params[2], *p = params; in EVP_PKEY_CTX_set_dsa_paramgen_type() local
40 *p++ = OSSL_PARAM_construct_end(); in EVP_PKEY_CTX_set_dsa_paramgen_type()
48 OSSL_PARAM params[2], *p = params; in EVP_PKEY_CTX_set_dsa_paramgen_gindex() local
54 *p++ = OSSL_PARAM_construct_end(); in EVP_PKEY_CTX_set_dsa_paramgen_gindex()
64 OSSL_PARAM params[2], *p = params; in EVP_PKEY_CTX_set_dsa_paramgen_seed() local
71 *p++ = OSSL_PARAM_construct_end(); in EVP_PKEY_CTX_set_dsa_paramgen_seed()
79 OSSL_PARAM params[2], *p = params; in EVP_PKEY_CTX_set_dsa_paramgen_bits() local
86 *p++ = OSSL_PARAM_construct_end(); in EVP_PKEY_CTX_set_dsa_paramgen_bits()
94 OSSL_PARAM params[2], *p = params; in EVP_PKEY_CTX_set_dsa_paramgen_q_bits() local
101 *p++ = OSSL_PARAM_construct_end(); in EVP_PKEY_CTX_set_dsa_paramgen_q_bits()
[all …]
/openssl/crypto/ec/curve448/
H A Dcurve448.c75 gf_add_nr(p->z, p->x, p->x); /* 2+e */ in point_double_internal()
80 ossl_gf_mul(p->z, p->t, a); in point_double_internal()
81 ossl_gf_mul(p->y, p->t, d); in point_double_internal()
209 ossl_gf_mul(a, p->x, p->y); in ossl_curve448_point_valid()
210 ossl_gf_mul(b, p->z, p->t); in ossl_curve448_point_valid()
344 ossl_gf_sqr(p->x, p->y); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
349 ossl_gf_mul(p->x, p->z, p->t); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
352 ossl_gf_mul(p->x, p->t, p->z); /* sqrt(num / denom) */ in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
363 gf_add(p->t, p->y, p->x); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
367 ossl_gf_sqr(p->x, p->z); in ossl_curve448_point_decode_like_eddsa_and_mul_by_ratio()
[all …]

Completed in 56 milliseconds

12345678910>>...29