mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 18:49:07 +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
|
||||
CFLAGS = -Wall -Wextra -Os -Wno-sequence-point
|
||||
CFLAGS = -Os -Wall -Wextra -Wno-sequence-point -Wundef
|
||||
ifdef SMALL
|
||||
CFLAGS += -DUSE_PRECOMPUTED_IV=0 -DUSE_PRECOMPUTED_CP=0 -DUSE_PUBKEY_VALIDATE=0
|
||||
endif
|
||||
|
2
bignum.c
2
bignum.c
@ -563,7 +563,7 @@ void bn_divmod58(bignum256 *a, uint32_t *r)
|
||||
*r = rem;
|
||||
}
|
||||
|
||||
#if BN_PRINT
|
||||
#if USE_BN_PRINT
|
||||
void bn_print(const bignum256 *a)
|
||||
{
|
||||
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);
|
||||
|
||||
#if BN_PRINT
|
||||
#if USE_BN_PRINT
|
||||
void bn_print(const bignum256 *a);
|
||||
void bn_print_raw(const bignum256 *a);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user