Lines Matching refs:sig_len

102     size_t sig_len;  in sig_gen()  local
106 sig_len = sz; in sig_gen()
111 || !TEST_int_gt(EVP_DigestSign(md_ctx, sig, &sig_len, msg, msg_len), 0)) in sig_gen()
114 *sig_out_len = sig_len; in sig_gen()
234 static int get_ecdsa_sig_rs_bytes(const unsigned char *sig, size_t sig_len, in get_ecdsa_sig_rs_bytes() argument
242 ECDSA_SIG *sign = d2i_ECDSA_SIG(NULL, &sig, sig_len); in get_ecdsa_sig_rs_bytes()
279 size_t sig_len = 0, rlen = 0, slen = 0; in ecdsa_siggen_test() local
288 &sig, &sig_len)) in ecdsa_siggen_test()
289 || !TEST_true(get_ecdsa_sig_rs_bytes(sig, sig_len, &r, &s, &rlen, &slen))) in ecdsa_siggen_test()
309 size_t sig_len; in ecdsa_sigver_test() local
325 if (!TEST_int_gt((sig_len = i2d_ECDSA_SIG(sign, &sig)), 0) in ecdsa_sigver_test()
331 || !TEST_int_eq(EVP_DigestVerify(md_ctx, sig, sig_len, in ecdsa_sigver_test()
743 static int get_dsa_sig_rs_bytes(const unsigned char *sig, size_t sig_len, in get_dsa_sig_rs_bytes() argument
751 DSA_SIG *sign = d2i_DSA_SIG(NULL, &sig, sig_len); in get_dsa_sig_rs_bytes()
788 size_t sig_len = 0, rlen = 0, slen = 0; in dsa_siggen_test() local
798 &sig, &sig_len)) in dsa_siggen_test()
799 || !TEST_true(get_dsa_sig_rs_bytes(sig, sig_len, &r, &s, &rlen, &slen))) in dsa_siggen_test()
819 size_t sig_len; in dsa_sigver_test() local
847 if (!TEST_int_gt((sig_len = i2d_DSA_SIG(sign, &sig)), 0) in dsa_sigver_test()
850 || !TEST_int_eq(EVP_PKEY_verify(ctx, sig, sig_len, digest, digest_len), in dsa_sigver_test()
1407 size_t sig_len = 0, n_len = 0, e_len = 0; in rsa_siggen_test() local
1433 &sig, &sig_len))) in rsa_siggen_test()
1437 test_output_memory("sig", sig, sig_len); in rsa_siggen_test()
1480 || !TEST_int_eq(EVP_DigestVerify(md_ctx, tst->sig, tst->sig_len, in rsa_sigver_test()