Skip to content

Commit

Permalink
Delete config APIs marked for removal.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 514690513
Change-Id: I3b5f6d0168e1a0860813f4600667236e4d4bcef8
  • Loading branch information
morambro authored and copybara-github committed Mar 7, 2023
1 parent 95edae5 commit 8c98e55
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 143 deletions.
13 changes: 0 additions & 13 deletions tink/aead/aead_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@

namespace crypto {
namespace tink {

// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
using ::google::crypto::tink::RegistryConfig;

// static
const RegistryConfig& AeadConfig::Latest() {
static const RegistryConfig* config = new RegistryConfig();
return *config;
}
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// static
util::Status AeadConfig::Register() {
auto status = MacConfig::Register();
Expand Down
12 changes: 0 additions & 12 deletions tink/aead/aead_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ namespace tink {
//
class AeadConfig {
public:
// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
static constexpr char kCatalogueName[] = "TinkAead";
static constexpr char kPrimitiveName[] = "Aead";

// Returns config of Aead implementations supported
// in the current Tink release.
ABSL_DEPRECATED("This is not supported anymore.")
static const google::crypto::tink::RegistryConfig& Latest();
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// Registers Aead primitive wrapper and key managers for all Aead key types
// from the current Tink release.
static crypto::tink::util::Status Register();
Expand Down
12 changes: 0 additions & 12 deletions tink/daead/deterministic_aead_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@
namespace crypto {
namespace tink {

// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
using google::crypto::tink::RegistryConfig;

// static
const RegistryConfig& DeterministicAeadConfig::Latest() {
static const RegistryConfig* config = new RegistryConfig();
return *config;
}
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// static
util::Status DeterministicAeadConfig::Register() {
// Currently there are no FIPS-validated deterministic AEAD key managers
Expand Down
12 changes: 0 additions & 12 deletions tink/daead/deterministic_aead_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ namespace tink {
//
class DeterministicAeadConfig {
public:
// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
static constexpr char kCatalogueName[] = "TinkDeterministicAead";
static constexpr char kPrimitiveName[] = "DeterministicAead";

// Returns config of DeterministicAead implementations supported
// in the current Tink release.
ABSL_DEPRECATED("This is not supported anymore.")
static const google::crypto::tink::RegistryConfig& Latest();
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// Registers DeterministicAead primitive wrapper and key managers for all
// DeterministicAead key types from the current Tink release.
static crypto::tink::util::Status Register();
Expand Down
13 changes: 0 additions & 13 deletions tink/hybrid/hybrid_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@
namespace crypto {
namespace tink {

// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START

using google::crypto::tink::RegistryConfig;

// static
const RegistryConfig& HybridConfig::Latest() {
static const RegistryConfig* config = new RegistryConfig();
return *config;
}
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// static
util::Status HybridConfig::Register() {
auto status = AeadConfig::Register();
Expand Down
15 changes: 0 additions & 15 deletions tink/hybrid/hybrid_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ namespace tink {
//
class HybridConfig {
public:
// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
static constexpr char kHybridDecryptCatalogueName[] = "TinkHybridDecrypt";
static constexpr char kHybridDecryptPrimitiveName[] = "HybridDecrypt";
static constexpr char kHybridEncryptCatalogueName[] = "TinkHybridEncrypt";
static constexpr char kHybridEncryptPrimitiveName[] = "HybridEncrypt";

// Returns config with implementations of HybridEncrypt and HybridDecrypt
// supported in the current Tink release.
ABSL_DEPRECATED("This is not supported anymore.")
static const google::crypto::tink::RegistryConfig& Latest();

// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// Registers HybridEncrypt and HybridDecrypt primitive wrappers, and key
// managers for all implementations of HybridEncrypt and HybridDecrypt from
// the current Tink release.
Expand Down
9 changes: 0 additions & 9 deletions tink/mac/mac_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ using google::crypto::tink::RegistryConfig;
namespace crypto {
namespace tink {

// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
const RegistryConfig& MacConfig::Latest() {
static const RegistryConfig* config = new RegistryConfig();
return *config;
}
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// static
util::Status MacConfig::Register() {
// Register primitive wrappers.
Expand Down
12 changes: 0 additions & 12 deletions tink/mac/mac_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ namespace tink {
//
class MacConfig {
public:
// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
static constexpr char kCatalogueName[] = "TinkMac";
static constexpr char kPrimitiveName[] = "Mac";

// Returns config of Mac implementations supported
// in the current Tink release.
ABSL_DEPRECATED("This is not supported anymore.")
static const google::crypto::tink::RegistryConfig& Latest();
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// Registers Mac primitive wrapper and key managers for all Mac key types
// from the current Tink release.
static crypto::tink::util::Status Register();
Expand Down
9 changes: 0 additions & 9 deletions tink/signature/signature_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ using google::crypto::tink::RegistryConfig;
namespace crypto {
namespace tink {

// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
const google::crypto::tink::RegistryConfig& SignatureConfig::Latest() {
static const RegistryConfig* config = new RegistryConfig();
return *config;
}
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// static
util::Status SignatureConfig::Register() {
// Register primitive wrappers.
Expand Down
15 changes: 0 additions & 15 deletions tink/signature/signature_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ namespace tink {
//
class SignatureConfig {
public:
// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
static constexpr char kPublicKeySignCatalogueName[] = "TinkPublicKeySign";
static constexpr char kPublicKeyVerifyCatalogueName[] = "TinkPublicKeyVerify";
static constexpr char kPublicKeySignPrimitiveName[] = "PublicKeySign";
static constexpr char kPublicKeyVerifyPrimitiveName[] = "PublicKeyVerify";

// Returns config with implementations of PublicKeySign and PublicKeyVerify
// supported in the current Tink release.
ABSL_DEPRECATED("This is not supported anymore.")
static const google::crypto::tink::RegistryConfig& Latest();

// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// Registers PublicKeySign and PublicKeyVerify primitive wrappers, and key
// managers for all implementations of PublicKeySign and PublicKeyVerify from
// the current Tink release.
Expand Down
9 changes: 0 additions & 9 deletions tink/streamingaead/streaming_aead_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ using google::crypto::tink::RegistryConfig;
namespace crypto {
namespace tink {

// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
const RegistryConfig& StreamingAeadConfig::Latest() {
static const RegistryConfig* config = new RegistryConfig();
return *config;
}
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// static
util::Status StreamingAeadConfig::Register() {
// Register primitive wrapper.
Expand Down
12 changes: 0 additions & 12 deletions tink/streamingaead/streaming_aead_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ namespace tink {
//
class StreamingAeadConfig {
public:
// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
static constexpr char kCatalogueName[] = "TinkStreamingAead";
static constexpr char kPrimitiveName[] = "StreamingAead";

// Returns config of StreamingAead implementations supported
// in the current Tink release.
ABSL_DEPRECATED("This is not supported anymore.")
static const google::crypto::tink::RegistryConfig& Latest();
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

// Registers StreamingAead primitive wrapper and key managers for all
// StreamingAead key types from the current Tink release.
static crypto::tink::util::Status Register();
Expand Down

0 comments on commit 8c98e55

Please sign in to comment.