2 * Copyright (C) 2017 Denys Vlasenko
4 * Licensed under GPLv2, see file LICENSE in this source tree.
6 * Selected few declarations for RSA.
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;
16 static ALWAYS_INLINE
void psRsaKey_clear(psRsaKey_t
*key
)
28 #define psRsaEncryptPub(pool, key, in, inlen, out, outlen, data) \
29 psRsaEncryptPub( key, in, inlen, out, outlen)
30 int32
psRsaEncryptPub(psPool_t
*pool
, psRsaKey_t
*key
,
31 unsigned char *in
, uint32 inlen
,
32 unsigned char *out
, uint32 outlen
, void *data
) FAST_FUNC
;