Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
hash
go run main.go "hello, world!" cat test.txt | go run main.go
|
go run main.go "hello, world!" cat test.txt | go run main.go |
rand
go run main.go 32 | base64
|
go run main.go 32 | base64 |
sign
go run main.go P57d32646706358da54806c1ee7a96d57eb8338a0428f6f9ef0972e46d0cb27b5557e2205e26de03ab1c370226e46b03c70c22145c0b6f0e52d93840112eefef3 "hello, world!" cat test.txt | go run main.go P57d32646706358da54806c1ee7a96d57eb8338a0428f6f9ef0972e46d0cb27b5557e2205e26de03ab1c370226e46b03c70c22145c0b6f0e52d93840112eefef3
|
go run main.go P57d32646706358da54806c1ee7a96d57eb8338a0428f6f9ef0972e46d0cb27b5557e2205e26de03ab1c370226e46b03c70c22145c0b6f0e52d93840112eefef3 "hello, world!" cat test.txt | go run main.go P57d32646706358da54806c1ee7a96d57eb8338a0428f6f9ef0972e46d0cb27b5557e2205e26de03ab1c370226e46b03c70c22145c0b6f0e52d93840112eefef3 |
verify
go run main.go 5006200000492e00004d41473100020000301306072a85030202230106082a85030701010202dcac377208e5f6c4ae42ab1ce1f97da514884b8fd8a8a7eaa7ba1fb74f8112c3b0d1f8a50225f766ba8bbbf32e26d38bc3368224e1e722640e028b087c924d9d 9c06ef2ace8186d7fe030734a2b1f56e60efdc75f09dcf5c7873b147e366a67dc8fd87f06e350706a6d37375ea7beca6a39684f31e79715fbed34bc08dd2f421 "hello, world!" cat test.txt | go run main.go 5006200000492e00004d41473100020000301306072a85030202230106082a85030701010202dcac377208e5f6c4ae42ab1ce1f97da514884b8fd8a8a7eaa7ba1fb74f8112c3b0d1f8a50225f766ba8bbbf32e26d38bc3368224e1e722640e028b087c924d9d 9c06ef2ace8186d7fe030734a2b1f56e60efdc75f09dcf5c7873b147e366a67dc8fd87f06e350706a6d37375ea7beca6a39684f31e79715fbed34bc08dd2f421
|
go run main.go 5006200000492e00004d41473100020000301306072a85030202230106082a85030701010202dcac377208e5f6c4ae42ab1ce1f97da514884b8fd8a8a7eaa7ba1fb74f8112c3b0d1f8a50225f766ba8bbbf32e26d38bc3368224e1e722640e028b087c924d9d 9c06ef2ace8186d7fe030734a2b1f56e60efdc75f09dcf5c7873b147e366a67dc8fd87f06e350706a6d37375ea7beca6a39684f31e79715fbed34bc08dd2f421 "hello, world!" cat test.txt | go run main.go 5006200000492e00004d41473100020000301306072a85030202230106082a85030701010202dcac377208e5f6c4ae42ab1ce1f97da514884b8fd8a8a7eaa7ba1fb74f8112c3b0d1f8a50225f766ba8bbbf32e26d38bc3368224e1e722640e028b087c924d9d 9c06ef2ace8186d7fe030734a2b1f56e60efdc75f09dcf5c7873b147e366a67dc8fd87f06e350706a6d37375ea7beca6a39684f31e79715fbed34bc08dd2f421 |
func GenPrivKey(cfg *Config) error {} func NewPrivKey(cfg *Config) (PrivKey, error) {} func LoadPrivKey(pbytes []byte) (PrivKey, error) {} func (key PrivKey) Bytes() []byte {} func (key PrivKey) String() string {} func (key PrivKey) Sign(dbytes []byte) ([]byte, error) {} func (key PrivKey) PubKey() PubKey {} func (key PrivKey) Equals(cmp PrivKey) bool {} func (key PrivKey) Type() string {}
|
func GenPrivKey(cfg *Config) error {} func NewPrivKey(cfg *Config) (PrivKey, error) {} func LoadPrivKey(pbytes []byte) (PrivKey, error) {} func (key PrivKey) Bytes() []byte {} func (key PrivKey) String() string {} func (key PrivKey) Sign(dbytes []byte) ([]byte, error) {} func (key PrivKey) PubKey() PubKey {} func (key PrivKey) Equals(cmp PrivKey) bool {} func (key PrivKey) Type() string {} |
func NewPrivKey(cfg *Config) (PrivKey, error) {} func LoadPrivKey(pbytes []byte) (PrivKey, error) {} func (key PrivKey) Bytes() []byte {} func (key PrivKey) String() string {} func (key PrivKey) Secret(pub PubKey) []byte {} func (key PrivKey) PubKey() PubKey {} func (key PrivKey) Equals(cmp PrivKey) bool {} func (key PrivKey) Type() string {}
|
func NewPrivKey(cfg *Config) (PrivKey, error) {} func LoadPrivKey(pbytes []byte) (PrivKey, error) {} func (key PrivKey) Bytes() []byte {} func (key PrivKey) String() string {} func (key PrivKey) Secret(pub PubKey) []byte {} func (key PrivKey) PubKey() PubKey {} func (key PrivKey) Equals(cmp PrivKey) bool {} func (key PrivKey) Type() string {} |
func New(prov ProvType) Hash {} func (hasher *Hash) Write(p []byte) (n int, err error) {} func (hasher *Hash) Sum(p []byte) []byte {} func (hasher *Hash) Reset() {} func (hasher *Hash) Size() int {} func (hasher *Hash) BlockSize() int {} func (hasher *Hash) Type() string {}
|
func New(prov ProvType) Hash {} func (hasher *Hash) Write(p []byte) (n int, err error) {} func (hasher *Hash) Sum(p []byte) []byte {} func (hasher *Hash) Reset() {} func (hasher *Hash) Size() int {} func (hasher *Hash) BlockSize() int {} func (hasher *Hash) Type() string {} |
func New(key []byte) (cipher.AEAD, error) {} func (cphr *Cipher) Seal(dst, nonce, plaintext, addData []byte) []byte {} func (cphr *Cipher) Open(dst, nonce, ciphertext, addData []byte) ([]byte, error) {} func (cphr *Cipher) NonceSize() int {} func (cphr *Cipher) Overhead() int {}
|
func New(key []byte) (cipher.AEAD, error) {} func (cphr *Cipher) Seal(dst, nonce, plaintext, addData []byte) []byte {} func (cphr *Cipher) Open(dst, nonce, ciphertext, addData []byte) ([]byte, error) {} func (cphr *Cipher) NonceSize() int {} func (cphr *Cipher) Overhead() int {} |
func Read(p []byte) (int, error) {} func (r Reader) Read(p []byte) (int, error) {} func Rand(size int) []byte {}
|
func Read(p []byte) (int, error) {} func (r Reader) Read(p []byte) (int, error) {} func Rand(size int) []byte {} |
Click to show internal directories.
Click to hide internal directories.