Fix a type -spec.

This commit is contained in:
Jesper Louis Andersen
2014-12-16 16:55:45 +01:00
parent ad663d5c9c
commit cf08e5446f
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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(),