#include "net/cert/x509_util.h"
#include <algorithm>
#include <memory>
#include "base/memory/raw_span.h"
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "crypto/rsa_private_key.h"
#include "crypto/signature_verifier.h"
#include "net/cert/x509_certificate.h"
#include "net/test/cert_test_util.h"
#include "net/test/key_util.h"
#include "net/test/test_data_directory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/boringssl/src/include/openssl/evp.h"
#include "third_party/boringssl/src/include/openssl/rsa.h"
namespace net::x509_util {
TEST(X509UtilTest, CreateKeyAndSelfSigned) { … }
TEST(X509UtilTest, CreateSelfSigned) { … }
TEST(X509UtilTest, CreateChannelBindings_SHA1) { … }
TEST(X509UtilTest, CreateChannelBindings_SHA256) { … }
TEST(X509UtilTest, CreateChannelBindings_SHA384) { … }
TEST(X509UtilTest, CreateChannelBindings_SHA512) { … }
TEST(X509UtilTest, CreateChannelBindings_Unsupported_MD4) { … }
namespace {
bool DigestSign(EVP_PKEY* key,
const EVP_MD* md,
base::span<const uint8_t> data,
bool is_pss,
std::vector<uint8_t>* digest) { … }
}
TEST(X509UtilTest, SignatureVerifierInitWithCertificate) { … }
TEST(X509UtilTest, HasRsaPkcs1Sha1Signature) { … }
}