diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-04 04:02:36 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-04 04:02:36 +0000 |
commit | 16ae3d0dba5f81e5602798b915105284033dea75 (patch) | |
tree | ce0c2bf0d7e961b1015d43d1a07269d81e7a9ce9 /cipher.h | |
parent | 90279d80f57c79ac6566051172a94a2cca9674b1 (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.h | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -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 | ||
107 | u_int cipher_mask_ssh1(int client); | 107 | u_int cipher_mask_ssh1(int); |
108 | Cipher *cipher_by_name(const char *name); | 108 | Cipher *cipher_by_name(const char *); |
109 | Cipher *cipher_by_number(int id); | 109 | Cipher *cipher_by_number(int); |
110 | int cipher_number(const char *name); | 110 | int cipher_number(const char *); |
111 | char *cipher_name(int id); | 111 | char *cipher_name(int); |
112 | int ciphers_valid(const char *names); | 112 | int ciphers_valid(const char *); |
113 | void cipher_init(CipherContext *, Cipher *, const u_char *, u_int, const u_char *, u_int); | 113 | void cipher_init(CipherContext *, Cipher *, const u_char *, u_int, |
114 | void cipher_encrypt(CipherContext *context, u_char *dest, const u_char *src, u_int len); | 114 | const u_char *, u_int); |
115 | void cipher_decrypt(CipherContext *context, u_char *dest, const u_char *src, u_int len); | 115 | void cipher_encrypt(CipherContext *, u_char *, const u_char *, u_int); |
116 | void cipher_set_key_string(CipherContext *context, Cipher *cipher, const char *passphrase); | 116 | void cipher_decrypt(CipherContext *, u_char *, const u_char *, u_int); |
117 | void cipher_set_key_string(CipherContext *, Cipher *, const char *); | ||
117 | 118 | ||
118 | #endif /* CIPHER_H */ | 119 | #endif /* CIPHER_H */ |