#include "anonymous_tokens/cpp/privacy_pass/rsa_bssa_public_metadata_client.h"
#include <sys/types.h>
#include <memory>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/status/statusor.h"
#include "anonymous_tokens/cpp/crypto/crypto_utils.h"
#include "anonymous_tokens/cpp/privacy_pass/token_encodings.h"
#include "anonymous_tokens/cpp/testing/utils.h"
#include <openssl/digest.h>
namespace anonymous_tokens {
namespace {
class PrivacyPassRsaBssaClientTest : public testing::Test { … };
TEST_F(PrivacyPassRsaBssaClientTest, WrongKeySize) { … }
TEST_F(PrivacyPassRsaBssaClientTest, WrongSizeOfTokenKeyID) { … }
TEST_F(PrivacyPassRsaBssaClientTest, CreateRequestTwice) { … }
TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenWihtoutCreatingRequest) { … }
TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenWithEmptySignature) { … }
TEST_F(PrivacyPassRsaBssaClientTest, FinalizeWrongToken) { … }
TEST_F(PrivacyPassRsaBssaClientTest,
FinalizeTokenWhereCreateRequestHasNoExtensions) { … }
TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenCreatedWithEmptyExtensions) { … }
TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenTwice) { … }
TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenWithWrongClient) { … }
TEST_F(PrivacyPassRsaBssaClientTest, VerifyWithWrongExtensions) { … }
TEST_F(PrivacyPassRsaBssaClientTest, VerifyWithEmptyExtensions) { … }
TEST_F(PrivacyPassRsaBssaClientTest, VerifyWithWrongPublicKey) { … }
TEST_F(PrivacyPassRsaBssaClientTest, TokenCreationAndVerificationSuccess) { … }
}
}