Documentation ¶
Index ¶
- Constants
- func DecryptData(aesKey, hmacKey []byte, cipheredData, cipheredAuth []byte, index int) ([]byte, error)
- func DecryptKey(priv *rsa.PrivateKey, encKey string) ([]byte, []byte, error)
- func DecryptName(aesKey, hmacKey []byte, nameEnc string) (string, error)
- func DecryptPrivateKey(encPriv, pass string) (*rsa.PrivateKey, error)
- func DecryptRandom(aesKey, cipheredAuth []byte) []byte
- func Encrypt(rnd io.Reader, aesKey, hmacKey []byte, input io.Reader, size int) io.Reader
- func EncryptBlock(rnd io.Reader, aesKey, hmacKey, plain []byte, index int) ([]byte, []byte, error)
- func EncryptKey(pub *rsa.PublicKey, aesKey, hmacKey []byte) (string, error)
- func EncryptName(aesKey, hmacKey []byte, name string) (string, error)
- func EncryptPrivateKey(priv *rsa.PrivateKey, pass string) (string, error)
- func EncryptSector(rnd io.Reader, aesKey, hmacKey, plain []byte, index int) ([]byte, []byte, error)
- func GenerateKey(rnd io.Reader) ([]byte, []byte, error)
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func SHA1(input string) string
Constants ¶
View Source
const EncryptBufferSize = 4096 * 130
Variables ¶
This section is empty.
Functions ¶
func DecryptData ¶
func DecryptKey ¶
func DecryptPrivateKey ¶
func DecryptPrivateKey(encPriv, pass string) (*rsa.PrivateKey, error)
func DecryptRandom ¶
func EncryptBlock ¶
func EncryptPrivateKey ¶
func EncryptPrivateKey(priv *rsa.PrivateKey, pass string) (string, error)
func EncryptSector ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.