/openssl/crypto/bio/ |
H A D | bss_dgram.c | 570 num = 0; in dgram_ctrl() 731 ret = num; in dgram_ctrl() 746 if (num == 0 || num > ret) in dgram_ctrl() 769 if (num == 0 || num > ret) in dgram_ctrl() 776 if (!BIO_socket_nbio(b->num, num != 0)) in dgram_ctrl() 984 num = num > 0; in dgram_ctrl() 1905 bi->num = 0; in dgram_sctp_new() 2331 if (num > 0) in dgram_sctp_ctrl() 2465 ret = num; in dgram_sctp_ctrl() 2481 ret = num; in dgram_sctp_ctrl() [all …]
|
H A D | bf_lbuf.c | 107 int i, num = 0, foundnl; in linebuffer_write() local 150 num += i; in linebuffer_write() 159 return ((num > 0) ? num : i); in linebuffer_write() 161 return num; in linebuffer_write() 177 return ((num > 0) ? num : i); in linebuffer_write() 179 return num; in linebuffer_write() 181 num += i; in linebuffer_write() 195 num += inl; in linebuffer_write() 197 return num; in linebuffer_write() 230 if (num > INT_MAX) in linebuffer_ctrl() [all …]
|
H A D | bss_fd.c | 93 bi->num = -1; in fd_new() 105 UP_close(a->num); in fd_free() 119 ret = UP_read(b->num, out, outl); in fd_read() 135 ret = UP_write(b->num, in, inl); in fd_write() 151 num = 0; in fd_ctrl() 154 ret = (long)UP_lseek(b->num, num, 0); in fd_ctrl() 162 b->num = *((int *)ptr); in fd_ctrl() 163 b->shutdown = (int)num; in fd_ctrl() 170 *ip = b->num; in fd_ctrl() 171 ret = b->num; in fd_ctrl() [all …]
|
H A D | bss_file.c | 112 bi->num = 0; in file_new() 234 if (num & BIO_FP_TEXT) in file_ctrl() 250 if (num & BIO_FP_TEXT) in file_ctrl() 270 if (num & BIO_FP_APPEND) { in file_ctrl() 271 if (num & BIO_FP_READ) in file_ctrl() 275 } else if ((num & BIO_FP_READ) && (num & BIO_FP_WRITE)) in file_ctrl() 277 else if (num & BIO_FP_WRITE) in file_ctrl() 279 else if (num & BIO_FP_READ) in file_ctrl() 287 if (!(num & BIO_FP_TEXT)) in file_ctrl() 292 if (!(num & BIO_FP_TEXT)) in file_ctrl() [all …]
|
H A D | bss_acpt.c | 81 bi->num = (int)INVALID_SOCKET; in acpt_new() 240 b->num = s; in acpt_state() 425 if (num == 0) { in acpt_ctrl() 440 } else if (num == 1) { in acpt_ctrl() 446 } else if (num == 2) { in acpt_ctrl() 448 } else if (num == 3) { in acpt_ctrl() 457 if (num == 2) { in acpt_ctrl() 465 if (num != 0) in acpt_ctrl() 471 b->num = *((int *)ptr); in acpt_ctrl() 474 b->shutdown = (int)num; in acpt_ctrl() [all …]
|
/openssl/crypto/sha/ |
H A D | sha3.c | 50 size_t num, rem; in ossl_sha3_update() local 60 rem = bsz - num; in ossl_sha3_update() 72 memcpy(ctx->buf + num, inp, rem); in ossl_sha3_update() 100 size_t num = ctx->bufsz; in ossl_sha3_final() local 113 memset(ctx->buf + num, 0, bsz - num); in ossl_sha3_final() 114 ctx->buf[num] = ctx->pad; in ossl_sha3_final() 137 size_t num = ctx->bufsz; in ossl_sha3_squeeze() local 158 memset(ctx->buf + num, 0, bsz - num); in ossl_sha3_squeeze() 159 ctx->buf[num] = ctx->pad; in ossl_sha3_squeeze() 163 num = ctx->bufsz = 0; in ossl_sha3_squeeze() [all …]
|
/openssl/crypto/asn1/ |
H A D | t_pkey.c | 45 int ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, in ASN1_bn_print() argument 53 if (num == NULL) in ASN1_bn_print() 55 neg = BN_is_negative(num) ? "-" : ""; in ASN1_bn_print() 58 if (BN_is_zero(num)) { in ASN1_bn_print() 64 if (BN_num_bytes(num) <= BN_BYTES) { in ASN1_bn_print() 66 (unsigned long)bn_get_words(num)[0], neg, in ASN1_bn_print() 67 (unsigned long)bn_get_words(num)[0]) <= 0) in ASN1_bn_print() 72 buflen = BN_num_bytes(num) + 1; in ASN1_bn_print() 80 n = BN_bn2bin(num, buf + 1); in ASN1_bn_print()
|
/openssl/crypto/md2/ |
H A D | md2_dgst.c | 79 c->num = 0; in MD2_Init() 94 if (c->num != 0) { in MD2_Update() 95 if ((c->num + len) >= MD2_BLOCK) { in MD2_Update() 96 memcpy(&(p[c->num]), data, MD2_BLOCK - c->num); in MD2_Update() 98 data += (MD2_BLOCK - c->num); in MD2_Update() 99 len -= (MD2_BLOCK - c->num); in MD2_Update() 100 c->num = 0; in MD2_Update() 105 c->num += (int)len; in MD2_Update() 119 c->num = (int)len; in MD2_Update() 165 v = MD2_BLOCK - c->num; in MD2_Final() [all …]
|
/openssl/crypto/bn/ |
H A D | bn_asm.c | 23 if (num <= 0) in bn_mul_add_words() 34 num -= 4; in bn_mul_add_words() 37 while (num) { in bn_mul_add_words() 41 num--; in bn_mul_add_words() 52 if (num <= 0) in bn_mul_words() 70 num--; in bn_mul_words() 131 num--; in bn_mul_add_words() 163 num--; in bn_mul_words() 924 tp[num] = tp[num + 1] + (c1 < c0 ? 1 : 0); in bn_mul_mont() 927 if (tp[num] != 0 || tp[num - 1] >= np[num - 1]) { in bn_mul_mont() [all …]
|
/openssl/include/openssl/ |
H A D | objects.h | 77 const void *OBJ_bsearch_(const void *key, const void *base, int num, int size, 79 const void *OBJ_bsearch_ex_(const void *key, const void *base, int num, 87 scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) 92 type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) 128 static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \ 130 return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \ 142 type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \ 144 return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \ 151 num,sizeof(type2), \ 158 num,sizeof(type2), \ [all …]
|
/openssl/crypto/bn/asm/ |
H A D | co-586.pl | 117 local($name,$num)=@_; 134 $tot=$num+$num-1; 173 $na=$as+($i < ($num-1)); 188 $as++ if ($i < ($num-1)); 189 $ae++ if ($i >= ($num-1)); 191 $bs++ if ($i >= ($num-1)); 192 $be++ if ($i < ($num-1)); 208 local($name,$num)=@_; 235 $tot=$num+$num-1; 284 $as++ if ($i < ($num-1)); [all …]
|
H A D | vis3-mont.pl | 63 sll $num, 2, $num ! size in bytes 64 add $num, 63, %g5 207 sub $num, 16, $i ! i=num-2 215 sub $tp, $num, $tp 216 sub $anp, $num, $anp 289 sub $tp, $num, $tp 290 sub $anp, $num, $anp 311 sub $tp, $num, $tp 312 sub $anp, $num, $anp 313 sub $rp, $num, $rp [all …]
|
/openssl/test/ |
H A D | rsa_test.c | 245 int num; in test_rsa_simple() local 253 if (!TEST_int_eq(num, clentmp)) in test_rsa_simple() 256 num = RSA_private_decrypt(num, ctext, ptext, key, de_pad_type); in test_rsa_simple() 258 if (!TEST_int_gt(num, 0) || !TEST_mem_eq(ptext, num, ptext_ex, plen)) in test_rsa_simple() 261 if (!TEST_int_lt(num, 0)) in test_rsa_simple() 290 int num; in test_rsa_oaep() local 302 if (num <= 0 || !TEST_mem_eq(ptext, num, ptext_ex, plen)) in test_rsa_oaep() 310 if (!TEST_int_le(num, 0)) in test_rsa_oaep() 319 if (!TEST_int_le(num, 0)) in test_rsa_oaep() 367 unsigned char num[2000]; in test_rsa_security_bit() local [all …]
|
/openssl/crypto/evp/ |
H A D | encode.c | 146 return ctx->num; in EVP_ENCODE_CTX_num() 157 ctx->num = 0; in EVP_EncodeInit() 174 ctx->num += inl; in EVP_EncodeUpdate() 177 if (ctx->num != 0) { in EVP_EncodeUpdate() 183 ctx->num = 0; in EVP_EncodeUpdate() 211 ctx->num = inl; in EVP_EncodeUpdate() 226 ctx->num = 0; in EVP_EncodeFinal() 277 ctx->num = 0; in EVP_DecodeInit() 310 n = ctx->num; in EVP_DecodeUpdate() 409 ctx->num = n; in EVP_DecodeUpdate() [all …]
|
H A D | e_camellia.c | 257 int num = EVP_CIPHER_CTX_get_num(ctx); in camellia_ofb_cipher() local 259 EVP_CIPHER_CTX_set_num(ctx, num); in camellia_ofb_cipher() 271 EVP_CIPHER_CTX_set_num(ctx, num); in camellia_cfb_cipher() 283 EVP_CIPHER_CTX_set_num(ctx, num); in camellia_cfb8_cipher() 297 EVP_CIPHER_CTX_set_num(ctx, num); in camellia_cfb1_cipher() 307 EVP_CIPHER_CTX_set_num(ctx, num); in camellia_cfb1_cipher() 318 EVP_CIPHER_CTX_set_num(ctx, num); in camellia_cfb1_cipher() 328 unsigned int num; in camellia_ctr_cipher() local 333 num = snum; in camellia_ctr_cipher() 337 &num, in camellia_ctr_cipher() [all …]
|
/openssl/crypto/sm3/ |
H A D | sm3_riscv.c | 18 void ossl_hwsm3_block_data_order_zvksh(SM3_CTX *c, const void *p, size_t num); 19 void ossl_sm3_block_data_order(SM3_CTX *c, const void *p, size_t num); 20 void ossl_hwsm3_block_data_order(SM3_CTX *c, const void *p, size_t num); 22 void ossl_hwsm3_block_data_order(SM3_CTX *c, const void *p, size_t num) in ossl_hwsm3_block_data_order() argument 25 ossl_hwsm3_block_data_order_zvksh(c, p, num); in ossl_hwsm3_block_data_order() 27 ossl_sm3_block_data_order(c, p, num); in ossl_hwsm3_block_data_order()
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_tdes_default_hw.c | 52 int num = ctx->num; in ossl_cipher_hw_tdes_ofb() local 56 &tctx->ks3, (DES_cblock *)ctx->iv, &num); in ossl_cipher_hw_tdes_ofb() 63 &tctx->ks3, (DES_cblock *)ctx->iv, &num); in ossl_cipher_hw_tdes_ofb() 65 ctx->num = num; in ossl_cipher_hw_tdes_ofb() 73 int num = ctx->num; in ossl_cipher_hw_tdes_cfb() local 79 (DES_cblock *)ctx->iv, &num, ctx->enc); in ossl_cipher_hw_tdes_cfb() 87 (DES_cblock *)ctx->iv, &num, ctx->enc); in ossl_cipher_hw_tdes_cfb() 89 ctx->num = num; in ossl_cipher_hw_tdes_cfb()
|
/openssl/crypto/rsa/ |
H A D | rsa_pk1.c | 59 int num) in RSA_padding_check_PKCS1_type_1() argument 73 if (num < RSA_PKCS1_PADDING_SIZE) in RSA_padding_check_PKCS1_type_1() 77 if (num == flen) { in RSA_padding_check_PKCS1_type_1() 85 if ((num != (flen + 1)) || (*(p++) != 0x01)) { in RSA_padding_check_PKCS1_type_1() 173 int num) in RSA_padding_check_PKCS1_type_2() argument 189 if (flen > num || num < RSA_PKCS1_PADDING_SIZE) { in RSA_padding_check_PKCS1_type_2() 194 em = OPENSSL_malloc(num); in RSA_padding_check_PKCS1_type_2() 203 for (from += flen, em += num, i = 0; i < num; i++) { in RSA_padding_check_PKCS1_type_2() 215 for (i = 2; i < num; i++) { in RSA_padding_check_PKCS1_type_2() 235 mlen = num - msg_index; in RSA_padding_check_PKCS1_type_2() [all …]
|
/openssl/crypto/ec/ |
H A D | ecp_nistputil.c | 53 ossl_ec_GFp_nistp_points_make_affine_internal(size_t num, void *point_array, in ossl_ec_GFp_nistp_points_make_affine_internal() argument 90 for (i = 1; i < (int)num; i++) { in ossl_ec_GFp_nistp_points_make_affine_internal() 101 felem_inv(tmp_felem(num - 1), tmp_felem(num - 1)); in ossl_ec_GFp_nistp_points_make_affine_internal() 102 for (i = num - 1; i >= 0; i--) { in ossl_ec_GFp_nistp_points_make_affine_internal() 109 felem_mul(tmp_felem(num), tmp_felem(i - 1), tmp_felem(i)); in ossl_ec_GFp_nistp_points_make_affine_internal() 111 felem_assign(tmp_felem(num), tmp_felem(0)); /* 1/Z(0) */ in ossl_ec_GFp_nistp_points_make_affine_internal() 123 felem_square(Z(i), tmp_felem(num)); /* 1/(Z^2) */ in ossl_ec_GFp_nistp_points_make_affine_internal() 125 felem_mul(Z(i), Z(i), tmp_felem(num)); /* 1/(Z^3) */ in ossl_ec_GFp_nistp_points_make_affine_internal()
|
/openssl/crypto/engine/ |
H A D | eng_ctrl.c | 54 while (!int_ctrl_cmd_is_null(defn) && (defn->cmd_num < num)) { in int_ctrl_cmd_by_num() 58 if (defn->cmd_num == num) in int_ctrl_cmd_by_num() 194 int num; in ENGINE_ctrl_cmd() local 201 || (num = ENGINE_ctrl(e, ENGINE_CTRL_GET_CMD_FROM_NAME, in ENGINE_ctrl_cmd() 222 if (ENGINE_ctrl(e, num, i, p, f) > 0) in ENGINE_ctrl_cmd() 230 int num, flags; in ENGINE_ctrl_cmd_string() local 239 || (num = ENGINE_ctrl(e, ENGINE_CTRL_GET_CMD_FROM_NAME, in ENGINE_ctrl_cmd_string() 256 if (!ENGINE_cmd_is_executable(e, num)) { in ENGINE_ctrl_cmd_string() 284 if (ENGINE_ctrl(e, num, 0, (void *)arg, NULL) > 0) in ENGINE_ctrl_cmd_string() 296 if (ENGINE_ctrl(e, num, 0, (void *)arg, NULL) > 0) in ENGINE_ctrl_cmd_string() [all …]
|
/openssl/test/testutil/ |
H A D | driver.c | 34 int num; member 64 all_tests[num_tests].num = -1; in add_test() 70 int num, int subtest) in add_all_tests() argument 75 all_tests[num_tests].num = num; in add_all_tests() 81 num_test_cases += num; in add_all_tests() 168 if (all_tests[single_test - 1].num == -1) { in check_single_test_params() 330 if (all_tests[i].num != -1) { in run_tests() 333 all_tests[i].num); in run_tests() 339 } else if (all_tests[i].num == -1) { in run_tests() 370 for (jj = 0; jj < all_tests[i].num; jj++) { in run_tests() [all …]
|
/openssl/crypto/lhash/ |
H A D | lh_stats.c | 94 unsigned int i, num; in OPENSSL_LH_node_stats_bio() local 97 for (n = lh->b[i], num = 0; n != NULL; n = n->next) in OPENSSL_LH_node_stats_bio() 98 num++; in OPENSSL_LH_node_stats_bio() 99 BIO_printf(out, "node %6u -> %3u\n", i, num); in OPENSSL_LH_node_stats_bio() 106 unsigned long num; in OPENSSL_LH_node_usage_stats_bio() local 111 for (n = lh->b[i], num = 0; n != NULL; n = n->next) in OPENSSL_LH_node_usage_stats_bio() 112 num++; in OPENSSL_LH_node_usage_stats_bio() 113 if (num != 0) { in OPENSSL_LH_node_usage_stats_bio() 115 total += num; in OPENSSL_LH_node_usage_stats_bio()
|
/openssl/crypto/rand/ |
H A D | rand_meth.c | 15 static int drbg_add(const void *buf, int num, double randomness) in drbg_add() argument 19 if (drbg == NULL || num <= 0) in drbg_add() 22 return EVP_RAND_reseed(drbg, 0, NULL, 0, buf, num); in drbg_add() 26 static int drbg_seed(const void *buf, int num) in drbg_seed() argument 28 return drbg_add(buf, num, num); in drbg_seed()
|
/openssl/crypto/aes/ |
H A D | aes_cfb.c | 27 unsigned char *ivec, int *num, const int enc) in AES_cfb128_encrypt() argument 30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb128_encrypt() 37 unsigned char *ivec, int *num, const int enc) in AES_cfb1_encrypt() argument 39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb1_encrypt() 45 unsigned char *ivec, int *num, const int enc) in AES_cfb8_encrypt() argument 47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb8_encrypt()
|
/openssl/crypto/camellia/ |
H A D | cmll_cfb.c | 27 unsigned char *ivec, int *num, const int enc) in Camellia_cfb128_encrypt() argument 30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb128_encrypt() 37 unsigned char *ivec, int *num, const int enc) in Camellia_cfb1_encrypt() argument 39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb1_encrypt() 45 unsigned char *ivec, int *num, const int enc) in Camellia_cfb8_encrypt() argument 47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb8_encrypt()
|