Home
last modified time | relevance | path

Searched refs:mdbio (Results 1 - 5 of 5) sorted by relevance

/third_party/node/deps/openssl/openssl/crypto/cms/
H A Dcms_lib.c411 BIO *mdbio = NULL; in ossl_cms_DigestAlgorithm_init_bio() local
435 mdbio = BIO_new(BIO_f_md()); in ossl_cms_DigestAlgorithm_init_bio()
436 if (mdbio == NULL || BIO_set_md(mdbio, digest) <= 0) { in ossl_cms_DigestAlgorithm_init_bio()
441 return mdbio; in ossl_cms_DigestAlgorithm_init_bio()
444 BIO_free(mdbio); in ossl_cms_DigestAlgorithm_init_bio()
H A Dcms_sd.c929 BIO *mdbio; in ossl_cms_SignedData_init_bio() local
932 mdbio = ossl_cms_DigestAlgorithm_init_bio(digestAlgorithm, in ossl_cms_SignedData_init_bio()
934 if (mdbio == NULL) in ossl_cms_SignedData_init_bio()
937 BIO_push(chain, mdbio); in ossl_cms_SignedData_init_bio()
939 chain = mdbio; in ossl_cms_SignedData_init_bio()
/third_party/openssl/crypto/cms/
H A Dcms_lib.c398 BIO *mdbio = NULL; in ossl_cms_DigestAlgorithm_init_bio() local
422 mdbio = BIO_new(BIO_f_md()); in ossl_cms_DigestAlgorithm_init_bio()
423 if (mdbio == NULL || BIO_set_md(mdbio, digest) <= 0) { in ossl_cms_DigestAlgorithm_init_bio()
428 return mdbio; in ossl_cms_DigestAlgorithm_init_bio()
431 BIO_free(mdbio); in ossl_cms_DigestAlgorithm_init_bio()
H A Dcms_sd.c934 BIO *mdbio; in ossl_cms_SignedData_init_bio() local
937 mdbio = ossl_cms_DigestAlgorithm_init_bio(digestAlgorithm, in ossl_cms_SignedData_init_bio()
939 if (mdbio == NULL) in ossl_cms_SignedData_init_bio()
942 BIO_push(chain, mdbio); in ossl_cms_SignedData_init_bio()
944 chain = mdbio; in ossl_cms_SignedData_init_bio()
/third_party/openssl/test/
H A Devp_extra_test.c1266 BIO *mdbio = NULL, *membio = NULL; in test_EVP_DigestSignInit() local
1282 mdbio = BIO_new(BIO_f_md()); in test_EVP_DigestSignInit()
1283 if (!TEST_ptr(membio) || !TEST_ptr(mdbio)) in test_EVP_DigestSignInit()
1285 BIO_push(mdbio, membio); in test_EVP_DigestSignInit()
1286 if (!TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx), 0)) in test_EVP_DigestSignInit()
1322 if (!BIO_write_ex(mdbio, kMsg, sizeof(kMsg), &written)) in test_EVP_DigestSignInit()
1369 if (!TEST_int_gt(BIO_reset(mdbio), 0) in test_EVP_DigestSignInit()
1370 || !TEST_int_gt(BIO_get_md_ctx(mdbio, &md_ctx_verify), 0)) in test_EVP_DigestSignInit()
1379 if (!TEST_true(BIO_write_ex(mdbio, kMsg, sizeof(kMsg), &written))) in test_EVP_DigestSignInit()
1410 BIO_free(mdbio); in test_EVP_DigestSignInit()
[all...]

Completed in 10 milliseconds