ssh/terminal: set termios VMIN and VTIME in MakeRaw

The Solaris version of MakeRaw already sets VMIN and VTIME explicitly
such that a read returns when one character is available.
cfmakeraw (whose behavior MakeRaw replicate) in glibc and the BSD's libc
also set these values explicitly, so it should be done in the Linux/BSD
versions of MakeRaw as well to be consistent.

Change-Id: I531641ec87fd6a21b7a544b9a464bb90045b0bb1
Run-TryBot: Ian Lance Taylor <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Avelino <>
Reviewed-by: Ian Lance Taylor <>
1 file changed
tree: 881a2d8cc53368b7313b67f179595bcc2a81d585
  1. .gitattributes
  2. .gitignore
  9. acme/
  10. bcrypt/
  11. blake2b/
  12. blake2s/
  13. blowfish/
  14. bn256/
  15. cast5/
  16. chacha20poly1305/
  17. codereview.cfg
  18. cryptobyte/
  19. curve25519/
  20. ed25519/
  21. hkdf/
  22. md4/
  23. nacl/
  24. ocsp/
  25. openpgp/
  26. otr/
  27. pbkdf2/
  28. pkcs12/
  29. poly1305/
  30. ripemd160/
  31. salsa20/
  32. scrypt/
  33. sha3/
  34. ssh/
  35. tea/
  36. twofish/
  37. xtea/
  38. xts/

Go Cryptography

This repository holds supplementary Go cryptography libraries.


The easiest way to install is to run go get -u You can also manually git clone the repository to $GOPATH/src/

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

The main issue tracker for the crypto repository is located at Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.

Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.