1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-19 03:40:59 +00:00

nem: Remove NEM_DECRYPTED_PAYLOAD_SIZE

It is broken and completely useless
This commit is contained in:
Saleem Rashid 2017-12-15 20:24:30 +00:00 committed by Pavol Rusnak
parent 921b59e1d8
commit d41556d7fc

1
nem.h
View File

@ -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;