chiark / gitweb /
rsa.c: Check public key length.
The private key is checked quite carefully -- even to a fault -- for
being sensibly sized, but the corresponding function for public keys
appears to have no checking at all. This is a shame since message-
representative construction assumes that the message representative will
fit in a fixed-size buffer.
Fix this situation by checking public key sizes in `rsapub_apply'.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>