1
0

Clean up includes

Esse commit está contido em:
Joost Rijneveld 2017-10-19 16:17:07 +02:00
commit dce1a1acda
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG: A4FE39CF49CBC553
4 arquivos alterados com 7 adições e 10 exclusões

Ver arquivo

@ -5,10 +5,12 @@
* from https://twitter.com/tweetfips202
* by Gilles Van Assche, Daniel J. Bernstein, and Peter Schwabe */
#include <stdint.h>
#include <assert.h>
#include "fips202.h"
#include <assert.h>
#include <stdint.h>
#include <string.h>
#define NROUNDS 24
#define ROL(a, offset) ((a << offset) ^ (a >> (64-offset)))
@ -324,8 +326,6 @@ void KeccakF1600_StatePermute(uint64_t * state)
state[24] = Asu;
}
#include <string.h>
static void keccak_absorb(uint64_t *s, unsigned int r,
const unsigned char *m, unsigned long long mlen,
unsigned char p)

1
hash.h
Ver arquivo

@ -8,6 +8,7 @@ Public domain.
#ifndef XMSS_HASH_H
#define XMSS_HASH_H
#include <stdint.h>
#include "params.h"
#define IS_LITTLE_ENDIAN 1

Ver arquivo

@ -7,14 +7,11 @@ Public domain.
#ifndef XMSS_COMMONS_H
#define XMSS_COMMONS_H
#include <stdlib.h>
#include <stdint.h>
#include "params.h"
void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes);
void hexdump(const unsigned char *a, size_t len);
void gen_leaf_wots(const xmss_params *params, unsigned char *leaf,
const unsigned char *sk_seed, const unsigned char *pub_seed,
uint32_t ltree_addr[8], uint32_t ots_addr[8]);

Ver arquivo

@ -4,12 +4,11 @@ Andreas Hülsing
Joost Rijneveld
Public domain.
*/
#include "wots.h"
#ifndef XMSS_CORE_H
#define XMSS_CORE_H
#include "params.h"
/**
* Generates a XMSS key pair for a given parameter set.
* Format sk: [(32bit) idx || SK_SEED || SK_PRF || PUB_SEED || root]