Fix a type -spec.
This commit is contained in:
parent
ad663d5c9c
commit
cf08e5446f
@ -35,6 +35,12 @@ In addition, I would like to thank Steve Vinoski, Rickard Green, and Sverker Eri
|
||||
|
||||
## v0.10.x
|
||||
|
||||
### v0.10.x
|
||||
|
||||
Maintenance release.
|
||||
|
||||
* Fix type for `enacl:box_open/4`. The specification was wrong which results in errors in other applications using enacl.
|
||||
|
||||
### v0.10.2
|
||||
|
||||
Maintenance release. Fix some usability problems with the library.
|
||||
|
@ -185,7 +185,7 @@ box(Msg, Nonce, PK, SK) ->
|
||||
%% Decrypt a `CipherText` into a `Msg` given the other partys public key `PK` and your secret
|
||||
%% key `SK`. Also requires the same nonce as was used by the other party. Returns the plaintext
|
||||
%% message.
|
||||
-spec box_open(CipherText, Nonce, PK, SK) -> Msg
|
||||
-spec box_open(CipherText, Nonce, PK, SK) -> {ok, M} | {error, failed_verification}
|
||||
when CipherText :: iodata(),
|
||||
Nonce :: binary(),
|
||||
PK :: binary(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user