/openssl/providers/implementations/digests/ |
H A D | blake2b_prov.c | 273 if (datalen > fill) { in ossl_blake2b_update() 279 datalen -= fill; in ossl_blake2b_update() 281 if (datalen > BLAKE2B_BLOCKBYTES) { in ossl_blake2b_update() 282 size_t stashlen = datalen % BLAKE2B_BLOCKBYTES; in ossl_blake2b_update() 288 datalen -= stashlen; in ossl_blake2b_update() 289 blake2b_compress(c, in, datalen); in ossl_blake2b_update() 290 in += datalen; in ossl_blake2b_update() 291 datalen = stashlen; in ossl_blake2b_update() 295 assert(datalen <= BLAKE2B_BLOCKBYTES); in ossl_blake2b_update() 297 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2b_update() [all …]
|
H A D | blake2s_prov.c | 261 if (datalen > fill) { in ossl_blake2s_update() 267 datalen -= fill; in ossl_blake2s_update() 269 if (datalen > BLAKE2S_BLOCKBYTES) { in ossl_blake2s_update() 270 size_t stashlen = datalen % BLAKE2S_BLOCKBYTES; in ossl_blake2s_update() 276 datalen -= stashlen; in ossl_blake2s_update() 277 blake2s_compress(c, in, datalen); in ossl_blake2s_update() 278 in += datalen; in ossl_blake2s_update() 279 datalen = stashlen; in ossl_blake2s_update() 283 assert(datalen <= BLAKE2S_BLOCKBYTES); in ossl_blake2s_update() 285 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2s_update() [all …]
|
H A D | null_prov.c | 23 static int null_update(NULLMD_CTX *ctx, const void *data, size_t datalen) in null_update() argument
|
/openssl/test/ |
H A D | dtlsv1listentest.c | 298 long datalen; in dtls_listen_test() local 322 datalen = BIO_get_mem_data(outbio, &data); in dtls_listen_test() 326 || !TEST_mem_eq(data, datalen, verify, sizeof(verify))) in dtls_listen_test() 328 } else if (datalen == 0) { in dtls_listen_test()
|
/openssl/demos/http3/ |
H A D | ossl-nghttp3-demo.c | 53 const uint8_t *data, size_t datalen, in on_recv_data() argument 59 while (datalen > 0) { in on_recv_data() 60 wr = fwrite(data, 1, datalen, stdout); in on_recv_data() 65 datalen -= wr; in on_recv_data()
|
H A D | ossl-nghttp3.c | 147 const uint8_t *data, size_t datalen, in h3_conn_recv_data() argument 152 conn->consumed_app_data += datalen; in h3_conn_recv_data() 156 return conn->recv_data_cb(h3conn, stream_id, data, datalen, in h3_conn_recv_data()
|
/openssl/crypto/pkcs12/ |
H A D | p12_decr.c | 22 unsigned char **data, int *datalen, int en_de, in PKCS12_pbe_crypt_ex() argument 111 if (datalen) in PKCS12_pbe_crypt_ex() 112 *datalen = outlen; in PKCS12_pbe_crypt_ex() 124 unsigned char **data, int *datalen, int en_de) in PKCS12_pbe_crypt() argument 126 return PKCS12_pbe_crypt_ex(algor, pass, passlen, in, inlen, data, datalen, in PKCS12_pbe_crypt()
|
/openssl/providers/implementations/macs/ |
H A D | gmac_prov.c | 127 size_t datalen) in gmac_update() argument 133 if (datalen == 0) in gmac_update() 136 while (datalen > INT_MAX) { in gmac_update() 140 datalen -= INT_MAX; in gmac_update() 142 return EVP_EncryptUpdate(ctx, NULL, &outlen, data, datalen); in gmac_update()
|
H A D | hmac_prov.c | 214 size_t datalen) in hmac_update() argument 222 if (datalen != sizeof(macctx->tls_header)) in hmac_update() 224 memcpy(macctx->tls_header, data, datalen); in hmac_update() 229 if (macctx->tls_data_size < datalen) in hmac_update() 237 datalen, in hmac_update() 244 return HMAC_Update(macctx->ctx, data, datalen); in hmac_update()
|
H A D | poly1305_prov.c | 108 size_t datalen) in poly1305_update() argument 113 if (datalen == 0) in poly1305_update() 117 Poly1305_Update(&ctx->poly1305, data, datalen); in poly1305_update()
|
H A D | blake2_mac_impl.c | 124 const unsigned char *data, size_t datalen) in blake2_mac_update() argument 128 if (datalen == 0) in blake2_mac_update() 131 return BLAKE2_UPDATE(&macctx->ctx, data, datalen); in blake2_mac_update()
|
H A D | siphash_prov.c | 127 size_t datalen) in siphash_update() argument 131 if (datalen == 0) in siphash_update() 134 SipHash_Update(&ctx->siphash, data, datalen); in siphash_update()
|
H A D | cmac_prov.c | 184 size_t datalen) in cmac_update() argument 188 return CMAC_Update(macctx->ctx, data, datalen); in cmac_update()
|
/openssl/crypto/bio/ |
H A D | bio_dump.c | 130 int datalen) in BIO_hex_string() argument 135 if (datalen < 1) in BIO_hex_string() 138 for (i = 0; i < datalen - 1; i++) { in BIO_hex_string() 152 BIO_printf(out, "%02X", d[datalen - 1]); in BIO_hex_string()
|
/openssl/ssl/quic/ |
H A D | quic_rx_depack.c | 265 uint64_t *datalen) in depack_do_frame_crypto() argument 271 *datalen = 0; in depack_do_frame_crypto() 321 *datalen = f.len; in depack_do_frame_crypto() 498 uint64_t *datalen) in depack_do_frame_stream() argument 506 *datalen = 0; in depack_do_frame_stream() 637 *datalen = frame_data.len; in depack_do_frame_stream() 1069 uint64_t datalen = 0; in depack_process_frames() local 1172 if (!depack_do_frame_crypto(pkt, ch, parent_pkt, ackm_data, &datalen)) in depack_process_frames() 1206 frame_type, &datalen)) in depack_process_frames() 1397 framelen -= (size_t)datalen; in depack_process_frames()
|
H A D | quic_tls.c | 362 size_t *datalen, uint16_t *epoch, in quic_read_record() argument 370 if (!rl->qtls->args.crypto_recv_rcd_cb(data, datalen, in quic_read_record() 376 if (*datalen == 0) { in quic_read_record() 384 rl->recread = rl->recunreleased = *datalen; in quic_read_record() 403 dummyrec[3] = (unsigned char)((*datalen >> 8) & 0xff); in quic_read_record() 404 dummyrec[4] = (unsigned char)(*datalen & 0xff); in quic_read_record()
|
/openssl/ssl/ |
H A D | tls13_enc.c | 36 const unsigned char *data, size_t datalen, in tls13_hkdf_expand_ex() argument 85 datalen); in tls13_hkdf_expand_ex() 102 const unsigned char *data, size_t datalen, in tls13_hkdf_expand() argument 109 secret, label, labellen, data, datalen, in tls13_hkdf_expand() 842 unsigned int hashsize, datalen; in tls13_export_keying_material() local 855 || EVP_DigestFinal_ex(ctx, data, &datalen) <= 0 in tls13_export_keying_material() 858 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material() 882 unsigned int hashsize, datalen; in tls13_export_keying_material_early() local 917 || EVP_DigestFinal_ex(ctx, data, &datalen) <= 0 in tls13_export_keying_material_early() 920 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material_early()
|
/openssl/crypto/evp/ |
H A D | mac_lib.c | 121 int EVP_MAC_update(EVP_MAC_CTX *ctx, const unsigned char *data, size_t datalen) in EVP_MAC_update() argument 123 return ctx->meth->update(ctx->algctx, data, datalen); in EVP_MAC_update() 243 const unsigned char *data, size_t datalen, in EVP_Q_mac() argument 282 && EVP_MAC_update(ctx, data, datalen) in EVP_Q_mac()
|
H A D | pmeth_lib.c | 986 int datalen) in evp_pkey_ctx_set1_octet_string() argument 998 return EVP_PKEY_CTX_ctrl(ctx, -1, op, ctrl, datalen, (void *)(data)); in evp_pkey_ctx_set1_octet_string() 1001 if (datalen < 0) { in evp_pkey_ctx_set1_octet_string() 1012 (size_t)datalen); in evp_pkey_ctx_set1_octet_string() 1021 int datalen) in evp_pkey_ctx_add1_octet_string() argument 1038 return EVP_PKEY_CTX_ctrl(ctx, -1, op, ctrl, datalen, (void *)(data)); in evp_pkey_ctx_add1_octet_string() 1041 if (datalen < 0) { in evp_pkey_ctx_add1_octet_string() 1044 } else if (datalen == 0) { in evp_pkey_ctx_add1_octet_string() 1052 data, datalen); in evp_pkey_ctx_add1_octet_string() 1065 info_alloc = os_params[0].return_size + datalen; in evp_pkey_ctx_add1_octet_string() [all …]
|
/openssl/providers/implementations/include/prov/ |
H A D | blake2.h | 99 int ossl_blake2b_update(BLAKE2B_CTX *c, const void *data, size_t datalen); 122 int ossl_blake2s_update(BLAKE2S_CTX *c, const void *data, size_t datalen);
|
/openssl/doc/man3/ |
H A D | PKCS12_PBE_keyivgen.pod | 22 unsigned char **data, int *datalen, 27 unsigned char **data, int *datalen, 46 returned in I<*data> of length I<datalen>. The operation is determined by I<en_de>,
|
H A D | OSSL_DECODER_from_bio.pod | 84 size_t datalen = sizeof(buffer); 96 if (OSSL_DECODER_from_data(dctx, &data, &datalen)) {
|
H A D | OSSL_ENCODER_to_bio.pod | 92 size_t datalen; 106 if (OSSL_ENCODER_to_data(ectx, &data, &datalen)) {
|
/openssl/providers/implementations/signature/ |
H A D | mac_legacy_sig.c | 141 size_t datalen) in mac_digest_sign_update() argument 148 return EVP_MAC_update(pmacctx->macctx, data, datalen); in mac_digest_sign_update()
|
/openssl/include/internal/ |
H A D | recordmethod.h | 235 uint8_t *type, const unsigned char **data, size_t *datalen,
|