diff options
Diffstat (limited to 'networking/tls_rsa.h')
-rw-r--r-- | networking/tls_rsa.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/networking/tls_rsa.h b/networking/tls_rsa.h new file mode 100644 index 000000000..c464ed552 --- /dev/null +++ b/networking/tls_rsa.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2017 Denys Vlasenko | ||
3 | * | ||
4 | * Licensed under GPLv2, see file LICENSE in this source tree. | ||
5 | * | ||
6 | * Selected few declarations for RSA. | ||
7 | */ | ||
8 | |||
9 | typedef struct { | ||
10 | pstm_int e, d, N, qP, dP, dQ, p, q; | ||
11 | uint32 size; /* Size of the key in bytes */ | ||
12 | int32 optimized; /* 1 for optimized */ | ||
13 | //bbox psPool_t *pool; | ||
14 | } psRsaKey_t; | ||
15 | |||
16 | #define psRsaEncryptPub(pool, key, in, inlen, out, outlen, data) \ | ||
17 | psRsaEncryptPub( key, in, inlen, out, outlen) | ||
18 | int32 psRsaEncryptPub(psPool_t *pool, psRsaKey_t *key, | ||
19 | unsigned char *in, uint32 inlen, | ||
20 | unsigned char *out, uint32 outlen, void *data); | ||