shithub: riscv

ref: a57a6e511f15c02b4fd2690197b6f1333b171193
dir: /sys/src/cmd/ssh/ciphernone.c/

View raw version
#include "ssh.h"

static CipherState*
initnone(Conn*, int)
{
	/* must be non-nil */
	return (CipherState*)~0;
}

static void
encryptnone(CipherState*, uchar*, int)
{
}

static void
decryptnone(CipherState*, uchar*, int)
{
}

Cipher ciphernone =
{
	SSH_CIPHER_NONE,
	"none",
	initnone,
	encryptnone,
	decryptnone,
};