X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=lib%2Fsilcpgp%2Fsilcpgp_pkcs.h;fp=lib%2Fsilcpgp%2Fsilcpgp_pkcs.h;h=5b73278727ad4aeb41ca410891f8300e884c8480;hp=0000000000000000000000000000000000000000;hb=1b4e874f9401653b659a6adec2d2f046f9331586;hpb=7d4fb45c07b67b027b549f46c3689e44e81b3586 diff --git a/lib/silcpgp/silcpgp_pkcs.h b/lib/silcpgp/silcpgp_pkcs.h new file mode 100644 index 00000000..5b732787 --- /dev/null +++ b/lib/silcpgp/silcpgp_pkcs.h @@ -0,0 +1,53 @@ +/* + + silcpgp_pkcs.h + + Author: Pekka Riikonen + + Copyright (C) 2008 Pekka Riikonen + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + +*/ + +#ifndef SILCPGP_PKCS_H +#define SILCPGP_PKCS_H + +SILC_PKCS_GET_ALGORITHM(silc_pkcs_pgp_get_algorithm); +SILC_PKCS_IMPORT_PUBLIC_KEY_FILE(silc_pkcs_pgp_import_public_key_file); +SILC_PKCS_IMPORT_PUBLIC_KEY(silc_pkcs_pgp_import_public_key); +SILC_PKCS_EXPORT_PUBLIC_KEY_FILE(silc_pkcs_pgp_export_public_key_file); +SILC_PKCS_EXPORT_PUBLIC_KEY(silc_pkcs_pgp_export_public_key); +SILC_PKCS_PUBLIC_KEY_BITLEN(silc_pkcs_pgp_public_key_bitlen); +SILC_PKCS_PUBLIC_KEY_COPY(silc_pkcs_pgp_public_key_copy); +SILC_PKCS_PUBLIC_KEY_COMPARE(silc_pkcs_pgp_public_key_compare); +SILC_PKCS_PUBLIC_KEY_FREE(silc_pkcs_pgp_public_key_free); +SILC_PKCS_IMPORT_PRIVATE_KEY_FILE(silc_pkcs_pgp_import_private_key_file); +SILC_PKCS_IMPORT_PRIVATE_KEY(silc_pkcs_pgp_import_private_key); +SILC_PKCS_EXPORT_PRIVATE_KEY_FILE(silc_pkcs_pgp_export_private_key_file); +SILC_PKCS_EXPORT_PRIVATE_KEY(silc_pkcs_pgp_export_private_key); +SILC_PKCS_PRIVATE_KEY_BITLEN(silc_pkcs_pgp_private_key_bitlen); +SILC_PKCS_PRIVATE_KEY_FREE(silc_pkcs_pgp_private_key_free); +SILC_PKCS_ENCRYPT(silc_pkcs_pgp_encrypt); +SILC_PKCS_DECRYPT(silc_pkcs_pgp_decrypt); +SILC_PKCS_SIGN(silc_pkcs_pgp_sign); +SILC_PKCS_VERIFY(silc_pkcs_pgp_verify); + +SILC_PKCS_ALG_IMPORT_PUBLIC_KEY(silc_pgp_rsa_import_public_key); +SILC_PKCS_ALG_EXPORT_PUBLIC_KEY(silc_pgp_rsa_export_public_key); +SILC_PKCS_ALG_IMPORT_PRIVATE_KEY(silc_pgp_rsa_import_private_key); +SILC_PKCS_ALG_EXPORT_PRIVATE_KEY(silc_pgp_rsa_export_private_key); + +SILC_PKCS_ALG_IMPORT_PUBLIC_KEY(silc_pgp_dsa_import_public_key); +SILC_PKCS_ALG_EXPORT_PUBLIC_KEY(silc_pgp_dsa_export_public_key); +SILC_PKCS_ALG_IMPORT_PRIVATE_KEY(silc_pgp_dsa_import_private_key); +SILC_PKCS_ALG_EXPORT_PRIVATE_KEY(silc_pgp_dsa_export_private_key); + +#endif /* SILCPGP_PKCS_H */