Added SILC Thread Queue API
[silc.git] / lib / silcacc / softacc.h
1 /*
2
3   softacc.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2007 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 SOFTACC_H
21 #define SOFTACC_H
22
23 /* The software accelerator */
24 extern DLLAPI const SilcAcceleratorStruct softacc;
25
26 SilcBool silc_softacc_init(SilcSchedule schedule, va_list va);
27 SilcBool silc_softacc_uninit(void);
28 SILC_PKCS_ALG_IMPORT_PUBLIC_KEY(silc_softacc_acc_public_key);
29 SILC_PKCS_ALG_PUBLIC_KEY_FREE(silc_softacc_free_public_key);
30 SILC_PKCS_ALG_IMPORT_PRIVATE_KEY(silc_softacc_acc_private_key);
31 SILC_PKCS_ALG_PRIVATE_KEY_FREE(silc_softacc_free_private_key);
32 SILC_PKCS_ALG_ENCRYPT(silc_softacc_encrypt);
33 SILC_PKCS_ALG_DECRYPT(silc_softacc_decrypt);
34 SILC_PKCS_ALG_SIGN(silc_softacc_sign);
35 SILC_PKCS_ALG_VERIFY(silc_softacc_verify);
36
37 #endif /* SOFTACC_H */