From 3f4b50dbe19e645c6a98c95f24bd5cae91938627 Mon Sep 17 00:00:00 2001 From: Doug Huff Date: Thu, 29 Oct 2015 20:35:44 +0000 Subject: [PATCH] Squash some dialyzer warnings for constants. --- src/enacl.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/enacl.erl b/src/enacl.erl index 75e6ba9..03ea195 100644 --- a/src/enacl.erl +++ b/src/enacl.erl @@ -524,12 +524,12 @@ secretbox_key_size() -> %% @doc stream_chacha20_nonce_size/0 returns the byte size of the nonce for streams %% @end --spec stream_chacha20_nonce_size() -> pos_integer(). +-spec stream_chacha20_nonce_size() -> ?CRYPTO_STREAM_CHACHA20_NONCEBYTES. stream_chacha20_nonce_size() -> ?CRYPTO_STREAM_CHACHA20_NONCEBYTES. %% @doc stream_key_size/0 returns the byte size of the key for streams %% @end --spec stream_chacha20_key_size() -> pos_integer(). +-spec stream_chacha20_key_size() -> ?CRYPTO_STREAM_CHACHA20_KEYBYTES. stream_chacha20_key_size() -> ?CRYPTO_STREAM_CHACHA20_KEYBYTES. %% @doc stream_chacha20/3 produces a cryptographic stream suitable for secret-key encryption @@ -581,12 +581,12 @@ stream_chacha20_xor(Msg, Nonce, Key) -> %% @end %% @doc stream_nonce_size/0 returns the byte size of the nonce for streams %% @end --spec stream_nonce_size() -> pos_integer(). +-spec stream_nonce_size() -> ?CRYPTO_STREAM_NONCEBYTES. stream_nonce_size() -> ?CRYPTO_STREAM_NONCEBYTES. %% @doc stream_key_size/0 returns the byte size of the key for streams %% @end --spec stream_key_size() -> pos_integer(). +-spec stream_key_size() -> ?CRYPTO_STREAM_KEYBYTES. stream_key_size() -> ?CRYPTO_STREAM_KEYBYTES. %% @doc stream/3 produces a cryptographic stream suitable for secret-key encryption