Home
last modified time | relevance | path

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

/openssl/crypto/cms/
H A Dcms_lib.c403 BIO *mdbio = NULL; in ossl_cms_DigestAlgorithm_init_bio() local
427 mdbio = BIO_new(BIO_f_md()); in ossl_cms_DigestAlgorithm_init_bio()
428 if (mdbio == NULL || BIO_set_md(mdbio, digest) <= 0) { in ossl_cms_DigestAlgorithm_init_bio()
433 return mdbio; in ossl_cms_DigestAlgorithm_init_bio()
436 BIO_free(mdbio); in ossl_cms_DigestAlgorithm_init_bio()
H A Dcms_sd.c979 BIO *mdbio; in ossl_cms_SignedData_init_bio() local
982 mdbio = ossl_cms_DigestAlgorithm_init_bio(digestAlgorithm, in ossl_cms_SignedData_init_bio()
984 if (mdbio == NULL) in ossl_cms_SignedData_init_bio()
987 BIO_push(chain, mdbio); in ossl_cms_SignedData_init_bio()
989 chain = mdbio; in ossl_cms_SignedData_init_bio()
/openssl/test/
H A Devp_extra_test.c1725 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local
1741 mdbio = BIO_new(BIO_f_md()); in test_EVP_DigestSignInit()
1742 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1744 BIO_push(mdbio, membio); in test_EVP_DigestSignInit()
1745 if (!TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx), 0)) in test_EVP_DigestSignInit()
1781 if (!BIO_write_ex(mdbio, kMsg, sizeof(kMsg), &written)) in test_EVP_DigestSignInit()
1828 if (!TEST_int_gt(BIO_reset(mdbio), 0) in test_EVP_DigestSignInit()
1829 || !TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx_verify), 0)) in test_EVP_DigestSignInit()
1838 if (!TEST_true(BIO_write_ex(mdbio, kMsg, sizeof(kMsg), &written))) in test_EVP_DigestSignInit()
1869 BIO_free(mdbio); in test_EVP_DigestSignInit()

Completed in 28 milliseconds