diff options
Diffstat (limited to 'rsa.h')
-rw-r--r-- | rsa.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#pragma once + +#include "bigint.h" + +struct PublicKey{ + Bigint mod,exp; +}; + +struct PrivateKey{ + PublicKey pub; + Bigint pexp; +}; + +Bigint encrypt(const PublicKey&,Bigint); +Bigint decrypt(const PrivateKey&,Bigint); |