e72fd489ba
* Initial ntruhps2048509 implementation * Turn compile-time #if's into runtime if's * Test vector hash * Resolve linter complaints * Apply astyle * Address Windows compiler complaints * Address more Windows compiler complaints * More Windows compiler complaints * Apply astyle * Add -Wmissing-prototypes Co-Authored-By: dstebila <dstebila@users.noreply.github.com> * Fix -Wmissing-prototypes errors, update LICENSE
13 lines
389 B
C
Executable File
13 lines
389 B
C
Executable File
#ifndef VERIFY_H
|
|
#define VERIFY_H
|
|
|
|
#include <stdio.h>
|
|
|
|
/* returns 0 for equal strings, 1 for non-equal strings */
|
|
unsigned char PQCLEAN_NTRUHPS2048509_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_NTRUHPS2048509_CLEAN_cmov(unsigned char *r, const unsigned char *x, size_t len, unsigned char b);
|
|
|
|
#endif
|