| /freebsd/crypto/krb5/src/lib/crypto/openssl/ |
| H A D | hmac.c | 135 size_t i = 0, md_len; in krb5int_hmac_keyblock() local 163 ok = ok && EVP_MAC_final(ctx, (uint8_t *)output->data, &md_len, in krb5int_hmac_keyblock() 167 output->length = md_len; in krb5int_hmac_keyblock() 183 unsigned int i = 0, md_len = 0, ok; in krb5int_hmac_keyblock() local 212 ok = HMAC_Final(ctx, md, &md_len); in krb5int_hmac_keyblock() 213 if (ok && md_len <= output->length) { in krb5int_hmac_keyblock() 214 output->length = md_len; in krb5int_hmac_keyblock()
|
| H A D | cmac.c | 50 size_t i = 0, md_len; in krb5int_cmac_checksum() local 81 ok = ok && EVP_MAC_final(ctx, (unsigned char *)output->data, &md_len, in krb5int_cmac_checksum() 85 output->length = md_len; in krb5int_cmac_checksum()
|
| /freebsd/contrib/sendmail/src/ |
| H A D | tlsh.c | 84 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 D | memdesc.h | 53 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 D | ossl_sha256.c | 38 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 D | ossl_sha.h | 43 unsigned int num, md_len; member 63 unsigned int num, md_len; member
|
| H A D | ossl_sha512.c | 45 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/crypto/openssl/ssl/ |
| H A D | s3_enc.c | 94 size_t md_len; in ssl3_change_cipher_state() local 121 md_len = (size_t)mdi; in ssl3_change_cipher_state() 127 n = md_len + md_len; in ssl3_change_cipher_state() 133 n = md_len; in ssl3_change_cipher_state() 135 n += md_len + key_len; in ssl3_change_cipher_state() 151 md_len, ciph, 0, NID_undef, md, comp, NULL)) { in ssl3_change_cipher_state()
|
| /freebsd/contrib/ldns/ |
| H A D | tsig.c | 180 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()
|
| /freebsd/crypto/openssl/crypto/slh_dsa/ |
| H A D | slh_dsa.c | 54 size_t md_len = MD_LEN(params); /* The size of the digest |md| */ in slh_sign_internal() local 103 || !PACKET_get_bytes(rpkt, &md, md_len) in slh_sign_internal() 168 size_t md_len = MD_LEN(params); /* 21..40 bytes */ in slh_verify_internal() local 203 || !PACKET_get_bytes(m_digest_rpkt, &md, md_len) in slh_verify_internal()
|
| /freebsd/crypto/openssl/crypto/sha/ |
| H A D | sha256.c | 38 c->md_len = SHA224_DIGEST_LENGTH; in SHA224_Init() 53 c->md_len = SHA256_DIGEST_LENGTH; in SHA256_Init() 60 c->md_len = SHA256_192_DIGEST_LENGTH; in ossl_sha256_192_init() 92 switch ((c)->md_len) { \ 112 if ((c)->md_len > SHA256_DIGEST_LENGTH) \ 114 for (nn = 0; nn < (c)->md_len / 4; nn++) { \
|
| H A D | sha512.c | 88 c->md_len = SHA224_DIGEST_LENGTH; in sha512_224_init() 106 c->md_len = SHA256_DIGEST_LENGTH; in sha512_256_init() 124 c->md_len = SHA384_DIGEST_LENGTH; in SHA384_Init() 142 c->md_len = SHA512_DIGEST_LENGTH; in SHA512_Init() 196 switch (c->md_len) { in SHA512_Final()
|
| /freebsd/crypto/openssl/crypto/hmac/ |
| H A D | hmac.c | 252 unsigned char *md, unsigned int *md_len) in HMAC() argument 263 if (md_len != NULL) in HMAC() 264 *md_len = (unsigned int)temp_md_len; in HMAC()
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | sha.h | 66 unsigned int num, md_len; member 117 unsigned int num, md_len; member
|
| H A D | hmac.h | 56 unsigned char *md, unsigned int *md_len);
|
| /freebsd/crypto/openssl/crypto/rsa/ |
| H A D | rsa_pk1.c | 291 unsigned int md_len; in ossl_rsa_prf() local 352 md_len = SHA256_DIGEST_LENGTH; in ossl_rsa_prf() 354 if (HMAC_Final(hmac, hmac_out, &md_len) <= 0) { in ossl_rsa_prf() 360 if (HMAC_Final(hmac, to + pos, &md_len) <= 0) { in ossl_rsa_prf()
|
| /freebsd/crypto/openssl/crypto/pkcs7/ |
| H A D | pk7_doit.c | 736 unsigned int md_len; in do_pkcs7_signed_attrib() local 747 if (!EVP_DigestFinal_ex(mctx, md_data, &md_len)) { in do_pkcs7_signed_attrib() 751 if (!PKCS7_add1_attrib_digest(si, md_data, md_len)) { in do_pkcs7_signed_attrib() 908 unsigned int md_len; in PKCS7_dataFinal() local 912 if (!EVP_DigestFinal_ex(mdc, md_data, &md_len)) in PKCS7_dataFinal() 914 if (!ASN1_OCTET_STRING_set(p7->d.digest->digest, md_data, md_len)) in PKCS7_dataFinal() 1126 unsigned int md_len; in PKCS7_signatureVerify() local 1130 if (!EVP_DigestFinal_ex(mdc_tmp, md_dat, &md_len)) in PKCS7_signatureVerify() 1137 … if ((message_digest->length != (int)md_len) || (memcmp(message_digest->data, md_dat, md_len))) { in PKCS7_signatureVerify()
|
| /freebsd/sys/kern/ |
| H A D | subr_memdesc.c | 159 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 D | subr_bus_dma.c | 481 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()
|
| /freebsd/crypto/openssl/crypto/ct/ |
| H A D | ct_sct_ctx.c | 206 unsigned int md_len; in ct_public_key_hash() local 226 if (!EVP_Digest(der, der_len, md, &md_len, sha256, NULL)) in ct_public_key_hash()
|
| /freebsd/lib/libradius/ |
| H A D | radlib.c | 154 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/crypto/openssl/ssl/statem/ |
| H A D | statem_lib.c | 845 size_t md_len; in tls_process_finished() local 885 md_len = s->s3.tmp.peer_finish_md_len; in tls_process_finished() 887 if (md_len != PACKET_remaining(pkt)) { in tls_process_finished() 893 md_len); in tls_process_finished() 909 if (!ossl_assert(md_len <= EVP_MAX_MD_SIZE)) { in tls_process_finished() 915 md_len); in tls_process_finished() 916 s->s3.previous_client_finished_len = md_len; in tls_process_finished() 919 md_len); in tls_process_finished() 920 s->s3.previous_server_finished_len = md_len; in tls_process_finished()
|
| /freebsd/contrib/libfido2/fuzz/ |
| H A D | wrap.c | 438 unsigned int *md_len), 440 (evp_md, key, key_len, d, n, md, md_len),
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | HMAC.pod | 25 unsigned char *md, unsigned int *md_len); 67 the output is placed in I<md_len>, unless it is NULL. Note: passing a NULL
|
| /freebsd/crypto/openssl/fuzz/ |
| H A D | provider.c | 552 unsigned int md_len; in do_evp_md() local 573 if (!EVP_DigestFinal_ex(mdctx, md_value, &md_len)) { in do_evp_md()
|