/openssl/crypto/bio/ |
H A D | bf_buff.c | 89 int i, num = 0; in buffer_read() local 98 num = 0; in buffer_read() 110 num += i; in buffer_read() 129 return ((num > 0) ? num : i); in buffer_read() 147 return ((num > 0) ? num : i); in buffer_read() 160 int i, num = 0; in buffer_write() local 196 return ((num > 0) ? num : i); in buffer_write() 218 return ((num > 0) ? num : i); in buffer_write() 222 num += i; in buffer_write() 401 ret = num; in buffer_ctrl() [all …]
|
H A D | bss_bio.c | 234 return num; in bio_nread0() 250 if (num <= 0) in bio_nread() 251 return num; in bio_nread() 265 return num; in bio_nread() 304 rest = num; in bio_write() 335 return num; in bio_write() 348 size_t num; in bio_nwrite0() local 390 return num; in bio_nwrite0() 406 if (num <= 0) in bio_nwrite() 410 b->len += num; in bio_nwrite() [all …]
|
H A D | bss_sock.c | 92 bi->num = 0; in sock_new() 106 BIO_closesocket(a->num); in sock_free() 193 b->num = *((int *)ptr); in sock_ctrl() 194 b->shutdown = (int)num; in sock_ctrl() 203 *ip = b->num; in sock_ctrl() 204 ret = b->num; in sock_ctrl() 212 b->shutdown = (int)num; in sock_ctrl() 229 pd->value.fd = b->num; in sock_ctrl() 235 ret = ktls_start(b->num, crypto_info, num); in sock_ctrl() 237 BIO_set_ktls_flag(b, num); in sock_ctrl() [all …]
|
H A D | bf_readbuff.c | 108 int i, num = 0; in readbuffer_read() local 128 num += i; in readbuffer_read() 131 return num; in readbuffer_read() 145 return ((num > 0) ? num : i); in readbuffer_read() 182 if (num < 0 || num > sz) in readbuffer_ctrl() 184 ctx->ibuf_off = num; in readbuffer_ctrl() 248 num += num_chars; in readbuffer_gets() 254 return num; in readbuffer_gets() 280 return num > 0 ? num : j; in readbuffer_gets() 283 num++; in readbuffer_gets() [all …]
|
H A D | bss_conn.c | 184 b->num = ret; in conn_state() 484 if (num == 0) { in conn_ctrl() 564 if ((num != SOCK_STREAM && num != SOCK_DGRAM) in conn_ctrl() 594 if (num == 0 || num > ret) in conn_ctrl() 595 num = ret; in conn_ctrl() 598 ret = num; in conn_ctrl() 621 if (num != 0) in conn_ctrl() 632 if (num != 0) { in conn_ctrl() 652 *ip = b->num; in conn_ctrl() 653 ret = b->num; in conn_ctrl() [all …]
|
H A D | bf_nbio.c | 81 int num; in nbiof_read() local 92 num = (n & 0x07); in nbiof_read() 94 if (outl > num) in nbiof_read() 95 outl = num; in nbiof_read() 97 if (num == 0) { in nbiof_read() 112 int num; in nbiof_write() local 124 num = nt->lwn; in nbiof_write() 129 num = (n & 7); in nbiof_write() 132 if (inl > num) in nbiof_write() 133 inl = num; in nbiof_write() [all …]
|
/openssl/crypto/des/ |
H A D | ofb_enc.c | 31 register int num = numbits; in DES_ofb_encrypt() local 35 if (num > 64) in DES_ofb_encrypt() 37 if (num > 32) { in DES_ofb_encrypt() 39 if (num >= 64) in DES_ofb_encrypt() 44 if (num == 32) in DES_ofb_encrypt() 69 if (num == 32) { in DES_ofb_encrypt() 72 } else if (num == 64) { in DES_ofb_encrypt() 76 v0 = ((v1 >> (num - 32)) | (vv0 << (64 - num))) & 0xffffffffL; in DES_ofb_encrypt() 77 v1 = ((vv0 >> (num - 32)) | (vv1 << (64 - num))) & 0xffffffffL; in DES_ofb_encrypt() 80 v0 = ((v0 >> num) | (v1 << (32 - num))) & 0xffffffffL; in DES_ofb_encrypt() [all …]
|
H A D | cfb64ede.c | 31 register int n = *num; in DES_ede3_cfb64_encrypt() 83 *num = n; in DES_ede3_cfb64_encrypt() 98 register int num = numbits, i; in DES_ede3_cfb_encrypt() local 103 if (num > 64) in DES_ede3_cfb_encrypt() 124 if (num == 32) { in DES_ede3_cfb_encrypt() 127 } else if (num == 64) { in DES_ede3_cfb_encrypt() 137 memmove(ovec, ovec + num / 8, 8 + (num % 8 ? 1 : 0)); in DES_ede3_cfb_encrypt() 139 if (num % 8 != 0) in DES_ede3_cfb_encrypt() 161 if (num == 32) { in DES_ede3_cfb_encrypt() 174 memmove(ovec, ovec + num / 8, 8 + (num % 8 ? 1 : 0)); in DES_ede3_cfb_encrypt() [all …]
|
/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_hw.c | 51 int num = dat->num; in ossl_cipher_hw_generic_ofb128() local 54 dat->num = num; in ossl_cipher_hw_generic_ofb128() 62 int num = dat->num; in ossl_cipher_hw_generic_cfb128() local 66 dat->num = num; in ossl_cipher_hw_generic_cfb128() 74 int num = dat->num; in ossl_cipher_hw_generic_cfb8() local 78 dat->num = num; in ossl_cipher_hw_generic_cfb8() 86 int num = dat->num; in ossl_cipher_hw_generic_cfb1() local 91 dat->num = num; in ossl_cipher_hw_generic_cfb1() 106 dat->num = num; in ossl_cipher_hw_generic_cfb1() 114 unsigned int num = dat->num; in ossl_cipher_hw_generic_ctr() local [all …]
|
/openssl/crypto/ |
H A D | param_build.c | 40 } num; member 87 memcpy(&pd->num, num, size); in param_push_num() 124 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_int() 130 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint() 137 return param_push_num(bld, key, &num, sizeof(num), OSSL_PARAM_INTEGER); in OSSL_PARAM_BLD_push_long() 143 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_ulong() 156 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint32() 169 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_uint64() 176 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_size_t() 183 return param_push_num(bld, key, &num, sizeof(num), in OSSL_PARAM_BLD_push_time_t() [all …]
|
H A D | mem.c | 184 if (ptr != NULL || num == 0) in CRYPTO_malloc() 189 if (num == 0) in CRYPTO_malloc() 202 ptr = malloc(num); in CRYPTO_malloc() 224 memset(ret, 0, num); in CRYPTO_zalloc() 300 if (num == 0) { in CRYPTO_realloc() 306 return realloc(str, num); in CRYPTO_realloc() 317 if (num == 0) { in CRYPTO_clear_realloc() 323 if (num < old_len) { in CRYPTO_clear_realloc() 324 OPENSSL_cleanse((char*)str + num, old_len - num); in CRYPTO_clear_realloc() 351 if (num) in CRYPTO_clear_free() [all …]
|
/openssl/crypto/asn1/ |
H A D | evp_asn1.c | 36 int ret, num; in ASN1_TYPE_get_octetstring() local 46 num = ret; in ASN1_TYPE_get_octetstring() 48 num = max_len; in ASN1_TYPE_get_octetstring() 68 if (num != NULL) in asn1_type_get_int_oct() 69 *num = anum; in asn1_type_get_int_oct() 83 int32_t num; member 100 atmp.num = num; 124 ret = asn1_type_get_int_oct(atmp->oct, atmp->num, num, data, max_len); in ASN1_TYPE_get_int_octetstring() 136 int32_t num; member 156 atmp.num = num; [all …]
|
/openssl/crypto/stack/ |
H A D | stack.c | 28 int num; member 55 ret->num = 0; in OPENSSL_sk_dup() 93 ret->num = 0; in OPENSSL_sk_deep_copy() 108 ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes; in OPENSSL_sk_deep_copy() 189 num_alloc = st->num + n; in sk_reserve() 279 st->num++; in OPENSSL_sk_insert() 281 return st->num; in OPENSSL_sk_insert() 288 if (loc != st->num - 1) in internal_delete() 291 st->num--; in internal_delete() 428 st->num = 0; in OPENSSL_sk_zero() [all …]
|
/openssl/crypto/sha/ |
H A D | sha_riscv.c | 18 size_t num); 19 void sha256_block_data_order_c(void *ctx, const void *in, size_t num); 20 void sha256_block_data_order(SHA256_CTX *ctx, const void *in, size_t num); 22 void sha256_block_data_order(SHA256_CTX *ctx, const void *in, size_t num) in sha256_block_data_order() argument 26 sha256_block_data_order_zvkb_zvknha_or_zvknhb(ctx, in, num); in sha256_block_data_order() 28 sha256_block_data_order_c(ctx, in, num); in sha256_block_data_order() 33 void sha512_block_data_order_c(void *ctx, const void *in, size_t num); 34 void sha512_block_data_order(SHA512_CTX *ctx, const void *in, size_t num); 36 void sha512_block_data_order(SHA512_CTX *ctx, const void *in, size_t num) in sha512_block_data_order() argument 39 sha512_block_data_order_zvkb_zvknhb(ctx, in, num); in sha512_block_data_order() [all …]
|
/openssl/crypto/bn/asm/ |
H A D | s390x-mont.pl | 72 $num="%r1"; 99 lgf $num,`$stdframe+$SIZE_T-4`($sp) # pull $num 100 sla $num,`log($SIZE_T)/log(2)` # $num to enumerate bytes 110 tmll $num,4 121 lcgr $j,$num # -$num 127 sra $num,3 # restore $num 129 ahi $num,-1 # adjust $num for inner loop 151 lr $count,$num 203 lr $count,$num 244 ahi $num,1 # restore $num, incidentally clears "borrow" [all …]
|
H A D | bn-586.pl | 272 $num="ebp"; 302 &sub($num,8); 308 &and($num,7); 374 $num="ebx"; 397 &sub($num,8); 402 &and($num,7); 447 $num="ebp"; 482 &and($num,7); 519 $num="ebp"; 554 &and($num,7); [all …]
|
H A D | x86_64-mont.pl | 110 mov ${num}d,${num}d 143 neg $num 146 neg $num # restore $num 374 mov ${num}d,${num}d 398 neg $num 863 shl \$3,${num}d # convert $num to bytes 865 neg $num 885 lea 4096-64(,$num,2),%r10 # 4096-frame-2*$num 1060 shl \$3,${num}d # convert $num to bytes 1062 sub $num,%r10 # -$num [all …]
|
H A D | armv4-mont.pl | 92 $_rp="$num,#12*4"; 159 mov $num,$num,lsl#2 @ rescale $num for byte count 160 sub sp,sp,$num @ alloca(4*num) 162 sub $num,$num,#4 @ "num=num-1" 165 add $num,sp,$num @ $num to point at &tp[num-1] 191 cmp $tp,$num 204 sub $tj,$num,$tj @ "original" $num-1 value 234 cmp $tp,$num 257 add $num,$num,#4 @ $num to point at &tp[num] 285 mov sp,$num [all …]
|
H A D | x86_64-mont5.pl | 99 mov ${num}d,${num}d 130 neg $num # restore $num 503 lea ($num,$num,2),%r10 # 3*$num in bytes 504 neg $num # -$num 1131 lea ($num,$num,2),%r10d # 3*$num 1323 mov $num,$j # $j=$num 2100 neg $num # restore $num 2134 lea ($num,$num,2),%r10 # 3*$num in bytes 2135 neg $num # -$num 2229 neg $num # restore $num [all …]
|
H A D | x86-mont.pl | 56 $num="ebx"; 200 &cmp ($j,$num); 248 &dec ($num); 266 &dec ($num); 270 &mov ($num,$j); 289 &cmp ($i,$num); 335 &cmp ($j,$num); 370 &cmp ($j,$num); 407 &cmp ($j,$num); 438 $sbit=$num; [all …]
|
/openssl/crypto/bn/ |
H A D | bn_ppc.c | 16 const BN_ULONG *np, const BN_ULONG *n0, int num) in bn_mul_mont() argument 19 const BN_ULONG *np, const BN_ULONG *n0, int num); in bn_mul_mont() 24 const BN_ULONG *n0, int num); in bn_mul_mont() 27 const BN_ULONG *n0, int num); in bn_mul_mont() 29 if (num < 4) in bn_mul_mont() 32 if ((num & 3) == 0) in bn_mul_mont() 33 return bn_mul4x_mont_int(rp, ap, bp, np, n0, num); in bn_mul_mont() 44 if (num == 6) { in bn_mul_mont() 46 return bn_mul_mont_300_fixed_n6(rp, ap, bp, np, n0, num); in bn_mul_mont() 48 return bn_mul_mont_fixed_n6(rp, ap, bp, np, n0, num); in bn_mul_mont() [all …]
|
H A D | bn_sparc.c | 17 const BN_ULONG *np, const BN_ULONG *n0, int num) in bn_mul_mont() argument 20 const BN_ULONG *np, const BN_ULONG *n0, int num); in bn_mul_mont() 22 const BN_ULONG *np, const BN_ULONG *n0, int num); in bn_mul_mont() 26 if (!(num & 1) && num >= 6) { in bn_mul_mont() 27 if ((num & 15) == 0 && num <= 64 && in bn_mul_mont() 50 bn_mul_mont_f worker = funcs[num / 16 - 1]; in bn_mul_mont() 57 return bn_mul_mont_vis3(rp, ap, bp, np, n0, num); in bn_mul_mont() 60 return bn_mul_mont_vis3(rp, ap, bp, np, n0, num); in bn_mul_mont() 61 else if (num >= 8 && in bn_mul_mont() 74 return bn_mul_mont_fpu(rp, ap, bp, np, n0, num); in bn_mul_mont() [all …]
|
/openssl/test/ |
H A D | rsa_mp_test.c | 203 BIGNUM *num = NULL; in key2048p3_v2() local 212 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2() 214 || !TEST_int_ne(sk_BIGNUM_push(primes, num), 0) in key2048p3_v2() 220 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0) in key2048p3_v2() 222 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0) in key2048p3_v2() 224 || !TEST_int_ne(sk_BIGNUM_push(exps, num), 0)) in key2048p3_v2() 228 || !TEST_int_ne(sk_BIGNUM_push(coeffs, num), 0) in key2048p3_v2() 259 int num; in test_rsa_mp() local 279 if (!TEST_int_eq(num, clen)) in test_rsa_mp() 282 num = RSA_private_decrypt(num, ctext, ptext, key, RSA_PKCS1_PADDING); in test_rsa_mp() [all …]
|
/openssl/crypto/modes/ |
H A D | cfb128.c | 33 if (*num < 0) { in CRYPTO_cfb128_encrypt() 35 *num = -1; in CRYPTO_cfb128_encrypt() 38 n = *num; in CRYPTO_cfb128_encrypt() 73 *num = n; in CRYPTO_cfb128_encrypt() 87 *num = n; in CRYPTO_cfb128_encrypt() 126 *num = n; in CRYPTO_cfb128_encrypt() 142 *num = n; in CRYPTO_cfb128_encrypt() 155 int n, rem, num; in cfbr_encrypt_block() local 166 num = (nbits + 7) / 8; in cfbr_encrypt_block() 175 num = nbits / 8; in cfbr_encrypt_block() [all …]
|
/openssl/include/openssl/ |
H A D | rand.h | 41 int (*seed) (const void *buf, int num); 42 int (*bytes) (unsigned char *buf, int num); 44 int (*add) (const void *buf, int num, double randomness); 45 int (*pseudorand) (unsigned char *buf, int num); 61 int RAND_bytes(unsigned char *buf, int num); 62 int RAND_priv_bytes(unsigned char *buf, int num); 68 int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, 75 int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num, 93 void RAND_seed(const void *buf, int num); 99 void RAND_add(const void *buf, int num, double randomness); [all …]
|