-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[do-not-merge] Bug/allow returning an error in dh (#11)
* Remove encryted header version * Return error from DH & Encrypt * Use slices instead of fixed array for keys In order to support multiple types of curves, this commits changes the type of `Key` from `[32]byte` to `[]byte`. This is useful as most of the eliptic keys have a size of a compressed key of `33 bytes` instead of `32 bytes`, which the default implemetation uses (curve25519).
- Loading branch information
Showing
12 changed files
with
145 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.