1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! # kyber
//!
//! This crate provides bindings to and wrappers around the following
//! implementations from [PQClean][pqc]:
//!
//! * kyber512 - clean
//! * kyber768 - clean
//! * kyber1024 - clean
//! * kyber512-90s - clean
//! * kyber768-90s - clean
//! * kyber1024-90s - clean
//!
//! [pqc]: https://github.com/pqclean/pqclean/
//!

#![allow(clippy::len_without_is_empty)]

pub mod ffi;
pub mod kyber1024;
pub mod kyber102490s;
pub mod kyber512;
pub mod kyber51290s;
pub mod kyber768;
pub mod kyber76890s;

pub use crate::kyber1024::{
    ciphertext_bytes as kyber1024_ciphertext_bytes, decapsulate as kyber1024_decapsulate,
    encapsulate as kyber1024_encapsulate, keypair as kyber1024_keypair,
    public_key_bytes as kyber1024_public_key_bytes, secret_key_bytes as kyber1024_secret_key_bytes,
    shared_secret_bytes as kyber1024_shared_secret_bytes,
};
pub use crate::kyber102490s::{
    ciphertext_bytes as kyber102490s_ciphertext_bytes, decapsulate as kyber102490s_decapsulate,
    encapsulate as kyber102490s_encapsulate, keypair as kyber102490s_keypair,
    public_key_bytes as kyber102490s_public_key_bytes,
    secret_key_bytes as kyber102490s_secret_key_bytes,
    shared_secret_bytes as kyber102490s_shared_secret_bytes,
};
pub use crate::kyber512::{
    ciphertext_bytes as kyber512_ciphertext_bytes, decapsulate as kyber512_decapsulate,
    encapsulate as kyber512_encapsulate, keypair as kyber512_keypair,
    public_key_bytes as kyber512_public_key_bytes, secret_key_bytes as kyber512_secret_key_bytes,
    shared_secret_bytes as kyber512_shared_secret_bytes,
};
pub use crate::kyber51290s::{
    ciphertext_bytes as kyber51290s_ciphertext_bytes, decapsulate as kyber51290s_decapsulate,
    encapsulate as kyber51290s_encapsulate, keypair as kyber51290s_keypair,
    public_key_bytes as kyber51290s_public_key_bytes,
    secret_key_bytes as kyber51290s_secret_key_bytes,
    shared_secret_bytes as kyber51290s_shared_secret_bytes,
};
pub use crate::kyber768::{
    ciphertext_bytes as kyber768_ciphertext_bytes, decapsulate as kyber768_decapsulate,
    encapsulate as kyber768_encapsulate, keypair as kyber768_keypair,
    public_key_bytes as kyber768_public_key_bytes, secret_key_bytes as kyber768_secret_key_bytes,
    shared_secret_bytes as kyber768_shared_secret_bytes,
};
pub use crate::kyber76890s::{
    ciphertext_bytes as kyber76890s_ciphertext_bytes, decapsulate as kyber76890s_decapsulate,
    encapsulate as kyber76890s_encapsulate, keypair as kyber76890s_keypair,
    public_key_bytes as kyber76890s_public_key_bytes,
    secret_key_bytes as kyber76890s_secret_key_bytes,
    shared_secret_bytes as kyber76890s_shared_secret_bytes,
};