Searched refs:mdsize (Results 1 - 15 of 15) sorted by relevance

/freebsd-current/sys/geom/eli/
H A Dg_eli_hmac.c90 g_eli_crypto_hmac_final(struct hmac_ctx *ctx, uint8_t *md, size_t mdsize) argument
102 /* mdsize == 0 means "Give me the whole hash!" */
103 if (mdsize == 0)
104 mdsize = SHA512_MDLEN;
105 bcopy(digest, md, mdsize);
111 size_t datasize, uint8_t *md, size_t mdsize)
117 g_eli_crypto_hmac_final(&ctx, md, mdsize);
110 g_eli_crypto_hmac(const char *hkey, size_t hkeysize, const uint8_t *data, size_t datasize, uint8_t *md, size_t mdsize) argument
H A Dg_eli.h738 void g_eli_crypto_hmac_final(struct hmac_ctx *ctx, uint8_t *md, size_t mdsize);
740 const uint8_t *data, size_t datasize, uint8_t *md, size_t mdsize);
/freebsd-current/crypto/openssl/crypto/evp/
H A Dp5_crpt.c37 int mdsize; local
80 mdsize = EVP_MD_get_size(md);
81 if (mdsize < 0)
97 if (EVP_KDF_derive(kctx, md_tmp, mdsize, params) != 1)
H A Ddigest.c429 size_t mdsize = 0; local
437 mdsize = sz;
446 ret = ctx->digest->dfinal(ctx->algctx, md, &size, mdsize);
461 OPENSSL_assert(mdsize <= EVP_MAX_MD_SIZE);
464 *isize = mdsize;
911 size_t mdsize = 0; local
915 params[1] = OSSL_PARAM_construct_size_t(OSSL_DIGEST_PARAM_SIZE, &mdsize);
921 if (mdsize > INT_MAX || blksz > INT_MAX)
925 md->md_size = (int)mdsize;
/freebsd-current/crypto/openssl/providers/implementations/signature/
H A Dsm2_sig.c86 size_t mdsize; member in struct:__anon68
128 ctx->mdsize = SM3_DIGEST_LENGTH;
174 if (ctx->mdsize != 0 && tbslen != ctx->mdsize)
190 if (ctx->mdsize != 0 && tbslen != ctx->mdsize)
260 if ((z = OPENSSL_zalloc(ctx->mdsize)) == NULL
264 || !EVP_DigestUpdate(ctx->mdctx, z, ctx->mdsize))
403 if (p != NULL && !OSSL_PARAM_set_size_t(p, psm2ctx->mdsize))
432 size_t mdsize; local
[all...]
H A Decdsa_sig.c81 size_t mdsize; member in struct:__anon4187
193 if (ctx->mdsize != 0 && tbslen != ctx->mdsize)
209 if (!ossl_prov_is_running() || (ctx->mdsize != 0 && tbslen != ctx->mdsize))
275 ctx->mdsize = EVP_MD_get_size(ctx->md);
383 ctx->mdsize = 0;
451 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->mdsize))
480 size_t mdsize = 0; local
512 if (!OSSL_PARAM_get_size_t(p, &mdsize)
[all...]
H A Ddsa_sig.c238 size_t mdsize = dsa_get_md_size(pdsactx); local
251 if (mdsize != 0 && tbslen != mdsize)
266 size_t mdsize = dsa_get_md_size(pdsactx); local
268 if (!ossl_prov_is_running() || (mdsize != 0 && tbslen != mdsize))
H A Drsa_sig.c520 size_t mdsize = rsa_get_md_size(prsactx); local
536 if (mdsize != 0) {
537 if (tbslen != mdsize) {
788 size_t mdsize; local
794 mdsize = rsa_get_md_size(prsactx);
795 if (tbslen != mdsize) {
798 mdsize, tbslen);
/freebsd-current/crypto/openssl/crypto/ffc/
H A Dffc_params_generate.c141 int mdsize; local
143 mdsize = EVP_MD_get_size(evpmd);
144 if (mdsize <= 0)
173 || (BN_bin2bn(md, mdsize, tmp) == NULL)
199 int mdsize; local
214 mdsize = EVP_MD_get_size(evpmd);
215 if (mdsize <= 0)
245 || (BN_bin2bn(md, mdsize, tmp) == NULL)
251 || !BN_lshift(tmp, tmp, (mdsize << 3) * j)
321 int mdsize local
520 int mdsize, counter = 0, pcounter = 0, r = 0; local
[all...]
/freebsd-current/sbin/mdmfs/
H A Dmdmfs.c99 intmax_t mdsize; local
123 mdsize = 0;
271 mdsize = (intmax_t)strtoumax(size_arg, &p, 0);
272 if (p == size_arg || (p[0] != 0 && p[1] != 0) || mdsize < 0)
277 mdsize *= 1024;
280 mdsize *= 1024;
283 mdsize *= 1024;
286 mdsize *= 1024;
289 mdsize *= 1024;
294 mdsize *
[all...]
/freebsd-current/crypto/openssl/providers/implementations/kdfs/
H A Dpbkdf1.c56 int mdsize, ret = 0; local
71 mdsize = EVP_MD_size(md_type);
72 if (mdsize < 0)
74 if (n > (size_t)mdsize) {
82 if (!EVP_DigestUpdate(ctx, md_tmp, mdsize))
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dcrypto_os.c106 crypto_mac_final(struct hmac_ctx *ctx, void *md, size_t mdsize) argument
118 /* mdsize == 0 means "Give me the whole hash!" */
119 if (mdsize == 0)
120 mdsize = SHA512_DIGEST_LENGTH;
121 memcpy(md, digest, mdsize);
/freebsd-current/contrib/openbsm/bin/auditdistd/
H A Dproto_tls.c300 unsigned int i, mdsize; local
312 if (X509_digest(cert, EVP_sha256(), md, &mdsize) != 1)
314 PJDLOG_ASSERT(mdsize <= EVP_MAX_MD_SIZE);
320 for (i = 0; i < mdsize; i++) {
/freebsd-current/sys/geom/mirror/
H A Dg_mirror_ctl.c624 off_t mdsize; local
690 mdsize = (sc->sc_type == G_MIRROR_TYPE_AUTOMATIC) ?
692 if (sc->sc_provider->mediasize > pp->mediasize - mdsize) {
/freebsd-current/crypto/openssl/test/
H A Dsslapitest.c80 static SSL_SESSION *create_a_psk(SSL *ssl, size_t mdsize);
3360 static SSL_SESSION *create_a_psk(SSL *ssl, size_t mdsize) argument
3372 if (mdsize == SHA384_DIGEST_LENGTH) {
3374 } else if (mdsize == SHA256_DIGEST_LENGTH) {
3387 || !TEST_true(SSL_SESSION_set1_master_key(sess, key, mdsize))
3404 size_t mdsize)
3444 clientpsk = create_a_psk(*clientssl, mdsize);
3402 setupearly_data_test(SSL_CTX **cctx, SSL_CTX **sctx, SSL **clientssl, SSL **serverssl, SSL_SESSION **sess, int idx, size_t mdsize) argument

Completed in 606 milliseconds