2019-06-18 15:27:03 +01:00
|
|
|
#ifndef PACK_UNPACK_H
|
|
|
|
#define PACK_UNPACK_H
|
|
|
|
#include "SABER_params.h"
|
2020-10-28 16:02:04 +00:00
|
|
|
#include "poly.h"
|
2019-06-18 15:27:03 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_POLT2BS(uint8_t bytes[SABER_SCALEBYTES_KEM], const poly *data);
|
2020-10-16 01:00:04 +01:00
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_BS2POLT(poly *data, const uint8_t bytes[SABER_SCALEBYTES_KEM]);
|
2019-06-18 15:27:03 +01:00
|
|
|
|
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_POLVECq2BS(uint8_t bytes[SABER_POLYVECBYTES], const poly data[SABER_L]);
|
2019-06-18 15:27:03 +01:00
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_POLVECp2BS(uint8_t bytes[SABER_POLYVECCOMPRESSEDBYTES], const poly data[SABER_L]);
|
2019-06-18 15:27:03 +01:00
|
|
|
|
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_BS2POLVECq(poly data[SABER_L], const uint8_t bytes[SABER_POLYVECBYTES]);
|
2019-06-18 15:27:03 +01:00
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_BS2POLVECp(poly data[SABER_L], const uint8_t bytes[SABER_POLYVECCOMPRESSEDBYTES]);
|
2019-06-18 15:27:03 +01:00
|
|
|
|
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_BS2POLmsg(poly *data, const uint8_t bytes[SABER_KEYBYTES]);
|
2019-06-18 15:27:03 +01:00
|
|
|
|
2020-10-28 16:02:04 +00:00
|
|
|
void PQCLEAN_LIGHTSABER_CLEAN_POLmsg2BS(uint8_t bytes[SABER_KEYBYTES], const poly *data);
|
2019-06-18 15:27:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|