/openssl/test/ |
H A D | testutil.h | 432 # define TEST_int_eq(a, b) test_int_eq(__FILE__, __LINE__, #a, #b, a, b) argument 433 # define TEST_int_ne(a, b) test_int_ne(__FILE__, __LINE__, #a, #b, a, b) argument 434 # define TEST_int_lt(a, b) test_int_lt(__FILE__, __LINE__, #a, #b, a, b) argument 435 # define TEST_int_le(a, b) test_int_le(__FILE__, __LINE__, #a, #b, a, b) argument 436 # define TEST_int_gt(a, b) test_int_gt(__FILE__, __LINE__, #a, #b, a, b) argument 437 # define TEST_int_ge(a, b) test_int_ge(__FILE__, __LINE__, #a, #b, a, b) argument 527 # define TEST_BN_eq(a, b) test_BN_eq(__FILE__, __LINE__, #a, #b, a, b) argument 528 # define TEST_BN_ne(a, b) test_BN_ne(__FILE__, __LINE__, #a, #b, a, b) argument 529 # define TEST_BN_lt(a, b) test_BN_lt(__FILE__, __LINE__, #a, #b, a, b) argument 530 # define TEST_BN_gt(a, b) test_BN_gt(__FILE__, __LINE__, #a, #b, a, b) argument [all …]
|
H A D | constant_time_test.c | 264 a, b, a < b) in test_binops() 266 b, a, b < a) in test_binops() 268 a, b, a >= b) in test_binops() 270 b, a, b >= a) in test_binops() 272 a, b, a == b) in test_binops() 274 b, a, b == a)) in test_binops() 290 a, b, a < b) in test_binops_8() 292 b, a, b < a) in test_binops_8() 294 a, b, a >= b) in test_binops_8() 318 a, b, a < b) in test_binops_s() [all …]
|
H A D | safe_math_test.c | 29 int a, b; member 58 const int a = test_ints[n].a, b = test_ints[n].b; in test_int_ops() local 120 || (!err && !TEST_int_eq(r, b < 0 ? -b : b))) in test_int_ops() 147 const unsigned int a = test_uints[n].a, b = test_uints[n].b; in test_uint_ops() local 182 || (!err && !TEST_uint_eq(r, a / b + (a % b != 0)))) in test_uint_ops() 211 size_t a, b; member 230 const size_t a = test_size_ts[n].a, b = test_size_ts[n].b; in test_size_t_ops() local 265 || (!err && !TEST_size_t_eq(r, a / b + (a % b != 0)))) in test_size_t_ops() 294 int a, b, c; member 318 const int b = test_muldiv_ints[n].b; in test_int_muldiv() local [all …]
|
H A D | bio_enc_test.c | 41 BIO *b, *mem; in do_bio_cipher() local 54 if (!TEST_ptr(b)) in do_bio_cipher() 61 BIO_push(b, mem); in do_bio_cipher() 63 BIO_free_all(b); in do_bio_cipher() 68 if (!TEST_ptr(b)) in do_bio_cipher() 94 BIO_free_all(b); in do_bio_cipher() 133 if (!TEST_ptr(b)) in do_bio_cipher() 141 BIO_push(b, mem); in do_bio_cipher() 142 (void)BIO_flush(b); in do_bio_cipher() 145 BIO_free_all(b); in do_bio_cipher() [all …]
|
H A D | quic_record_test_util.h | 20 b_data = b->data; in cmp_pkt_hdr() 21 b_len = b->len; in cmp_pkt_hdr() 24 if (!TEST_int_eq(a->type, b->type) in cmp_pkt_hdr() 27 || !TEST_int_eq(a->pn_len, b->pn_len) in cmp_pkt_hdr() 29 || !TEST_int_eq(a->fixed, b->fixed) in cmp_pkt_hdr() 30 || !TEST_int_eq(a->unused, b->unused) in cmp_pkt_hdr() 35 || !TEST_mem_eq(a->pn, sizeof(a->pn), b->pn, sizeof(b->pn)) in cmp_pkt_hdr() 37 || !TEST_uint64_t_eq(a->len, b->len)) in cmp_pkt_hdr() 40 if (a->token_len > 0 && b->token_len > 0 in cmp_pkt_hdr() 41 && !TEST_mem_eq(a->token, a->token_len, b->token, b->token_len)) in cmp_pkt_hdr() [all …]
|
H A D | pemtest.c | 43 if (!TEST_ptr(b) in test_b64() 56 BIO_free(b); in test_b64() 71 if (!TEST_ptr(b) in test_invalid() 78 BIO_free(b); in test_invalid() 81 BIO_free(b); in test_invalid() 101 BIO *b; in test_empty_payload() local 112 if (!TEST_ptr(b)) in test_empty_payload() 124 BIO_free(b); in test_empty_payload() 130 BIO *b; in test_protected_params() local 142 if (!TEST_ptr(b)) in test_protected_params() [all …]
|
/openssl/crypto/aes/asm/ |
H A D | bsaes-armv8.pl | 1079 eor v1.16b, v4.16b, v1.16b 1081 eor v2.16b, v2.16b, v4.16b 1082 eor v0.16b, v6.16b, v0.16b 1086 eor v0.16b, v7.16b, v4.16b 1092 eor v0.16b, v5.16b, v2.16b 1093 eor v1.16b, v3.16b, v1.16b 1131 eor v1.16b, v1.16b, v5.16b 1133 eor v6.16b, v6.16b, v8.16b 1135 eor v4.16b, v4.16b, v9.16b 1138 eor v0.16b, v7.16b, v0.16b [all …]
|
/openssl/crypto/bio/ |
H A D | bio_lib.c | 26 # define HAS_CALLBACK(b) ((b)->callback != NULL || (b)->callback_ex != NULL) argument 28 # define HAS_CALLBACK(b) ((b)->callback_ex != NULL) argument 523 ret = b->method->bputs(b, buf); in BIO_puts() 577 ret = b->method->bgets(b, buf, size); in BIO_gets() 677 ret = b->method->ctrl(b, cmd, larg, parg); in BIO_ctrl() 705 ret = b->method->callback_ctrl(b, cmd, fp); in BIO_callback_ctrl() 772 BIO_ctrl(b, BIO_CTRL_POP, 0, b); in BIO_pop() 775 b->prev_bio->next_bio = b->next_bio; in BIO_pop() 777 b->next_bio->prev_bio = b->prev_bio; in BIO_pop() 793 b = b->next_bio; in BIO_get_retry_BIO() [all …]
|
H A D | bss_bio.c | 291 assert(b->len <= b->size); in bio_write() 293 if (b->len == b->size) { in bio_write() 299 if (num > b->size - b->len) in bio_write() 300 num = b->size - b->len; in bio_write() 311 assert(b->len + rest <= b->size); in bio_write() 328 assert(b->len <= b->size); in bio_write() 367 assert(b->len <= b->size); in bio_nwrite0() 369 if (b->len == b->size) { in bio_nwrite0() 374 num = b->size - b->len; in bio_nwrite0() 375 write_offset = b->offset + b->len; in bio_nwrite0() [all …]
|
H A D | bss_sock.c | 168 BIO_clear_retry_flags(b); in sock_write() 188 if (b->shutdown) { in sock_ctrl() 189 if (b->init) in sock_ctrl() 191 b->flags = 0; in sock_ctrl() 193 b->num = *((int *)ptr); in sock_ctrl() 195 b->init = 1; in sock_ctrl() 200 if (b->init) { in sock_ctrl() 203 *ip = b->num; in sock_ctrl() 204 ret = b->num; in sock_ctrl() 209 ret = b->shutdown; in sock_ctrl() [all …]
|
H A D | bss_dgram_pair.c | 273 #define is_dgram_pair(b) (b->peer != NULL) argument 277 struct bio_dgram_pair_st *b = OPENSSL_zalloc(sizeof(*b)); in dgram_pair_init() local 279 if (b == NULL) in dgram_pair_init() 284 b->req_buf_len = 9 * (sizeof(struct dgram_hdr) + b->mtu); in dgram_pair_init() 292 bio->ptr = b; in dgram_pair_init() 303 b = bio->ptr; in dgram_mem_init() 305 if (ring_buf_init(&b->rbuf, b->req_buf_len) == 0) { in dgram_mem_init() 323 b = bio->ptr; in dgram_pair_free() 532 l = b->rbuf.len - b->rbuf.count; in dgram_pair_ctrl_get_write_guarantee() 627 b->mtu = mtu; in dgram_pair_ctrl_set_mtu() [all …]
|
H A D | bf_prefix.c | 21 static int prefix_create(BIO *b); 22 static int prefix_destroy(BIO *b); 52 static int prefix_create(BIO *b) in prefix_create() argument 62 BIO_set_data(b, ctx); in prefix_create() 63 BIO_set_init(b, 1); in prefix_create() 67 static int prefix_destroy(BIO *b) in prefix_destroy() argument 69 PREFIX_CTX *ctx = BIO_get_data(b); in prefix_destroy() 84 PREFIX_CTX *ctx = BIO_get_data(b); in prefix_write() 156 if (b == NULL || (ctx = BIO_get_data(b)) == NULL) in prefix_ctrl() 187 if (BIO_next(b) != NULL) in prefix_ctrl() [all …]
|
H A D | bf_lbuf.c | 78 BIO_LINEBUFFER_CTX *b; in linebuffer_free() local 83 OPENSSL_free(b->obuf); in linebuffer_free() 97 if (b->next_bio == NULL) in linebuffer_read() 100 BIO_clear_retry_flags(b); in linebuffer_read() 101 BIO_copy_next_retry(b); in linebuffer_read() 116 BIO_clear_retry_flags(b); in linebuffer_write() 214 if (b->next_bio == NULL) in linebuffer_ctrl() 254 BIO_copy_next_retry(b); in linebuffer_ctrl() 282 BIO_copy_next_retry(b); in linebuffer_ctrl() 300 if (b->next_bio == NULL) in linebuffer_callback_ctrl() [all …]
|
/openssl/include/internal/ |
H A D | constant_time.h | 124 return constant_time_msb(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt() 129 return constant_time_msb_s(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_s() 140 return constant_time_msb_64(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_64() 162 return constant_time_msb_bn(a ^ ((a ^ b) | ((a - b) ^ b))); in constant_time_lt_bn() 187 return ~constant_time_lt(a, b); in constant_time_ge() 375 uint32_t xor = *a ^ *b; in constant_time_cond_swap_32() 379 *b ^= xor; in constant_time_cond_swap_32() 395 uint64_t xor = *a ^ *b; in constant_time_cond_swap_64() 399 *b ^= xor; in constant_time_cond_swap_64() 423 tmp = a[i] ^ b[i]; in constant_time_cond_swap_buff() [all …]
|
H A D | safe_math.h | 34 type b, \ 39 if (!__builtin_add_overflow(a, b, &r)) \ 47 type b, \ 52 if (!__builtin_add_overflow(a, b, &r)) \ 61 type b, \ 108 || (b > 0 && a >= min + b) \ 109 || (b < 0 && a <= max + b) \ 172 const type y = b < 0 ? -b : b; \ 186 if (b != 0 && a > max / b) \ 391 return (a + b - 1) / b; \ [all …]
|
H A D | sockets.h | 177 # define readsocket(s,b,n) recv((s),(b),(n),0) argument 181 # define readsocket(s,b,n) read_s(s,b,n) argument 182 # define writesocket(s,b,n) send(s,b,n,0) argument 184 # define ioctlsocket(a,b,c) ioctl(a,b,c) argument 194 # define readsocket(s,b,n) read((s),(b),(n)) argument 195 # define writesocket(s,b,n) write((s),(b),(n)) argument 196 # define ioctlsocket(a,b,c) ioctl(a,b,c) argument 199 # define ioctlsocket(a,b,c) ioctl(a,b,c) argument 201 # define readsocket(s,b,n) read((s),(b),(n)) argument 202 # define writesocket(s,b,n) write((s),(b),(n)) argument [all …]
|
/openssl/crypto/bn/ |
H A D | bn_blind.c | 95 if ((b->A == NULL) || (b->Ai == NULL)) { in BN_BLINDING_update() 103 if (++b->counter == BN_BLINDING_COUNTER && b->e != NULL && in BN_BLINDING_update() 110 if (!bn_mul_mont_fixed_top(b->Ai, b->Ai, b->Ai, b->m_ctx, ctx) in BN_BLINDING_update() 111 || !bn_mul_mont_fixed_top(b->A, b->A, b->A, b->m_ctx, ctx)) in BN_BLINDING_update() 114 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx) in BN_BLINDING_update() 115 || !BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) in BN_BLINDING_update() 138 if ((b->A == NULL) || (b->Ai == NULL)) { in BN_BLINDING_convert_ex() 153 ret = BN_mod_mul_montgomery(n, n, b->A, b->m_ctx, ctx); in BN_BLINDING_convert_ex() 155 ret = BN_mod_mul(n, n, b->A, b->mod, ctx); in BN_BLINDING_convert_ex() 245 if (b == NULL) in BN_BLINDING_create_param() [all …]
|
H A D | bn_mul.c | 41 b += cl; in bn_sub_part_words() 45 t = b[0]; in bn_sub_part_words() 73 b += 4; in bn_sub_part_words() 209 c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n); in bn_mul_recursive() 239 bn_sub_part_words(&(t[n]), &(b[n]), b, tnb, tnb - n); in bn_mul_recursive() 336 c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n); in bn_mul_part_recursive() 360 bn_sub_part_words(&(t[n]), &(b[n]), b, tnb, tnb - n); in bn_mul_part_recursive() 525 bl = b->top; in bn_mul_fixed_top() 634 a = b; in bn_mul_normal() 660 b += 4; in bn_mul_normal() [all …]
|
/openssl/crypto/rc5/ |
H A D | rc5_enc.c | 98 RC5_32_INT a, b, *s; in RC5_32_encrypt() local 103 b = d[1] + s[1]; in RC5_32_encrypt() 104 E_RC5_32(a, b, s, 2); in RC5_32_encrypt() 105 E_RC5_32(a, b, s, 4); in RC5_32_encrypt() 106 E_RC5_32(a, b, s, 6); in RC5_32_encrypt() 107 E_RC5_32(a, b, s, 8); in RC5_32_encrypt() 129 d[1] = b; in RC5_32_encrypt() 134 RC5_32_INT a, b, *s; in RC5_32_decrypt() local 139 b = d[1]; in RC5_32_decrypt() 160 D_RC5_32(a, b, s, 8); in RC5_32_decrypt() [all …]
|
/openssl/crypto/bn/asm/ |
H A D | armv4-gf2m.pl | 75 $b="r0"; 201 mov $b,r3 @ $b=b1 214 eor $b,$b,r3 @ flip b0 and b1 216 eor r3,r3,$b 218 eor $b,$b,r3 225 eor $b,$b,r3 265 vmov $b, r12, r3 272 vext.8 $r#lo, $b, $b, #1 @ B1 276 vext.8 $t3#lo, $b, $b, #2 @ B2 281 vext.8 $r#lo, $b, $b, #3 @ B3 [all …]
|
H A D | x86_64-gcc.c | 270 t2 = b[0]; in bn_sub_words() 278 t2 = b[1]; in bn_sub_words() 286 t2 = b[2]; in bn_sub_words() 294 t2 = b[3]; in bn_sub_words() 302 b += 4; in bn_sub_words() 400 mul_add_c(a[0], b[0], c1, c2, c3); in bn_mul_comba8() 403 mul_add_c(a[0], b[1], c2, c3, c1); in bn_mul_comba8() 404 mul_add_c(a[1], b[0], c2, c3, c1); in bn_mul_comba8() 407 mul_add_c(a[2], b[0], c3, c1, c2); in bn_mul_comba8() 408 mul_add_c(a[1], b[1], c3, c1, c2); in bn_mul_comba8() [all …]
|
/openssl/include/openssl/ |
H A D | bio.h.in | 251 # define BIO_get_flags(b) BIO_test_flags(b, ~(0x0)) argument 515 /* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */ 531 # define BIO_do_connect(b) BIO_do_handshake(b) argument 532 # define BIO_do_accept(b) BIO_do_handshake(b) argument 537 # define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd) argument 545 # define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL) argument 546 # define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL) argument 566 # define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \ argument 606 # define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL) argument 620 # define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL) argument [all …]
|
/openssl/crypto/asn1/ |
H A D | bio_asn1.c | 109 BIO_set_data(b, ctx); in asn1_bio_new() 110 BIO_set_init(b, 1); in asn1_bio_new() 134 if (b == NULL) in asn1_bio_free() 137 ctx = BIO_get_data(b); in asn1_bio_free() 148 BIO_set_data(b, NULL); in asn1_bio_free() 149 BIO_set_init(b, 0); in asn1_bio_free() 161 ctx = BIO_get_data(b); in asn1_bio_write() 162 next = BIO_next(b); in asn1_bio_write() 248 BIO_copy_next_retry(b); in asn1_bio_write() 331 ctx = BIO_get_data(b); in asn1_bio_ctrl() [all …]
|
/openssl/crypto/sha/asm/ |
H A D | sha1-sparcv9a.pl | 168 srl $b,2,$b 188 srl $b,2,$b 220 srl $b,2,$b 239 srl $b,2,$b 257 srl $b,2,$b 271 srl $b,2,$b 299 srl $b,2,$b 320 srl $b,2,$b 350 srl $b,2,$b 370 srl $b,2,$b [all …]
|
H A D | sha1-alpha.pl | 78 sll $b,30,$b 90 or $t3,$b,$b 101 sll $b,30,$b 110 or $t3,$b,$b 128 sll $b,30,$b 136 or $t3,$b,$b 156 srl $b,2,$b 166 or $t3,$b,$b 184 srl $b,2,$b 193 or $t3,$b,$b [all …]
|