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:
parent
0fe1857513
commit
03a8925e0f
2
Makefile
2
Makefile
@ -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
|
||||||
|
2
bignum.c
2
bignum.c
@ -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);
|
||||||
|
2
bignum.h
2
bignum.h
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user