aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2010-07-08 14:36:36 +0200
committerSverker Eriksson <[email protected]>2010-07-08 14:36:36 +0200
commit816534bc6eac4cd5e617eec48db0a25428aa4794 (patch)
tree149df147a8db86e09c7c077a43205def883010a3
parent46866e3e04af3bfecac26e731a662fdcc61c048f (diff)
parent8b6f2052d0a83da44462cd2642a52341d4ee193b (diff)
downloadotp-816534bc6eac4cd5e617eec48db0a25428aa4794.tar.gz
otp-816534bc6eac4cd5e617eec48db0a25428aa4794.tar.bz2
otp-816534bc6eac4cd5e617eec48db0a25428aa4794.zip
Merge branch 'sverker/crypto_type_error/OTP-8718' into dev
* sverker/crypto_type_error/OTP-8718: Fix type spec error in crypto
-rw-r--r--lib/crypto/src/crypto.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index 39512d27e1..19fa495b7d 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -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).
@@ -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).