diff options
author | Kevin Jacobs <kjacobs@mozilla.com> | 2020-01-16 21:42:56 +0000 |
---|---|---|
committer | Kevin Jacobs <kjacobs@mozilla.com> | 2020-01-16 21:42:56 +0000 |
commit | 1d9fba9af57f097e333fcda14b0f207030972609 (patch) | |
tree | bbdf5736d5c293f71c9143b529eadee65b9b957a /mach | |
parent | ec4c67acc49349c622d09d05c36c7ecda4c85e3c (diff) | |
download | nss-hg-1d9fba9af57f097e333fcda14b0f207030972609.tar.gz |
Bug 1604596 - Update Wycheproof vectors and add support for CBC, P256-ECDH, and CMAC tests r=franziskus
This patch updates to the latest Wycheproof vectors and adds Wycheproof support for CBC, CMAC, and P256-ECDH:
ChaCha20: +141 tests
Curve25519: +431 tests
GCM: +39 tests
CBC (new): +183 tests
CMAC (new): +308 tests
P256 ECDH (new): +460 tests
Differential Revision: https://phabricator.services.mozilla.com/D57477
Diffstat (limited to 'mach')
-rwxr-xr-x | mach | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -20,7 +20,6 @@ import tarfile import tempfile from hashlib import sha256 -from gtests.common.wycheproof.genTestVectors import generate_test_vectors DEVNULL = open(os.devnull, 'wb') cwd = os.path.dirname(os.path.abspath(__file__)) @@ -507,14 +506,6 @@ class commandsAction(argparse.Action): for c in commandsAction.commands: print(c) -class wycheproofAction(argparse.Action): - - def __call__(self, parser, args, values, option_string=None): - generate_test_vectors() - clangFormat = cfAction(None, None, None) - clangFormat(None, args, None) - - def parse_arguments(): parser = argparse.ArgumentParser( description='NSS helper script. ' + @@ -597,18 +588,6 @@ def parse_arguments(): nargs='*', action=commandsAction) - parser_wycheproof = subparsers.add_parser( - 'wycheproof', - help="generate wycheproof test headers") - parser_wycheproof.add_argument( - '--noroot', - help='On linux, suppress the use of \'sudo\' for running docker.', - action='store_true') - parser_wycheproof.add_argument( - 'wycheproof', - nargs='*', - action=wycheproofAction) - commandsAction.commands = [c for c in subparsers.choices] return parser.parse_args() |