spacemonkeygo / openssl

OpenSSL bindings for Go
http://godoc.org/github.com/spacemonkeygo/openssl
Apache License 2.0
473 stars 236 forks source link

Add binding for EVP_BytesToKey() key derivation function #74

Open xakep666 opened 7 years ago

xakep666 commented 7 years ago

This function generates key and IV using salt and passphrase. It used to decrypt data with "Salted__" header

xakep666 commented 7 years ago

Changed "password" parameter type to []byte because EVP_BytesToKey takes password as (unsigned char *)