blob: 3281087c769030fe298104ef3698e76ab04c0d48 [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.
5 */
6
7typedef struct {
8 pstm_int e, d, N, qP, dP, dQ, p, q;
9 uint32 size; /* Size of the key in bytes */
10 int32 optimized; /* 1 for optimized */
11 psPool_t *pool;
12} psRsaKey_t;
13
14#define psRsaEncryptPub(pool, key, in, inlen, out, outlen, data) \
15 psRsaEncryptPub(pool, key, in, inlen, out, outlen)
16int32 psRsaEncryptPub(psPool_t *pool, psRsaKey_t *key,
17 unsigned char *in, uint32 inlen,
18 unsigned char *out, uint32 outlen, void *data);