Searched refs:ecdsa_sig (Results 1 – 1 of 1) sorted by relevance
/external/boringssl/src/crypto/ecdsa/ |
D | ecdsa_test.cc | 74 size_t digest_len, const ECDSA_SIG *ecdsa_sig, in VerifyECDSASig() argument 82 if (!ECDSA_SIG_to_bytes(&der, &der_len, ecdsa_sig)) { in VerifyECDSASig() 91 actual_result = ECDSA_do_verify(digest, digest_len, ecdsa_sig, eckey); in VerifyECDSASig() 104 size_t digest_len, ECDSA_SIG *ecdsa_sig, in TestTamperedSig() argument 111 size_t r_len = BN_num_bytes(ecdsa_sig->r); in TestTamperedSig() 112 size_t s_len = BN_num_bytes(ecdsa_sig->s); in TestTamperedSig() 120 if (!BN_bn2bin_padded(raw_buf.data(), bn_len, ecdsa_sig->r) || in TestTamperedSig() 121 !BN_bn2bin_padded(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)) { in TestTamperedSig() 130 if (BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r) == NULL || in TestTamperedSig() 131 BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s) == NULL || in TestTamperedSig() [all …]
|