Skip to content

Releases: tink-crypto/tink-cc-awskms

Tink C++ AWS KMS Extension 2.0.1

05 Jun 09:23
Compare
Choose a tag to compare

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>

Tink C++ AWS KMS Extension 2.0.0

03 May 22:07
Compare
Choose a tag to compare

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.0

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.0.zip"],
    strip_prefix = "tink-cc-awskms-2.0.0",
    sha256 = "366319b269f62af120ee312ce4c99ce3738ceb23ce3f9491b4859432f8b991a4",
)

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>

What's new

This is the first release from https://github.com/tink-crypto/tink-cc-awskms.

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

  • Upgraded to use Bazel 6.0.0
  • Changed minimum C++ version to C++14
  • Changed the structure of the repository adding sources to tink. As a consequence, target labels are now prefixed with tink, for example @tink_cc_awskms//integration/awskms:aws_kms_client becomes @tink_cc_awskms//tink/integration/awskms:aws_kms_client
  • Removed the target //tink/integration/awskms:aws_crypto from the public API, moving it to //tink/integration/awskms/internal:aws_crypto (commit)
  • Minor code refactoring
  • Added/upgraded CI test scripts