Debian Codegraph @

crt/s2n/tests/saw/HMAC/spec/HMAC_imp_correct.saw

raw
1 ////////////////////////////////////////////////////////////////
2 // Copyright 2016 Galois, Inc. All Rights Reserved
3 //
4 // Authors:
5 // Aaron Tomb : [email protected]
6 // Nathan Collins : [email protected]
7 // Joey Dodds : [email protected]
8 //
9 // Licensed under the Apache License, Version 2.0 (the "License").
10 // You may not use this file except in compliance with the License.
11 // A copy of the License is located at
12 //
13 // http://aws.amazon.com/apache2.0
14 //
15 // or in the "license" file accompanying this file. This file is distributed
16 // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17 // express or implied. See the License for the specific language governing
18 // permissions and limitations under the License.
19 //
20 ////////////////////////////////////////////////////////////////
21
22 import "HMAC.cry";
23
24 let check n = do {
25 print (str_concat "Checking 'hmac_imp_correct' for byte count " (show n));
26 time (prove_print abc {{ hmac_imp_correct : [n][8] -> [n][8] -> Bit }});
27 };
28
29 for [0, 1, 2, 63, 64, 65, 127, 128, 129 /*, 1000 */] check;