summaryrefslogtreecommitdiff
path: root/cipher.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:02:36 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-04 04:02:36 +0000
commit16ae3d0dba5f81e5602798b915105284033dea75 (patch)
treece0c2bf0d7e961b1015d43d1a07269d81e7a9ce9 /cipher.h
parent90279d80f57c79ac6566051172a94a2cca9674b1 (diff)
- itojun@cvs.openbsd.org 2001/06/26 06:32:58
[atomicio.h authfd.h authfile.h auth.h auth-options.h bufaux.h buffer.h canohost.h channels.h cipher.h clientloop.h compat.h compress.h crc32.h deattack.h dh.h dispatch.h groupaccess.h hostfile.h kex.h key.h log.h mac.h match.h misc.h mpaux.h packet.h radix.h readconf.h readpass.h rsa.h] prototype pedant. not very creative... - () -> (void) - no variable names
Diffstat (limited to 'cipher.h')
-rw-r--r--cipher.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/cipher.h b/cipher.h
index 2ad4979c2..16dd06230 100644
--- a/cipher.h
+++ b/cipher.h
@@ -32,7 +32,7 @@
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */ 33 */
34 34
35/* RCSID("$OpenBSD: cipher.h,v 1.26 2001/05/28 22:51:11 markus Exp $"); */ 35/* RCSID("$OpenBSD: cipher.h,v 1.27 2001/06/26 06:32:49 itojun Exp $"); */
36 36
37#ifndef CIPHER_H 37#ifndef CIPHER_H
38#define CIPHER_H 38#define CIPHER_H
@@ -104,15 +104,16 @@ struct Cipher {
104 void (*decrypt)(CipherContext *, u_char *, const u_char *, u_int); 104 void (*decrypt)(CipherContext *, u_char *, const u_char *, u_int);
105}; 105};
106 106
107u_int cipher_mask_ssh1(int client); 107u_int cipher_mask_ssh1(int);
108Cipher *cipher_by_name(const char *name); 108Cipher *cipher_by_name(const char *);
109Cipher *cipher_by_number(int id); 109Cipher *cipher_by_number(int);
110int cipher_number(const char *name); 110int cipher_number(const char *);
111char *cipher_name(int id); 111char *cipher_name(int);
112int ciphers_valid(const char *names); 112int ciphers_valid(const char *);
113void cipher_init(CipherContext *, Cipher *, const u_char *, u_int, const u_char *, u_int); 113void cipher_init(CipherContext *, Cipher *, const u_char *, u_int,
114void cipher_encrypt(CipherContext *context, u_char *dest, const u_char *src, u_int len); 114 const u_char *, u_int);
115void cipher_decrypt(CipherContext *context, u_char *dest, const u_char *src, u_int len); 115void cipher_encrypt(CipherContext *, u_char *, const u_char *, u_int);
116void cipher_set_key_string(CipherContext *context, Cipher *cipher, const char *passphrase); 116void cipher_decrypt(CipherContext *, u_char *, const u_char *, u_int);
117void cipher_set_key_string(CipherContext *, Cipher *, const char *);
117 118
118#endif /* CIPHER_H */ 119#endif /* CIPHER_H */