summaryrefslogtreecommitdiffabout
path: root/pwmanager/libcrypt/crypt/cipher.h
Unidiff
Diffstat (limited to 'pwmanager/libcrypt/crypt/cipher.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/libcrypt/crypt/cipher.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/pwmanager/libcrypt/crypt/cipher.h b/pwmanager/libcrypt/crypt/cipher.h
new file mode 100644
index 0000000..a5f194e
--- a/dev/null
+++ b/pwmanager/libcrypt/crypt/cipher.h
@@ -0,0 +1,80 @@
1/* cipher.h
2 *Copyright (C) 1998, 2002, 2003 Free Software Foundation, Inc.
3 *
4 * This file is part of Libgcrypt.
5 *
6 * Libgcrypt is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser general Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
10 *
11 * Libgcrypt is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19 */
20#ifndef G10_CIPHER_H
21#define G10_CIPHER_H
22
23#include <gcrypt.h>
24
25#define DBG_CIPHER _gcry_get_debug_flag( 1 )
26
27#include "../cipher/random.h"
28
29#define PUBKEY_FLAG_NO_BLINDING (1 << 0)
30
31/*-- rmd160.c --*/
32void _gcry_rmd160_hash_buffer (char *outbuf, const char *buffer, size_t length);
33/*-- sha1.c --*/
34void _gcry_sha1_hash_buffer (char *outbuf, const char *buffer, size_t length);
35
36/*-- dsa.c --*/
37void _gcry_register_pk_dsa_progress (gcry_handler_progress_t cbc, void *cb_data);
38/*-- elgamal.c --*/
39void _gcry_register_pk_elg_progress (gcry_handler_progress_t cb, void *cb_data);
40/*-- primegen.c --*/
41void _gcry_register_primegen_progress (gcry_handler_progress_t cb, void *cb_data);
42
43/*-- pubkey.c --*/
44const char * _gcry_pk_aliased_algo_name (int algorithm);
45
46/* Declarations for the cipher specifications. */
47extern gcry_cipher_spec_t _gcry_cipher_spec_blowfish;
48extern gcry_cipher_spec_t _gcry_cipher_spec_des;
49extern gcry_cipher_spec_t _gcry_cipher_spec_tripledes;
50extern gcry_cipher_spec_t _gcry_cipher_spec_arcfour;
51extern gcry_cipher_spec_t _gcry_cipher_spec_cast5;
52extern gcry_cipher_spec_t _gcry_cipher_spec_aes;
53extern gcry_cipher_spec_t _gcry_cipher_spec_aes192;
54extern gcry_cipher_spec_t _gcry_cipher_spec_aes256;
55extern gcry_cipher_spec_t _gcry_cipher_spec_twofish;
56extern gcry_cipher_spec_t _gcry_cipher_spec_twofish128;
57extern gcry_cipher_spec_t _gcry_cipher_spec_serpent128;
58extern gcry_cipher_spec_t _gcry_cipher_spec_serpent192;
59extern gcry_cipher_spec_t _gcry_cipher_spec_serpent256;
60extern gcry_cipher_spec_t _gcry_cipher_spec_rfc2268_40;
61
62/* Declarations for the digest specifications. */
63extern gcry_md_spec_t _gcry_digest_spec_crc32;
64extern gcry_md_spec_t _gcry_digest_spec_crc32_rfc1510;
65extern gcry_md_spec_t _gcry_digest_spec_crc24_rfc2440;
66extern gcry_md_spec_t _gcry_digest_spec_md4;
67extern gcry_md_spec_t _gcry_digest_spec_md5;
68extern gcry_md_spec_t _gcry_digest_spec_rmd160;
69extern gcry_md_spec_t _gcry_digest_spec_sha1;
70extern gcry_md_spec_t _gcry_digest_spec_sha256;
71extern gcry_md_spec_t _gcry_digest_spec_sha512;
72extern gcry_md_spec_t _gcry_digest_spec_sha384;
73extern gcry_md_spec_t _gcry_digest_spec_tiger;
74
75/* Declarations for the pubkey cipher specifications. */
76extern gcry_pk_spec_t _gcry_pubkey_spec_rsa;
77extern gcry_pk_spec_t _gcry_pubkey_spec_elg;
78extern gcry_pk_spec_t _gcry_pubkey_spec_dsa;
79
80#endif /*G10_CIPHER_H*/