Fix a type specification.
When calling `stream_xor/3` it is possible to supply `iodata()` directly and you don't have to convert to a binary first. Reflect this in the type of the specification.
This commit is contained in:
parent
ea4558738a
commit
797daa653b
@ -374,7 +374,7 @@ stream(_, _, _) -> error(badarg).
|
|||||||
%% @end
|
%% @end
|
||||||
-spec stream_xor(Msg, Nonce, Key) -> CipherText
|
-spec stream_xor(Msg, Nonce, Key) -> CipherText
|
||||||
when
|
when
|
||||||
Msg :: binary(),
|
Msg :: iodata(),
|
||||||
Nonce :: binary(),
|
Nonce :: binary(),
|
||||||
Key :: binary(),
|
Key :: binary(),
|
||||||
CipherText :: binary().
|
CipherText :: binary().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user