Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBtcCrypt ¶
func NewBtcCrypt() *btcCrypt
func NewEthCrypt ¶
func NewEthCrypt() *ethCrypt
Types ¶
type Cipher ¶
type Cipher string
Cipher is an algorithm for performing encryption or decryption in cryptography.
type CipherRWC ¶
type CipherRWC interface { io.ReadWriteCloser }
CipherRWC defines the interface for encryption algorithms where plaintext and ciphertext have different length.
type CipherRWCMaker ¶
type CipherRWCMaker interface { NonceSize() int Make(rwc io.ReadWriteCloser, genNonce bool, timeout *time.Duration, nonceCodec EqLenCipher) (CipherRWC, error) }
type EqLenCipher ¶
EqLenCipher defines the interface for encryption algorithms where plaintext and ciphertext have the same length.
type EqLenCipherRwc ¶
type EqLenCipherRwc struct {
// contains filtered or unexported fields
}
EqLenCipherRwc wraps io.ReadWriteCloser and EqLenCipher and it implements io.ReadWriteCloser
func NewEqLenCipherRWC ¶
func NewEqLenCipherRWC(elc EqLenCipher, rwc io.ReadWriteCloser) *EqLenCipherRwc
NewEqLenCipherRWC create new plaintext ciphertext equal length cipher codec wrapping a `io.ReadWriteCloser`.
func (*EqLenCipherRwc) Close ¶
func (cipher *EqLenCipherRwc) Close() error
Close implements io.ReadWriteCloser.
Click to show internal directories.
Click to hide internal directories.