Home
last modified time | relevance | path

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

12

/freebsd/crypto/openssl/crypto/evp/
H A Dbio_ok.c438 int md_size; in sig_out() local
460 ctx->buf_len += md_size; in sig_out()
466 ctx->buf_len += md_size; in sig_out()
482 int md_size; in sig_in() local
499 longswap(md_data, md_size); in sig_in()
500 ctx->buf_off += md_size; in sig_in()
507 ctx->buf_off += md_size; in sig_in()
531 int md_size; in block_out() local
548 ctx->buf_len += md_size; in block_out()
562 int md_size; in block_in() local
[all …]
H A Dlegacy_sha.c32 return fn##_init(EVP_MD_CTX_get0_md_data(ctx), tag, ctx->digest->md_size * 8); \
45 return fn##_init(EVP_MD_CTX_get0_md_data(ctx), tag, ctx->digest->md_size * 8); \
82 ctx->md_size = p1; in shake_ctrl()
H A Devp_lib.c809 return md->md_size; in EVP_MD_get_size()
876 if (md->md_size != 0) in EVP_MD_meth_set_result_size()
879 md->md_size = resultsize; in EVP_MD_meth_set_result_size()
958 return md->md_size; in EVP_MD_meth_get_result_size()
/freebsd/crypto/openssl/ssl/
H A Ds3_cbc.c174 size_t md_size, md_block_size = 64; in ssl3_cbc_digest_record() local
211 md_size = 16; in ssl3_cbc_digest_record()
221 md_size = 20; in ssl3_cbc_digest_record()
228 md_size = 224 / 8; in ssl3_cbc_digest_record()
235 md_size = 32; in ssl3_cbc_digest_record()
242 md_size = 384 / 8; in ssl3_cbc_digest_record()
251 md_size = 64; in ssl3_cbc_digest_record()
266 || !ossl_assert(md_size <= EVP_MAX_MD_SIZE)) in ssl3_cbc_digest_record()
303 max_mac_bytes = len - md_size - 1; in ssl3_cbc_digest_record()
478 for (j = 0; j < md_size; j++) in ssl3_cbc_digest_record()
[all …]
/freebsd/sys/geom/multipath/
H A Dg_multipath.h65 uint64_t md_size; /* absolute size of provider */ member
88 le64enc(data, md->md_size); in multipath_metadata_encode()
89 data += sizeof(md->md_size); in multipath_metadata_encode()
106 md->md_size = le64dec(data); in multipath_metadata_decode()
107 data += sizeof(md->md_size); in multipath_metadata_decode()
H A Dg_multipath.c312 (md.md_size != 0 && md.md_size != size) || in g_multipath_resize()
327 md.md_size = size; in g_multipath_resize()
558 sc->sc_size = md->md_size; in g_multipath_create()
568 if (md->md_size != 0) { in g_multipath_create()
569 pp->mediasize = md->md_size - in g_multipath_create()
852 if (md.md_size != 0 && md.md_size != pp->mediasize) in g_multipath_taste()
1138 md.md_size = 0; in g_multipath_ctl_create()
1206 md.md_size = pp->mediasize; in g_multipath_ctl_configure()
/freebsd/libexec/rc/
H A Drc.initdiskless222 md_size=10240
224 md_size=`eval echo \\$md_size_$1`
226 log create_md $1 with size $md_size
227 mount_md $md_size /$1
318 [ -f $j/md_size ] && eval md_size_$subdir=`cat $j/md_size`
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_mutl.c91 int md_size = 0; in pkcs12_gen_mac() local
130 md_size = EVP_MD_get_size(md); in pkcs12_gen_mac()
132 if (md_size < 0) in pkcs12_gen_mac()
138 md_size = TK26_MAC_KEY_LEN; in pkcs12_gen_mac()
140 md_size, key, md)) { in pkcs12_gen_mac()
147 iter, md_size, key, md)) { in pkcs12_gen_mac()
154 iter, md_size, key, md, in pkcs12_gen_mac()
163 || !HMAC_Init_ex(hmac, key, md_size, md, NULL) in pkcs12_gen_mac()
/freebsd/crypto/openssl/crypto/sha/
H A Dsha3.c28 ctx->md_size = bitlen / 8; in ossl_sha3_init()
41 ctx->md_size *= 2; in ossl_keccak_kmac_init()
92 if (ctx->md_size == 0) in ossl_sha3_final()
106 SHA3_squeeze(ctx->A, md, ctx->md_size, bsz); in ossl_sha3_final()
/freebsd/sys/geom/cache/
H A Dg_cache.h103 uint32_t md_size; /* Cache size. */ member
115 le32enc(data + 40, md->md_size); in cache_metadata_encode()
127 md->md_size = le32dec(data + 40); in cache_metadata_decode()
H A Dg_cache.c487 if (md->md_size < 100) { in g_cache_create()
518 sc->sc_maxent = md->md_size; in g_cache_create()
742 md.md_size = (u_int)*size; in g_cache_ctl_create()
831 md.md_size = (u_int)*size; in g_cache_ctl_configure()
833 md.md_size = sc->sc_maxent; in g_cache_ctl_configure()
/freebsd/stand/common/
H A Dmodinfo.c97 COPY32(mm->md_size, a, c); \
99 archsw.arch_copyin(mm->md_data, a, mm->md_size);\
102 a += MOD_ALIGN(mm->md_size); \
H A Dbootstrap.h202 size_t md_size; member
/freebsd/crypto/openssl/providers/implementations/digests/
H A Dsha3_prov.c116 *outl = ctx->md_size; in keccak_final()
166 memcpy(md, ctx->A, ctx->md_size); in s390x_sha3_final()
176 s390x_klmd(ctx->buf, ctx->bufsz, md, ctx->md_size, ctx->pad, ctx->A); in s390x_shake_final()
293 if (p != NULL && !OSSL_PARAM_get_size_t(p, &ctx->md_size)) { in shake_set_ctx_params()
/freebsd/crypto/openssl/ssl/record/
H A Dssl3_record.c1328 size_t md_size; in n_ssl3_mac() local
1345 md_size = t; in n_ssl3_mac()
1346 npad = (48 / md_size) * md_size; in n_ssl3_mac()
1370 memcpy(header + j, mac_sec, md_size); in n_ssl3_mac()
1371 j += md_size; in n_ssl3_mac()
1382 md, &md_size, in n_ssl3_mac()
1385 mac_sec, md_size, 1) <= 0) in n_ssl3_mac()
1410 || EVP_DigestUpdate(md_ctx, md, md_size) <= 0 in n_ssl3_mac()
1427 size_t md_size; in tls1_mac() local
1449 md_size = t; in tls1_mac()
[all …]
/freebsd/crypto/openssl/crypto/sm2/
H A Dsm2_sign.c148 const int md_size = EVP_MD_get_size(digest); in sm2_compute_msg_hash() local
155 if (md_size < 0) { in sm2_compute_msg_hash()
160 z = OPENSSL_zalloc(md_size); in sm2_compute_msg_hash()
178 || !EVP_DigestUpdate(hash, z, md_size) in sm2_compute_msg_hash()
186 e = BN_bin2bn(z, md_size, NULL); in sm2_compute_msg_hash()
H A Dsm2_crypt.c92 const int md_size = EVP_MD_get_size(digest); in ossl_sm2_ciphertext_size() local
95 if (field_size == 0 || md_size < 0) in ossl_sm2_ciphertext_size()
100 + ASN1_object_size(0, md_size, V_ASN1_OCTET_STRING) in ossl_sm2_ciphertext_size()
/freebsd/crypto/openssl/providers/implementations/rands/
H A Dcrngt.c36 unsigned int *md_size) in crngt_get_entropy() argument
44 r = EVP_Digest(p, CRNGT_BUFSIZ, md, md_size, digest, NULL); in crngt_get_entropy()
/freebsd/lib/geom/cache/
H A Dgeom_cache.c152 md.md_size = val; in cache_label()
208 printf(" Cache size: %u\n", (u_int)md->md_size); in cache_metadata_dump()
/freebsd/crypto/openssl/include/internal/
H A Dsha3.h37 size_t md_size; /* output length, variable in XOF */ member
/freebsd/contrib/netbsd-tests/dev/md/
H A Dh_mdserv.c74 md.md_size = MDSIZE; in main()
/freebsd/sys/geom/linux_lvm/
H A Dg_linux_lvm.h53 uint64_t md_size; member
/freebsd/tools/tools/nanobsd/
H A Ddefaults.sh553 echo "$NANO_RAM_ETCSIZE" > conf/base/etc/md_size
554 echo "$NANO_RAM_TMPVARSIZE" > conf/base/var/md_size
/freebsd/lib/geom/multipath/
H A Dgeom_multipath.c203 md.md_size = disksize; in mp_label()
/freebsd/tools/tools/nanobsd/dhcpd/
H A Dos-base119 echo 2048 > ${NANO_WORLDDIR}/conf/base/mnt/md_size

12