Lines Matching refs:digest_len
569 DSA_SIG *DSA_do_sign(const uint8_t *digest, size_t digest_len, const DSA *dsa) { in DSA_do_sign() argument
596 if (digest_len > BN_num_bytes(dsa->q)) { in DSA_do_sign()
600 digest_len = BN_num_bytes(dsa->q); in DSA_do_sign()
603 if (BN_bin2bn(digest, digest_len, &m) == NULL) { in DSA_do_sign()
653 int DSA_do_verify(const uint8_t *digest, size_t digest_len, DSA_SIG *sig, in DSA_do_verify() argument
656 if (!DSA_do_check_signature(&valid, digest, digest_len, sig, dsa)) { in DSA_do_verify()
663 size_t digest_len, DSA_SIG *sig, const DSA *dsa) { in DSA_do_check_signature() argument
698 if (digest_len > (q_bits >> 3)) { in DSA_do_check_signature()
702 digest_len = (q_bits >> 3); in DSA_do_check_signature()
705 if (BN_bin2bn(digest, digest_len, &u1) == NULL) { in DSA_do_check_signature()
753 int DSA_sign(int type, const uint8_t *digest, size_t digest_len, in DSA_sign() argument
757 s = DSA_do_sign(digest, digest_len, dsa); in DSA_sign()
768 int DSA_verify(int type, const uint8_t *digest, size_t digest_len, in DSA_verify() argument
771 if (!DSA_check_signature(&valid, digest, digest_len, sig, sig_len, dsa)) { in DSA_verify()
778 size_t digest_len, const uint8_t *sig, size_t sig_len, in DSA_check_signature() argument
801 ret = DSA_do_check_signature(out_valid, digest, digest_len, s, dsa); in DSA_check_signature()