QuickCheck for randombytes

There are some new randombytes
functions. Implement these as EQC
properties.
This commit is contained in:
Jesper Louis Andersen
2020-02-05 11:16:56 +01:00
parent c7720e6ab8
commit d06fff489d
5 changed files with 39 additions and 7 deletions
+4
View File
@@ -953,6 +953,10 @@ shorthash_size() ->
%%
%% Given a `Msg' and a `Key' produce a MAC/Authenticator for that message. The key can be reused for several such Msg/Authenticator pairs.
%% An eavesdropper will not learn anything extra about the message structure.
%%
%% The intended use is to generate a random key and use it as a hash table or bloom filter function.
%% This avoids an enemy their ability to predict where a collision would occur in the data structure,
%% since they don't know the key.
%% @end
-spec shorthash(Msg, Key) -> Authenticator
when