status-im / doubleratchet

The Double Ratchet Algorithm implementation in Go
MIT License
114 stars 14 forks source link

[do-not-merge] Bug/allow returning an error in dh #11

Closed cammellos closed 5 years ago

cammellos commented 5 years ago

This commit changes the interface of Encrypt & DH to allow returning an error. It also remove the encrypted header version as wasn't maintained anymore and currently not used.

cammellos commented 5 years ago

@adambabik ready to be reviewed again!

cammellos commented 5 years ago

@smoelius Done, I have split the commits in 3 different (remove header encryption, return an error and change the type from [32]byte to []byte). I have also included your last suggestion of checking the length of the keys. Thanks!