mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-30 11:21:25 +00:00
22 lines
801 B
C
22 lines
801 B
C
|
#ifndef VERIFY_H
|
|||
|
#define VERIFY_H
|
|||
|
|
|||
|
/*-------------------------------------------------
|
|||
|
This file has been adapted from the implementation
|
|||
|
(available at https://github.com/pq-crystals/kyber) of
|
|||
|
"CRYSTALS – Kyber: a CCA-secure module-lattice-based KEM"
|
|||
|
by : Joppe Bos, Leo Ducas, Eike Kiltz, Tancrede Lepoint,
|
|||
|
Vadim Lyubashevsky, John M. Schanck, Peter Schwabe & Damien stehle
|
|||
|
----------------------------------------------------*/
|
|||
|
|
|||
|
#include <stddef.h>
|
|||
|
#include <stdint.h>
|
|||
|
|
|||
|
/* returns 0 for equal strings, 1 for non-equal strings */
|
|||
|
unsigned char PQCLEAN_LIGHTSABER_CLEAN_verify(const unsigned char *a, const unsigned char *b, size_t len);
|
|||
|
|
|||
|
/* b = 1 means mov, b = 0 means don't mov*/
|
|||
|
void PQCLEAN_LIGHTSABER_CLEAN_cmov(unsigned char *r, const unsigned char *x, size_t len, unsigned char b);
|
|||
|
|
|||
|
#endif
|