Skip to content

Tink C++ AWS KMS Extension 2.0.1

Latest
Compare
Choose a tag to compare
@chuckx chuckx released this 05 Jun 09:23
· 40 commits to main since this release

Tink is a multi-language, cross-platform library that provides simple and misuse-proof APIs for common cryptographic tasks.

This is Tink C++ AWS KMS extension 2.0.1.

What's new

The complete list of changes since 2.0.0 can be found here.

  • Fixed issue with encoding associated data.
    • In 2.0.0, associated data was encoded in a manner incompatible with the other Tink AWS KMS extensions.
    • If you have ciphertexts which were created using 2.0.0 and need the ability to work with them in 2.0.1+, please create an issue.

Usage

To get started using Tink, see the setup guide.

Bazel

workspace(name = "example")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "com_github_tink_crypto_tink_cc",
    urls = ["https://github.com/tink-crypto/tink-cc/archive/refs/tags/v2.0.0.zip"],
    strip_prefix = "tink-cc-2.0.0",
    sha256 = "103ddfce800e77f3b3b6b2c808a8611bc734b31ddb12fbcfd8bebc1b96a7e963",
)

http_archive(
    name = "com_github_tink_crypto_tink_cc_awskms",
    urls = ["https://github.com/tink-crypto/tink-cc-awskms/archive/refs/tags/v2.0.1.zip"],
    strip_prefix = "tink-cc-awskms-2.0.1",
    sha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
)

load("@com_github_tink_crypto_tink_cc//:tink_cc_deps.bzl", "tink_cc_deps")

tink_cc_deps()

load("@com_github_tink_crypto_tink_cc//:tink_cc_deps_init.bzl", "tink_cc_deps_init")

tink_cc_deps_init()

load("@com_github_tink_crypto_tink_cc_awskms//:tink_cc_awskms_deps.bzl",
  "tink_cc_awskms_deps")

tink_cc_awskms_deps()

# ... Your dependencies here ...

NOTE: Different from 1.7.0, labels are now prefixed by tink: for example
@tink_cc_awskms//integration/awskms:aws_kms_client becomes
@tink_cc_awskms//tink/integration/awskms:aws_kms_client.

Bazel users of Tink can use tink-cc's script tools/update_build_files_for_tink_2_0_bazel.sh to apply the necessary Bazel changes to their BUILD files:

git clone https://github.com/tink-crypto/tink-cc.git
cd tink-cc
./tools/update_build_files_for_tink_2_0_bazel.sh <path/to/you/project/root> \
  <tink-cc-awskms repository name>