Home
last modified time | relevance | path

Searched refs:md_len (Results 1 – 25 of 25) sorted by relevance

/freebsd/contrib/sendmail/src/
H A Dtlsh.c84 unsigned int md_len; local
97 if (EVP_DigestFinal_ex(mdctx, md_buf, &md_len) != 1)
101 if (md_len > len)
103 (void) memcpy(buf, md_buf, md_len);
104 return (int)md_len;
/freebsd/sys/sys/
H A Dmemdesc.h53 size_t md_len; /* VADDR, PADDR, VMPAGES */ member
76 mem.md_len = len; in memdesc_vaddr()
88 mem.md_len = len; in memdesc_paddr()
146 mem.md_len = len; in memdesc_vmpages()
/freebsd/sys/crypto/openssl/
H A Dossl_sha256.c38 c->md_len = SHA224_DIGEST_LENGTH; in ossl_sha224_init()
54 c->md_len = SHA256_DIGEST_LENGTH; in ossl_sha256_init()
75 switch ((c)->md_len) \
H A Dossl_sha.h43 unsigned int num, md_len; member
63 unsigned int num, md_len; member
H A Dossl_sha512.c45 c->md_len = SHA384_DIGEST_LENGTH; in ossl_sha384_init()
64 c->md_len = SHA512_DIGEST_LENGTH; in ossl_sha512_init()
107 switch (c->md_len) { in ossl_sha512_final()
/freebsd/contrib/ldns/
H A Dtsig.c180 unsigned int md_len = EVP_MAX_MD_SIZE; in ldns_tsig_mac_new() local
252 mac_bytes = LDNS_XMALLOC(unsigned char, md_len+2); in ldns_tsig_mac_new()
257 memset(mac_bytes, 0, md_len+2); in ldns_tsig_mac_new()
263 (size_t) wiresize, mac_bytes + 2, &md_len); in ldns_tsig_mac_new()
265 ldns_write_uint16(mac_bytes, md_len); in ldns_tsig_mac_new()
266 result = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_INT16_DATA, md_len + 2, in ldns_tsig_mac_new()
H A Ddnssec_zone.c1631 size_t md_len = hash == ZONEMD_HASH_SHA384 local
1657 if (!(data = LDNS_XMALLOC(uint8_t, md_len)))
1660 if (!(rdf = ldns_rdf_new(LDNS_RDF_TYPE_HEX, md_len, data)))
/freebsd/crypto/openssl/crypto/hmac/
H A Dhmac.c223 unsigned char *md, unsigned int *md_len) in HMAC() argument
234 if (md_len != NULL) in HMAC()
235 *md_len = (unsigned int)temp_md_len; in HMAC()
/freebsd/crypto/openssl/include/openssl/
H A Dsha.h66 unsigned int num, md_len; member
116 unsigned int num, md_len; member
H A Dhmac.h56 unsigned char *md, unsigned int *md_len);
/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_doit.c700 unsigned int md_len; in do_pkcs7_signed_attrib() local
711 if (!EVP_DigestFinal_ex(mctx, md_data, &md_len)) { in do_pkcs7_signed_attrib()
715 if (!PKCS7_add1_attrib_digest(si, md_data, md_len)) { in do_pkcs7_signed_attrib()
865 unsigned int md_len; in PKCS7_dataFinal() local
869 if (!EVP_DigestFinal_ex(mdc, md_data, &md_len)) in PKCS7_dataFinal()
871 if (!ASN1_OCTET_STRING_set(p7->d.digest->digest, md_data, md_len)) in PKCS7_dataFinal()
1077 unsigned int md_len; in PKCS7_signatureVerify() local
1081 if (!EVP_DigestFinal_ex(mdc_tmp, md_dat, &md_len)) in PKCS7_signatureVerify()
1088 if ((message_digest->length != (int)md_len) || in PKCS7_signatureVerify()
1089 (memcmp(message_digest->data, md_dat, md_len))) { in PKCS7_signatureVerify()
/freebsd/crypto/openssl/crypto/sha/
H A Dsha256.c37 c->md_len = SHA224_DIGEST_LENGTH; in SHA224_Init()
52 c->md_len = SHA256_DIGEST_LENGTH; in SHA256_Init()
83 switch ((c)->md_len) \
93 if ((c)->md_len > SHA256_DIGEST_LENGTH) \
95 for (nn=0;nn<(c)->md_len/4;nn++) \
H A Dsha512.c92 c->md_len = SHA224_DIGEST_LENGTH; in sha512_224_init()
110 c->md_len = SHA256_DIGEST_LENGTH; in sha512_256_init()
128 c->md_len = SHA384_DIGEST_LENGTH; in SHA384_Init()
146 c->md_len = SHA512_DIGEST_LENGTH; in SHA512_Init()
196 switch (c->md_len) { in SHA512_Final()
/freebsd/sys/kern/
H A Dsubr_memdesc.c159 KASSERT(off + size <= mem->md_len, ("copy out of bounds")); in memdesc_copyback()
163 KASSERT(off + size <= mem->md_len, ("copy out of bounds")); in memdesc_copyback()
179 KASSERT(off + size <= mem->md_len, ("copy out of bounds")); in memdesc_copyback()
307 KASSERT(off + size <= mem->md_len, ("copy out of bounds")); in memdesc_copydata()
311 KASSERT(off + size <= mem->md_len, ("copy out of bounds")); in memdesc_copydata()
327 KASSERT(off + size <= mem->md_len, ("copy out of bounds")); in memdesc_copydata()
H A Dsubr_bus_dma.c481 mem->md_len, kernel_pmap, flags, NULL, &nsegs); in bus_dmamap_load_mem()
485 mem->md_len, flags, NULL, &nsegs); in bus_dmamap_load_mem()
505 mem->md_len, mem->md_offset, flags, NULL, &nsegs); in bus_dmamap_load_mem()
H A Dsubr_msan.c1564 kmsan_check(desc->u.md_vaddr, desc->md_len, in kmsan_bus_dmamap_sync()
1580 kmsan_mark(desc->u.md_vaddr, desc->md_len, in kmsan_bus_dmamap_sync()
/freebsd/crypto/openssl/crypto/ct/
H A Dct_sct_ctx.c210 unsigned int md_len; in ct_public_key_hash() local
230 if (!EVP_Digest(der, der_len, md, &md_len, sha256, NULL)) in ct_public_key_hash()
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_lib.c789 size_t md_len; in tls_process_finished() local
824 md_len = s->s3.tmp.peer_finish_md_len; in tls_process_finished()
826 if (md_len != PACKET_remaining(pkt)) { in tls_process_finished()
832 md_len) != 0) { in tls_process_finished()
840 if (!ossl_assert(md_len <= EVP_MAX_MD_SIZE)) { in tls_process_finished()
846 md_len); in tls_process_finished()
847 s->s3.previous_client_finished_len = md_len; in tls_process_finished()
850 md_len); in tls_process_finished()
851 s->s3.previous_server_finished_len = md_len; in tls_process_finished()
H A Dstatem_clnt.c3019 unsigned int md_len; in tls_construct_cke_gost() local
3078 || EVP_DigestFinal_ex(ukm_hash, shared_ukm, &md_len) <= 0) { in tls_construct_cke_gost()
3136 unsigned int md_len; in ossl_gost_ukm() local
3146 || EVP_DigestFinal_ex(hash, dgst_buf, &md_len) <= 0) { in ossl_gost_ukm()
/freebsd/lib/libradius/
H A Dradlib.c154 u_int md_len; in insert_message_authenticator() local
169 HMAC_Final(ctx, md, &md_len); in insert_message_authenticator()
171 memcpy(&h->out[h->authentic_pos + 2], md, md_len); in insert_message_authenticator()
193 u_int md_len; in is_valid_response() local
255 HMAC_Final(hctx, md, &md_len); in is_valid_response()
291 u_int md_len; in is_valid_request() local
346 HMAC_Final(hctx, md, &md_len); in is_valid_request()
/freebsd/contrib/libfido2/fuzz/
H A Dwrap.c438 unsigned int *md_len),
440 (evp_md, key, key_len, d, n, md, md_len),
/freebsd/crypto/openssl/doc/man3/
H A DHMAC.pod25 unsigned char *md, unsigned int *md_len);
67 the output is placed in I<md_len>, unless it is NULL. Note: passing a NULL
H A DEVP_DigestInit.pod690 unsigned int md_len, i;
719 if (!EVP_DigestFinal_ex(mdctx, md_value, &md_len)) {
727 for (i = 0; i < md_len; i++)
/freebsd/crypto/openssl/test/
H A Devp_extra_test.c1668 unsigned int md_len = sizeof(md_value); in test_EVP_md_null() local
1679 || !TEST_true(EVP_DigestFinal_ex(md_ctx, md_value, &md_len))) in test_EVP_md_null()
1682 if (!TEST_uint_eq(md_len, 0)) in test_EVP_md_null()
4727 unsigned int md_len; in test_custom_md_meth() local
4763 || !TEST_true(EVP_DigestFinal_ex(mdctx, md_value, &md_len)) in test_custom_md_meth()
/freebsd/crypto/openssl/
H A DCHANGES.md19232 * Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()