Skip to content
Chris Petersen edited this page Oct 21, 2015 · 1 revision

Returns true if valid signature of the message for the given public key.

Parameter Description
pub-key public key
msg message
sig signature

Example

> (define priv (rsa-key-gen 32))
> (define pub  (rsa-pub-key priv))
> (rsa-sign priv "test123")
#u8(32 154 207 32 118 129 132 185)
> (rsa-verify? pub "test123" '#u8(32 154 207 32 118 129 132 185))
#t
> (u8vector->string (rsa-verify pub '#u8(32 154 207 32 118 129 132 185)))
"test123"
Clone this wiki locally