Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Register the AES GCM Proto Serialization.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 503181061
  • Loading branch information
ise-crypto authored and Copybara-Service committed Jan 19, 2023
1 parent 934a5ec commit 311ec9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public Map<String, KeyFactory.KeyFormat<AesGcmKeyFormat>> keyFormats()

public static void register(boolean newKeyAllowed) throws GeneralSecurityException {
Registry.registerKeyManager(new AesGcmKeyManager(), newKeyAllowed);
AesGcmProtoSerialization.register();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ java_library(
name = "aes_gcm_key_manager",
srcs = ["AesGcmKeyManager.java"],
deps = [
":aes_gcm_proto_serialization",
"//proto:aes_gcm_java_proto",
"//proto:tink_java_proto",
"//src/main/java/com/google/crypto/tink:aead",
Expand Down Expand Up @@ -433,6 +434,7 @@ android_library(
name = "aes_gcm_key_manager-android",
srcs = ["AesGcmKeyManager.java"],
deps = [
":aes_gcm_proto_serialization-android",
"//proto:aes_gcm_java_proto_lite",
"//proto:tink_java_proto_lite",
"//src/main/java/com/google/crypto/tink:aead-android",
Expand Down

0 comments on commit 311ec9f

Please sign in to comment.