diff options
author | khm <devnull@localhost> | 2017-01-12 16:36:38 -0800 |
---|---|---|
committer | khm <devnull@localhost> | 2017-01-12 16:36:38 -0800 |
commit | dc8c7bf2b73d608ac2483aee303a51a3507b4c5a (patch) | |
tree | f8c69dbf5f36de6f9acea724f2068054b5b8e7a6 /sys/src/cmd/ssh/cipherrc4.c | |
parent | cb1555c7d741fa482c339aa9ac8a44753e2ad296 (diff) |
ssh: R.I.P.
Diffstat (limited to 'sys/src/cmd/ssh/cipherrc4.c')
-rw-r--r-- | sys/src/cmd/ssh/cipherrc4.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/sys/src/cmd/ssh/cipherrc4.c b/sys/src/cmd/ssh/cipherrc4.c deleted file mode 100644 index 5b41f0d23..000000000 --- a/sys/src/cmd/ssh/cipherrc4.c +++ /dev/null @@ -1,45 +0,0 @@ -#include "ssh.h" - -struct CipherState -{ - RC4state enc; - RC4state dec; -}; - -static CipherState* -initrc4(Conn *c, int isserver) -{ - CipherState *cs; - - cs = emalloc(sizeof(CipherState)); - if(isserver){ - setupRC4state(&cs->enc, c->sesskey, 16); - setupRC4state(&cs->dec, c->sesskey+16, 16); - }else{ - setupRC4state(&cs->dec, c->sesskey, 16); - setupRC4state(&cs->enc, c->sesskey+16, 16); - } - return cs; -} - -static void -encryptrc4(CipherState *cs, uchar *buf, int nbuf) -{ - rc4(&cs->enc, buf, nbuf); -} - -static void -decryptrc4(CipherState *cs, uchar *buf, int nbuf) -{ - rc4(&cs->dec, buf, nbuf); -} - -Cipher cipherrc4 = -{ - SSH_CIPHER_RC4, - "rc4", - initrc4, - encryptrc4, - decryptrc4, -}; - |