sigtool/sign
Sudhi Herle 42bbe5ddeb Refactored the core signing & encryption library, teach sigtool to use safe I/O.
* Added new SafeFile (io.WriteCloser) class + methods to atomically write a file.
* Teach core lib to use SafeFile for all file I/O
* Teach sigtool to use SafeFile for all file I/O
* Cleaned up the public interfaces of sign/ to be more coherent:
   - with uniform APIs for marshaling, unmarshaling, serialization.
   - removed KeyPair class/interface and stick to PrivateKey as the primary
     interface.
* collected common rand utility functions into rand.go
* Teach sigtool to NOT overwrite existing output files (keys, signatures etc.)
* Teach sigtool to use a new --overwrite option for every command that creates
  files (generate, sign, encrypt, decrypt)
* encrypt/decrypt will try to use the input file mode/perm where possible
  (unless input is stdin).
* Added more tests
2022-04-29 21:36:39 +05:30
..
.gitignore Teach sigtool to use go modules; updated to use my fork of pflag. 2019-06-20 10:51:33 +05:30
doc.go Cleaned up chunk header encoding during encrypt/decrypt. 2020-01-29 16:47:14 +05:30
encrypt.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
encrypt_test.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
errors.go v2 of sigtool with some changes: 2021-05-15 19:35:54 -07:00
keys.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
LICENSE Teach sigtool to use go modules; updated to use my fork of pflag. 2019-06-20 10:51:33 +05:30
rand.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
README.md Teach sigtool to use go modules; updated to use my fork of pflag. 2019-06-20 10:51:33 +05:30
safefile.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
sign.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
sign_test.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
ssh.go Refactored the core signing & encryption library, teach sigtool to use safe I/O. 2022-04-29 21:36:39 +05:30
stream.go Closes #5 and #6 2022-04-27 08:54:44 +05:30
utils_test.go THIS IS A BREAKING CHANGE! Private Keys generated by previous versions won't work with this version. 2020-01-08 09:17:54 -08:00

GoDoc

sigtool/sign - Ed25519 signature calculation and verification

This is a small library that makes it easier to create and serialize Ed25519 keys, and sign, verify files using those keys. The library uses mmap(2) to read and process very large files.

The companion program sigtool uses this library.

License

GPL v2.0