https://github.com/google/tink

sort by:
Revision Author Date Message Commit Date
27b061b Bump version to 1.7.0. PiperOrigin-RevId: 466522403 10 August 2022, 00:54:36 UTC
d1ea07d Fix typo in test environment check. PiperOrigin-RevId: 466452738 09 August 2022, 20:33:50 UTC
c72064f Tag CreatePublicKeysetCommandTest as manual. PiperOrigin-RevId: 466411493 09 August 2022, 18:10:36 UTC
c98c476 Add a test to the MacWrapper that if a key is a MacKey, the OutputPrefix is as expected. MacKeys are more flexible in what the output prefix can be, but if it doesn't match what the wrapper think it should be there could be bugs. So best to test. PiperOrigin-RevId: 466373087 09 August 2022, 15:54:59 UTC
dbb5ca7 Add validation test with duplicated 'issuer' claim, and with invalid UTF-16 encoded claim name. PiperOrigin-RevId: 466362093 09 August 2022, 15:11:15 UTC
76008a2 Move the SimpleParameters into LegacyProtoKey and rename it to LegacyProtoParametersNotForCreation. This is useful in many contexts when one has a LegacyProtoKey. While one still cannot create a new key out of it, one can at least call toString() on the parameters object, which should be useful in other cases too. Also this simplifies the constructor of a PrimitiveSet Entry. PiperOrigin-RevId: 466319231 09 August 2022, 11:43:37 UTC
270f07c Migrate more instances of StandardCharsets to toBytesFromPrintableAscii. PiperOrigin-RevId: 466307621 09 August 2022, 10:38:04 UTC
b9d25ca Tag tools KMS integration tests as manual and update Kokoro accordingly. PiperOrigin-RevId: 466282043 09 August 2022, 08:30:41 UTC
cb0a9b6 Add parameter to kokoro/testutils/copy_credentials.sh to select for which KMS service copying credentials. PiperOrigin-RevId: 466274850 09 August 2022, 08:02:41 UTC
826e8b7 Tag Java GCPKMS tests as manual and update Kokoro accordingly. PiperOrigin-RevId: 466213887 09 August 2022, 01:57:33 UTC
39602ef Use Util.toBytesFromPrintableAscii instead of StandardCharsets.UTF_8. PiperOrigin-RevId: 466102438 08 August 2022, 18:40:21 UTC
1751de2 Run full set of tests for local executions. PiperOrigin-RevId: 466093205 08 August 2022, 18:09:55 UTC
5720be5 Fix deprecation notices within doc comments. Use "Deprecated:" prefix and format as a new paragraph as documented at https://go.dev/blog/godoc. Correct function names (e.g. s/New/NewHybridEncrypt/) and utilize doc links (https://go.dev/doc/comment#doclinks). Remove mentions of manually registering custom key managers, since attempting to do so will fail. PiperOrigin-RevId: 466059472 08 August 2022, 16:13:35 UTC
fd245cb Add Key accessor to PrimitiveSet. PiperOrigin-RevId: 466040511 08 August 2022, 14:52:13 UTC
2a19902 Remove dependency on tink_base from Tink Javascript. - Add protos to tink/javascript/proto - Add com_google_protobuf to tink_javascript_deps.bzl - Remove use of tink_base from tink/javascript/WORKSPACE PiperOrigin-RevId: 466011411 08 August 2022, 11:51:00 UTC
9dd0b11 Move the methods parseKeyWithLegacyFallback and parseParametersWithLegacyFallback into the internal class "MutableSerializationRegistry". I want to use them in other contexts, so it's preferable to move them first. PiperOrigin-RevId: 465541068 05 August 2022, 12:21:56 UTC
abe5895 Move AesUtil to tink.mac.internal for better code structure. PiperOrigin-RevId: 465531555 05 August 2022, 11:08:41 UTC
18ac817 Move java examples to the corresponding project's folder NOKEYCHECK NOKEYCHECK=True PiperOrigin-RevId: 465503654 05 August 2022, 07:53:41 UTC
9a77230 Add all android_libraries in "src_android" to the target used to build the maven file. src_android contains sources which are different in Android and Java. They should be added to maven. PiperOrigin-RevId: 465500663 05 August 2022, 07:30:57 UTC
06ae723 Modify kokoro/testutils/run_bazel_tests.sh to optionally run only manually-supplied targets PiperOrigin-RevId: 465381274 04 August 2022, 19:50:23 UTC
3d9dfe4 Refactor addEntry in primitive set. I will need to change this function and don't want to make sure I keep both copy-pasted versions in sync. PiperOrigin-RevId: 465311635 04 August 2022, 14:43:16 UTC
5fff002 Edit apps/README.md PiperOrigin-RevId: 465307685 04 August 2022, 14:22:28 UTC
e632786 Rename BUILD => BUILD.bazel in Java examples PiperOrigin-RevId: 465254849 04 August 2022, 08:42:36 UTC
0f9325a Move python examples to Tink python. Examples are in a separate Bazel workspace. Added a .bazelignore file to ignore it from Tink Python's workspace. NOKEYCHECK NOKEYCHECK=True PiperOrigin-RevId: 465247308 04 August 2022, 07:51:25 UTC
301e0e9 Build-dispatch the method "getApiLevel" instead of runtime dispatching it. PiperOrigin-RevId: 465036824 03 August 2022, 13:07:25 UTC
56a5dba Remove cc/chunkedmac directory. PiperOrigin-RevId: 465026892 03 August 2022, 11:58:35 UTC
6da9b70 Standardize ChaCha20 naming. PiperOrigin-RevId: 464931793 03 August 2022, 00:54:27 UTC
9545efb Deprecate Hpke{Encrypt,Decrypt,Key}BoringSsl. PiperOrigin-RevId: 464905920 02 August 2022, 22:47:30 UTC
6daa206 Use HpkeContext library in Hpke{Encrypt,Decrypt} libraries. PiperOrigin-RevId: 464865247 02 August 2022, 19:58:34 UTC
b743971 Add RSA-SSA-PKCS1 to comment in signature PiperOrigin-RevId: 464841394 02 August 2022, 18:27:52 UTC
687b384 JWT RSA SSA PKCS1 Protos Autogenerated code. PiperOrigin-RevId: 464824173 02 August 2022, 17:21:30 UTC
dd6cdc8 Add RequiresApi as appropriate to the functions in AndroidKeystoreManager and AndroidKeystoreKmsClient and remove the corresponding allowed_lint_checks. PiperOrigin-RevId: 464787351 02 August 2022, 14:37:12 UTC
9911141 Add a Tink internal method "toBytesFromPrintableAscii" which converts a String to a Bytes object, and throws a TinkBugEcxeption if the String has non-ASCII characters. It is surprisingly difficult to do this with coders, so we just do it manually. Also, we want this with unchecked exceptions since then we can use it in initializers. PiperOrigin-RevId: 464767438 02 August 2022, 12:37:52 UTC
5579b99 Move Kokoro build script for examples on MacOS to Tink C++ PiperOrigin-RevId: 464766331 02 August 2022, 12:29:48 UTC
777181d Move examples for Tink C++ to the project's folder PiperOrigin-RevId: 464756776 02 August 2022, 11:31:48 UTC
2c794f9 Add RequiresApi as appropriate to the functions in AndroidKeystoreManager and AndroidKeystoreKmsClient and remove the corresponding allowed_lint_checks. PiperOrigin-RevId: 464729683 02 August 2022, 08:38:43 UTC
574ed14 Add a class "TinkBugException" which can be used in cases where there is a guaranteed bug in Tink. Also, use it in KeysetHandle where appropriate. PiperOrigin-RevId: 464717037 02 August 2022, 07:11:23 UTC
56c6130 Add RequiresApi as appropriate to the functions in AndroidKeystoreManager and AndroidKeystoreKmsClient and remove the corresponding allowed_lint_checks. PiperOrigin-RevId: 464716041 02 August 2022, 07:05:00 UTC
7a2ce08 RSA-SSA-PKCS1 Key Templates PiperOrigin-RevId: 464633586 01 August 2022, 22:08:04 UTC
3f2993f Update MAC primitive variable name to avoid naming conflict with imported module. Should make it easier to cut-and-paste MAC Python example. PiperOrigin-RevId: 464628049 01 August 2022, 21:44:45 UTC
63d044b Add two internal HPKE utility functions. One function determines the encapsulated key length for a specified KEM. The other function converts HPKE parameters from protos to C++ structs. PiperOrigin-RevId: 464620145 01 August 2022, 21:11:40 UTC
50ada5e RSASSA-PKCS1 Signer Key Manager PiperOrigin-RevId: 464581838 01 August 2022, 18:29:59 UTC
d44dc76 RSASSA-PKCS1 Verifier Key Manager PiperOrigin-RevId: 464574020 01 August 2022, 17:59:00 UTC
9f6262c Some refactoring of AwsKmsClient. - Added two constructors for initialising a client bound or not to a specific key - Improve documentation - Refactored code to conform to the Google C++ style guidelines (e.g., use `<param>` instead of '<param>' in functions documentation, use absl::WrapUnique) - Split `testBasic` into more focused tests, moved strings to consts and replaced EXPECT_TRUE(<some status>) with EXPECT_THAT(<some status>, IsOk). PiperOrigin-RevId: 464474800 01 August 2022, 07:41:44 UTC
11cfee5 Modify kokoro/testutils/run_cmake_tests.sh to exit on command failure - Add `set -eEo pipefail` - Add functions to parse parameters and print usage - Make sure we account for CMAKE_PROJECT_DIR being an absolute path PiperOrigin-RevId: 464088538 29 July 2022, 15:56:48 UTC
fed2dc4 Add functions to process arguments and print usage. PiperOrigin-RevId: 464088254 29 July 2022, 15:55:07 UTC
83f04c7 Disable the test testBuilder_withRandomId_doesNotHaveCollisions on Android -- it is too slow and not very android specific so that a special test is not really needed. PiperOrigin-RevId: 464054724 29 July 2022, 12:08:38 UTC
4da7b57 Mark methods Keyset{Reader,Writer}.withPath with @RequiresApi(26) since Path only exists from android API level 26. PiperOrigin-RevId: 464051009 29 July 2022, 11:38:47 UTC
4ea888f Annotate the StreamingAeadSeekableDecryptingChannel with "RequiresApi" PiperOrigin-RevId: 464044165 29 July 2022, 10:52:47 UTC
a0a7f2b Avoid the US_ASCII charset. PiperOrigin-RevId: 464024405 29 July 2022, 08:31:03 UTC
d4b7ac6 Add RSA-SSA-PKCS1 Golang Protos PiperOrigin-RevId: 463956015 28 July 2022, 23:44:13 UTC
a8a149a Refactor kokoro/testutils/run_go_mod_tests.sh and update calling site. This change modifies kokoro/testutils/run_go_mod_tests.sh to: - Use `set -eo pipefail` - Parse parameters into global variables - Create the temporary folder for testing instead of taking it as a parameter - Take the branch where to fetch the Go module's code at HEAD as a parameter - Split the tests into two parts: (1) building the local module and running unit tests, (2) tests the local module as a dependency of another test module. - Skip (2) for modules that aren't on github.com/google/tink PiperOrigin-RevId: 463908876 28 July 2022, 20:14:19 UTC
c8ded21 Make kokoro/testutil/run_bazel_tests.sh exit on a command's non-zero status The script now exits on a command error and prints debugging output before exiting in case of error. Note: -E is set to extend the trap to shell functions, command substitutions, and commands executed in a subshell environment (see https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html). PiperOrigin-RevId: 463902618 28 July 2022, 19:47:19 UTC
605f8b2 Properly mark ExpectedAudiences as deprecated. See: https://go.dev/blog/godoc PiperOrigin-RevId: 463818916 28 July 2022, 13:02:01 UTC
55e6645 Replace usages of "ExpectedAudiences" with "ExpectedAudience". PiperOrigin-RevId: 463818470 28 July 2022, 12:59:10 UTC
b701ea7 Add comment that registry.PrimitiveFromKeyData does not handle the output prefix. PiperOrigin-RevId: 463809199 28 July 2022, 11:51:07 UTC
ddb9c8b Rename "ExpectedAudiences" to ExpectedAudience" in ValidatorOpts. There is a typo in ValidatorOpts, ExpectedAudiences should not have an "s" at the end. To fix this, we add an additional field "ExpectedAudience", and deprecate "ExpectedAudiences". Both are accepted, but must not be set at the same time. PiperOrigin-RevId: 463761926 28 July 2022, 06:21:44 UTC
c89015c Add signature/internal file PiperOrigin-RevId: 463679796 27 July 2022, 21:29:19 UTC
2fb4c53 Skip Wycheproof tests when external files aren't available. PiperOrigin-RevId: 463661158 27 July 2022, 20:17:39 UTC
3e59de4 Implement Go JWT examples. PiperOrigin-RevId: 463654178 27 July 2022, 19:47:21 UTC
64cfd64 Add standalone tests for the ChunkedMac interface. PiperOrigin-RevId: 463615906 27 July 2022, 17:10:50 UTC
256f2d3 Add a KeysetHandle.Builder. We add two new classes, KeysetHandle.Builder and KeysetHandle.Builder.Entry. In KeysetHandle we add the static functions newBuilder() and newBuilder(KeysetHandle) to create new Builders. Also, we add getEntryFromParametersName and generateEntryFromParameters which create new KeysetHandle.Builder.Entry objects. In the Builder we add: * addEntry(...) * size() * getAt() * removeAt() * build() In Entry we add: * makePrimary() * unsetPrimary() * isPrimary() * setStatus() * getStatus() * withFixedId(id) * withRandomId() PiperOrigin-RevId: 463552557 27 July 2022, 11:12:40 UTC
068cce8 RSA-SSA-PKCS1 Signer and Verifier Implements a Singer and Verifier by calling "crypto/rsa". Adds wycheproof test vectors but skips small public exponent tests. PiperOrigin-RevId: 463533617 27 July 2022, 09:08:17 UTC
9fba2db Refactor current RSA subtle to internal PiperOrigin-RevId: 463527650 27 July 2022, 08:28:42 UTC
b99bb8c Rewrite comment about key version. PiperOrigin-RevId: 463353675 26 July 2022, 16:26:13 UTC
899ef50 Add CleartextKeysetHandle.read method that takes monitoring annotations as parameter. #tinkApiChange PiperOrigin-RevId: 463316611 26 July 2022, 13:01:54 UTC
16006b3 Extend CleartextKeysetHandle::Read to allow passing additional Keyset metadata. PiperOrigin-RevId: 463315331 26 July 2022, 12:52:24 UTC
8e86de2 Rollback of "Add a KeysetHandle.Builder". PiperOrigin-RevId: 463307648 26 July 2022, 11:56:56 UTC
e90247d Add a KeysetHandle.Builder. We add two new classes, KeysetHandle.Builder and KeysetHandle.Builder.Entry. In KeysetHandle we add the static functions newBuilder() and newBuilder(KeysetHandle) to create new Builders. Also, we add getEntryFromParametersName and generateEntryFromParameters which create new KeysetHandle.Builder.Entry objects. In the Builder we add: * addEntry(...) * size() * getAt() * removeAt() * build() In Entry we add: * makePrimary() * unsetPrimary() * isPrimary() * setStatus() * getStatus() * withFixedId(id) * withRandomId() PiperOrigin-RevId: 463302458 26 July 2022, 11:17:53 UTC
00cc705 Add a DoNothing Monitor and Client that is registered by default instead of having a nil value, making checks easier on the factories. PiperOrigin-RevId: 463290848 26 July 2022, 09:53:37 UTC
73309a7 Remove cc/chunkedmac since ChunkedMac implementation moved to cc/mac. PiperOrigin-RevId: 463160350 25 July 2022, 20:13:58 UTC
cba9e20 Add NIST Curve DHKEM key templates PiperOrigin-RevId: 463114193 25 July 2022, 17:15:29 UTC
7aafffa Add AesCmacParameters C++ classes. PiperOrigin-RevId: 463096153 25 July 2022, 15:56:15 UTC
bc7454f Moved ChunkedMac implementation from chunkedmac/internal to mac/internal. PiperOrigin-RevId: 463068254 25 July 2022, 13:14:20 UTC
01bdfee Make sphincs.proto enum definitions for unspecified values consistent with other proto definitions. PiperOrigin-RevId: 463050887 25 July 2022, 11:04:14 UTC
46e9aa6 Mark go/hybrid/subtle as publicly visible. PiperOrigin-RevId: 462699605 22 July 2022, 21:07:13 UTC
62959c3 Add NIST Curves DHKEM to primitive factory options PiperOrigin-RevId: 462628164 22 July 2022, 15:27:10 UTC
58ef710 Merge pull request #542 from slowy07:minor-changes PiperOrigin-RevId: 462618967 22 July 2022, 14:44:07 UTC
9e3d3a6 Split the method "entryByIndex" to call internal conversion methods. I think this makes it easier to read. PiperOrigin-RevId: 462603224 22 July 2022, 12:59:38 UTC
58b05ac Rewrite the "aead integration tests" that test the whole Aead package. I think the test should not be called "integration", because that name is usually used for larger tests that test the integration of several systems. These tests now only use the public API of Tink, and show how the Aead package can be used. PiperOrigin-RevId: 462594676 22 July 2022, 11:52:35 UTC
1d21e0d Add AesCmacProtoSerialization. This allows to convert protos into keys, and vice versa. PiperOrigin-RevId: 462592645 22 July 2022, 11:36:24 UTC
f31c6c1 A change in tests. PiperOrigin-RevId: 462589754 22 July 2022, 11:11:39 UTC
fcf7f99 Rename some stray "KeyFormat" leftovers to "Parameters". PiperOrigin-RevId: 462560150 22 July 2022, 07:46:49 UTC
9a30cab Remove unnecessary changes. 21 July 2022, 23:54:47 UTC
c09bbe4 Merge remote-tracking branch 'upstream/master' into minor-changes 21 July 2022, 23:50:29 UTC
7fc7fea Fix instructions in Java examples. Fixes #560. PiperOrigin-RevId: 462493036 21 July 2022, 23:15:15 UTC
a1d6966 NIST Curves KEM Implementation PiperOrigin-RevId: 462490329 21 July 2022, 23:02:23 UTC
9093a0d Update supported key type documentation to accurately reflect HPKE status. PiperOrigin-RevId: 462426694 21 July 2022, 18:03:43 UTC
8085451 Rename "getKeyFormat" to "getParameters" in MonitoringKeysetInfo. PiperOrigin-RevId: 462402402 21 July 2022, 16:29:39 UTC
53f6960 Add new targets to the maven package. This fixes kokoro. The CL was generated by the command as given in the output. PiperOrigin-RevId: 462401043 21 July 2022, 16:22:57 UTC
5cb9a07 Rename KeyFormatWithSerialization->ParametersWithSerialization. Also some rename of local variables, test names, etc. PiperOrigin-RevId: 462398007 21 July 2022, 16:08:58 UTC
1d85d3c Adds a utility function for retrieving the public key from a private X25519 key. PiperOrigin-RevId: 462388719 21 July 2022, 15:24:23 UTC
27d273c Rename KeyFormatParser -> ParametersParser, KeyFormatSerializer -> ParametersSerializer, serializeKeyFormat -> serializeParamters, parseKeyFormat -> parseParameters in internal libraries. PiperOrigin-RevId: 462381033 21 July 2022, 14:41:21 UTC
a2407aa Add ChunkedMac Java interface. NOKEYCHECK=True PiperOrigin-RevId: 462379993 21 July 2022, 14:34:58 UTC
d1143a0 Add missing java targets for the maven file. They somehow got lost. PiperOrigin-RevId: 462369848 21 July 2022, 13:31:16 UTC
ded1adc Update documentation in AccessesPartialKey (KeyFormat -> Parameter) and in Parameters.java. PiperOrigin-RevId: 462367732 21 July 2022, 13:16:12 UTC
af368e5 Rename "ProtoKeyFormatSerialization" -> "ProtoParametersSerialization" and "LegacyProtoKeyFormat" -> "LegacyProtoParameters". PiperOrigin-RevId: 462363620 21 July 2022, 12:48:02 UTC
9a1c045 Some renamings "KeyFormat/Format" -> "Parameters". PiperOrigin-RevId: 462360712 21 July 2022, 12:26:20 UTC
e70b9b9 Rename AesCmacKeyFormat to AesCmacParameters and MacKeyFormat to MacParameters. PiperOrigin-RevId: 462334683 21 July 2022, 09:19:30 UTC
4dea432 Remove the ProtoKey{Format}SerializationTester. We don't need these anymore. PiperOrigin-RevId: 462329830 21 July 2022, 08:50:39 UTC
back to top