/openssl/ssl/quic/ |
H A D | qlog.c | 16 #define BITS_PER_WORD (sizeof(size_t) * 8) 26 size_t mask = (((size_t)1) << (bit_no % BITS_PER_WORD)); in bit_set() 38 size_t enabled[NUM_ENABLED_W]; 111 size_t i, l, strl; in ossl_qlog_new_from_env() 581 if ((size_t)(lex->term_end - lex->p) != s_len) in lex_match() 616 size_t expect_cat_l = strlen(expect_cat); in filter_match_event() 617 size_t expect_event_l = strlen(expect_event); in filter_match_event() 636 static void filter_apply(size_t *enabled, int add, in filter_apply() 659 static int validate_name(const char **p, size_t *l) in validate_name() 662 size_t i, l_ = *l; in validate_name() [all …]
|
/openssl/providers/implementations/signature/ |
H A D | sm2_sig.c | 81 size_t aid_len; 86 size_t mdsize; 90 size_t id_len; 163 size_t sigsize, const unsigned char *tbs, size_t tbslen) in sm2sig_sign() 169 size_t ecsize = ECDSA_size(ctx->ec); in sm2sig_sign() 176 if (sigsize < (size_t)ecsize) in sm2sig_sign() 278 size_t datalen) in sm2sig_digest_signverify_update() 290 size_t sigsize) in sm2sig_digest_sign_final() 314 size_t siglen) in sm2sig_digest_verify_final() 440 size_t mdsize; in sm2sig_set_ctx_params() [all …]
|
/openssl/include/crypto/ |
H A D | siv.h | 21 int ossl_siv128_aad(SIV128_CONTEXT *ctx, const unsigned char *aad, size_t len); 23 const unsigned char *in, unsigned char *out, size_t len); 25 const unsigned char *in, unsigned char *out, size_t len); 28 size_t len); 29 int ossl_siv128_get_tag(SIV128_CONTEXT *ctx, unsigned char *tag, size_t len);
|
/openssl/crypto/ |
H A D | cpuid.c | 184 int CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) in CRYPTO_memcmp() 186 size_t i; in CRYPTO_memcmp() 205 size_t OPENSSL_instrument_bus(unsigned int *out, size_t cnt) in OPENSSL_instrument_bus() 210 size_t OPENSSL_instrument_bus2(unsigned int *out, size_t cnt, size_t max) in OPENSSL_instrument_bus2()
|
H A D | passphrase.c | 35 size_t passphrase_len) in ossl_pw_set_passphrase() 116 static int do_ui_passphrase(char *pass, size_t pass_size, size_t *pass_len, in do_ui_passphrase() 189 *pass_len = (size_t)res; in do_ui_passphrase() 204 int ossl_pw_get_passphrase(char *pass, size_t pass_size, size_t *pass_len, in ossl_pw_get_passphrase() 209 size_t source_len = 0; in ossl_pw_get_passphrase() 311 size_t password_len = 0; in ossl_pw_get_password() 318 if (ossl_pw_get_passphrase(buf, (size_t)size, &password_len, params, in ossl_pw_get_password() 334 int ossl_pw_passphrase_callback_enc(char *pass, size_t pass_size, in ossl_pw_passphrase_callback_enc() 335 size_t *pass_len, in ossl_pw_passphrase_callback_enc() 341 int ossl_pw_passphrase_callback_dec(char *pass, size_t pass_size, in ossl_pw_passphrase_callback_dec() [all …]
|
H A D | asn1_dsa.c | 39 int ossl_encode_der_length(WPACKET *pkt, size_t cont_len) in ossl_encode_der_length() 69 size_t cont_len; in ossl_encode_der_integer() 109 size_t cont_len; in ossl_encode_der_dsa_sig() 163 return PACKET_get_sub_packet(pkt, subpkt, (size_t)byte); in ossl_decode_der_length() 233 size_t ossl_decode_der_dsa_sig(BIGNUM *r, BIGNUM *s, in ossl_decode_der_dsa_sig() 234 const unsigned char **ppin, size_t len) in ossl_decode_der_dsa_sig() 236 size_t consumed; in ossl_decode_der_dsa_sig()
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_chacha20_poly1305_hw.c | 16 unsigned char *aad, size_t alen) in chacha_poly1305_tls_init() 80 size_t noncelen = CHACHA20_POLY1305_IVLEN; in chacha20_poly1305_initiv() 119 size_t *out_padlen, in chacha20_poly1305_tls_cipher() 124 size_t tail, tohash_len, buf_len, plen = ctx->tls_payload_length; in chacha20_poly1305_tls_cipher() 129 buf = storage + ((0 - (size_t)storage) & 15); /* align */ in chacha20_poly1305_tls_cipher() 153 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher() 158 size_t i; in chacha20_poly1305_tls_cipher() 273 size_t rem, plen = ctx->tls_payload_length; in chacha20_poly1305_aead_cipher() 274 size_t olen = 0; in chacha20_poly1305_aead_cipher() 343 if ((rem = (size_t)ctx->len.aad % POLY1305_BLOCK_SIZE)) in chacha20_poly1305_aead_cipher() [all …]
|
H A D | cipher_aes_ocb_hw.c | 34 size_t keylen) in cipher_hw_aes_ocb_generic_initkey() 66 size_t keylen) in cipher_hw_aes_ocb_aesni_initkey() 89 size_t keylen) in cipher_hw_aes_ocb_t4_initkey() 111 size_t keylen) in cipher_hw_aes_ocb_rv64i_zknd_zkne_initkey() 122 size_t keylen) in cipher_hw_aes_ocb_rv64i_zvkned_initkey() 159 size_t keylen) in cipher_hw_aes_ocb_rv32i_zknd_zkne_initkey() 170 size_t keylen) in cipher_hw_aes_ocb_rv32i_zbkb_zknd_zkne_initkey() 203 const PROV_CIPHER_HW *ossl_prov_cipher_hw_aes_ocb(size_t keybits) in PROV_CIPHER_HW_declare()
|
H A D | cipher_aes_siv.c | 30 static void *aes_siv_newctx(void *provctx, size_t keybits, unsigned int mode, in aes_siv_newctx() 77 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, in siv_init() 78 const unsigned char *iv, size_t ivlen, in siv_init() 99 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, in siv_einit() 100 const unsigned char *iv, size_t ivlen, in siv_einit() 106 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in siv_dinit() 107 const unsigned char *iv, size_t ivlen, in siv_dinit() 113 static int siv_cipher(void *vctx, unsigned char *out, size_t *outl, in siv_cipher() 114 size_t outsize, const unsigned char *in, size_t inl) in siv_cipher() 144 size_t outsize) in siv_stream_final() [all …]
|
H A D | cipher_blowfish.h | 21 const PROV_CIPHER_HW *ossl_prov_cipher_hw_blowfish_cbc(size_t keybits); 22 const PROV_CIPHER_HW *ossl_prov_cipher_hw_blowfish_ecb(size_t keybits); 23 const PROV_CIPHER_HW *ossl_prov_cipher_hw_blowfish_ofb64(size_t keybits); 24 const PROV_CIPHER_HW *ossl_prov_cipher_hw_blowfish_cfb64(size_t keybits);
|
H A D | cipher_cast.h | 21 const PROV_CIPHER_HW *ossl_prov_cipher_hw_cast5_cbc(size_t keybits); 22 const PROV_CIPHER_HW *ossl_prov_cipher_hw_cast5_ecb(size_t keybits); 23 const PROV_CIPHER_HW *ossl_prov_cipher_hw_cast5_ofb64(size_t keybits); 24 const PROV_CIPHER_HW *ossl_prov_cipher_hw_cast5_cfb64(size_t keybits);
|
H A D | cipher_idea.h | 21 const PROV_CIPHER_HW *ossl_prov_cipher_hw_idea_cbc(size_t keybits); 22 const PROV_CIPHER_HW *ossl_prov_cipher_hw_idea_ecb(size_t keybits); 23 const PROV_CIPHER_HW *ossl_prov_cipher_hw_idea_ofb64(size_t keybits); 24 const PROV_CIPHER_HW *ossl_prov_cipher_hw_idea_cfb64(size_t keybits);
|
H A D | cipher_seed.h | 21 const PROV_CIPHER_HW *ossl_prov_cipher_hw_seed_cbc(size_t keybits); 22 const PROV_CIPHER_HW *ossl_prov_cipher_hw_seed_ecb(size_t keybits); 23 const PROV_CIPHER_HW *ossl_prov_cipher_hw_seed_ofb128(size_t keybits); 24 const PROV_CIPHER_HW *ossl_prov_cipher_hw_seed_cfb128(size_t keybits);
|
H A D | cipher_rc5.h | 22 const PROV_CIPHER_HW *ossl_prov_cipher_hw_rc5_cbc(size_t keybits); 23 const PROV_CIPHER_HW *ossl_prov_cipher_hw_rc5_ecb(size_t keybits); 24 const PROV_CIPHER_HW *ossl_prov_cipher_hw_rc5_ofb64(size_t keybits); 25 const PROV_CIPHER_HW *ossl_prov_cipher_hw_rc5_cfb64(size_t keybits);
|
/openssl/test/ |
H A D | quicfaultstest.c | 30 size_t msglen = strlen(msg); in test_basic() 32 size_t bytesread; in test_basic() 71 unsigned char *buf, size_t len, void *cbarg) in add_unknown_frame_cb() 73 static size_t done = 0; in add_unknown_frame_cb() 98 size_t msglen = strlen(msg); in test_unknown_frame() 100 size_t byteswritten; in test_unknown_frame() 166 size_t eelen, void *encextcbarg) in drop_extensions_cb() 236 buf[(size_t)test_random() % len] ^= 0xff; in on_packet_cipher_cb() 242 static int on_datagram_cb(QTEST_FAULT *fault, BIO_MSG *m, size_t stride, in on_datagram_cb() 268 size_t msglen = strlen(msg); in test_corrupted_data() [all …]
|
H A D | asn1_encode_test.c | 92 size_t nbytes1; 94 size_t nbytes2; 153 size_t encode_expectations_size; 154 size_t encode_expectations_elem_size; 161 size_t encdec_data_size; 162 size_t encdec_data_elem_size; 532 if ((size_t)len != expected_len in do_encode() 566 static size_t der_encode_length(size_t len, unsigned char **pp) in der_encode_length() 568 size_t lenbytes; in der_encode_length() 600 size_t i; in make_custom_der() [all …]
|
/openssl/providers/implementations/kem/ |
H A D | rsa_kem.c | 64 static int name2id(const char *name, const OSSL_ITEM *map, size_t sz) in name2id() 66 size_t i; in name2id() 267 unsigned char *out, size_t *outlen, in rsasve_generate() 268 unsigned char *secret, size_t *secretlen) in rsasve_generate() 271 size_t nlen; in rsasve_generate() 315 unsigned char *out, size_t *outlen, in rsasve_recover() 316 const unsigned char *in, size_t inlen) in rsasve_recover() 318 size_t nlen; in rsasve_recover() 342 unsigned char *secret, size_t *secretlen) in rsakem_generate() 354 static int rsakem_recover(void *vprsactx, unsigned char *out, size_t *outlen, in rsakem_recover() [all …]
|
/openssl/ssl/statem/ |
H A D | statem_dtls.c | 112 size_t written; in dtls1_do_write() 113 size_t curr_mtu; in dtls1_do_write() 327 size_t msg_len; in dtls_get_message() 328 size_t tmplen; in dtls_get_message() 601 size_t readbytes; in dtls1_reassemble_fragment() 711 size_t readbytes; in dtls1_process_out_of_seq_message() 809 size_t readbytes; in dtls_get_reassembled_message() 1016 size_t len; in dtls_wait_for_dry() 1249 size_t frag_off, size_t frag_len) in dtls1_set_message_header() 1264 size_t frag_off, size_t frag_len) in dtls1_set_message_header_int() [all …]
|
H A D | extensions_srvr.c | 612 size_t clnt_num_groups, srvr_num_groups; in tls_parse_ctos_key_share() 735 size_t rawlen, hmaclen, hrrlen, ciphlen; in tls_parse_ctos_cookie() 1028 size_t binderoffset; in tls_parse_ctos_psk() 1053 size_t idlen; in tls_parse_ctos_psk() 1364 size_t plistlen; in tls_construct_stoc_ec_pt_formats() 1386 size_t numgroups, i, first = 1; in tls_construct_stoc_supported_groups() 1644 size_t encoded_pt_len = 0; in tls_construct_stoc_key_share() 1732 size_t ctlen = 0; in tls_construct_stoc_key_share() 2024 size_t i; in reconcile_cert_type() 2041 size_t len; in tls_parse_ctos_client_cert_type() [all …]
|
H A D | extensions_clnt.c | 145 size_t num_groups, j; in use_ecc() 188 size_t num_formats; in tls_construct_ctos_ec_pt_formats() 287 size_t ticklen; in tls_construct_ctos_session_ticket() 328 size_t salglen; in tls_construct_ctos_sig_algs() 633 size_t encodedlen; in add_key_share() 690 size_t i, num_groups = 0; in tls_construct_ctos_key_share() 783 size_t idlen = 0; in tls_construct_ctos_early_data() 804 size_t psklen = 0; in tls_construct_ctos_early_data() 951 size_t hlen; in tls_construct_ctos_padding() 1263 size_t ilen; in tls_parse_stoc_renegotiate() [all …]
|
/openssl/crypto/bio/ |
H A D | bss_bio.c | 67 size_t size; 111 size_t size = size_; in bio_read() 112 size_t rest; in bio_read() 158 size_t chunk; in bio_read() 270 size_t num = num_; in bio_write() 271 size_t rest; in bio_write() 308 size_t write_offset; in bio_write() 309 size_t chunk; in bio_write() 348 size_t num; in bio_nwrite0() 349 size_t write_offset; in bio_nwrite0() [all …]
|
/openssl/crypto/evp/ |
H A D | pbe_scrypt.c | 37 int EVP_PBE_scrypt_ex(const char *pass, size_t passlen, in EVP_PBE_scrypt_ex() 38 const unsigned char *salt, size_t saltlen, in EVP_PBE_scrypt_ex() 40 unsigned char *key, size_t keylen, in EVP_PBE_scrypt_ex() 90 int EVP_PBE_scrypt(const char *pass, size_t passlen, in EVP_PBE_scrypt() 91 const unsigned char *salt, size_t saltlen, in EVP_PBE_scrypt() 93 unsigned char *key, size_t keylen) in EVP_PBE_scrypt()
|
/openssl/include/internal/ |
H A D | sslconf.h | 16 const SSL_CONF_CMD *conf_ssl_get(size_t idx, const char **name, size_t *cnt); 17 int conf_ssl_name_find(const char *name, size_t *idx); 18 void conf_ssl_get_cmd(const SSL_CONF_CMD *cmd, size_t idx, char **cmdstr,
|
/openssl/providers/implementations/kdfs/ |
H A D | sshkdf.c | 38 const unsigned char *key, size_t key_len, 39 const unsigned char *xcghash, size_t xcghash_len, 41 char type, unsigned char *okey, size_t okey_len); 47 size_t key_len; 49 size_t xcghash_len; 52 size_t session_id_len; 118 static int sshkdf_set_membuf(unsigned char **dst, size_t *dst_len, in sshkdf_set_membuf() 338 const unsigned char *key, size_t key_len, in SSHKDF() 339 const unsigned char *xcghash, size_t xcghash_len, in SSHKDF() 341 char type, unsigned char *okey, size_t okey_len) in SSHKDF() [all …]
|
/openssl/demos/encrypt/ |
H A D | rsa_encrypt.c | 42 size_t data_len; in get_key() 97 const unsigned char *in, size_t in_len, in do_encrypt() 98 unsigned char **out, size_t *out_len) in do_encrypt() 101 size_t buf_len = 0; in do_encrypt() 154 static int do_decrypt(OSSL_LIB_CTX *libctx, const unsigned char *in, size_t in_len, in do_decrypt() 155 unsigned char **out, size_t *out_len) in do_decrypt() 158 size_t buf_len = 0; in do_decrypt() 216 size_t msg_len = sizeof(msg) - 1; in main() 217 size_t encrypted_len = 0, decrypted_len = 0; in main()
|