Diffstat (limited to 'pwmanager/libcrypt/crypt/cipher.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/libcrypt/crypt/cipher.h | 80 |
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 --*/ | ||
32 | void _gcry_rmd160_hash_buffer (char *outbuf, const char *buffer, size_t length); | ||
33 | /*-- sha1.c --*/ | ||
34 | void _gcry_sha1_hash_buffer (char *outbuf, const char *buffer, size_t length); | ||
35 | |||
36 | /*-- dsa.c --*/ | ||
37 | void _gcry_register_pk_dsa_progress (gcry_handler_progress_t cbc, void *cb_data); | ||
38 | /*-- elgamal.c --*/ | ||
39 | void _gcry_register_pk_elg_progress (gcry_handler_progress_t cb, void *cb_data); | ||
40 | /*-- primegen.c --*/ | ||
41 | void _gcry_register_primegen_progress (gcry_handler_progress_t cb, void *cb_data); | ||
42 | |||
43 | /*-- pubkey.c --*/ | ||
44 | const char * _gcry_pk_aliased_algo_name (int algorithm); | ||
45 | |||
46 | /* Declarations for the cipher specifications. */ | ||
47 | extern gcry_cipher_spec_t _gcry_cipher_spec_blowfish; | ||
48 | extern gcry_cipher_spec_t _gcry_cipher_spec_des; | ||
49 | extern gcry_cipher_spec_t _gcry_cipher_spec_tripledes; | ||
50 | extern gcry_cipher_spec_t _gcry_cipher_spec_arcfour; | ||
51 | extern gcry_cipher_spec_t _gcry_cipher_spec_cast5; | ||
52 | extern gcry_cipher_spec_t _gcry_cipher_spec_aes; | ||
53 | extern gcry_cipher_spec_t _gcry_cipher_spec_aes192; | ||
54 | extern gcry_cipher_spec_t _gcry_cipher_spec_aes256; | ||
55 | extern gcry_cipher_spec_t _gcry_cipher_spec_twofish; | ||
56 | extern gcry_cipher_spec_t _gcry_cipher_spec_twofish128; | ||
57 | extern gcry_cipher_spec_t _gcry_cipher_spec_serpent128; | ||
58 | extern gcry_cipher_spec_t _gcry_cipher_spec_serpent192; | ||
59 | extern gcry_cipher_spec_t _gcry_cipher_spec_serpent256; | ||
60 | extern gcry_cipher_spec_t _gcry_cipher_spec_rfc2268_40; | ||
61 | |||
62 | /* Declarations for the digest specifications. */ | ||
63 | extern gcry_md_spec_t _gcry_digest_spec_crc32; | ||
64 | extern gcry_md_spec_t _gcry_digest_spec_crc32_rfc1510; | ||
65 | extern gcry_md_spec_t _gcry_digest_spec_crc24_rfc2440; | ||
66 | extern gcry_md_spec_t _gcry_digest_spec_md4; | ||
67 | extern gcry_md_spec_t _gcry_digest_spec_md5; | ||
68 | extern gcry_md_spec_t _gcry_digest_spec_rmd160; | ||
69 | extern gcry_md_spec_t _gcry_digest_spec_sha1; | ||
70 | extern gcry_md_spec_t _gcry_digest_spec_sha256; | ||
71 | extern gcry_md_spec_t _gcry_digest_spec_sha512; | ||
72 | extern gcry_md_spec_t _gcry_digest_spec_sha384; | ||
73 | extern gcry_md_spec_t _gcry_digest_spec_tiger; | ||
74 | |||
75 | /* Declarations for the pubkey cipher specifications. */ | ||
76 | extern gcry_pk_spec_t _gcry_pubkey_spec_rsa; | ||
77 | extern gcry_pk_spec_t _gcry_pubkey_spec_elg; | ||
78 | extern gcry_pk_spec_t _gcry_pubkey_spec_dsa; | ||
79 | |||
80 | #endif /*G10_CIPHER_H*/ | ||