-
Notifications
You must be signed in to change notification settings - Fork 484
Closed
Description
The ltc_math_descriptor.unsigned_read function pointer has a non-const src pointer argument, which the function is not supposed to modify
libtomcrypt/src/headers/tomcrypt_math.h
Line 179 in 673f5ce
| unsigned char *src, |
This is error prone as one might accidentally swap dst and src.
The src pointer should get marked as const.
int (*unsigned_read)(void *dst,
const unsigned char *src,
unsigned long len);Metadata
Metadata
Assignees
Labels
No labels