PQLR
Postquantum Crypto Library by QAPP
|
Go to the source code of this file.
Typedefs | |
typedef struct newhope_st * | newhope_t |
Newhope algorithm instance handle. More... | |
Enumerations | |
enum | newhope_parameterset_t { newhope_1024 , newhope_last } |
Possible newhope parameters sets. More... | |
Functions | |
PQLR_API newhope_t | newhope_new (newhope_parameterset_t parameterset) |
Creates newhope instance initialized by parameterset. More... | |
PQLR_API void | newhope_free (newhope_t newhope) |
Frees newhope instance and all corresponding resources. More... | |
PQLR_API newhope_t | newhope_duplicate (const newhope_t newhope) |
Duplicates context of newhope instance. More... | |
PQLR_API uint32_t | newhope_get_initiator_secret_length (newhope_t newhope) |
Obtains initiator's secret length for current newhope instance. More... | |
PQLR_API uint32_t | newhope_get_initiator_public_length (newhope_t newhope) |
Obtains initiator's public key length for current newhope instance. More... | |
PQLR_API uint32_t | newhope_get_ciphertext_length (newhope_t newhope) |
Obtains encoded reply length for current newhope instance. More... | |
PQLR_API uint32_t | newhope_get_shared_secret_length (newhope_t newhope) |
Obtains number of symmetric secret key bytes for current newhope instance. More... | |
PQLR_API pqlr_t | newhope_to_pqlr (newhope_t newhope) |
Gets pqlr instance linked to this newhope instance. More... | |
PQLR_API void | newhope_keygen (const newhope_t newhope, uint8_t *public_key, uint8_t *secret_key) |
Initial step of key distribution. Generates a key pair for key distribution initiator. More... | |
PQLR_API void | newhope_key_encap (const newhope_t newhope, const uint8_t *public_key, uint8_t *ciphertext, uint8_t *session_key) |
Second step of key distribution. Generates symmetric secret key on responder side (opposite from initiator). More... | |
PQLR_API void | newhope_key_decap (const newhope_t newhope, const uint8_t *secret_key, const uint8_t *ciphertext, uint8_t *session_key) |
Last step of key distribution. Generates symmetric secret key on initiator side. More... | |