pqc/crypto_kem/newhope1024cpa/clean/verify.h
Matthias J. Kannwischer 75015226a2 add newhope1024cpa
2019-05-08 17:38:41 +02:00

13 строки
379 B
C

#ifndef VERIFY_H
#define VERIFY_H
#include <stdio.h>
/* returns 0 for equal strings, 1 for non-equal strings */
int PQCLEAN_NEWHOPE1024CPA_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_NEWHOPE1024CPA_CLEAN_cmov(unsigned char *r, const unsigned char *x, size_t len, unsigned char b);
#endif