1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

rename BN_PRINT define to USE_BN_PRINT

This commit is contained in:
Pavol Rusnak 2014-07-07 21:24:10 +02:00
parent 0fe1857513
commit 03a8925e0f
4 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
CC = gcc CC = gcc
CFLAGS = -Wall -Wextra -Os -Wno-sequence-point CFLAGS = -Os -Wall -Wextra -Wno-sequence-point -Wundef
ifdef SMALL ifdef SMALL
CFLAGS += -DUSE_PRECOMPUTED_IV=0 -DUSE_PRECOMPUTED_CP=0 -DUSE_PUBKEY_VALIDATE=0 CFLAGS += -DUSE_PRECOMPUTED_IV=0 -DUSE_PRECOMPUTED_CP=0 -DUSE_PUBKEY_VALIDATE=0
endif endif

View File

@ -563,7 +563,7 @@ void bn_divmod58(bignum256 *a, uint32_t *r)
*r = rem; *r = rem;
} }
#if BN_PRINT #if USE_BN_PRINT
void bn_print(const bignum256 *a) void bn_print(const bignum256 *a)
{ {
printf("%04x", a->val[8] & 0x0000FFFF); printf("%04x", a->val[8] & 0x0000FFFF);

View File

@ -83,7 +83,7 @@ void bn_substract_noprime(const bignum256 *a, const bignum256 *b, bignum256 *res
void bn_divmod58(bignum256 *a, uint32_t *r); void bn_divmod58(bignum256 *a, uint32_t *r);
#if BN_PRINT #if USE_BN_PRINT
void bn_print(const bignum256 *a); void bn_print(const bignum256 *a);
void bn_print_raw(const bignum256 *a); void bn_print_raw(const bignum256 *a);
#endif #endif

View File

@ -39,8 +39,8 @@
#endif #endif
// support for printing bignum256 structures via printf // support for printing bignum256 structures via printf
#ifndef BN_PRINT #ifndef USE_BN_PRINT
#define BN_PRINT 0 #define USE_BN_PRINT 0
#endif #endif
// use deterministic signatures // use deterministic signatures