Crates.io | kyber-kem |
lib.rs | kyber-kem |
version | 0.1.3 |
source | src |
created_at | 2023-12-06 12:53:19.447532 |
updated_at | 2024-01-09 15:57:19.0114 |
description | Kyber IND-CCA2 KEM in Rust |
homepage | |
repository | https://github.com/parazyd/kyber-kem |
max_upload_size | |
id | 1060013 |
size | 2,997,075 |
Implementation of Kyber IND-CCA2 secure key encapsulation mechanism (KEM)
This is a direct Rust reimplementation/port of the Go implementation Symbolic Software under the MIT license.
This Rust implementation is licensed under GNU AGPL-3
$ cargo bench
Intel i7-1370P results:
Function | |||
---|---|---|---|
kem_keypair_512 |
17.907 µs | 18.019 µs | 18.127 µs |
kem_encrypt_512 |
22.458 µs | 22.504 µs | 22.562 µs |
kem_decrypt_512 |
27.844 µs | 28.058 µs | 28.288 µs |
kem_keypair_768 |
31.836 µs | 31.950 µs | 32.103 µs |
kem_encrypt_768 |
37.207 µs | 37.298 µs | 37.435 µs |
kem_decrypt_768 |
44.192 µs | 44.402 µs | 44.632 µs |
kem_keypair_1024 |
53.455 µs | 53.568 µs | 53.721 µs |
kem_encrypt_1024 |
56.700 µs | 56.820 µs | 56.962 µs |
kem_decrypt_1024 |
64.039 µs | 64.464 µs | 64.992 µs |