Home
last modified time | relevance | path

Searched refs:size_t (Results 151 – 175 of 1243) sorted by relevance

12345678910>>...50

/openssl/engines/
H A De_devcrypto.c171 size_t i; in find_cipher_data_index()
428 size_t i; in prepare_cipher_methods()
537 size_t i; in rebuild_known_cipher_nids()
572 size_t i; in destroy_all_cipher_methods()
594 size_t i; in devcrypto_select_all_ciphers()
605 size_t i; in cryptodev_select_cipher_cb()
624 size_t i; in dump_cipher_info()
713 size_t i; in find_digest_data_index()
882 size_t i; in rebuild_known_digest_nids()
894 size_t i; in prepare_digest_methods()
[all …]
/openssl/providers/implementations/kdfs/
H A Dsshkdf.c37 const unsigned char *key, size_t key_len,
38 const unsigned char *xcghash, size_t xcghash_len,
40 char type, unsigned char *okey, size_t okey_len);
46 size_t key_len;
48 size_t xcghash_len;
51 size_t session_id_len;
113 static int sshkdf_set_membuf(unsigned char **dst, size_t *dst_len, in sshkdf_set_membuf()
252 const unsigned char *key, size_t key_len, in SSHKDF()
253 const unsigned char *xcghash, size_t xcghash_len, in SSHKDF()
255 char type, unsigned char *okey, size_t okey_len) in SSHKDF()
[all …]
H A Dkrb5kdf.c47 const unsigned char *key, size_t key_len,
49 unsigned char *okey, size_t okey_len);
55 size_t key_len;
57 size_t constant_len;
195 size_t len; in krb5kdf_get_ctx_params()
358 if (key_len != (size_t)klen) { in cipher_init()
377 const unsigned char *key, size_t key_len, in KRB5KDF()
379 unsigned char *okey, size_t okey_len) in KRB5KDF()
384 size_t blocksize; in KRB5KDF()
385 size_t cipherlen; in KRB5KDF()
[all …]
/openssl/test/
H A Dconstant_time_test.c22 static const size_t CONSTTIME_TRUE_S = ~((size_t)0);
23 static const size_t CONSTTIME_FALSE_S = 0;
45 static size_t test_values_s[] = {
84 static int test_binary_op_s(size_t (*op) (size_t a, size_t b), in test_binary_op_s()
85 const char *op_name, size_t a, size_t b, in test_binary_op_s()
148 size_t a = test_values_s[i]; in test_is_zero_s()
184 static int test_select_s(size_t a, size_t b) in test_select_s()
228 static int test_eq_s(size_t a, size_t b) in test_eq_s()
308 size_t a = test_values_s[i]; in test_binops_s()
313 size_t b = test_values_s[j]; in test_binops_s()
[all …]
/openssl/providers/implementations/kem/
H A Decx_kem.c56 size_t ikmlen;
257 size_t tmplen = 0; in ecxkem_set_ctx_params()
299 size_t kemctxlen) in dhkem_extract_and_expand()
303 size_t prklen = okmlen; /* Nh */ in dhkem_extract_and_expand()
393 size_t seedlen = ikmlen; in derivekey()
439 unsigned char *out, size_t maxout, in generate_ecxdhkm()
442 size_t len = 0; in generate_ecxdhkm()
482 size_t kemctxlen = 0, dhkmlen = 0; in derive_secret()
485 size_t encodedkeylen = info->Npk; in derive_secret()
546 unsigned char *enc, size_t *enclen, in dhkem_encap()
[all …]
H A Drsa_kem.c65 static int name2id(const char *name, const OSSL_ITEM *map, size_t sz) in name2id()
67 size_t i; in name2id()
246 unsigned char *out, size_t *outlen, in rsasve_generate()
247 unsigned char *secret, size_t *secretlen) in rsasve_generate()
250 size_t nlen; in rsasve_generate()
294 unsigned char *out, size_t *outlen, in rsasve_recover()
295 const unsigned char *in, size_t inlen) in rsasve_recover()
297 size_t nlen; in rsasve_recover()
321 unsigned char *secret, size_t *secretlen) in rsakem_generate()
333 static int rsakem_recover(void *vprsactx, unsigned char *out, size_t *outlen, in rsakem_recover()
[all …]
/openssl/doc/man3/
H A DOPENSSL_malloc.pod30 void *OPENSSL_malloc(size_t num);
31 void *OPENSSL_aligned_alloc(size_t num, size_t alignment, void **freeptr);
32 void *OPENSSL_zalloc(size_t num);
33 void *OPENSSL_realloc(void *addr, size_t num);
37 size_t OPENSSL_strlcat(char *dst, const char *src, size_t size);
38 size_t OPENSSL_strlcpy(char *dst, const char *src, size_t size);
39 void *OPENSSL_memdup(void *data, size_t s);
40 void *OPENSSL_clear_realloc(void *p, size_t old_len, size_t num);
42 void OPENSSL_cleanse(void *ptr, size_t len);
45 void *CRYPTO_aligned_alloc(size_t num, size_t align, void **freeptr,
[all …]
/openssl/providers/implementations/ciphers/
H A Dciphercommon_gcm_hw.c14 int ossl_gcm_setiv(PROV_GCM_CTX *ctx, const unsigned char *iv, size_t ivlen) in ossl_gcm_setiv()
21 size_t aad_len) in ossl_gcm_aad_update()
27 size_t len, unsigned char *out) in ossl_gcm_cipher_update()
51 int ossl_gcm_one_shot(PROV_GCM_CTX *ctx, unsigned char *aad, size_t aad_len, in ossl_gcm_one_shot()
52 const unsigned char *in, size_t in_len, in ossl_gcm_one_shot()
53 unsigned char *out, unsigned char *tag, size_t tag_len) in ossl_gcm_one_shot()
H A Dcipher_aes_xts_hw.c21 size_t bytes = keylen / 2; \
22 size_t bits = bytes * 8; \
40 size_t keylen) in cipher_hw_aes_xts_generic_initkey()
103 const unsigned char *key, size_t keylen) in cipher_hw_aesni_xts_initkey()
126 const unsigned char *key, size_t keylen) in cipher_hw_aes_xts_t4_initkey()
166 size_t keylen) in cipher_hw_aes_xts_rv64i_zknd_zkne_initkey()
179 PROV_CIPHER_CTX *ctx, const unsigned char *key, size_t keylen) in cipher_hw_aes_xts_rv64i_zvbb_zvkg_zvkned_initkey()
202 size_t keylen) in cipher_hw_aes_xts_rv64i_zvkned_initkey()
252 size_t keylen) in cipher_hw_aes_xts_rv32i_zknd_zkne_initkey()
264 size_t keylen) in cipher_hw_aes_xts_rv32i_zbkb_zknd_zkne_initkey()
[all …]
H A Dcipher_des.c31 static void *des_newctx(void *provctx, size_t kbits, size_t blkbits, in des_newctx()
32 size_t ivbits, unsigned int mode, uint64_t flags, in des_newctx()
71 static int des_init(void *vctx, const unsigned char *key, size_t keylen, in des_init()
72 const unsigned char *iv, size_t ivlen, in des_init()
104 static int des_einit(void *vctx, const unsigned char *key, size_t keylen, in des_einit()
105 const unsigned char *iv, size_t ivlen, in des_einit()
111 static int des_dinit(void *vctx, const unsigned char *key, size_t keylen, in des_dinit()
112 const unsigned char *iv, size_t ivlen, in des_dinit()
122 size_t kl = ctx->keylen; in des_generatekey()
/openssl/crypto/evp/
H A De_camellia.c41 #define MAXBITCHUNK ((size_t)1<<(sizeof(size_t)*8-4))
116 const unsigned char *in, size_t len);
120 const unsigned char *in, size_t len);
124 const unsigned char *in, size_t len);
128 const unsigned char *in, size_t len);
132 const unsigned char *in, size_t len);
136 const unsigned char *in, size_t len);
140 const unsigned char *in, size_t len);
221 const unsigned char *in, size_t len) in camellia_cbc_cipher()
239 size_t bl = EVP_CIPHER_CTX_get_block_size(ctx); in camellia_ecb_cipher()
[all …]
H A Devp_rand.c556 size_t addin_len) in evp_rand_generate_locked()
558 size_t chunk, max_request = 0; in evp_rand_generate_locked()
609 const unsigned char *ent, size_t ent_len, in EVP_RAND_reseed()
610 const unsigned char *addin, size_t addin_len) in EVP_RAND_reseed()
645 size_t outlen) in evp_rand_nonce_locked()
701 static size_t evp_rand_get_seed_locked(EVP_RAND_CTX *ctx, in evp_rand_get_seed_locked()
704 size_t min_len, size_t max_len, in evp_rand_get_seed_locked()
707 size_t adin_len) in evp_rand_get_seed_locked()
717 size_t evp_rand_get_seed(EVP_RAND_CTX *ctx, in evp_rand_get_seed()
719 int entropy, size_t min_len, size_t max_len, in evp_rand_get_seed()
[all …]
/openssl/crypto/sm2/
H A Dsm2_crypt.c47 static size_t ec_field_size(const EC_GROUP *group)
60 size_t i; in is_all_zeros()
70 size_t *pt_size) in ossl_sm2_plaintext_size()
88 size_t msg_len, size_t *ct_size) in ossl_sm2_ciphertext_size()
92 size_t sz; in ossl_sm2_ciphertext_size()
109 const uint8_t *msg, size_t msg_len, in ossl_sm2_encrypt()
113 size_t i; in ossl_sm2_encrypt()
130 size_t field_size; in ossl_sm2_encrypt()
257 *ciphertext_len = (size_t)ciphertext_leni; in ossl_sm2_encrypt()
290 const size_t field_size = ec_field_size(group); in ossl_sm2_decrypt()
[all …]
/openssl/crypto/bio/
H A Dbio_lib.c262 static int bio_read_intern(BIO *b, void *data, size_t dlen, size_t *readbytes) in bio_read_intern()
305 size_t readbytes; in BIO_read()
321 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes) in BIO_read_ex()
372 size_t written; in BIO_write()
388 int BIO_write_ex(BIO *b, const void *data, size_t dlen, size_t *written) in BIO_write_ex()
395 size_t stride, size_t num_msg, uint64_t flags, in BIO_sendmmsg()
398 size_t ret; in BIO_sendmmsg()
442 size_t stride, size_t num_msg, uint64_t flags, in BIO_recvmmsg()
445 size_t ret; in BIO_recvmmsg()
501 size_t written = 0; in BIO_puts()
[all …]
/openssl/include/openssl/
H A Dwhrlpool.h43 size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)];
49 const void *inp, size_t bytes);
51 const void *inp, size_t bits);
53 OSSL_DEPRECATEDIN_3_0 unsigned char *WHIRLPOOL(const void *inp, size_t bytes,
H A Dcamellia.h73 size_t length,
79 size_t length,
86 size_t length,
93 size_t length,
100 size_t length,
106 size_t length, const CAMELLIA_KEY *key,
H A Dparam_build.h42 size_t val);
50 const BIGNUM *bn, size_t sz);
52 const char *buf, size_t bsize);
54 char *buf, size_t bsize);
56 const void *buf, size_t bsize);
58 void *buf, size_t bsize);
/openssl/providers/implementations/rands/
H A Ddrbg_ctr.c47 size_t keylen;
53 size_t bltmp_pos;
75 size_t i, n; in ctr_XOR()
161 size_t left = 16 - ctr->bltmp_pos; in ctr_BCC_update()
204 size_t inlen; in ctr_df()
331 size_t pstr_len, in drbg_ctr_instantiate_wrapper()
463 (void *vdrbg, unsigned char *out, size_t outlen, in drbg_ctr_generate_wrapper()
465 const unsigned char *adin, size_t adin_len) in drbg_ctr_generate_wrapper()
560 size_t keylen; in drbg_ctr_init()
731 size_t ctr_str_len = sizeof("CTR") - 1; in drbg_ctr_set_ctx_params_locked()
[all …]
/openssl/crypto/conf/
H A Dconf_ssl.c28 size_t cmd_count;
39 static size_t ssl_names_count;
43 size_t i, j; in ssl_module_free()
63 size_t i, j, cnt; in ssl_module_init()
138 const SSL_CONF_CMD *conf_ssl_get(size_t idx, const char **name, size_t *cnt) in conf_ssl_get()
150 int conf_ssl_name_find(const char *name, size_t *idx) in conf_ssl_name_find()
152 size_t i; in conf_ssl_name_find()
172 void conf_ssl_get_cmd(const SSL_CONF_CMD *cmd, size_t idx, char **cmdstr, in conf_ssl_get_cmd()
/openssl/crypto/buffer/
H A Dbuffer.c56 static char *sec_alloc_realloc(BUF_MEM *str, size_t len) in sec_alloc_realloc()
71 size_t BUF_MEM_grow(BUF_MEM *str, size_t len) in BUF_MEM_grow()
74 size_t n; in BUF_MEM_grow()
107 size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len) in BUF_MEM_grow_clean()
110 size_t n; in BUF_MEM_grow_clean()
144 void BUF_reverse(unsigned char *out, const unsigned char *in, size_t size) in BUF_reverse()
146 size_t i; in BUF_reverse()
/openssl/include/crypto/
H A Dsiphash.h23 size_t SipHash_ctx_size(void);
24 size_t SipHash_hash_size(SIPHASH *ctx);
25 int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size);
28 void SipHash_Update(SIPHASH *ctx, const unsigned char *in, size_t inlen);
29 int SipHash_Final(SIPHASH *ctx, unsigned char *out, size_t outlen);
/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c143 size_t bytes_needed; in ossl_pool_acquire_entropy()
217 size_t done = 0; in sysctl_random()
218 size_t len; in sysctl_random()
564 size_t i; in ossl_rand_pool_init()
574 size_t i; in ossl_rand_pool_cleanup()
627 size_t entropy_available = 0; in ossl_pool_acquire_entropy()
633 size_t bytes_needed; in ossl_pool_acquire_entropy()
659 size_t bytes_needed; in ossl_pool_acquire_entropy()
661 size_t i; in ossl_pool_acquire_entropy()
712 size_t bytes_needed; in ossl_pool_acquire_entropy()
[all …]
/openssl/crypto/dh/
H A Ddh_kdf.c27 int ossl_dh_kdf_X9_42_asn1(unsigned char *out, size_t outlen, in ossl_dh_kdf_X9_42_asn1()
28 const unsigned char *Z, size_t Zlen, in ossl_dh_kdf_X9_42_asn1()
30 const unsigned char *ukm, size_t ukmlen, in ossl_dh_kdf_X9_42_asn1()
65 int DH_KDF_X9_42(unsigned char *out, size_t outlen, in DH_KDF_X9_42()
66 const unsigned char *Z, size_t Zlen, in DH_KDF_X9_42()
68 const unsigned char *ukm, size_t ukmlen, const EVP_MD *md) in DH_KDF_X9_42()
/openssl/crypto/chacha/
H A Dchacha_ppc.c18 size_t len, const unsigned int key[8],
21 size_t len, const unsigned int key[8],
24 size_t len, const unsigned int key[8],
27 size_t len, const unsigned int key[8],
30 size_t len, const unsigned int key[8], in ChaCha20_ctr32()
/openssl/crypto/sha/
H A Dsha1_one.c23 unsigned char *ossl_sha1(const unsigned char *d, size_t n, unsigned char *md) in ossl_sha1()
38 unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md) in SHA1()
47 unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md) in SHA224()
56 unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md) in SHA256()
65 unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md) in SHA384()
74 unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md) in SHA512()

Completed in 176 milliseconds

12345678910>>...50