swh:1:snp:b03b5b26525b84343e26e9b1b952c64cf35589c0
Revision d0fc5d3e836f7d466341b83c75d9209aa0e38d68 authored by juerg on 11 March 2024, 19:51:28 UTC, committed by Copybara-Service on 11 March 2024, 19:53:06 UTC
It tests encrypting and decrypting 1k data with different algorithms. It also adds tests for algorithms that are supported but don't have templates: - curve P-384 and curve P-521. - AES-SIV as DEK. Output on a Xeon CPU: BenchmarkEncrypt/HPKE_X25519_AES128GCM-8 6207 195023 ns/op 12713 B/op 89 allocs/op BenchmarkEncrypt/HPKE_X25519_Chacha20Poly1305-8 6316 190371 ns/op 9384 B/op 78 allocs/op BenchmarkEncrypt/ECIES_P256_AES128GCM-8 9159 128020 ns/op 8368 B/op 63 allocs/op BenchmarkEncrypt/ECIES_P256_AES128CTRHMAC-8 8188 143934 ns/op 11744 B/op 83 allocs/op BenchmarkEncrypt/ECIES_P384_AES128GCM-8 1159 1035242 ns/op 9896 B/op 78 allocs/op BenchmarkEncrypt/ECIES_P521_AES128GCM-8 379 3344359 ns/op 11410 B/op 79 allocs/op BenchmarkEncrypt/ECIES_P256_AESSIV-8 8876 140409 ns/op 8784 B/op 75 allocs/op BenchmarkDecrypt/HPKE_X25519_AES128GCM-8 6236 193576 ns/op 10376 B/op 86 allocs/op BenchmarkDecrypt/HPKE_X25519_Chacha20Poly1305-8 6615 188628 ns/op 6920 B/op 75 allocs/op BenchmarkDecrypt/ECIES_P256_AES128GCM-8 10000 109699 ns/op 8848 B/op 61 allocs/op BenchmarkDecrypt/ECIES_P256_AES128CTRHMAC-8 10000 118861 ns/op 8392 B/op 72 allocs/op BenchmarkDecrypt/ECIES_P384_AES128GCM-8 1494 802661 ns/op 10048 B/op 73 allocs/op BenchmarkDecrypt/ECIES_P521_AES128GCM-8 478 2513675 ns/op 11040 B/op 73 allocs/op BenchmarkDecrypt/ECIES_P256_AESSIV-8 10000 116103 ns/op 6984 B/op 66 allocs/op PiperOrigin-RevId: 614762423
1 parent 239cf37
Tip revision: 4738fc399edd4a2e0f778a7451922f854ba9b3c4 authored by ambrosin on 05 April 2024, 13:06:30 UTC
Upgrade default tink-cc dep to 2.1.2
Upgrade default tink-cc dep to 2.1.2
Tip revision: 4738fc3
File | Mode | Size |
---|---|---|
.github | ||
cc | ||
cmake | ||
docs | ||
go | ||
java_src | ||
kokoro | ||
proto | ||
python | ||
testdata | ||
testing | ||
tools | ||
.bazelversion | -rw-r--r-- | 6 bytes |
.gitignore | -rw-r--r-- | 165 bytes |
BUILD.bazel | -rw-r--r-- | 442 bytes |
CMakeLists.txt | -rw-r--r-- | 1.6 KB |
LICENSE | -rw-r--r-- | 11.1 KB |
README.md | -rw-r--r-- | 5.9 KB |
passing_test.sh | -rwxr-xr-x | 24 bytes |
tinkey.rb | -rw-r--r-- | 556 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...