#include "verify_signed_data.h"
#include <memory>
#include <set>
#include <gtest/gtest.h>
#include <optional>
#include "cert_errors.h"
#include "input.h"
#include "mock_signature_verify_cache.h"
#include "parse_values.h"
#include "parser.h"
#include "signature_algorithm.h"
#include "test_helpers.h"
BSSL_NAMESPACE_BEGIN
namespace {
enum VerifyResult { … };
void RunTestCase(VerifyResult expected_result, const char *file_name,
SignatureVerifyCache *cache) { … }
void RunTestCase(VerifyResult expected_result, const char *file_name) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha1) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha256) { … }
TEST(VerifySignedDataTest, Rsa2048Pkcs1Sha512) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha256KeyEncodedBer) { … }
TEST(VerifySignedDataTest, EcdsaSecp384r1Sha256) { … }
TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512) { … }
TEST(VerifySignedDataTest, RsaPssSha256) { … }
TEST(VerifySignedDataTest, RsaPssSha256WrongSalt) { … }
TEST(VerifySignedDataTest, EcdsaSecp384r1Sha256CorruptedData) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha1WrongAlgorithm) { … }
TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512WrongSignatureFormat) { … }
TEST(VerifySignedDataTest, EcdsaUsingRsaKey) { … }
TEST(VerifySignedDataTest, RsaUsingEcKey) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha1BadKeyDerNull) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha1BadKeyDerLength) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha256UsingEcdsaAlgorithm) { … }
TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512UsingRsaAlgorithm) { … }
TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512UsingEcdhKey) { … }
TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512UsingEcmqvKey) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha1KeyParamsAbsent) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha1UsingPssKeyNoParams) { … }
TEST(VerifySignedDataTest, RsaPssSha256UsingPssKeyWithParams) { … }
TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512SpkiParamsNull) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha256UsingIdEaRsa) { … }
TEST(VerifySignedDataTest, RsaPkcs1Sha256SpkiNonNullParams) { … }
TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512UnusedBitsSignature) { … }
TEST(VerifySignedDataTest, Ecdsa384) { … }
TEST(VerifySignedDataTestWithCache, TestVerifyCache) { … }
}
BSSL_NAMESPACE_END