1
1
镜像自地址 https://github.com/henrydcase/pqc.git 已同步 2024-11-22 07:35:38 +00:00

frodo: satisfy test_boolean

这个提交包含在:
John M. Schanck 2020-09-15 12:42:47 -04:00 提交者 Kris Kwiatkowski
父节点 35f90ed6b3
当前提交 512adcc0db
共有 12 个文件被更改,包括 48 次插入12 次删除

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM1344AES_CLEAN_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM1344AES_OPT_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM1344SHAKE_CLEAN_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM1344SHAKE_OPT_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM640AES_CLEAN_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM640AES_OPT_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM640SHAKE_CLEAN_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM640SHAKE_OPT_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM976AES_CLEAN_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM976AES_OPT_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM976SHAKE_CLEAN_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));

查看文件

@ -11,7 +11,10 @@
#include "common.h"
#include "params.h"
#define min(x, y) (((x) < (y)) ? (x) : (y))
static inline uint8_t min(uint8_t x, uint8_t y) {
if (x < y) return x;
return y;
}
uint16_t PQCLEAN_FRODOKEM976SHAKE_OPT_LE_TO_UINT16(uint16_t n) {
return (((uint8_t *) &n)[0] | (((uint8_t *) &n)[1] << 8));