Merged silc_1_0_branch to trunk.
[silc.git] / lib / silccrypt / rsa.h
1 /*
2
3   rsa.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 1997 - 2003 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #ifndef RSA_H
21 #define RSA_H
22
23 /*
24  * SILC PKCS API for RSA
25  */
26
27 SILC_PKCS_API_INIT(rsa);
28 SILC_PKCS_API_CLEAR_KEYS(rsa);
29 SILC_PKCS_API_GET_PUBLIC_KEY(rsa);
30 SILC_PKCS_API_GET_PRIVATE_KEY(rsa);
31 SILC_PKCS_API_SET_PUBLIC_KEY(rsa);
32 SILC_PKCS_API_SET_PRIVATE_KEY(rsa);
33 SILC_PKCS_API_CONTEXT_LEN(rsa);
34 SILC_PKCS_API_ENCRYPT(rsa);
35 SILC_PKCS_API_DECRYPT(rsa);
36 SILC_PKCS_API_SIGN(rsa);
37 SILC_PKCS_API_VERIFY(rsa);
38
39 SILC_PKCS_API_ENCRYPT(pkcs1);
40 SILC_PKCS_API_DECRYPT(pkcs1);
41 SILC_PKCS_API_SIGN(pkcs1);
42 SILC_PKCS_API_VERIFY(pkcs1);
43
44
45 #endif