diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-08 14:10:48 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-08 14:10:48 +0200 |
| commit | f77ce5a0226014c811a46d8ab1ba8c9164768ed3 (patch) | |
| tree | 77405cce94039217e3162b3772196e50ce01115b /libcmix-crypto/rsa/rsa.h | |
| parent | 4f13051f763cab3d431847305eff913e4bf9d77a (diff) | |
| download | cmix-f77ce5a0226014c811a46d8ab1ba8c9164768ed3.tar.gz cmix-f77ce5a0226014c811a46d8ab1ba8c9164768ed3.tar.bz2 cmix-f77ce5a0226014c811a46d8ab1ba8c9164768ed3.zip | |
Added null-rsa implementation.
Diffstat (limited to 'libcmix-crypto/rsa/rsa.h')
| -rw-r--r-- | libcmix-crypto/rsa/rsa.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libcmix-crypto/rsa/rsa.h b/libcmix-crypto/rsa/rsa.h new file mode 100644 index 0000000..f479a95 --- /dev/null +++ b/libcmix-crypto/rsa/rsa.h @@ -0,0 +1,19 @@ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include "api.h" + +extern struct KeyPair rsa_create_keypair(); +extern void rsa_keypair_deleter(struct KeyPair p); + +extern struct SharedKey rsa_derive_shared_key(struct KeyPair pair, unsigned char* pub_key, bool swap_pub_order); +extern void rsa_shared_key_deleter(struct SharedKey s); + +struct Api get_rsa_implementation(); + +#ifdef __cplusplus +} +#endif |
