Skip to content

Commit

Permalink
Fix type spec error in crypto
Browse files Browse the repository at this point in the history
Changed return types from "binary" to "binary()"
for md5_mac, md5_mac_96, sha_mac and sha_mac_96.
  • Loading branch information
sverker committed Jul 8, 2010
1 parent 46866e3 commit 8b6f205
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/crypto/src/crypto.erl
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ sha_final(_Context) -> ?nif_stub.
%%
%% MD5_MAC
%%
-spec md5_mac(iodata(), iodata()) -> binary.
-spec md5_mac_96(iodata(), iodata()) -> binary.
-spec md5_mac(iodata(), iodata()) -> binary().
-spec md5_mac_96(iodata(), iodata()) -> binary().

md5_mac(Key, Data) ->
md5_mac_n(Key,Data,16).
Expand All @@ -209,8 +209,8 @@ md5_mac_n(_Key,_Data,_MacSz) -> ?nif_stub.
%%
%% SHA_MAC
%%
-spec sha_mac(iodata(), iodata()) -> binary.
-spec sha_mac_96(iodata(), iodata()) -> binary.
-spec sha_mac(iodata(), iodata()) -> binary().
-spec sha_mac_96(iodata(), iodata()) -> binary().

sha_mac(Key, Data) ->
sha_mac_n(Key,Data,20).
Expand Down

0 comments on commit 8b6f205

Please sign in to comment.