2019-06-18 15:37:25 +01:00
|
|
|
#ifndef PACK_UNPACK_H
|
|
|
|
#define PACK_UNPACK_H
|
|
|
|
#include "SABER_params.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
void PQCLEAN_FIRESABER_CLEAN_POLT2BS(uint8_t bytes[SABER_SCALEBYTES_KEM], const uint16_t data[SABER_N]);
|
|
|
|
|
|
|
|
void PQCLEAN_FIRESABER_CLEAN_BS2POLT(uint16_t data[SABER_N], const uint8_t bytes[SABER_SCALEBYTES_KEM]);
|
2019-06-18 15:37:25 +01:00
|
|
|
|
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
void PQCLEAN_FIRESABER_CLEAN_POLVECq2BS(uint8_t bytes[SABER_POLYVECBYTES], const uint16_t data[SABER_L][SABER_N]);
|
2019-06-18 15:37:25 +01:00
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
void PQCLEAN_FIRESABER_CLEAN_POLVECp2BS(uint8_t bytes[SABER_POLYVECCOMPRESSEDBYTES], const uint16_t data[SABER_L][SABER_N]);
|
2019-06-18 15:37:25 +01:00
|
|
|
|
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
void PQCLEAN_FIRESABER_CLEAN_BS2POLVECq(uint16_t data[SABER_L][SABER_N], const uint8_t bytes[SABER_POLYVECBYTES]);
|
2019-06-18 15:37:25 +01:00
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
void PQCLEAN_FIRESABER_CLEAN_BS2POLVECp(uint16_t data[SABER_L][SABER_N], const uint8_t bytes[SABER_POLYVECCOMPRESSEDBYTES]);
|
2019-06-18 15:37:25 +01:00
|
|
|
|
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
void PQCLEAN_FIRESABER_CLEAN_BS2POLmsg(uint16_t data[SABER_N], const uint8_t bytes[SABER_KEYBYTES]);
|
2019-06-18 15:37:25 +01:00
|
|
|
|
2020-10-16 01:00:04 +01:00
|
|
|
void PQCLEAN_FIRESABER_CLEAN_POLmsg2BS(uint8_t bytes[SABER_KEYBYTES], const uint16_t data[SABER_N]);
|
2019-06-18 15:37:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|