Home
last modified time | relevance | path

Searched refs:mdbio (Results 1 – 3 of 3) sorted by relevance

/freebsd/crypto/openssl/crypto/cms/
H A Dcms_lib.c404 BIO *mdbio = NULL; in ossl_cms_DigestAlgorithm_init_bio() local
429 mdbio = BIO_new(BIO_f_md()); in ossl_cms_DigestAlgorithm_init_bio()
430 if (mdbio == NULL || BIO_set_md(mdbio, digest) <= 0) { in ossl_cms_DigestAlgorithm_init_bio()
443 if (BIO_get_md_ctx(mdbio, &mdctx) <= 0 || mdctx == NULL) in ossl_cms_DigestAlgorithm_init_bio()
453 return mdbio; in ossl_cms_DigestAlgorithm_init_bio()
456 BIO_free(mdbio); in ossl_cms_DigestAlgorithm_init_bio()
H A Dcms_sd.c1025 BIO *mdbio; in ossl_cms_SignedData_init_bio() local
1028 mdbio = ossl_cms_DigestAlgorithm_init_bio(digestAlgorithm, in ossl_cms_SignedData_init_bio()
1030 if (mdbio == NULL) in ossl_cms_SignedData_init_bio()
1033 BIO_push(chain, mdbio); in ossl_cms_SignedData_init_bio()
1035 chain = mdbio; in ossl_cms_SignedData_init_bio()
/freebsd/crypto/openssl/test/
H A Devp_extra_test.c1867 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local
1883 mdbio = BIO_new(BIO_f_md()); in test_EVP_DigestSignInit()
1884 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1886 BIO_push(mdbio, membio); in test_EVP_DigestSignInit()
1887 if (!TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx), 0)) in test_EVP_DigestSignInit()
1923 if (!BIO_write_ex(mdbio, kMsg, sizeof(kMsg), &written)) in test_EVP_DigestSignInit()
1970 if (!TEST_int_gt(BIO_reset(mdbio), 0) in test_EVP_DigestSignInit()
1971 || !TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx_verify), 0)) in test_EVP_DigestSignInit()
1980 if (!TEST_true(BIO_write_ex(mdbio, kMsg, sizeof(kMsg), &written))) in test_EVP_DigestSignInit()
2011 BIO_free(mdbio); in test_EVP_DigestSignInit()