blob: c464ed5528f4335f25939664da8a0a834fba754a [file] [log] [blame]
* Copyright (C) 2017 Denys Vlasenko
* Licensed under GPLv2, see file LICENSE in this source tree.
* Selected few declarations for RSA.
typedef struct {
pstm_int e, d, N, qP, dP, dQ, p, q;
uint32 size; /* Size of the key in bytes */
int32 optimized; /* 1 for optimized */
//bbox psPool_t *pool;
} psRsaKey_t;
#define psRsaEncryptPub(pool, key, in, inlen, out, outlen, data) \
psRsaEncryptPub( key, in, inlen, out, outlen)
int32 psRsaEncryptPub(psPool_t *pool, psRsaKey_t *key,
unsigned char *in, uint32 inlen,
unsigned char *out, uint32 outlen, void *data);