Added OpenPGP library to lib/silcpgp
[crypto.git] / lib / silcpgp / silcpgp_pkcs.h
1 /*
2
3   silcpgp_pkcs.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2008 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 SILCPGP_PKCS_H
21 #define SILCPGP_PKCS_H
22
23 SILC_PKCS_GET_ALGORITHM(silc_pkcs_pgp_get_algorithm);
24 SILC_PKCS_IMPORT_PUBLIC_KEY_FILE(silc_pkcs_pgp_import_public_key_file);
25 SILC_PKCS_IMPORT_PUBLIC_KEY(silc_pkcs_pgp_import_public_key);
26 SILC_PKCS_EXPORT_PUBLIC_KEY_FILE(silc_pkcs_pgp_export_public_key_file);
27 SILC_PKCS_EXPORT_PUBLIC_KEY(silc_pkcs_pgp_export_public_key);
28 SILC_PKCS_PUBLIC_KEY_BITLEN(silc_pkcs_pgp_public_key_bitlen);
29 SILC_PKCS_PUBLIC_KEY_COPY(silc_pkcs_pgp_public_key_copy);
30 SILC_PKCS_PUBLIC_KEY_COMPARE(silc_pkcs_pgp_public_key_compare);
31 SILC_PKCS_PUBLIC_KEY_FREE(silc_pkcs_pgp_public_key_free);
32 SILC_PKCS_IMPORT_PRIVATE_KEY_FILE(silc_pkcs_pgp_import_private_key_file);
33 SILC_PKCS_IMPORT_PRIVATE_KEY(silc_pkcs_pgp_import_private_key);
34 SILC_PKCS_EXPORT_PRIVATE_KEY_FILE(silc_pkcs_pgp_export_private_key_file);
35 SILC_PKCS_EXPORT_PRIVATE_KEY(silc_pkcs_pgp_export_private_key);
36 SILC_PKCS_PRIVATE_KEY_BITLEN(silc_pkcs_pgp_private_key_bitlen);
37 SILC_PKCS_PRIVATE_KEY_FREE(silc_pkcs_pgp_private_key_free);
38 SILC_PKCS_ENCRYPT(silc_pkcs_pgp_encrypt);
39 SILC_PKCS_DECRYPT(silc_pkcs_pgp_decrypt);
40 SILC_PKCS_SIGN(silc_pkcs_pgp_sign);
41 SILC_PKCS_VERIFY(silc_pkcs_pgp_verify);
42
43 SILC_PKCS_ALG_IMPORT_PUBLIC_KEY(silc_pgp_rsa_import_public_key);
44 SILC_PKCS_ALG_EXPORT_PUBLIC_KEY(silc_pgp_rsa_export_public_key);
45 SILC_PKCS_ALG_IMPORT_PRIVATE_KEY(silc_pgp_rsa_import_private_key);
46 SILC_PKCS_ALG_EXPORT_PRIVATE_KEY(silc_pgp_rsa_export_private_key);
47
48 SILC_PKCS_ALG_IMPORT_PUBLIC_KEY(silc_pgp_dsa_import_public_key);
49 SILC_PKCS_ALG_EXPORT_PUBLIC_KEY(silc_pgp_dsa_export_public_key);
50 SILC_PKCS_ALG_IMPORT_PRIVATE_KEY(silc_pgp_dsa_import_private_key);
51 SILC_PKCS_ALG_EXPORT_PRIVATE_KEY(silc_pgp_dsa_export_private_key);
52
53 #endif /* SILCPGP_PKCS_H */