diff options
author | Damien Miller <djm@mindrot.org> | 2013-04-23 19:24:32 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-04-23 19:24:32 +1000 |
commit | ea11119eee3c5e2429b1f5f8688b25b028fa991a (patch) | |
tree | 5916295fcefb8665088f59a5431cb0c792fbf327 /cipher.h | |
parent | a56086b9903b62c1c4fdedf01b68338fe4dc90e4 (diff) |
- djm@cvs.openbsd.org 2013/04/19 01:06:50
[authfile.c cipher.c cipher.h kex.c kex.h kexecdh.c kexecdhc.c kexecdhs.c]
[key.c key.h mac.c mac.h packet.c ssh.1 ssh.c]
add the ability to query supported ciphers, MACs, key type and KEX
algorithms to ssh. Includes some refactoring of KEX and key type handling
to be table-driven; ok markus@
Diffstat (limited to 'cipher.h')
-rw-r--r-- | cipher.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cipher.h,v 1.39 2013/01/08 18:49:04 markus Exp $ */ | 1 | /* $OpenBSD: cipher.h,v 1.40 2013/04/19 01:06:50 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -66,21 +66,22 @@ struct CipherContext { | |||
66 | int plaintext; | 66 | int plaintext; |
67 | int encrypt; | 67 | int encrypt; |
68 | EVP_CIPHER_CTX evp; | 68 | EVP_CIPHER_CTX evp; |
69 | Cipher *cipher; | 69 | const Cipher *cipher; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | u_int cipher_mask_ssh1(int); | 72 | u_int cipher_mask_ssh1(int); |
73 | Cipher *cipher_by_name(const char *); | 73 | const Cipher *cipher_by_name(const char *); |
74 | Cipher *cipher_by_number(int); | 74 | const Cipher *cipher_by_number(int); |
75 | int cipher_number(const char *); | 75 | int cipher_number(const char *); |
76 | char *cipher_name(int); | 76 | char *cipher_name(int); |
77 | int ciphers_valid(const char *); | 77 | int ciphers_valid(const char *); |
78 | void cipher_init(CipherContext *, Cipher *, const u_char *, u_int, | 78 | char *cipher_alg_list(void); |
79 | void cipher_init(CipherContext *, const Cipher *, const u_char *, u_int, | ||
79 | const u_char *, u_int, int); | 80 | const u_char *, u_int, int); |
80 | void cipher_crypt(CipherContext *, u_char *, const u_char *, | 81 | void cipher_crypt(CipherContext *, u_char *, const u_char *, |
81 | u_int, u_int, u_int); | 82 | u_int, u_int, u_int); |
82 | void cipher_cleanup(CipherContext *); | 83 | void cipher_cleanup(CipherContext *); |
83 | void cipher_set_key_string(CipherContext *, Cipher *, const char *, int); | 84 | void cipher_set_key_string(CipherContext *, const Cipher *, const char *, int); |
84 | u_int cipher_blocksize(const Cipher *); | 85 | u_int cipher_blocksize(const Cipher *); |
85 | u_int cipher_keylen(const Cipher *); | 86 | u_int cipher_keylen(const Cipher *); |
86 | u_int cipher_authlen(const Cipher *); | 87 | u_int cipher_authlen(const Cipher *); |