ciphernone.c 317 B

12345678910111213141516171819202122232425262728
  1. #include "ssh.h"
  2. static CipherState*
  3. initnone(Conn*, int)
  4. {
  5. /* must be non-nil */
  6. return (CipherState*)~0;
  7. }
  8. static void
  9. encryptnone(CipherState*, uchar*, int)
  10. {
  11. }
  12. static void
  13. decryptnone(CipherState*, uchar*, int)
  14. {
  15. }
  16. Cipher ciphernone =
  17. {
  18. SSH_CIPHER_NONE,
  19. "none",
  20. initnone,
  21. encryptnone,
  22. decryptnone,
  23. };