- Sep 23, 2019
-
-
tholenst authored
PiperOrigin-RevId: 270655570
-
- Sep 17, 2019
-
-
Tink Team authored
Also update javascript tests to skip curve25519. PiperOrigin-RevId: 269667740
-
paulavidas authored
PiperOrigin-RevId: 269573228
-
paulavidas authored
PiperOrigin-RevId: 269564299
-
- Sep 13, 2019
-
-
paulavidas authored
PiperOrigin-RevId: 268870105
-
- Aug 29, 2019
-
-
Tink Team authored
PiperOrigin-RevId: 266082250
-
- Aug 28, 2019
-
-
przydatek authored
The actual change is in nonce_based_streaming_aead.cc, the rest is extension/adjustment of the tests. PiperOrigin-RevId: 265883349
-
- Aug 27, 2019
-
-
candrian authored
PiperOrigin-RevId: 265707342
-
- Aug 22, 2019
-
-
przydatek authored
PiperOrigin-RevId: 264802865
-
- Aug 21, 2019
- Aug 19, 2019
-
-
tholenst authored
More context in cl/263529237. PiperOrigin-RevId: 264099137
-
- Aug 16, 2019
- Aug 15, 2019
-
-
tholenst authored
This function has the contract that it doesn't need to initialize the string when resizing. At the moment, the only implementation we have is the one which does the additional work of actually resizing the string. PiperOrigin-RevId: 263559220
-
tholenst authored
We also replace some memcpy instances with string operations. Context on the string replacement: cl/263529237 PiperOrigin-RevId: 263557252
-
tholenst authored
In an earlier change I used string::replace, but looking at the string::replace API it feels that it is a little bit weird. Let's try to avoid it. PiperOrigin-RevId: 263549047
-
tholenst authored
This removes one string copy from both encryption and decryption. When doing this, we need to ensure that we can write in the buffer underlying the string. The C++11 standard states in the relevant section 21.4.5: Returns: *(begin() + pos) if pos < size(), otherwise a reference to an object of type T with value charT(); the referenced value shall not be modified." This is somewhat unclear: should the referenced value only not be modified in case pos = size() -- which would be a natural restriction, or should the referenced value never be modified (which would mean that string a; a[1] = 'a'; is already UB). The second interpretation seems outrageous, and C++14 clarifies it, apparently: "operator[]: returns *(begin() + pos) if pos < size(). Otherwise, returns a reference to an object of type charT with value charT(), where modifying the object leads to undefined behavior." I think the intention of the standard is that this works, and furthermore, I don't believe that any compiler will break this in C++11. PiperOrigin-RevId: 263529237
-
- Aug 12, 2019
-
-
paulavidas authored
PiperOrigin-RevId: 262922614
-
tholenst authored
Add methods HybridTestUtil which allow encrypting then decrypting with a Hybrid{En,De}crypt. This is sometimes useful in tests (you can easily check if two objects fit together. PiperOrigin-RevId: 262898879
-
- Aug 09, 2019
-
-
paulavidas authored
PiperOrigin-RevId: 262528850
-
paulavidas authored
PiperOrigin-RevId: 262516706
-
- Aug 08, 2019
-
-
tholenst authored
This was forgotten in a previous cl. PiperOrigin-RevId: 262357462
-
paulavidas authored
We changed the segment size validation in all Tink streaming keys such that the first block always needs to have room for at least 1 byte of ciphertext. Previously it was not consistent. The decision whether to allow empty ciphertexts in the first segment is somewhat arbitrary, but it should be consistent everywhere. PiperOrigin-RevId: 262315914
-
- Aug 07, 2019
-
-
tholenst authored
These are the fixes in *non-test-code* needed in order to annotate our Status object with ABSL_MUST_USE_RESULT. Note that most of these cannot trigger anyhow, so nothing bad is uncovered. PiperOrigin-RevId: 262129168
-
- Aug 06, 2019
-
-
paulavidas authored
PiperOrigin-RevId: 261875364
-
tholenst authored
PiperOrigin-RevId: 261872620
-
tholenst authored
PiperOrigin-RevId: 261862603
-
- Aug 02, 2019
-
-
paulavidas authored
PiperOrigin-RevId: 261278364
-
- Jul 23, 2019
- Jul 12, 2019
-
-
przydatek authored
PiperOrigin-RevId: 257752749
-
- Jul 11, 2019
-
-
tanujdhir authored
To replicate: find -name BUILD.bazel -exec sed -Ei 's/\s+# Apache 2.0$//' {} \; find -name BUILD.bazel -exec sed -Ei 's/\s+# Apache 2.0 # keep$/ # keep/' {} \; PiperOrigin-RevId: 257604221
-
- Jul 08, 2019
-
-
przydatek authored
The actual ciphertext of a streaming AEAD begins with a header (i.e. the header is a part of the ciphertext), so ciphertext_offset should obey this semantics. PiperOrigin-RevId: 256942210
-
- Jul 02, 2019
-
-
przydatek authored
PiperOrigin-RevId: 256137427
-
- Jun 24, 2019
-
-
przydatek authored
PiperOrigin-RevId: 254765336
-
- May 02, 2019
-
-
przydatek authored
PiperOrigin-RevId: 241710415 GitOrigin-RevId: ff02e92105d8dedd59e756566f44afb6a422ad63
-
candrian authored
PiperOrigin-RevId: 241532726 GitOrigin-RevId: ff16d7f293d55e553b2617a8da493a984dc6cca6
-
przydatek authored
PiperOrigin-RevId: 240532901 GitOrigin-RevId: 203cb159742118fcad7438fd335627d6553a3d65
-
- Mar 20, 2019
-
-
tholenst authored
PiperOrigin-RevId: 239165970 GitOrigin-RevId: 0e6d8c7c482d11d171b2ca45eda56ca67bcb3117
-