2023-10-17 12:23:55 +02:00
|
|
|
#!/usr/bin/env python3
|
2020-06-25 18:36:28 +02:00
|
|
|
|
|
|
|
"""Analyze the test outcomes from a full CI run.
|
|
|
|
|
|
|
|
This script can also run on outcomes from a partial run, but the results are
|
|
|
|
less likely to be useful.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import argparse
|
|
|
|
import sys
|
|
|
|
import traceback
|
2022-11-17 11:50:23 +01:00
|
|
|
import re
|
2023-03-24 08:20:18 +01:00
|
|
|
import subprocess
|
|
|
|
import os
|
2020-06-25 18:36:28 +02:00
|
|
|
|
2020-06-25 18:37:43 +02:00
|
|
|
import check_test_cases
|
|
|
|
|
2023-10-17 11:03:16 +02:00
|
|
|
class Results:
|
2020-06-25 18:36:28 +02:00
|
|
|
"""Process analysis results."""
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
self.error_count = 0
|
|
|
|
self.warning_count = 0
|
2023-10-10 09:42:13 +02:00
|
|
|
|
2023-10-18 14:36:47 +02:00
|
|
|
def new_section(self, fmt, *args, **kwargs):
|
|
|
|
self._print_line('\n*** ' + fmt + ' ***\n', *args, **kwargs)
|
|
|
|
|
2023-10-10 09:42:13 +02:00
|
|
|
def info(self, fmt, *args, **kwargs):
|
2023-10-17 12:29:30 +02:00
|
|
|
self._print_line('Info: ' + fmt, *args, **kwargs)
|
2020-06-25 18:36:28 +02:00
|
|
|
|
|
|
|
def error(self, fmt, *args, **kwargs):
|
|
|
|
self.error_count += 1
|
2023-10-17 12:29:30 +02:00
|
|
|
self._print_line('Error: ' + fmt, *args, **kwargs)
|
2020-06-25 18:36:28 +02:00
|
|
|
|
|
|
|
def warning(self, fmt, *args, **kwargs):
|
|
|
|
self.warning_count += 1
|
2023-10-17 12:29:30 +02:00
|
|
|
self._print_line('Warning: ' + fmt, *args, **kwargs)
|
2020-06-25 18:36:28 +02:00
|
|
|
|
2023-10-17 10:42:11 +02:00
|
|
|
@staticmethod
|
2023-10-17 12:29:30 +02:00
|
|
|
def _print_line(fmt, *args, **kwargs):
|
2023-10-18 08:05:15 +02:00
|
|
|
sys.stderr.write((fmt + '\n').format(*args, **kwargs))
|
2023-10-10 09:42:13 +02:00
|
|
|
|
2020-06-25 18:36:28 +02:00
|
|
|
class TestCaseOutcomes:
|
|
|
|
"""The outcomes of one test case across many configurations."""
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
|
|
|
|
|
|
def __init__(self):
|
2020-06-26 13:02:30 +02:00
|
|
|
# Collect a list of witnesses of the test case succeeding or failing.
|
|
|
|
# Currently we don't do anything with witnesses except count them.
|
|
|
|
# The format of a witness is determined by the read_outcome_file
|
|
|
|
# function; it's the platform and configuration joined by ';'.
|
2020-06-25 18:36:28 +02:00
|
|
|
self.successes = []
|
|
|
|
self.failures = []
|
|
|
|
|
|
|
|
def hits(self):
|
|
|
|
"""Return the number of times a test case has been run.
|
|
|
|
|
|
|
|
This includes passes and failures, but not skips.
|
|
|
|
"""
|
|
|
|
return len(self.successes) + len(self.failures)
|
|
|
|
|
2023-10-17 11:03:16 +02:00
|
|
|
def execute_reference_driver_tests(results: Results, ref_component, driver_component, \
|
2023-10-17 12:47:35 +02:00
|
|
|
outcome_file):
|
2023-03-29 11:15:28 +02:00
|
|
|
"""Run the tests specified in ref_component and driver_component. Results
|
|
|
|
are stored in the output_file and they will be used for the following
|
2023-03-24 08:20:18 +01:00
|
|
|
coverage analysis"""
|
|
|
|
# If the outcome file already exists, we assume that the user wants to
|
|
|
|
# perform the comparison analysis again without repeating the tests.
|
|
|
|
if os.path.exists(outcome_file):
|
2023-10-18 14:30:03 +02:00
|
|
|
results.info("Outcome file ({}) already exists. Tests will be skipped.", outcome_file)
|
2023-10-17 12:47:35 +02:00
|
|
|
return
|
2023-03-24 08:20:18 +01:00
|
|
|
|
|
|
|
shell_command = "tests/scripts/all.sh --outcome-file " + outcome_file + \
|
|
|
|
" " + ref_component + " " + driver_component
|
2023-10-18 14:30:03 +02:00
|
|
|
results.info("Running: {}", shell_command)
|
2023-03-24 08:20:18 +01:00
|
|
|
ret_val = subprocess.run(shell_command.split(), check=False).returncode
|
|
|
|
|
|
|
|
if ret_val != 0:
|
2023-10-17 11:03:16 +02:00
|
|
|
results.error("failed to run reference/driver components")
|
2023-10-10 09:42:13 +02:00
|
|
|
|
2023-08-11 16:22:04 +02:00
|
|
|
def analyze_coverage(results, outcomes, allow_list, full_coverage):
|
2020-06-25 18:37:43 +02:00
|
|
|
"""Check that all available test cases are executed at least once."""
|
2022-01-07 15:58:38 +01:00
|
|
|
available = check_test_cases.collect_available_test_cases()
|
2020-06-25 18:37:43 +02:00
|
|
|
for key in available:
|
|
|
|
hits = outcomes[key].hits() if key in outcomes else 0
|
2023-08-11 15:59:03 +02:00
|
|
|
if hits == 0 and key not in allow_list:
|
2023-08-11 16:22:04 +02:00
|
|
|
if full_coverage:
|
|
|
|
results.error('Test case not executed: {}', key)
|
|
|
|
else:
|
|
|
|
results.warning('Test case not executed: {}', key)
|
2023-08-11 15:59:03 +02:00
|
|
|
elif hits != 0 and key in allow_list:
|
|
|
|
# Test Case should be removed from the allow list.
|
2023-08-22 10:40:23 +02:00
|
|
|
if full_coverage:
|
2023-08-22 13:17:57 +02:00
|
|
|
results.error('Allow listed test case was executed: {}', key)
|
2023-08-22 10:40:23 +02:00
|
|
|
else:
|
|
|
|
results.warning('Allow listed test case was executed: {}', key)
|
2020-06-25 18:37:43 +02:00
|
|
|
|
2023-10-17 11:03:16 +02:00
|
|
|
def analyze_driver_vs_reference(results: Results, outcomes,
|
2023-10-10 09:42:13 +02:00
|
|
|
component_ref, component_driver,
|
2023-01-18 17:28:36 +01:00
|
|
|
ignored_suites, ignored_test=None):
|
2022-10-21 13:42:08 +02:00
|
|
|
"""Check that all tests executed in the reference component are also
|
|
|
|
executed in the corresponding driver component.
|
2023-01-18 17:28:36 +01:00
|
|
|
Skip:
|
|
|
|
- full test suites provided in ignored_suites list
|
|
|
|
- only some specific test inside a test suite, for which the corresponding
|
|
|
|
output string is provided
|
2022-10-21 13:42:08 +02:00
|
|
|
"""
|
|
|
|
available = check_test_cases.collect_available_test_cases()
|
|
|
|
|
|
|
|
for key in available:
|
|
|
|
# Continue if test was not executed by any component
|
|
|
|
hits = outcomes[key].hits() if key in outcomes else 0
|
2022-10-24 09:16:04 +02:00
|
|
|
if hits == 0:
|
2022-10-21 13:42:08 +02:00
|
|
|
continue
|
2023-02-02 11:33:31 +01:00
|
|
|
# Skip ignored test suites
|
|
|
|
full_test_suite = key.split(';')[0] # retrieve full test suite name
|
|
|
|
test_string = key.split(';')[1] # retrieve the text string of this test
|
|
|
|
test_suite = full_test_suite.split('.')[0] # retrieve main part of test suite name
|
2023-03-17 15:13:08 +01:00
|
|
|
if test_suite in ignored_suites or full_test_suite in ignored_suites:
|
2023-02-02 11:33:31 +01:00
|
|
|
continue
|
2023-01-18 17:28:36 +01:00
|
|
|
if ((full_test_suite in ignored_test) and
|
|
|
|
(test_string in ignored_test[full_test_suite])):
|
|
|
|
continue
|
2022-10-21 13:42:08 +02:00
|
|
|
# Search for tests that run in reference component and not in driver component
|
|
|
|
driver_test_passed = False
|
|
|
|
reference_test_passed = False
|
|
|
|
for entry in outcomes[key].successes:
|
2022-11-09 12:07:29 +01:00
|
|
|
if component_driver in entry:
|
2022-10-21 13:42:08 +02:00
|
|
|
driver_test_passed = True
|
2022-11-09 12:07:29 +01:00
|
|
|
if component_ref in entry:
|
2022-10-21 13:42:08 +02:00
|
|
|
reference_test_passed = True
|
2022-12-30 13:40:34 +01:00
|
|
|
if(reference_test_passed and not driver_test_passed):
|
2023-10-18 14:30:03 +02:00
|
|
|
results.error("Did not pass with driver: {}", key)
|
2022-10-21 13:42:08 +02:00
|
|
|
|
2023-10-17 12:47:35 +02:00
|
|
|
def analyze_outcomes(results: Results, outcomes, args):
|
2020-06-25 18:36:28 +02:00
|
|
|
"""Run all analyses on the given outcome collection."""
|
2023-10-17 11:03:16 +02:00
|
|
|
analyze_coverage(results, outcomes, args['allow_list'],
|
2023-08-11 16:22:04 +02:00
|
|
|
args['full_coverage'])
|
2020-06-25 18:36:28 +02:00
|
|
|
|
|
|
|
def read_outcome_file(outcome_file):
|
|
|
|
"""Parse an outcome file and return an outcome collection.
|
|
|
|
|
|
|
|
An outcome collection is a dictionary mapping keys to TestCaseOutcomes objects.
|
|
|
|
The keys are the test suite name and the test case description, separated
|
|
|
|
by a semicolon.
|
|
|
|
"""
|
|
|
|
outcomes = {}
|
|
|
|
with open(outcome_file, 'r', encoding='utf-8') as input_file:
|
|
|
|
for line in input_file:
|
|
|
|
(platform, config, suite, case, result, _cause) = line.split(';')
|
|
|
|
key = ';'.join([suite, case])
|
|
|
|
setup = ';'.join([platform, config])
|
|
|
|
if key not in outcomes:
|
|
|
|
outcomes[key] = TestCaseOutcomes()
|
|
|
|
if result == 'PASS':
|
|
|
|
outcomes[key].successes.append(setup)
|
|
|
|
elif result == 'FAIL':
|
|
|
|
outcomes[key].failures.append(setup)
|
|
|
|
return outcomes
|
|
|
|
|
2023-10-17 12:47:35 +02:00
|
|
|
def do_analyze_coverage(results: Results, outcome_file, args):
|
2022-11-09 10:50:29 +01:00
|
|
|
"""Perform coverage analysis."""
|
2023-10-18 14:36:47 +02:00
|
|
|
results.new_section("Analyze coverage")
|
2020-06-25 18:36:28 +02:00
|
|
|
outcomes = read_outcome_file(outcome_file)
|
2023-10-17 12:47:35 +02:00
|
|
|
analyze_outcomes(results, outcomes, args)
|
2022-10-21 13:42:08 +02:00
|
|
|
|
2023-10-17 12:47:35 +02:00
|
|
|
def do_analyze_driver_vs_reference(results: Results, outcome_file, args):
|
2022-10-21 13:42:08 +02:00
|
|
|
"""Perform driver vs reference analyze."""
|
2023-10-18 14:36:47 +02:00
|
|
|
results.new_section("Analyze driver {} vs reference {}",
|
|
|
|
args['component_driver'], args['component_ref'])
|
2023-10-16 14:19:49 +02:00
|
|
|
|
2023-10-17 12:47:35 +02:00
|
|
|
execute_reference_driver_tests(results, args['component_ref'], \
|
|
|
|
args['component_driver'], outcome_file)
|
2023-03-24 08:20:18 +01:00
|
|
|
|
2023-01-18 17:28:36 +01:00
|
|
|
ignored_suites = ['test_suite_' + x for x in args['ignored_suites']]
|
2022-11-09 12:07:29 +01:00
|
|
|
|
2022-10-21 13:42:08 +02:00
|
|
|
outcomes = read_outcome_file(outcome_file)
|
2023-10-10 09:42:13 +02:00
|
|
|
|
2023-10-17 12:47:35 +02:00
|
|
|
analyze_driver_vs_reference(results, outcomes,
|
|
|
|
args['component_ref'], args['component_driver'],
|
|
|
|
ignored_suites, args['ignored_tests'])
|
2020-06-25 18:36:28 +02:00
|
|
|
|
2022-11-09 10:50:29 +01:00
|
|
|
# List of tasks with a function that can handle this task and additional arguments if required
|
2023-10-09 16:30:11 +02:00
|
|
|
KNOWN_TASKS = {
|
2022-10-26 16:11:26 +02:00
|
|
|
'analyze_coverage': {
|
|
|
|
'test_function': do_analyze_coverage,
|
2023-08-11 15:59:03 +02:00
|
|
|
'args': {
|
2023-08-14 16:43:46 +02:00
|
|
|
'allow_list': [
|
2023-08-22 10:52:06 +02:00
|
|
|
# Algorithm not supported yet
|
|
|
|
'test_suite_psa_crypto_metadata;Asymmetric signature: pure EdDSA',
|
|
|
|
# Algorithm not supported yet
|
|
|
|
'test_suite_psa_crypto_metadata;Cipher: XTS',
|
2023-08-24 10:12:40 +02:00
|
|
|
],
|
2023-08-11 16:22:04 +02:00
|
|
|
'full_coverage': False,
|
2023-08-11 15:59:03 +02:00
|
|
|
}
|
2023-08-24 10:12:40 +02:00
|
|
|
},
|
2023-03-24 08:20:18 +01:00
|
|
|
# There are 2 options to use analyze_driver_vs_reference_xxx locally:
|
|
|
|
# 1. Run tests and then analysis:
|
|
|
|
# - tests/scripts/all.sh --outcome-file "$PWD/out.csv" <component_ref> <component_driver>
|
|
|
|
# - tests/scripts/analyze_outcomes.py out.csv analyze_driver_vs_reference_xxx
|
|
|
|
# 2. Let this script run both automatically:
|
|
|
|
# - tests/scripts/analyze_outcomes.py out.csv analyze_driver_vs_reference_xxx
|
2022-10-26 16:11:26 +02:00
|
|
|
'analyze_driver_vs_reference_hash': {
|
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
2022-11-09 12:07:29 +01:00
|
|
|
'component_ref': 'test_psa_crypto_config_reference_hash_use_psa',
|
|
|
|
'component_driver': 'test_psa_crypto_config_accel_hash_use_psa',
|
2022-12-29 12:29:09 +01:00
|
|
|
'ignored_suites': [
|
|
|
|
'shax', 'mdx', # the software implementations that are being excluded
|
2023-03-17 15:13:08 +01:00
|
|
|
'md.psa', # purposefully depends on whether drivers are present
|
2023-10-04 12:28:41 +02:00
|
|
|
'psa_crypto_low_hash.generated', # testing the builtins
|
2023-01-18 17:28:36 +01:00
|
|
|
],
|
|
|
|
'ignored_tests': {
|
2023-10-04 12:05:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'analyze_driver_vs_reference_cipher_aead': {
|
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
|
|
|
'component_ref': 'test_psa_crypto_config_reference_cipher_aead',
|
|
|
|
'component_driver': 'test_psa_crypto_config_accel_cipher_aead',
|
2023-10-04 15:46:42 +02:00
|
|
|
# Ignore suites that are being accelerated
|
2023-10-04 12:05:05 +02:00
|
|
|
'ignored_suites': [
|
2023-10-04 15:46:42 +02:00
|
|
|
'aes.cbc',
|
|
|
|
'aes.cfb',
|
|
|
|
'aes.ecb',
|
|
|
|
'aes.ofb',
|
|
|
|
'aes.rest',
|
|
|
|
'aes.xts',
|
|
|
|
'aria',
|
|
|
|
'camellia',
|
|
|
|
'ccm',
|
|
|
|
'chacha20',
|
|
|
|
'chachapoly',
|
|
|
|
'cipher.aes',
|
|
|
|
'cipher.aria',
|
|
|
|
'cipher.camellia',
|
|
|
|
'cipher.ccm',
|
|
|
|
'cipher.chacha20',
|
|
|
|
'cipher.chachapoly',
|
|
|
|
'cipher.des',
|
|
|
|
'cipher.gcm',
|
|
|
|
'cipher.nist_kw',
|
|
|
|
'cipher.padding',
|
|
|
|
'des',
|
|
|
|
'gcm.aes128_de',
|
|
|
|
'gcm.aes128_en',
|
|
|
|
'gcm.aes192_de',
|
|
|
|
'gcm.aes192_en',
|
|
|
|
'gcm.aes256_de',
|
|
|
|
'gcm.aes256_en',
|
|
|
|
'gcm.camellia',
|
|
|
|
'gcm.misc',
|
2023-10-04 12:05:05 +02:00
|
|
|
],
|
|
|
|
'ignored_tests': {
|
2023-10-04 15:46:42 +02:00
|
|
|
# Following tests depends on AES_C/DES_C
|
|
|
|
'test_suite_pem': [
|
|
|
|
'PEM read (AES-128-CBC + invalid iv)'
|
|
|
|
'PEM read (DES-CBC + invalid iv)',
|
|
|
|
'PEM read (DES-EDE3-CBC + invalid iv)',
|
|
|
|
'PEM read (malformed PEM AES-128-CBC)',
|
|
|
|
'PEM read (malformed PEM DES-CBC)',
|
|
|
|
'PEM read (malformed PEM DES-EDE3-CBC)',
|
|
|
|
'PEM read (unknown encryption algorithm)',
|
|
|
|
'PEM read (AES-128-CBC + invalid iv)',
|
|
|
|
'PEM read (DES-CBC + invalid iv)',
|
|
|
|
],
|
|
|
|
# Following tests depends on AES_C/DES_C
|
|
|
|
'test_suite_error': [
|
|
|
|
'Low and high error',
|
|
|
|
'Single low error'
|
|
|
|
],
|
|
|
|
# Following tests depends on AES_C/DES_C/GCM_C/CTR
|
|
|
|
'test_suite_psa_crypto': [
|
|
|
|
'PSA AEAD encrypt/decrypt: DES-CCM not supported',
|
|
|
|
'PSA AEAD encrypt/decrypt: invalid algorithm (CTR)',
|
|
|
|
'PSA cipher setup: bad algorithm (unknown cipher algorithm)',
|
|
|
|
'PSA cipher setup: incompatible key ChaCha20 for CTR',
|
|
|
|
'PSA cipher setup: invalid key type, CTR',
|
|
|
|
'PSA symmetric decrypt: CCM*-no-tag, input too short (15 bytes)',
|
|
|
|
],
|
|
|
|
# Following test depends on AES_C
|
|
|
|
'test_suite_version': [
|
|
|
|
'Check for MBEDTLS_AES_C when already present',
|
2023-10-13 09:19:52 +02:00
|
|
|
],
|
|
|
|
# Following tests depends on PCKS7
|
|
|
|
'test_suite_pkcs12': [
|
|
|
|
'PBE Decrypt, (Invalid padding & PKCS7 padding enabled)',
|
|
|
|
'PBE Decrypt, pad = 7 (OK)',
|
|
|
|
'PBE Decrypt, pad = 8 (Invalid output size)',
|
|
|
|
'PBE Decrypt, pad = 8 (OK)',
|
|
|
|
'PBE Encrypt, pad = 7 (OK)',
|
|
|
|
'PBE Encrypt, pad = 8 (Invalid output size)',
|
|
|
|
'PBE Encrypt, pad = 8 (OK)',
|
|
|
|
],
|
|
|
|
# Following tests depends on PCKS7
|
|
|
|
'test_suite_pkcs5': [
|
|
|
|
'PBES2 Decrypt (Invalid output size)',
|
|
|
|
'PBES2 Decrypt (Invalid padding & PKCS7 padding enabled)',
|
|
|
|
'PBES2 Decrypt (KDF != PBKDF2)',
|
|
|
|
'PBES2 Decrypt (OK)',
|
|
|
|
'PBES2 Decrypt (OK, PBKDF2 params explicit keylen)',
|
|
|
|
'PBES2 Decrypt (OK, PBKDF2 params explicit prf_alg)',
|
|
|
|
'PBES2 Decrypt (bad KDF AlgId: not a sequence)',
|
|
|
|
'PBES2 Decrypt (bad KDF AlgId: overlong)',
|
|
|
|
'PBES2 Decrypt (bad PBKDF2 params explicit keylen: overlong)',
|
|
|
|
'PBES2 Decrypt (bad PBKDF2 params iter: not an int)',
|
|
|
|
'PBES2 Decrypt (bad PBKDF2 params iter: overlong)',
|
|
|
|
'PBES2 Decrypt (bad PBKDF2 params salt: not an octet string)',
|
|
|
|
'PBES2 Decrypt (bad PBKDF2 params salt: overlong)',
|
|
|
|
'PBES2 Decrypt (bad PBKDF2 params: not a sequence)',
|
|
|
|
'PBES2 Decrypt (bad PBKDF2 params: overlong)',
|
|
|
|
'PBES2 Decrypt (bad enc_scheme_alg params: len != iv_len)',
|
|
|
|
'PBES2 Decrypt (bad enc_scheme_alg params: not an octet string)',
|
|
|
|
'PBES2 Decrypt (bad enc_scheme_alg params: overlong)',
|
|
|
|
'PBES2 Decrypt (bad enc_scheme_alg: not a sequence)',
|
|
|
|
'PBES2 Decrypt (bad enc_scheme_alg: overlong)',
|
|
|
|
'PBES2 Decrypt (bad enc_scheme_alg: unknown oid)',
|
|
|
|
'PBES2 Decrypt (bad iter value)',
|
|
|
|
'PBES2 Decrypt (bad params tag)',
|
|
|
|
'PBES2 Decrypt (bad password)',
|
|
|
|
'PBES2 Decrypt (bad, PBKDF2 params explicit prf_alg != HMAC-SHA*)',
|
|
|
|
'PBES2 Decrypt (bad, PBKDF2 params explicit prf_alg not a sequence)',
|
|
|
|
'PBES2 Decrypt (bad, PBKDF2 params explicit prf_alg overlong)',
|
|
|
|
'PBES2 Decrypt (bad, PBKDF2 params extra data)',
|
|
|
|
'PBES2 Encrypt, pad=6 (OK)',
|
|
|
|
'PBES2 Encrypt, pad=8 (Invalid output size)',
|
|
|
|
'PBES2 Encrypt, pad=8 (OK)',
|
|
|
|
],
|
|
|
|
# Following tests depends on DES
|
|
|
|
'test_suite_pkparse': [
|
|
|
|
'Key ASN1 (Encrypted key PKCS12, trailing garbage data)',
|
|
|
|
'Key ASN1 (Encrypted key PKCS5, trailing garbage data)',
|
|
|
|
'Parse RSA Key #20 (PKCS#8 encrypted SHA1-3DES)',
|
|
|
|
'Parse RSA Key #20.1 (PKCS#8 encrypted SHA1-3DES, wrong PW)',
|
|
|
|
'Parse RSA Key #20.2 (PKCS#8 encrypted SHA1-3DES, no PW)',
|
|
|
|
'Parse RSA Key #21 (PKCS#8 encrypted SHA1-3DES, 2048-bit)',
|
|
|
|
'Parse RSA Key #21.1 (PKCS#8 encrypted SHA1-3DES, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #21.2 (PKCS#8 encrypted SHA1-3DES, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #22 (PKCS#8 encrypted SHA1-3DES, 4096-bit)',
|
|
|
|
'Parse RSA Key #22.1 (PKCS#8 encrypted SHA1-3DES, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #22.2 (PKCS#8 encrypted SHA1-3DES, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #23 (PKCS#8 encrypted SHA1-3DES DER)',
|
|
|
|
'Parse RSA Key #24 (PKCS#8 encrypted SHA1-3DES DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #25 (PKCS#8 encrypted SHA1-3DES DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #26 (PKCS#8 encrypted SHA1-2DES)',
|
|
|
|
'Parse RSA Key #26.1 (PKCS#8 encrypted SHA1-2DES, wrong PW)',
|
|
|
|
'Parse RSA Key #26.2 (PKCS#8 encrypted SHA1-2DES, no PW)',
|
|
|
|
'Parse RSA Key #27 (PKCS#8 encrypted SHA1-2DES, 2048-bit)',
|
|
|
|
'Parse RSA Key #27.1 (PKCS#8 encrypted SHA1-2DES, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #27.2 (PKCS#8 encrypted SHA1-2DES, 2048-bit no PW)',
|
|
|
|
'Parse RSA Key #28 (PKCS#8 encrypted SHA1-2DES, 4096-bit)',
|
|
|
|
'Parse RSA Key #28.1 (PKCS#8 encrypted SHA1-2DES, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #28.2 (PKCS#8 encrypted SHA1-2DES, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #29 (PKCS#8 encrypted SHA1-2DES DER)',
|
|
|
|
'Parse RSA Key #30 (PKCS#8 encrypted SHA1-2DES DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #31 (PKCS#8 encrypted SHA1-2DES DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #38 (PKCS#8 encrypted v2 PBKDF2 3DES)',
|
|
|
|
'Parse RSA Key #38.1 (PKCS#8 encrypted v2 PBKDF2 3DES, wrong PW)',
|
|
|
|
'Parse RSA Key #38.2 (PKCS#8 encrypted v2 PBKDF2 3DES, no PW)',
|
|
|
|
'Parse RSA Key #39 (PKCS#8 encrypted v2 PBKDF2 3DES, 2048-bit)',
|
|
|
|
'Parse RSA Key #39.1 (PKCS#8 encrypted v2 PBKDF2 3DES, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #39.2 (PKCS#8 encrypted v2 PBKDF2 3DES, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #40 (PKCS#8 encrypted v2 PBKDF2 3DES, 4096-bit)',
|
|
|
|
'Parse RSA Key #40.1 (PKCS#8 encrypted v2 PBKDF2 3DES, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #40.2 (PKCS#8 encrypted v2 PBKDF2 3DES, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #41 (PKCS#8 encrypted v2 PBKDF2 3DES DER)',
|
|
|
|
'Parse RSA Key #41.1 (PKCS#8 encrypted v2 PBKDF2 3DES DER, wrong PW)',
|
|
|
|
'Parse RSA Key #41.2 (PKCS#8 encrypted v2 PBKDF2 3DES DER, no PW)',
|
|
|
|
'Parse RSA Key #42 (PKCS#8 encrypted v2 PBKDF2 3DES DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #42.1 (PKCS#8 encrypted v2 PBKDF2 3DES DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #42.2 (PKCS#8 encrypted v2 PBKDF2 3DES DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #43 (PKCS#8 encrypted v2 PBKDF2 3DES DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #43.1 (PKCS#8 encrypted v2 PBKDF2 3DES DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #43.2 (PKCS#8 encrypted v2 PBKDF2 3DES DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #44 (PKCS#8 encrypted v2 PBKDF2 DES)',
|
|
|
|
'Parse RSA Key #44.1 (PKCS#8 encrypted v2 PBKDF2 DES, wrong PW)',
|
|
|
|
'Parse RSA Key #44.2 (PKCS#8 encrypted v2 PBKDF2 DES, no PW)',
|
|
|
|
'Parse RSA Key #45 (PKCS#8 encrypted v2 PBKDF2 DES, 2048-bit)',
|
|
|
|
'Parse RSA Key #45.1 (PKCS#8 encrypted v2 PBKDF2 DES, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #45.2 (PKCS#8 encrypted v2 PBKDF2 DES, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #46 (PKCS#8 encrypted v2 PBKDF2 DES, 4096-bit)',
|
|
|
|
'Parse RSA Key #46.1 (PKCS#8 encrypted v2 PBKDF2 DES, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #46.2 (PKCS#8 encrypted v2 PBKDF2 DES, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #47 (PKCS#8 encrypted v2 PBKDF2 DES DER)',
|
|
|
|
'Parse RSA Key #47.1 (PKCS#8 encrypted v2 PBKDF2 DES DER, wrong PW)',
|
|
|
|
'Parse RSA Key #47.2 (PKCS#8 encrypted v2 PBKDF2 DES DER, no PW)',
|
|
|
|
'Parse RSA Key #48 (PKCS#8 encrypted v2 PBKDF2 DES DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #48.1 (PKCS#8 encrypted v2 PBKDF2 DES DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #48.2 (PKCS#8 encrypted v2 PBKDF2 DES DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #49 (PKCS#8 encrypted v2 PBKDF2 DES DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #49.1 (PKCS#8 encrypted v2 PBKDF2 DES DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #49.2 (PKCS#8 encrypted v2 PBKDF2 DES DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #50 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224)',
|
|
|
|
'Parse RSA Key #50.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, wrong PW)',
|
|
|
|
'Parse RSA Key #50.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, no PW)',
|
|
|
|
'Parse RSA Key #51 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, 2048-bit)',
|
|
|
|
'Parse RSA Key #51.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #51.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #52 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, 4096-bit)',
|
|
|
|
'Parse RSA Key #52.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #52.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #53 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER)',
|
|
|
|
'Parse RSA Key #53.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #53.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, no PW)',
|
|
|
|
'Parse RSA Key #54 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #54.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #54.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #55 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #55.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #55.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA224 DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #56 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224)',
|
|
|
|
'Parse RSA Key #56.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, wrong PW)',
|
|
|
|
'Parse RSA Key #56.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, no PW)',
|
|
|
|
'Parse RSA Key #57 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, 2048-bit)',
|
|
|
|
'Parse RSA Key #57.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #57.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #58 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, 4096-bit)',
|
|
|
|
'Parse RSA Key #58.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #58.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #59 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER)',
|
|
|
|
'Parse RSA Key #59.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #59.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, no PW)',
|
|
|
|
'Parse RSA Key #60 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #60.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #60.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #61 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #61.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #61.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA224 DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #62 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256)',
|
|
|
|
'Parse RSA Key #62.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, wrong PW)',
|
|
|
|
'Parse RSA Key #62.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, no PW)',
|
|
|
|
'Parse RSA Key #63 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, 2048-bit)',
|
|
|
|
'Parse RSA Key #63.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #63.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #64 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, 4096-bit)',
|
|
|
|
'Parse RSA Key #64.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #64.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #65 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER)',
|
|
|
|
'Parse RSA Key #65.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #65.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, no PW)',
|
|
|
|
'Parse RSA Key #66 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #66.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #66.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #67 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #68.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #68.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA256 DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #69 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256)',
|
|
|
|
'Parse RSA Key #69.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, wrong PW)',
|
|
|
|
'Parse RSA Key #69.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, no PW)',
|
|
|
|
'Parse RSA Key #70 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, 2048-bit)',
|
|
|
|
'Parse RSA Key #70.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #70.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #71 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, 4096-bit)',
|
|
|
|
'Parse RSA Key #71.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #71.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #72 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER)',
|
|
|
|
'Parse RSA Key #72.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #72.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, no PW)',
|
|
|
|
'Parse RSA Key #73 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #73.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #73.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #74 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #74.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #74.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA256 DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #75 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384)',
|
|
|
|
'Parse RSA Key #75.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, wrong PW)',
|
|
|
|
'Parse RSA Key #75.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, no PW)',
|
|
|
|
'Parse RSA Key #76 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, 2048-bit)',
|
|
|
|
'Parse RSA Key #76.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #76.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #77 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, 4096-bit)',
|
|
|
|
'Parse RSA Key #77.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #77.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #78 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER)',
|
|
|
|
'Parse RSA Key #78.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #78.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, no PW)',
|
|
|
|
'Parse RSA Key #79 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #79.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #79.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #80 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #80.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #80.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA384 DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #81 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384)',
|
|
|
|
'Parse RSA Key #81.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, wrong PW)',
|
|
|
|
'Parse RSA Key #81.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, no PW)',
|
|
|
|
'Parse RSA Key #82 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, 2048-bit)',
|
|
|
|
'Parse RSA Key #82.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #82.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #83 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, 4096-bit)',
|
|
|
|
'Parse RSA Key #83.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #83.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #84 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER)',
|
|
|
|
'Parse RSA Key #84.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #85.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, no PW)',
|
|
|
|
'Parse RSA Key #86 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #86.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #86.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #87 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #87.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #87.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA384 DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #88 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512)',
|
|
|
|
'Parse RSA Key #88.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, wrong PW)',
|
|
|
|
'Parse RSA Key #88.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, no PW)',
|
|
|
|
'Parse RSA Key #89 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, 2048-bit)',
|
|
|
|
'Parse RSA Key #89.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #89.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #90 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, 4096-bit)',
|
|
|
|
'Parse RSA Key #90.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #90.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #91 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER)',
|
|
|
|
'Parse RSA Key #91.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #91.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, no PW)',
|
|
|
|
'Parse RSA Key #92 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #92.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #92.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #93 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #93.1 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #93.2 (PKCS#8 encrypted v2 PBKDF2 3DES hmacWithSHA512 DER, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #94 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512)',
|
|
|
|
'Parse RSA Key #94.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, wrong PW)',
|
|
|
|
'Parse RSA Key #94.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, no PW)',
|
|
|
|
'Parse RSA Key #95 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, 2048-bit)',
|
|
|
|
'Parse RSA Key #95.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #95.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #96 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, 4096-bit)',
|
|
|
|
'Parse RSA Key #96.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #96.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512, 4096-bit, no PW)',
|
|
|
|
'Parse RSA Key #97 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER)',
|
|
|
|
'Parse RSA Key #97.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, wrong PW)',
|
|
|
|
'Parse RSA Key #97.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, no PW)',
|
|
|
|
'Parse RSA Key #98 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, 2048-bit)',
|
|
|
|
'Parse RSA Key #98.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, 2048-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #98.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, 2048-bit, no PW)',
|
|
|
|
'Parse RSA Key #99 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, 4096-bit)',
|
|
|
|
'Parse RSA Key #99.1 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, 4096-bit, wrong PW)',
|
|
|
|
'Parse RSA Key #99.2 (PKCS#8 encrypted v2 PBKDF2 DES hmacWithSHA512 DER, 4096-bit, no PW)',
|
|
|
|
],
|
2023-01-18 17:28:36 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-06-14 10:33:10 +02:00
|
|
|
'analyze_driver_vs_reference_ecp_light_only': {
|
2023-03-20 13:54:41 +01:00
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
2023-06-14 10:33:10 +02:00
|
|
|
'component_ref': 'test_psa_crypto_config_reference_ecc_ecp_light_only',
|
|
|
|
'component_driver': 'test_psa_crypto_config_accel_ecc_ecp_light_only',
|
2023-03-20 13:54:41 +01:00
|
|
|
'ignored_suites': [
|
|
|
|
'ecdsa',
|
|
|
|
'ecdh',
|
|
|
|
'ecjpake',
|
|
|
|
],
|
|
|
|
'ignored_tests': {
|
|
|
|
'test_suite_random': [
|
|
|
|
'PSA classic wrapper: ECDSA signature (SECP256R1)',
|
|
|
|
],
|
2023-04-07 15:54:20 +02:00
|
|
|
# In the accelerated test ECP_C is not set (only ECP_LIGHT is)
|
|
|
|
# so we must ignore disparities in the tests for which ECP_C
|
|
|
|
# is required.
|
|
|
|
'test_suite_ecp': [
|
|
|
|
'ECP check public-private #1 (OK)',
|
|
|
|
'ECP check public-private #2 (group none)',
|
|
|
|
'ECP check public-private #3 (group mismatch)',
|
|
|
|
'ECP check public-private #4 (Qx mismatch)',
|
|
|
|
'ECP check public-private #5 (Qy mismatch)',
|
|
|
|
'ECP check public-private #6 (wrong Qx)',
|
|
|
|
'ECP check public-private #7 (wrong Qy)',
|
|
|
|
'ECP gen keypair [#1]',
|
|
|
|
'ECP gen keypair [#2]',
|
|
|
|
'ECP gen keypair [#3]',
|
|
|
|
'ECP gen keypair wrapper',
|
|
|
|
'ECP point muladd secp256r1 #1',
|
|
|
|
'ECP point muladd secp256r1 #2',
|
|
|
|
'ECP point multiplication Curve25519 (element of order 2: origin) #3',
|
|
|
|
'ECP point multiplication Curve25519 (element of order 4: 1) #4',
|
|
|
|
'ECP point multiplication Curve25519 (element of order 8) #5',
|
|
|
|
'ECP point multiplication Curve25519 (normalized) #1',
|
|
|
|
'ECP point multiplication Curve25519 (not normalized) #2',
|
|
|
|
'ECP point multiplication rng fail Curve25519',
|
|
|
|
'ECP point multiplication rng fail secp256r1',
|
|
|
|
'ECP test vectors Curve25519',
|
|
|
|
'ECP test vectors Curve448 (RFC 7748 6.2, after decodeUCoordinate)',
|
|
|
|
'ECP test vectors brainpoolP256r1 rfc 7027',
|
|
|
|
'ECP test vectors brainpoolP384r1 rfc 7027',
|
|
|
|
'ECP test vectors brainpoolP512r1 rfc 7027',
|
|
|
|
'ECP test vectors secp192k1',
|
|
|
|
'ECP test vectors secp192r1 rfc 5114',
|
|
|
|
'ECP test vectors secp224k1',
|
|
|
|
'ECP test vectors secp224r1 rfc 5114',
|
|
|
|
'ECP test vectors secp256k1',
|
|
|
|
'ECP test vectors secp256r1 rfc 5114',
|
|
|
|
'ECP test vectors secp384r1 rfc 5114',
|
|
|
|
'ECP test vectors secp521r1 rfc 5114',
|
2023-05-19 17:43:06 +02:00
|
|
|
],
|
2023-08-18 15:55:10 +02:00
|
|
|
'test_suite_psa_crypto': [
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1 (1 redraw)',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1, exercise ECDSA',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp384r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #0',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #1',
|
|
|
|
],
|
2023-09-22 11:53:41 +02:00
|
|
|
'test_suite_ssl': [
|
|
|
|
'Test configuration of groups for DHE through mbedtls_ssl_conf_curves()',
|
|
|
|
],
|
2023-06-30 17:20:49 +02:00
|
|
|
}
|
2023-03-20 13:54:41 +01:00
|
|
|
}
|
|
|
|
},
|
2023-06-14 10:33:10 +02:00
|
|
|
'analyze_driver_vs_reference_no_ecp_at_all': {
|
2023-04-12 14:59:16 +02:00
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
2023-06-14 10:33:10 +02:00
|
|
|
'component_ref': 'test_psa_crypto_config_reference_ecc_no_ecp_at_all',
|
|
|
|
'component_driver': 'test_psa_crypto_config_accel_ecc_no_ecp_at_all',
|
2023-04-12 14:59:16 +02:00
|
|
|
'ignored_suites': [
|
|
|
|
# Ignore test suites for the modules that are disabled in the
|
|
|
|
# accelerated test case.
|
|
|
|
'ecp',
|
|
|
|
'ecdsa',
|
|
|
|
'ecdh',
|
|
|
|
'ecjpake',
|
|
|
|
],
|
|
|
|
'ignored_tests': {
|
|
|
|
'test_suite_random': [
|
|
|
|
'PSA classic wrapper: ECDSA signature (SECP256R1)',
|
|
|
|
],
|
|
|
|
'test_suite_psa_crypto': [
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1 (1 redraw)',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1, exercise ECDSA',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp384r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #0',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #1',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC BRAINPOOL_P_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R2 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R2 (ECC enabled)',
|
2023-06-14 10:46:55 +02:00
|
|
|
],
|
|
|
|
'test_suite_pkparse': [
|
2023-06-19 19:32:14 +02:00
|
|
|
# When PK_PARSE_C and ECP_C are defined then PK_PARSE_EC_COMPRESSED
|
|
|
|
# is automatically enabled in build_info.h (backward compatibility)
|
|
|
|
# even if it is disabled in config_psa_crypto_no_ecp_at_all(). As a
|
|
|
|
# consequence compressed points are supported in the reference
|
|
|
|
# component but not in the accelerated one, so they should be skipped
|
|
|
|
# while checking driver's coverage.
|
|
|
|
'Parse EC Key #10a (SEC1 PEM, secp384r1, compressed)',
|
|
|
|
'Parse EC Key #11a (SEC1 PEM, secp521r1, compressed)',
|
|
|
|
'Parse EC Key #12a (SEC1 PEM, bp256r1, compressed)',
|
|
|
|
'Parse EC Key #13a (SEC1 PEM, bp384r1, compressed)',
|
2023-06-12 17:51:33 +02:00
|
|
|
'Parse EC Key #14a (SEC1 PEM, bp512r1, compressed)',
|
|
|
|
'Parse EC Key #2a (SEC1 PEM, secp192r1, compressed)',
|
|
|
|
'Parse EC Key #8a (SEC1 PEM, secp224r1, compressed)',
|
|
|
|
'Parse EC Key #9a (SEC1 PEM, secp256r1, compressed)',
|
|
|
|
'Parse Public EC Key #2a (RFC 5480, PEM, secp192r1, compressed)',
|
|
|
|
'Parse Public EC Key #3a (RFC 5480, secp224r1, compressed)',
|
|
|
|
'Parse Public EC Key #4a (RFC 5480, secp256r1, compressed)',
|
|
|
|
'Parse Public EC Key #5a (RFC 5480, secp384r1, compressed)',
|
|
|
|
'Parse Public EC Key #6a (RFC 5480, secp521r1, compressed)',
|
|
|
|
'Parse Public EC Key #7a (RFC 5480, brainpoolP256r1, compressed)',
|
|
|
|
'Parse Public EC Key #8a (RFC 5480, brainpoolP384r1, compressed)',
|
|
|
|
'Parse Public EC Key #9a (RFC 5480, brainpoolP512r1, compressed)',
|
|
|
|
],
|
2023-09-22 11:53:41 +02:00
|
|
|
'test_suite_ssl': [
|
|
|
|
'Test configuration of groups for DHE through mbedtls_ssl_conf_curves()',
|
|
|
|
],
|
2023-06-12 17:51:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-08-15 10:12:25 +02:00
|
|
|
'analyze_driver_vs_reference_ecc_no_bignum': {
|
2023-06-12 17:51:33 +02:00
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
|
|
|
'component_ref': 'test_psa_crypto_config_reference_ecc_no_bignum',
|
|
|
|
'component_driver': 'test_psa_crypto_config_accel_ecc_no_bignum',
|
|
|
|
'ignored_suites': [
|
|
|
|
# Ignore test suites for the modules that are disabled in the
|
|
|
|
# accelerated test case.
|
|
|
|
'ecp',
|
|
|
|
'ecdsa',
|
|
|
|
'ecdh',
|
|
|
|
'ecjpake',
|
2023-07-26 18:00:31 +02:00
|
|
|
'bignum_core',
|
|
|
|
'bignum_random',
|
|
|
|
'bignum_mod',
|
|
|
|
'bignum_mod_raw',
|
|
|
|
'bignum.generated',
|
|
|
|
'bignum.misc',
|
2023-06-12 17:51:33 +02:00
|
|
|
],
|
|
|
|
'ignored_tests': {
|
|
|
|
'test_suite_random': [
|
|
|
|
'PSA classic wrapper: ECDSA signature (SECP256R1)',
|
|
|
|
],
|
|
|
|
'test_suite_psa_crypto': [
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1 (1 redraw)',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1, exercise ECDSA',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp384r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #0',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #1',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC BRAINPOOL_P_R1 (ECC enabled)',
|
2023-08-15 10:12:25 +02:00
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R2 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R2 (ECC enabled)',
|
|
|
|
],
|
|
|
|
'test_suite_pkparse': [
|
|
|
|
# See the description provided above in the
|
|
|
|
# analyze_driver_vs_reference_no_ecp_at_all component.
|
|
|
|
'Parse EC Key #10a (SEC1 PEM, secp384r1, compressed)',
|
|
|
|
'Parse EC Key #11a (SEC1 PEM, secp521r1, compressed)',
|
|
|
|
'Parse EC Key #12a (SEC1 PEM, bp256r1, compressed)',
|
|
|
|
'Parse EC Key #13a (SEC1 PEM, bp384r1, compressed)',
|
|
|
|
'Parse EC Key #14a (SEC1 PEM, bp512r1, compressed)',
|
|
|
|
'Parse EC Key #2a (SEC1 PEM, secp192r1, compressed)',
|
|
|
|
'Parse EC Key #8a (SEC1 PEM, secp224r1, compressed)',
|
|
|
|
'Parse EC Key #9a (SEC1 PEM, secp256r1, compressed)',
|
|
|
|
'Parse Public EC Key #2a (RFC 5480, PEM, secp192r1, compressed)',
|
|
|
|
'Parse Public EC Key #3a (RFC 5480, secp224r1, compressed)',
|
|
|
|
'Parse Public EC Key #4a (RFC 5480, secp256r1, compressed)',
|
|
|
|
'Parse Public EC Key #5a (RFC 5480, secp384r1, compressed)',
|
|
|
|
'Parse Public EC Key #6a (RFC 5480, secp521r1, compressed)',
|
|
|
|
'Parse Public EC Key #7a (RFC 5480, brainpoolP256r1, compressed)',
|
|
|
|
'Parse Public EC Key #8a (RFC 5480, brainpoolP384r1, compressed)',
|
|
|
|
'Parse Public EC Key #9a (RFC 5480, brainpoolP512r1, compressed)',
|
|
|
|
],
|
|
|
|
'test_suite_asn1parse': [
|
|
|
|
# This test depends on BIGNUM_C
|
|
|
|
'INTEGER too large for mpi',
|
|
|
|
],
|
|
|
|
'test_suite_asn1write': [
|
|
|
|
# Following tests depends on BIGNUM_C
|
|
|
|
'ASN.1 Write mpi 0 (1 limb)',
|
|
|
|
'ASN.1 Write mpi 0 (null)',
|
|
|
|
'ASN.1 Write mpi 0x100',
|
|
|
|
'ASN.1 Write mpi 0x7f',
|
|
|
|
'ASN.1 Write mpi 0x7f with leading 0 limb',
|
|
|
|
'ASN.1 Write mpi 0x80',
|
|
|
|
'ASN.1 Write mpi 0x80 with leading 0 limb',
|
|
|
|
'ASN.1 Write mpi 0xff',
|
|
|
|
'ASN.1 Write mpi 1',
|
|
|
|
'ASN.1 Write mpi, 127*8 bits',
|
|
|
|
'ASN.1 Write mpi, 127*8+1 bits',
|
|
|
|
'ASN.1 Write mpi, 127*8-1 bits',
|
|
|
|
'ASN.1 Write mpi, 255*8 bits',
|
|
|
|
'ASN.1 Write mpi, 255*8-1 bits',
|
|
|
|
'ASN.1 Write mpi, 256*8-1 bits',
|
|
|
|
],
|
|
|
|
'test_suite_debug': [
|
|
|
|
# Following tests depends on BIGNUM_C
|
|
|
|
'Debug print mbedtls_mpi #2: 3 bits',
|
|
|
|
'Debug print mbedtls_mpi: 0 (empty representation)',
|
|
|
|
'Debug print mbedtls_mpi: 0 (non-empty representation)',
|
|
|
|
'Debug print mbedtls_mpi: 49 bits',
|
|
|
|
'Debug print mbedtls_mpi: 759 bits',
|
|
|
|
'Debug print mbedtls_mpi: 764 bits #1',
|
|
|
|
'Debug print mbedtls_mpi: 764 bits #2',
|
|
|
|
],
|
2023-09-22 11:53:41 +02:00
|
|
|
'test_suite_ssl': [
|
|
|
|
'Test configuration of groups for DHE through mbedtls_ssl_conf_curves()',
|
|
|
|
],
|
2023-08-15 10:12:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'analyze_driver_vs_reference_ecc_ffdh_no_bignum': {
|
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
|
|
|
'component_ref': 'test_psa_crypto_config_reference_ecc_ffdh_no_bignum',
|
|
|
|
'component_driver': 'test_psa_crypto_config_accel_ecc_ffdh_no_bignum',
|
|
|
|
'ignored_suites': [
|
|
|
|
# Ignore test suites for the modules that are disabled in the
|
|
|
|
# accelerated test case.
|
|
|
|
'ecp',
|
|
|
|
'ecdsa',
|
|
|
|
'ecdh',
|
|
|
|
'ecjpake',
|
|
|
|
'bignum_core',
|
|
|
|
'bignum_random',
|
|
|
|
'bignum_mod',
|
|
|
|
'bignum_mod_raw',
|
|
|
|
'bignum.generated',
|
|
|
|
'bignum.misc',
|
|
|
|
'dhm',
|
|
|
|
],
|
|
|
|
'ignored_tests': {
|
|
|
|
'test_suite_random': [
|
|
|
|
'PSA classic wrapper: ECDSA signature (SECP256R1)',
|
|
|
|
],
|
|
|
|
'test_suite_psa_crypto': [
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1 (1 redraw)',
|
2023-06-12 17:51:33 +02:00
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1, exercise ECDSA',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp384r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #0',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp521r1 #1',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC BRAINPOOL_P_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R2 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R2 (ECC enabled)',
|
|
|
|
],
|
|
|
|
'test_suite_pkparse': [
|
|
|
|
# See the description provided above in the
|
|
|
|
# analyze_driver_vs_reference_no_ecp_at_all component.
|
|
|
|
'Parse EC Key #10a (SEC1 PEM, secp384r1, compressed)',
|
|
|
|
'Parse EC Key #11a (SEC1 PEM, secp521r1, compressed)',
|
|
|
|
'Parse EC Key #12a (SEC1 PEM, bp256r1, compressed)',
|
|
|
|
'Parse EC Key #13a (SEC1 PEM, bp384r1, compressed)',
|
2023-06-19 19:32:14 +02:00
|
|
|
'Parse EC Key #14a (SEC1 PEM, bp512r1, compressed)',
|
|
|
|
'Parse EC Key #2a (SEC1 PEM, secp192r1, compressed)',
|
|
|
|
'Parse EC Key #8a (SEC1 PEM, secp224r1, compressed)',
|
|
|
|
'Parse EC Key #9a (SEC1 PEM, secp256r1, compressed)',
|
|
|
|
'Parse Public EC Key #2a (RFC 5480, PEM, secp192r1, compressed)',
|
|
|
|
'Parse Public EC Key #3a (RFC 5480, secp224r1, compressed)',
|
|
|
|
'Parse Public EC Key #4a (RFC 5480, secp256r1, compressed)',
|
|
|
|
'Parse Public EC Key #5a (RFC 5480, secp384r1, compressed)',
|
|
|
|
'Parse Public EC Key #6a (RFC 5480, secp521r1, compressed)',
|
|
|
|
'Parse Public EC Key #7a (RFC 5480, brainpoolP256r1, compressed)',
|
|
|
|
'Parse Public EC Key #8a (RFC 5480, brainpoolP384r1, compressed)',
|
|
|
|
'Parse Public EC Key #9a (RFC 5480, brainpoolP512r1, compressed)',
|
2023-06-14 10:46:55 +02:00
|
|
|
],
|
2023-07-26 18:00:31 +02:00
|
|
|
'test_suite_asn1parse': [
|
|
|
|
# This test depends on BIGNUM_C
|
|
|
|
'INTEGER too large for mpi',
|
|
|
|
],
|
|
|
|
'test_suite_asn1write': [
|
|
|
|
# Following tests depends on BIGNUM_C
|
|
|
|
'ASN.1 Write mpi 0 (1 limb)',
|
|
|
|
'ASN.1 Write mpi 0 (null)',
|
|
|
|
'ASN.1 Write mpi 0x100',
|
|
|
|
'ASN.1 Write mpi 0x7f',
|
|
|
|
'ASN.1 Write mpi 0x7f with leading 0 limb',
|
|
|
|
'ASN.1 Write mpi 0x80',
|
|
|
|
'ASN.1 Write mpi 0x80 with leading 0 limb',
|
|
|
|
'ASN.1 Write mpi 0xff',
|
|
|
|
'ASN.1 Write mpi 1',
|
|
|
|
'ASN.1 Write mpi, 127*8 bits',
|
|
|
|
'ASN.1 Write mpi, 127*8+1 bits',
|
|
|
|
'ASN.1 Write mpi, 127*8-1 bits',
|
|
|
|
'ASN.1 Write mpi, 255*8 bits',
|
|
|
|
'ASN.1 Write mpi, 255*8-1 bits',
|
|
|
|
'ASN.1 Write mpi, 256*8-1 bits',
|
|
|
|
],
|
2023-08-01 09:07:43 +02:00
|
|
|
'test_suite_debug': [
|
|
|
|
# Following tests depends on BIGNUM_C
|
|
|
|
'Debug print mbedtls_mpi #2: 3 bits',
|
|
|
|
'Debug print mbedtls_mpi: 0 (empty representation)',
|
|
|
|
'Debug print mbedtls_mpi: 0 (non-empty representation)',
|
|
|
|
'Debug print mbedtls_mpi: 49 bits',
|
|
|
|
'Debug print mbedtls_mpi: 759 bits',
|
|
|
|
'Debug print mbedtls_mpi: 764 bits #1',
|
|
|
|
'Debug print mbedtls_mpi: 764 bits #2',
|
|
|
|
],
|
2023-09-22 11:53:41 +02:00
|
|
|
'test_suite_ssl': [
|
|
|
|
'Test configuration of groups for DHE through mbedtls_ssl_conf_curves()',
|
|
|
|
],
|
2023-04-12 14:59:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-26 09:55:23 +02:00
|
|
|
'analyze_driver_vs_reference_ffdh_alg': {
|
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
|
|
|
'component_ref': 'test_psa_crypto_config_reference_ffdh',
|
|
|
|
'component_driver': 'test_psa_crypto_config_accel_ffdh',
|
2023-07-04 12:35:31 +02:00
|
|
|
'ignored_suites': ['dhm'],
|
2023-07-05 11:07:07 +02:00
|
|
|
'ignored_tests': {}
|
2023-05-26 09:55:23 +02:00
|
|
|
}
|
|
|
|
},
|
2023-08-04 13:51:18 +02:00
|
|
|
'analyze_driver_vs_reference_tfm_config': {
|
|
|
|
'test_function': do_analyze_driver_vs_reference,
|
|
|
|
'args': {
|
|
|
|
'component_ref': 'test_tfm_config',
|
|
|
|
'component_driver': 'test_tfm_config_p256m_driver_accel_ec',
|
2023-08-08 18:34:47 +02:00
|
|
|
'ignored_suites': [
|
|
|
|
# Ignore test suites for the modules that are disabled in the
|
|
|
|
# accelerated test case.
|
|
|
|
'ecp',
|
|
|
|
'ecdsa',
|
|
|
|
'ecdh',
|
|
|
|
'ecjpake',
|
|
|
|
'bignum_core',
|
|
|
|
'bignum_random',
|
|
|
|
'bignum_mod',
|
|
|
|
'bignum_mod_raw',
|
|
|
|
'bignum.generated',
|
|
|
|
'bignum.misc',
|
|
|
|
],
|
2023-08-04 13:51:18 +02:00
|
|
|
'ignored_tests': {
|
|
|
|
# Ignore all tests that require DERIVE support which is disabled
|
|
|
|
# in the driver version
|
|
|
|
'test_suite_psa_crypto': [
|
|
|
|
'PSA key agreement setup: ECDH + HKDF-SHA-256: good',
|
|
|
|
('PSA key agreement setup: ECDH + HKDF-SHA-256: good, key algorithm broader '
|
|
|
|
'than required'),
|
|
|
|
'PSA key agreement setup: ECDH + HKDF-SHA-256: public key not on curve',
|
|
|
|
'PSA key agreement setup: KDF instead of a key agreement algorithm',
|
|
|
|
'PSA key agreement setup: bad key agreement algorithm',
|
|
|
|
'PSA key agreement: ECDH SECP256R1 (RFC 5903) + HKDF-SHA-256: capacity=8160',
|
|
|
|
'PSA key agreement: ECDH SECP256R1 (RFC 5903) + HKDF-SHA-256: read 0+32',
|
|
|
|
'PSA key agreement: ECDH SECP256R1 (RFC 5903) + HKDF-SHA-256: read 1+31',
|
|
|
|
'PSA key agreement: ECDH SECP256R1 (RFC 5903) + HKDF-SHA-256: read 31+1',
|
|
|
|
'PSA key agreement: ECDH SECP256R1 (RFC 5903) + HKDF-SHA-256: read 32+0',
|
|
|
|
'PSA key agreement: ECDH SECP256R1 (RFC 5903) + HKDF-SHA-256: read 32+32',
|
|
|
|
'PSA key agreement: ECDH SECP256R1 (RFC 5903) + HKDF-SHA-256: read 64+0',
|
|
|
|
'PSA key derivation: ECDH on P256 with HKDF-SHA256, info first',
|
|
|
|
'PSA key derivation: ECDH on P256 with HKDF-SHA256, key output',
|
|
|
|
'PSA key derivation: ECDH on P256 with HKDF-SHA256, missing info',
|
|
|
|
'PSA key derivation: ECDH on P256 with HKDF-SHA256, omitted salt',
|
|
|
|
'PSA key derivation: ECDH on P256 with HKDF-SHA256, raw output',
|
|
|
|
'PSA key derivation: ECDH on P256 with HKDF-SHA256, salt after secret',
|
|
|
|
'PSA key derivation: ECDH with TLS 1.2 PRF SHA-256, good case',
|
|
|
|
'PSA key derivation: ECDH with TLS 1.2 PRF SHA-256, missing label',
|
|
|
|
'PSA key derivation: ECDH with TLS 1.2 PRF SHA-256, missing label and secret',
|
|
|
|
'PSA key derivation: ECDH with TLS 1.2 PRF SHA-256, no inputs',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1 (1 redraw)',
|
|
|
|
'PSA key derivation: HKDF-SHA-256 -> ECC secp256r1, exercise ECDSA',
|
|
|
|
'PSA key derivation: TLS 1.2 Mix-PSK-to-MS, SHA-256, 0+48, ka',
|
|
|
|
'PSA key derivation: TLS 1.2 Mix-PSK-to-MS, SHA-256, 24+24, ka',
|
|
|
|
'PSA key derivation: TLS 1.2 Mix-PSK-to-MS, SHA-256, 48+0, ka',
|
|
|
|
'PSA key derivation: TLS 1.2 Mix-PSK-to-MS, bad state #1, ka',
|
|
|
|
'PSA key derivation: TLS 1.2 Mix-PSK-to-MS, bad state #3, ka',
|
|
|
|
'PSA key derivation: TLS 1.2 Mix-PSK-to-MS, bad state #4, ka',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC BRAINPOOL_P_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC MONTGOMERY (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECP_R2 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_K1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R1 (ECC enabled)',
|
|
|
|
'PSA key derivation: bits=7 invalid for ECC SECT_R2 (ECC enabled)',
|
|
|
|
'PSA raw key agreement: ECDH SECP256R1 (RFC 5903)',
|
|
|
|
],
|
2023-08-08 18:34:47 +02:00
|
|
|
'test_suite_random': [
|
|
|
|
'PSA classic wrapper: ECDSA signature (SECP256R1)',
|
|
|
|
],
|
2023-08-04 13:51:18 +02:00
|
|
|
'test_suite_psa_crypto_pake': [
|
|
|
|
'PSA PAKE: ecjpake size macros',
|
2023-08-08 18:34:47 +02:00
|
|
|
],
|
|
|
|
'test_suite_asn1parse': [
|
|
|
|
# This test depends on BIGNUM_C
|
|
|
|
'INTEGER too large for mpi',
|
|
|
|
],
|
|
|
|
'test_suite_asn1write': [
|
|
|
|
# Following tests depends on BIGNUM_C
|
|
|
|
'ASN.1 Write mpi 0 (1 limb)',
|
|
|
|
'ASN.1 Write mpi 0 (null)',
|
|
|
|
'ASN.1 Write mpi 0x100',
|
|
|
|
'ASN.1 Write mpi 0x7f',
|
|
|
|
'ASN.1 Write mpi 0x7f with leading 0 limb',
|
|
|
|
'ASN.1 Write mpi 0x80',
|
|
|
|
'ASN.1 Write mpi 0x80 with leading 0 limb',
|
|
|
|
'ASN.1 Write mpi 0xff',
|
|
|
|
'ASN.1 Write mpi 1',
|
|
|
|
'ASN.1 Write mpi, 127*8 bits',
|
|
|
|
'ASN.1 Write mpi, 127*8+1 bits',
|
|
|
|
'ASN.1 Write mpi, 127*8-1 bits',
|
|
|
|
'ASN.1 Write mpi, 255*8 bits',
|
|
|
|
'ASN.1 Write mpi, 255*8-1 bits',
|
|
|
|
'ASN.1 Write mpi, 256*8-1 bits',
|
|
|
|
],
|
2023-08-04 13:51:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-26 16:11:26 +02:00
|
|
|
}
|
|
|
|
|
2020-06-25 18:36:28 +02:00
|
|
|
def main():
|
2023-10-17 11:03:16 +02:00
|
|
|
main_results = Results()
|
2023-10-10 09:42:13 +02:00
|
|
|
|
2020-06-25 18:36:28 +02:00
|
|
|
try:
|
|
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
2022-10-24 08:10:10 +02:00
|
|
|
parser.add_argument('outcomes', metavar='OUTCOMES.CSV',
|
2020-06-25 18:36:28 +02:00
|
|
|
help='Outcome file to analyze')
|
2023-10-09 16:30:11 +02:00
|
|
|
parser.add_argument('specified_tasks', default='all', nargs='?',
|
2022-11-09 13:54:49 +01:00
|
|
|
help='Analysis to be done. By default, run all tasks. '
|
|
|
|
'With one or more TASK, run only those. '
|
|
|
|
'TASK can be the name of a single task or '
|
2022-11-17 11:50:23 +01:00
|
|
|
'comma/space-separated list of tasks. ')
|
2022-11-09 13:54:49 +01:00
|
|
|
parser.add_argument('--list', action='store_true',
|
|
|
|
help='List all available tasks and exit.')
|
2023-08-11 16:22:04 +02:00
|
|
|
parser.add_argument('--require-full-coverage', action='store_true',
|
|
|
|
dest='full_coverage', help="Require all available "
|
|
|
|
"test cases to be executed and issue an error "
|
|
|
|
"otherwise. This flag is ignored if 'task' is "
|
|
|
|
"neither 'all' nor 'analyze_coverage'")
|
2020-06-25 18:36:28 +02:00
|
|
|
options = parser.parse_args()
|
2022-10-21 13:42:08 +02:00
|
|
|
|
2022-11-09 13:54:49 +01:00
|
|
|
if options.list:
|
2023-10-09 16:30:11 +02:00
|
|
|
for task in KNOWN_TASKS:
|
2023-10-17 09:44:36 +02:00
|
|
|
print(task)
|
2022-11-09 13:54:49 +01:00
|
|
|
sys.exit(0)
|
|
|
|
|
2023-10-09 16:30:11 +02:00
|
|
|
if options.specified_tasks == 'all':
|
|
|
|
tasks_list = KNOWN_TASKS.keys()
|
2022-11-09 13:54:49 +01:00
|
|
|
else:
|
2023-10-09 16:30:11 +02:00
|
|
|
tasks_list = re.split(r'[, ]+', options.specified_tasks)
|
|
|
|
for task in tasks_list:
|
|
|
|
if task not in KNOWN_TASKS:
|
2023-10-17 10:11:45 +02:00
|
|
|
sys.stderr.write('invalid task: {}'.format(task))
|
|
|
|
sys.exit(2)
|
2022-11-09 13:54:49 +01:00
|
|
|
|
2023-10-09 16:30:11 +02:00
|
|
|
KNOWN_TASKS['analyze_coverage']['args']['full_coverage'] = options.full_coverage
|
2022-11-09 13:54:49 +01:00
|
|
|
|
2023-10-17 10:11:45 +02:00
|
|
|
for task in tasks_list:
|
|
|
|
test_function = KNOWN_TASKS[task]['test_function']
|
|
|
|
test_args = KNOWN_TASKS[task]['args']
|
2023-10-17 12:47:35 +02:00
|
|
|
test_function(main_results, options.outcomes, test_args)
|
2023-10-17 11:03:16 +02:00
|
|
|
|
2023-10-17 12:28:26 +02:00
|
|
|
main_results.info("Overall results: {} warnings and {} errors",
|
|
|
|
main_results.warning_count, main_results.error_count)
|
2023-10-17 11:03:16 +02:00
|
|
|
|
2023-10-17 12:23:55 +02:00
|
|
|
sys.exit(0 if (main_results.error_count == 0) else 1)
|
2023-10-10 09:42:13 +02:00
|
|
|
|
2020-06-25 18:36:28 +02:00
|
|
|
except Exception: # pylint: disable=broad-except
|
|
|
|
# Print the backtrace and exit explicitly with our chosen status.
|
|
|
|
traceback.print_exc()
|
|
|
|
sys.exit(120)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|