xref: /plan9/sys/src/cmd/ssh1/ciphernone.c (revision 63afb9a5d3f910047231762bcce0ee49fed3d07c)
1 #include "ssh.h"
2 
3 static CipherState*
initnone(Conn *,int)4 initnone(Conn*, int)
5 {
6 	/* must be non-nil */
7 	return (CipherState*)~0;
8 }
9 
10 static void
encryptnone(CipherState *,uchar *,int)11 encryptnone(CipherState*, uchar*, int)
12 {
13 }
14 
15 static void
decryptnone(CipherState *,uchar *,int)16 decryptnone(CipherState*, uchar*, int)
17 {
18 }
19 
20 Cipher ciphernone =
21 {
22 	SSH_CIPHER_NONE,
23 	"none",
24 	initnone,
25 	encryptnone,
26 	decryptnone,
27 };
28 
29