Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 190) sorted by relevance

12345678

/openssl/crypto/whrlpool/
H A Dwp_block.c543 S.q[0] ^= (K.q[0] = H->q[0]); in whirlpool_block()
544 S.q[1] ^= (K.q[1] = H->q[1]); in whirlpool_block()
545 S.q[2] ^= (K.q[2] = H->q[2]); in whirlpool_block()
546 S.q[3] ^= (K.q[3] = H->q[3]); in whirlpool_block()
547 S.q[4] ^= (K.q[4] = H->q[4]); in whirlpool_block()
548 S.q[5] ^= (K.q[5] = H->q[5]); in whirlpool_block()
549 S.q[6] ^= (K.q[6] = H->q[6]); in whirlpool_block()
550 S.q[7] ^= (K.q[7] = H->q[7]); in whirlpool_block()
555 S.q[0] = (K.q[0] = H->q[0]) ^ pa[0]; in whirlpool_block()
556 S.q[1] = (K.q[1] = H->q[1]) ^ pa[1]; in whirlpool_block()
[all …]
/openssl/crypto/dsa/
H A Ddsa_ossl.c89 || dsa->params.q == NULL in ossl_dsa_do_sign_int()
122 if (dlen > BN_num_bytes(dsa->params.q)) in ossl_dsa_do_sign_int()
236 || BN_is_zero(dsa->params.q) in dsa_sign_setup()
239 || BN_is_negative(dsa->params.q) in dsa_sign_setup()
261 q_bits = BN_num_bits(dsa->params.q); in dsa_sign_setup()
262 q_words = bn_get_top(dsa->params.q); in dsa_sign_setup()
318 if (!BN_add(l, k, dsa->params.q) in dsa_sign_setup()
319 || !BN_add(k, l, dsa->params.q)) in dsa_sign_setup()
365 || dsa->params.q == NULL in dsa_do_verify()
371 i = BN_num_bits(dsa->params.q); in dsa_do_verify()
[all …]
/openssl/test/
H A Drsa_sp800_56b_test.c231 && TEST_ptr(q = BN_new()) in test_check_private_exponent()
238 BN_free(q); in test_check_private_exponent()
292 && TEST_ptr(q = BN_new()) in test_check_crt_components()
300 BN_free(q); in test_check_crt_components()
350 int p, q, e; member
366 && TEST_ptr(q = BN_new()) in test_derive_params_from_pq_fail()
369 && TEST_true(BN_set_word(q, derive_from_pq_tests[tst].q)) in test_derive_params_from_pq_fail()
374 BN_free(q); in test_derive_params_from_pq_fail()
393 && TEST_ptr(q = BN_new()) in test_pq_diff()
405 BN_free(q); in test_pq_diff()
[all …]
H A Dffc_internal_test.c178 BIGNUM *p = NULL, *q = NULL, *g = NULL; in ffc_params_validate_g_unverified_test() local
196 ossl_ffc_params_set0_pqg(&params, p, q, NULL); in ffc_params_validate_g_unverified_test()
198 q = NULL; in ffc_params_validate_g_unverified_test()
207 ossl_ffc_params_set0_pqg(&params, p, q, g); in ffc_params_validate_g_unverified_test()
239 BN_free(q); in ffc_params_validate_g_unverified_test()
248 BIGNUM *p = NULL, *q = NULL; in ffc_params_validate_pq_test() local
262 q = NULL; in ffc_params_validate_pq_test()
319 p = q = NULL; in ffc_params_validate_pq_test()
340 BN_free(q); in ffc_params_validate_pq_test()
575 if (!TEST_ptr(BN_copy(priv, params->q))) in ffc_private_validate_test()
[all …]
H A Dciphername_test.c387 const char *ciphers = "ALL:eNULL", *p, *q, *r; in test_cipher_name() local
440 q = get_std_name_by_id(id); in test_cipher_name()
443 q, id); in test_cipher_name()
447 if (!TEST_str_eq(p, q)) { in test_cipher_name()
449 q, p, id); in test_cipher_name()
453 q = SSL_CIPHER_get_name(c); in test_cipher_name()
455 if (!TEST_str_eq(r, q)) { in test_cipher_name()
457 q, r, id); in test_cipher_name()
H A Dbio_base64_test.c364 *q = i / m; in quotrem()
374 int q = idx; in test_bio_base64_generated() local
376 lencase = quotrem(q, NLEN, &q); in test_bio_base64_generated()
377 variant = quotrem(q, NVARPAD, &q); in test_bio_base64_generated()
379 t.retry = quotrem(q, 2, &q); in test_bio_base64_generated()
380 t.no_nl = quotrem(q, 2, &q); in test_bio_base64_generated()
382 if (q != 0) { in test_bio_base64_generated()
408 int q = idx; in test_bio_base64_corner_case_bug() local
410 t.retry = quotrem(q, 2, &q); in test_bio_base64_corner_case_bug()
411 t.no_nl = quotrem(q, 2, &q); in test_bio_base64_corner_case_bug()
[all …]
H A Dsmcont.bin6 �sO������{1��P�A�\�F�٢]�ɭ�!�!;���n���a�q�PŌ���)M��"C^�^�8�����#�ۚ��(<0��,�b>]�3\ N3f�q�…
9 ����� 蒻����\ߐ��"�]��I�zqɔxE�^���K�t49��$���q�7+<��/~�J��浃7YM�}�v�W�����Q���~
10 ��ֻ۟Q!���,� 52�3e�$-�oW i���aQ���S.����2b�O��#�{=cɥ�2��7N_�FT�;+JV�'�R�oz�̐8��N�>w֬�1q�?�ɲ3pb…
11 …J��J��#Uh;І��%-�z��1s����v��s��!8;ln�?�B�2Y���aO�N��˯������;�u<���Y)q����N������7��5��…
22 …D_�� �����*ח�n7�:�o�A�!��Ya�j:����o�,��"�,k��؟�f�i�pa�Wv����\(�$�q���� ��!�!�3�Y�lo…
23 …`Y:Œ�<��qT co�+8���q�e z}�f�U�CfK2`�Z,m3 ��B@�B4��B�Z b�Tu>�rƶ����ץ�58B �\�@�� L= ���b��…
30 v~q���C/��`�now>�K���m����@BÂh�v�5�A�l=5V�K�u�P T��@X�D�L��fT�*ERI]�3�—�z��qt�'���Vx���…
32 …�c�)�d$�#��z �V(�u�t�����2�'}�tժFZ�ϢB�1�P��-%�*���c$�Oӿ� gm�Mo���q�������yߍ��?U�����…
33 …��2�r��nj ��M�7 �q���d��1� #��(~X<c��i�w��Is����Y������c�]�xB/κ�U��"B�۴/F��A]�)q�SH��…
35 Iq ޕ�b�M��7��vb��[�
H A Dsecmemtest.c19 char *p = NULL, *q = NULL, *r = NULL, *s = NULL; in test_sec_mem() local
41 q = OPENSSL_malloc(20); in test_sec_mem()
42 if (!TEST_ptr(q)) in test_sec_mem()
45 if (!TEST_false(CRYPTO_secure_allocated(q))) in test_sec_mem()
60 OPENSSL_free(q); in test_sec_mem()
61 q = NULL; in test_sec_mem()
125 OPENSSL_free(q); in test_sec_mem()
H A Ddsatest.c70 const BIGNUM *p = NULL, *q = NULL, *g = NULL; in dsa_test() local
96 DSA_get0_pqg(dsa, &p, &q, &g); in dsa_test()
97 i = BN_bn2bin(q, buf); in dsa_test()
367 if (!TEST_true(DSA_set0_pqg(dsa, p, q, g))) in test_dsa_sig_infinite_loop()
369 p = q = g = NULL; in test_dsa_sig_infinite_loop()
413 BN_free(q); in test_dsa_sig_infinite_loop()
451 if (!TEST_true(DSA_set0_pqg(dsa, p, q, g))) in test_dsa_sig_neg_param()
464 BN_set_negative(q, 1); in test_dsa_sig_neg_param()
468 BN_set_negative(q, 0); in test_dsa_sig_neg_param()
474 BN_set_negative(q, 1); in test_dsa_sig_neg_param()
[all …]
/openssl/crypto/x509/
H A Dx509_obj.c33 unsigned char *q; in X509_NAME_oneline() local
78 q = ne->value->data; in X509_NAME_oneline()
87 ascii2ebcdic(ebcdic_buf, q, num); in X509_NAME_oneline()
88 q = ebcdic_buf; in X509_NAME_oneline()
95 if (q[j] != 0) in X509_NAME_oneline()
111 if (q[j] == '/' || q[j] == '+') in X509_NAME_oneline()
114 (ossl_toascii(q[j]) > ossl_toascii('~'))) in X509_NAME_oneline()
138 q = ne->value->data; in X509_NAME_oneline()
145 n = q[j]; in X509_NAME_oneline()
156 n = os_toascii[q[j]]; in X509_NAME_oneline()
[all …]
H A Dx_pubkey.c499 q = *pp; in d2i_PUBKEY_int()
523 *pp = q; in d2i_PUBKEY_int()
611 q = *pp; in d2i_RSA_PUBKEY()
619 *pp = q; in d2i_RSA_PUBKEY()
652 q = *pp; in ossl_d2i_DH_PUBKEY()
661 *pp = q; in ossl_d2i_DH_PUBKEY()
693 q = *pp; in ossl_d2i_DHx_PUBKEY()
702 *pp = q; in ossl_d2i_DHx_PUBKEY()
736 q = *pp; in d2i_DSA_PUBKEY()
744 *pp = q; in d2i_DSA_PUBKEY()
[all …]
/openssl/crypto/bn/
H A Dbn_div.c340 BN_ULONG q, l0; in bn_div_fixed_top() local
353 q = BN_MASK2; in bn_div_fixed_top()
372 t2 = (BN_ULLONG) d1 *q; in bn_div_fixed_top()
377 q--; in bn_div_fixed_top()
394 t2l = d1 * q; in bn_div_fixed_top()
395 t2h = BN_UMULT_HIGH(d1, q); in bn_div_fixed_top()
401 ql = LBITS(q); in bn_div_fixed_top()
402 qh = HBITS(q); in bn_div_fixed_top()
410 q--; in bn_div_fixed_top()
430 q -= l0; in bn_div_fixed_top()
[all …]
H A Dbn_sqrt.c24 BIGNUM *A, *b, *q, *t, *x, *y; in BN_mod_sqrt() local
65 q = BN_CTX_get(ctx); in BN_mod_sqrt()
96 if (!BN_rshift(q, p, 2)) in BN_mod_sqrt()
98 q->neg = 0; in BN_mod_sqrt()
99 if (!BN_add_word(q, 1)) in BN_mod_sqrt()
141 if (!BN_rshift(q, p, 3)) in BN_mod_sqrt()
143 q->neg = 0; in BN_mod_sqrt()
173 if (!BN_copy(q, p)) in BN_mod_sqrt()
175 q->neg = 0; in BN_mod_sqrt()
220 if (!BN_rshift(q, q, e)) in BN_mod_sqrt()
[all …]
/openssl/crypto/ffc/
H A Dffc_params.c32 BN_clear_free(params->q); in ossl_ffc_params_cleanup()
38 BN_free(params->q); in ossl_ffc_params_cleanup()
52 if (q != NULL && q != d->q) { in ossl_ffc_params_set0_pqg()
53 BN_free(d->q); in ossl_ffc_params_set0_pqg()
54 d->q = q; in ossl_ffc_params_set0_pqg()
67 if (q != NULL) in ossl_ffc_params_get0_pqg()
68 *q = d->q; in ossl_ffc_params_get0_pqg()
185 || !ffc_bn_cpy(&dst->q, src->q) in ossl_ffc_params_copy()
213 && (ignore_q || BN_cmp(a->q, b->q) == 0); /* Note: q may be NULL */ in ossl_ffc_params_cmp()
224 if (ffc->q != NULL in ossl_ffc_params_todata()
[all …]
H A Dffc_params_generate.c625 q = params->q; in ossl_ffc_params_FIPS186_4_gen_verify()
632 q = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_4_gen_verify()
633 if (q == NULL) in ossl_ffc_params_FIPS186_4_gen_verify()
690 if (verify && (BN_cmp(q, params->q) != 0)) { in ossl_ffc_params_FIPS186_4_gen_verify()
774 if (q != params->q) { in ossl_ffc_params_FIPS186_4_gen_verify()
775 BN_free(params->q); in ossl_ffc_params_FIPS186_4_gen_verify()
776 params->q = BN_dup(q); in ossl_ffc_params_FIPS186_4_gen_verify()
894 q = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_2_gen_verify()
930 q = params->q; in ossl_ffc_params_FIPS186_2_gen_verify()
1015 if (q != params->q) { in ossl_ffc_params_FIPS186_2_gen_verify()
[all …]
H A Dffc_params_validate.c24 const BIGNUM *p, const BIGNUM *q, in ossl_ffc_params_validate_unverifiable_g() argument
43 if (!BN_mod_exp_mont(tmp, g, q, p, ctx, mont)) in ossl_ffc_params_validate_unverifiable_g()
58 if (params == NULL || params->p == NULL || params->q == NULL) in ossl_ffc_params_FIPS186_4_validate()
63 N = BN_num_bits(params->q); in ossl_ffc_params_FIPS186_4_validate()
76 if (params == NULL || params->p == NULL || params->q == NULL) { in ossl_ffc_params_FIPS186_2_validate()
83 N = BN_num_bits(params->q); in ossl_ffc_params_FIPS186_2_validate()
170 if (BN_check_prime(params->q, ctx, NULL) != 1) { in ossl_ffc_params_full_validate()
/openssl/providers/common/
H A Dsecuritycheck.c151 const BIGNUM *p, *q; in ossl_dsa_check_key() local
157 q = DSA_get0_q(dsa); in ossl_dsa_check_key()
158 if (p == NULL || q == NULL) in ossl_dsa_check_key()
162 N = BN_num_bits(q); in ossl_dsa_check_key()
198 const BIGNUM *p, *q; in ossl_dh_check_key() local
204 q = DH_get0_q(dh); in ossl_dh_check_key()
205 if (p == NULL || q == NULL) in ossl_dh_check_key()
217 N = BN_num_bits(q); in ossl_dh_check_key()
/openssl/crypto/asn1/
H A Da_mbstr.c306 unsigned char **p, *q; in cpy_asc() local
308 q = *p; in cpy_asc()
309 *q = (unsigned char)value; in cpy_asc()
318 unsigned char **p, *q; in cpy_bmp() local
320 q = *p; in cpy_bmp()
321 *q++ = (unsigned char)((value >> 8) & 0xff); in cpy_bmp()
322 *q = (unsigned char)(value & 0xff); in cpy_bmp()
331 unsigned char **p, *q; in cpy_univ() local
333 q = *p; in cpy_univ()
336 *q++ = (unsigned char)((value >> 8) & 0xff); in cpy_univ()
[all …]
/openssl/crypto/rsa/
H A Drsa_x931g.c72 if (Xq && rsa->q == NULL) { in RSA_X931_derive_ex()
73 rsa->q = BN_new(); in RSA_X931_derive_ex()
74 if (rsa->q == NULL) in RSA_X931_derive_ex()
76 if (!BN_X931_derive_prime_ex(rsa->q, q1, q2, in RSA_X931_derive_ex()
81 if (rsa->p == NULL || rsa->q == NULL) { in RSA_X931_derive_ex()
96 if (!BN_mul(rsa->n, rsa->p, rsa->q, ctx)) in RSA_X931_derive_ex()
102 if (!BN_sub(r2, rsa->q, BN_value_one())) in RSA_X931_derive_ex()
136 rsa->iqmp = BN_mod_inverse(NULL, rsa->q, rsa->p, ctx2); in RSA_X931_derive_ex()
170 rsa->q = BN_new(); in RSA_X931_generate_key_ex()
171 if (rsa->p == NULL || rsa->q == NULL) in RSA_X931_generate_key_ex()
[all …]
H A Drsa_sp800_56b_gen.c114 if (rsa->q == NULL) in ossl_rsa_fips186_4_gen_prob_primes()
115 rsa->q = BN_secure_new(); in ossl_rsa_fips186_4_gen_prob_primes()
116 if (rsa->p == NULL || rsa->q == NULL) in ossl_rsa_fips186_4_gen_prob_primes()
119 BN_set_flags(rsa->q, BN_FLG_CONSTTIME); in ossl_rsa_fips186_4_gen_prob_primes()
156 BN_clear_free(rsa->q); in ossl_rsa_fips186_4_gen_prob_primes()
157 rsa->q = NULL; in ossl_rsa_fips186_4_gen_prob_primes()
289 if (rsa->n == NULL || !BN_mul(rsa->n, rsa->p, rsa->q, ctx)) in ossl_rsa_sp800_56b_derive_params_from_pq()
317 if (BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
407 if (info == NULL && BN_cmp(rsa->p, rsa->q) < 0) { in ossl_rsa_sp800_56b_generate_key()
409 rsa->p = rsa->q; in ossl_rsa_sp800_56b_generate_key()
[all …]
/openssl/apps/
H A Dtestdsa.h194 unsigned char *q; member
208 st.q = dsa##bits##_q; \
219 BIGNUM *priv_key, *pub_key, *p, *q, *g; in get_dsa() local
245 q = BN_bin2bn(dsa_t.q, dsa_t.q_l, NULL); in get_dsa()
247 if (priv_key == NULL || pub_key == NULL || p == NULL || q == NULL in get_dsa()
255 q) in get_dsa()
275 BN_free(q); in get_dsa()
/openssl/crypto/
H A Do_str.c208 unsigned char *q; in hexstr2buf_sep() local
214 for (p = (const unsigned char *)str, q = buf, cnt = 0; *p; ) { in hexstr2buf_sep()
231 if (q != NULL) { in hexstr2buf_sep()
236 *q++ = (unsigned char)((chi << 4) | cli); in hexstr2buf_sep()
290 char *q; in buf2hexstr_sep() local
306 q = str; in buf2hexstr_sep()
308 q += ossl_to_hex(q, buf[i]); in buf2hexstr_sep()
310 *q++ = sep; in buf2hexstr_sep()
313 --q; in buf2hexstr_sep()
314 *q = CH_ZERO; in buf2hexstr_sep()
[all …]
/openssl/crypto/ec/curve448/
H A Dcurve448.c67 ossl_gf_sqr(c, q->x); in point_double_internal()
68 ossl_gf_sqr(a, q->y); in point_double_internal()
70 gf_add_nr(p->t, q->y, q->x); /* 2+e */ in point_double_internal()
74 ossl_gf_sqr(p->x, q->z); in point_double_internal()
285 curve448_point_t q; in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa() local
294 ossl_gf_sqr(x, q->x); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
297 gf_add(z, q->y, q->x); in ossl_curve448_point_mul_by_ratio_and_encode_like_eddsa()
471 curve448_point_t q; in ossl_curve448_point_mul_by_ratio_and_encode_like_x448() local
474 gf_invert(q->t, q->x, 0); /* 1/x */ in ossl_curve448_point_mul_by_ratio_and_encode_like_x448()
475 ossl_gf_mul(q->z, q->t, q->y); /* y/x */ in ossl_curve448_point_mul_by_ratio_and_encode_like_x448()
[all …]
/openssl/test/recipes/04-test_pem_reading_data/
H A Ddsa-onecolumn.pem42 q
75 q
98 q
137 q
185 q
314 q
370 q
471 q
559 q
709 q
[all …]
/openssl/test/helpers/
H A Dpredefined_dhparams.c19 BIGNUM *p, BIGNUM *g, BIGNUM *q) in get_dh_from_pg_bn() argument
32 || (q != NULL in get_dh_from_pg_bn()
33 && !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_Q, q))) in get_dh_from_pg_bn()
54 BIGNUM *p = NULL, *g = NULL, *q = NULL; in get_dh_from_pg() local
60 if (qdata != NULL && (q = BN_bin2bn(qdata, qlen, NULL)) == NULL) in get_dh_from_pg()
63 dhpkey = get_dh_from_pg_bn(libctx, type, p, g, q); in get_dh_from_pg()
68 BN_free(q); in get_dh_from_pg()

Completed in 76 milliseconds

12345678