]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/ssh/ciphernone.c
kernel: keep segment locked for data2txt
[plan9front.git] / sys / src / cmd / ssh / ciphernone.c
1 #include "ssh.h"
2
3 static CipherState*
4 initnone(Conn*, int)
5 {
6         /* must be non-nil */
7         return (CipherState*)~0;
8 }
9
10 static void
11 encryptnone(CipherState*, uchar*, int)
12 {
13 }
14
15 static void
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