summaryrefslogtreecommitdiff
path: root/cipher.h
diff options
context:
space:
mode:
Diffstat (limited to 'cipher.h')
-rw-r--r--cipher.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/cipher.h b/cipher.h
index 8cb57c3e5..b878d50f4 100644
--- a/cipher.h
+++ b/cipher.h
@@ -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
72u_int cipher_mask_ssh1(int); 72u_int cipher_mask_ssh1(int);
73Cipher *cipher_by_name(const char *); 73const Cipher *cipher_by_name(const char *);
74Cipher *cipher_by_number(int); 74const Cipher *cipher_by_number(int);
75int cipher_number(const char *); 75int cipher_number(const char *);
76char *cipher_name(int); 76char *cipher_name(int);
77int ciphers_valid(const char *); 77int ciphers_valid(const char *);
78void cipher_init(CipherContext *, Cipher *, const u_char *, u_int, 78char *cipher_alg_list(void);
79void cipher_init(CipherContext *, const Cipher *, const u_char *, u_int,
79 const u_char *, u_int, int); 80 const u_char *, u_int, int);
80void cipher_crypt(CipherContext *, u_char *, const u_char *, 81void cipher_crypt(CipherContext *, u_char *, const u_char *,
81 u_int, u_int, u_int); 82 u_int, u_int, u_int);
82void cipher_cleanup(CipherContext *); 83void cipher_cleanup(CipherContext *);
83void cipher_set_key_string(CipherContext *, Cipher *, const char *, int); 84void cipher_set_key_string(CipherContext *, const Cipher *, const char *, int);
84u_int cipher_blocksize(const Cipher *); 85u_int cipher_blocksize(const Cipher *);
85u_int cipher_keylen(const Cipher *); 86u_int cipher_keylen(const Cipher *);
86u_int cipher_authlen(const Cipher *); 87u_int cipher_authlen(const Cipher *);