📄 cipherdes.c
字号:
#include "ssh.h"struct CipherState{ DESstate enc; DESstate dec;};static CipherState*initdes(Conn *c, int){ CipherState *cs; cs = emalloc(sizeof(CipherState)); setupDESstate(&cs->enc, c->sesskey, nil); setupDESstate(&cs->dec, c->sesskey, nil); return cs;}static voidencryptdes(CipherState *cs, uchar *buf, int nbuf){ desCBCencrypt(buf, nbuf, &cs->enc);}static voiddecryptdes(CipherState *cs, uchar *buf, int nbuf){ desCBCdecrypt(buf, nbuf, &cs->dec);}Cipher cipherdes ={ SSH_CIPHER_DES, "des", initdes, encryptdes, decryptdes,};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -