blob: c464ed5528f4335f25939664da8a0a834fba754a [file] [log] [blame]
Denys Vlasenko11d00962017-01-15 00:12:42 +01001/*
2 * Copyright (C) 2017 Denys Vlasenko
3 *
4 * Licensed under GPLv2, see file LICENSE in this source tree.
Denys Vlasenko3f8ecd92017-01-15 14:16:51 +01005 *
6 * Selected few declarations for RSA.
Denys Vlasenko11d00962017-01-15 00:12:42 +01007 */
8
9typedef 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 */
Denys Vlasenko6b1b0042017-01-19 15:51:00 +010013//bbox psPool_t *pool;
Denys Vlasenko11d00962017-01-15 00:12:42 +010014} psRsaKey_t;
15
16#define psRsaEncryptPub(pool, key, in, inlen, out, outlen, data) \
Denys Vlasenko6b1b0042017-01-19 15:51:00 +010017 psRsaEncryptPub( key, in, inlen, out, outlen)
Denys Vlasenko11d00962017-01-15 00:12:42 +010018int32 psRsaEncryptPub(psPool_t *pool, psRsaKey_t *key,
19 unsigned char *in, uint32 inlen,
20 unsigned char *out, uint32 outlen, void *data);