Browse Source

move config to prime directories

master
Mike Hamburg 9 years ago
parent
commit
0b59ddc2bf
4 changed files with 8 additions and 8 deletions
  1. +1
    -1
      src/decaf_fast.c
  2. +1
    -1
      src/decaf_gen_tables.c
  3. +3
    -3
      src/p25519/decaf_config.h
  4. +3
    -3
      src/p448/decaf_config.h

+ 1
- 1
src/decaf_fast.c View File

@@ -13,7 +13,7 @@
#include "decaf.h"
#include <string.h>
#include "field.h"
#include "decaf_255_config.h"
#include "decaf_config.h"

#define WBITS DECAF_WORD_BITS



+ 1
- 1
src/decaf_gen_tables.c View File

@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "decaf.h"
#include "decaf_255_config.h" /* MAGIC */
#include "decaf_config.h"
#include "field.h"

#define API_NS(_id) decaf_255_##_id


src/include/decaf_255_config.h → src/p25519/decaf_config.h View File

@@ -8,8 +8,8 @@
*
* @brief Configuration for decaf_fast.c
*/
#ifndef __DECAF_255_CONFIG_H__
#define __DECAF_255_CONFIG_H__ 1
#ifndef __DECAF_CONFIG_H__
#define __DECAF_CONFIG_H__ 1

/**
* Use the Montgomery ladder for direct scalarmul.
@@ -47,4 +47,4 @@
#define DECAF_WNAF_VAR_TABLE_BITS 3


#endif /* __DECAF_255_CONFIG_H__ */
#endif /* __DECAF_CONFIG_H__ */

src/include/decaf_448_config.h → src/p448/decaf_config.h View File

@@ -8,8 +8,8 @@
*
* @brief Configuration for decaf_fast.c
*/
#ifndef __DECAF_448_CONFIG_H__
#define __DECAF_448_CONFIG_H__ 1
#ifndef __DECAF_CONFIG_H__
#define __DECAF_CONFIG_H__ 1

/**
* Use the Montgomery ladder for direct scalarmul.
@@ -47,4 +47,4 @@
#define DECAF_WNAF_VAR_TABLE_BITS 3


#endif /* __DECAF_448_CONFIG_H__ */
#endif /* __DECAF_CONFIG_H__ */

Loading…
Cancel
Save