mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-18 19:31:04 +00:00
nem: Remove NEM_DECRYPTED_PAYLOAD_SIZE
It is broken and completely useless
This commit is contained in:
parent
921b59e1d8
commit
d41556d7fc
1
nem.h
1
nem.h
@ -56,7 +56,6 @@
|
||||
#define NEM_ENCRYPTED_PAYLOAD_SIZE(size) (AES_BLOCK_SIZE + NEM_SALT_SIZE + NEM_ENCRYPTED_SIZE(size))
|
||||
|
||||
#define NEM_DECRYPTED_SIZE(buffer, size) ((size) - ((buffer)[(size) - 1]))
|
||||
#define NEM_DECRYPTED_PAYLOAD_SIZE(buffer, size) NEM_DECRYPTED_SIZE((buffer), (size) - AES_BLOCK_SIZE - NEM_SALT_SIZE)
|
||||
|
||||
typedef struct {
|
||||
ed25519_public_key public_key;
|
||||
|
Loading…
Reference in New Issue
Block a user