Skip to content
Snippets Groups Projects
Commit 571a7261 authored by Thai Duong's avatar Thai Duong Committed by Tink Team
Browse files

Always use the latest Tink configs during registration.

Instead of

Config.register(AeadConfig.TINK_1_1_0);

We'd do

AeadConfig.register();

I kept the static init blocks in AeadConfig, but it's only for backward compatibility. We'd always require users calling the init function. This gives us consistency across all languages.

I also deprecated TINK_1_1_0 and introduced LATEST which contains the configs of the latest version.

Advanced users can always do Config.register(myCustomConfig);

PiperOrigin-RevId: 203125864
GitOrigin-RevId: cd138962f88ff693e9c13cef3399f956f6d6513e
parent dc91bb34
No related branches found
No related tags found
No related merge requests found
Showing
with 394 additions and 113 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment