chromium/third_party/boringssl/src/pki/verify_signed_data_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {};

// Reads test data from |file_name| and runs VerifySignedData() over its
// inputs.
//
// If expected_result was SUCCESS then the test will only succeed if
// VerifySignedData() returns true.
//
// If expected_result was FAILURE then the test will only succeed if
// VerifySignedData() returns false.
void RunTestCase(VerifyResult expected_result, const char *file_name,
                 SignatureVerifyCache *cache) {}

void RunTestCase(VerifyResult expected_result, const char *file_name) {}

// Read the descriptions in the test files themselves for details on what is
// being tested.

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) {}

}  // namespace

BSSL_NAMESPACE_END