Lines Matching refs:sig_len
1504 size_t sig_len = 0, shortsig_len = 1; in test_EVP_PKEY_sign() local
1535 || !TEST_int_gt(EVP_PKEY_sign(ctx, NULL, &sig_len, tbs, in test_EVP_PKEY_sign()
1538 sig = OPENSSL_malloc(sig_len); in test_EVP_PKEY_sign()
1543 || !TEST_int_gt(EVP_PKEY_sign(ctx, sig, &sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign()
1547 || !TEST_int_gt(EVP_PKEY_verify(ctx, sig, sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign()
1571 size_t sig_len = 0, shortsig_len = 1; in test_EVP_PKEY_sign_with_app_method() local
1610 || !TEST_int_gt(EVP_PKEY_sign(ctx, NULL, &sig_len, tbs, in test_EVP_PKEY_sign_with_app_method()
1613 sig = OPENSSL_malloc(sig_len); in test_EVP_PKEY_sign_with_app_method()
1618 || !TEST_int_gt(EVP_PKEY_sign(ctx, sig, &sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign_with_app_method()
1622 || !TEST_int_gt(EVP_PKEY_verify(ctx, sig, sig_len, tbs, sizeof(tbs)), in test_EVP_PKEY_sign_with_app_method()
1722 size_t sig_len = 0, sig2_len = 0, shortsig_len = 1; in test_EVP_DigestSignInit() local
1790 if (!TEST_true(EVP_DigestSign(md_ctx, NULL, &sig_len, kMsg, in test_EVP_DigestSignInit()
1792 || !TEST_ptr(sig = OPENSSL_malloc(sig_len))) in test_EVP_DigestSignInit()
1806 if (!TEST_true(EVP_DigestSign(md_ctx, sig, &sig_len, kMsg, in test_EVP_DigestSignInit()
1811 if (!TEST_true(EVP_DigestSignFinal(md_ctx, NULL, &sig_len)) in test_EVP_DigestSignInit()
1812 || !TEST_ptr(sig = OPENSSL_malloc(sig_len)) in test_EVP_DigestSignInit()
1818 || !TEST_true(EVP_DigestSignFinal(md_ctx, sig, &sig_len))) in test_EVP_DigestSignInit()
1845 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_DigestSignInit()
1849 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_DigestSignInit()
1861 if (!TEST_mem_eq(sig, sig_len, sig2, sig2_len)) in test_EVP_DigestSignInit()
2379 size_t sig_len = 0; in test_EVP_SM2() local
2447 if (!TEST_true(EVP_DigestSignFinal(md_ctx, NULL, &sig_len))) in test_EVP_SM2()
2450 if (!TEST_ptr(sig = OPENSSL_malloc(sig_len))) in test_EVP_SM2()
2453 if (!TEST_true(EVP_DigestSignFinal(md_ctx, sig, &sig_len))) in test_EVP_SM2()
2468 if (!TEST_int_gt(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_SM2()
2486 if (!TEST_int_eq(EVP_DigestVerifyFinal(md_ctx_verify, sig, sig_len), 0)) in test_EVP_SM2()