Debian Codegraph @

crt/s2n/tests/saw/verify_imperative_cryptol_spec.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/spec/HMAC_iterative.cry";
23 import "HMAC/spec/HMAC_properties.cry";
24
25 let check n = do {
26 print (str_concat "Checking 'hmac_c_state_correct' for byte count " (show n));
27 x <- time (prove_print abc {{ hmac_c_state_correct : HMAC_c_state -> [n][8] -> [n][8] -> Bit }});
28 print("***BEGIN JSON FOR METRICS");
29 print("{");
30 print(str_concat (str_concat "\"Name\": \"hmac_c_state_correct size " (show n)) "\",");
31 print(str_concat (str_concat "\"Size\" : " (show n)) "}");
32 print("***END JSON FOR METRICS");
33 };
34
35 for [0, 1, 128 /*, 2, 63, 64, 65, 127, 128, 129 , 1000 */] check;