Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move some scripts to framework submodule #5

Closed
wants to merge 580 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Dec 22, 2022

  1. Support restyling only the specified files

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    1a1deb8 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2022

  1. Merge pull request #6747 from gilles-peskine-arm/bignum-mod-random

    Bignum mod random
    mpg committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    6071e90 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #6776 from gabor-mezei-arm/6222_bignum_mod_mul

    Bignum: Implement fixed width modular multiplication
    mpg committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    bbb0a7f View commit details
    Browse the repository at this point in the history
  3. Documentation improvements

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    c46bb0a View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Check Uncrustify returncode in code_style.py

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    5059797 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. Fix incorrect typing of function in code_style.py

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    3b1c55d View commit details
    Browse the repository at this point in the history
  2. Fix pylint warnings about comparison to True

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    50dfaca View commit details
    Browse the repository at this point in the history
  3. Merge pull request #6876 from davidhorstmann-arm/disable-code-style-f…

    …or-bn-asm
    
    Check for Uncrustify errors in `code_style.py`
    gilles-peskine-arm committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    293404f View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. Fix example command

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    8dc85d9 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2023

  1. Add test generation support for the ecp module

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    990bb78 View commit details
    Browse the repository at this point in the history
  2. Add generated test for ecp quasi-reduction

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    12d70a9 View commit details
    Browse the repository at this point in the history
  3. Fix pylint issues

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 17, 2023
    Configuration menu
    Copy the full SHA
    9b226cb View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2023

  1. Fix lint issues

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 18, 2023
    Configuration menu
    Copy the full SHA
    df4464a View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Refactoring: new method Algorithm.is_valid_for_operation

    No intended behavior change.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    f048545 View commit details
    Browse the repository at this point in the history
  2. A key agreement cannot be chained with PSA_ALG_TLS12_ECJPAKE_TO_PMS

    Test accordingly.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    3325957 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #6834 from gilles-peskine-arm/code-style-files

    code_style.py: Support restyling only the specified files
    gilles-peskine-arm committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    617b051 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2023

  1. Move the quasi reduction fixing function to bignum_mod_raw

    Rename the function to 'fix_quasi_reduction' to better suite its functionality.
    Also changed the name prefix to suite for the new module.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    bf903a0 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. Remove provisional notice on code style script

    Since code style is now enforced, the notice is wrong. Remove it to
    avoid confusion.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    c4fe40d View commit details
    Browse the repository at this point in the history
  2. Document that the script must be run from the root

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    edb88c4 View commit details
    Browse the repository at this point in the history
  3. Change print to print_err for an error message

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    20694ab View commit details
    Browse the repository at this point in the history
  4. Remove overly verbose output on success

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    b9c3833 View commit details
    Browse the repository at this point in the history
  5. Fix pylint issues

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    21157c0 View commit details
    Browse the repository at this point in the history
  6. Add basic output on success

    Whilst it is true that "silence is golden", no output at all could be
    disconcerting and it makes searching in a CI log more difficult.
    
    Add a simple status message that says "Checked N files, style ok".
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    7dce673 View commit details
    Browse the repository at this point in the history
  7. Use reproductable random numbers

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    42c4850 View commit details
    Browse the repository at this point in the history
  8. Output diff without capturing it

    Instead of capturing the output of diff and printing it, let diff do its
    own outputting and se the return code to decide what to do.
    
    This also means that the conversion of stdout to UTF-8 is not necessary,
    as the reason it was needed was for printing diffs of files with UTF-8
    characters in them.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    2abb538 View commit details
    Browse the repository at this point in the history
  9. Don't wrap stdout and stderr in UTF-8 wrapper

    This is no longer needed as we only print ASCII text directly
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    3a0d806 View commit details
    Browse the repository at this point in the history
  10. Give proper Dict type hints in crypto_knowledge.py

    This prevents a return type error in a later function that uses the
    dictionaries here properly typed.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    2813823 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2023

  1. Remove unnecessary '\' linebreak characters

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    f6866ce View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Add dependency for generated test cases

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    613468f View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2023

  1. Merge pull request #6802 from gilles-peskine-arm/test_suite_psa_crypt…

    …o_metadata-20221215
    
    Add metadata tests for CCM* and TLS1.2-ECJPAKE-to-PMS
    mpg committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    fa86a19 View commit details
    Browse the repository at this point in the history
  2. Revert "Add dependency for generated test cases"

    The 'MBEDTLS_TEST_HOOKS' belongs to a test function and
    not to a test case.
    
    This reverts commit 613468f.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    1d1957a View commit details
    Browse the repository at this point in the history
  3. Shorten the prefix of the test case belongs to the fix quasi-reductio…

    …n function
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    da4b0c4 View commit details
    Browse the repository at this point in the history
  4. c_build_helper.py: Move compile to helper

    Move compilation to a separate helper function in c_build_helper.py to
    allow more generic use.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    65386fd View commit details
    Browse the repository at this point in the history
  5. Make c_build_helper module respect HOSTCC

    If HOSTCC is set, use that to generate files, otherwise use CC. This
    should make cross-compilation with generated files slightly easier.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    c3642e6 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. Add docstring for new compile function.

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    2995eb9 View commit details
    Browse the repository at this point in the history
  2. Switch to the new code style

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm authored and nick-child-ibm committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    6d6209f View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. Merge pull request #6941 from gabor-mezei-arm/6375_quasi-reduction_fu…

    …nction
    
    Add function to fix quasi-reduction
    gilles-peskine-arm committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    914ee88 View commit details
    Browse the repository at this point in the history
  2. Add test generation support for the ecp module

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    fc04802 View commit details
    Browse the repository at this point in the history
  3. Add test generation for ecp_mod_p192_raw

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    e5c94b8 View commit details
    Browse the repository at this point in the history
  4. Fix pylint issues

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    4377cb5 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #6964 from davidhorstmann-arm/code-style-improvements

    Improvements to code style script
    gilles-peskine-arm committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    ddc3fbc View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Merge pull request #6975 from davidhorstmann-arm/c-build-helper-impro…

    …vements
    
    Minor improvements to `c_build_helper.py`
    gilles-peskine-arm committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    4b83c29 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. code_style.py: Apply exclusions to the file list

    This commit rename `--files` options to `--subset` and
    it means to check a subset of the files known to git.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    8da7cd3 View commit details
    Browse the repository at this point in the history
  2. code_style.py: Add helpers to print warning and skipped files

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    dc41dda View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. print skipped file names to stdout

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    2fc0c25 View commit details
    Browse the repository at this point in the history
  2. adjust help message

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    39d3cb5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d2b2508 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2023

  1. Add more test cases

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    45f9a2f View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Improve readability

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    2923ed0 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. Only check files known to git

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    8508172 View commit details
    Browse the repository at this point in the history
  2. Fix CI failure

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    83a19cd View commit details
    Browse the repository at this point in the history
  3. Merge pull request #6971 from gabor-mezei-arm/6026_Secp192r1_fast_red…

    …uction
    
    Extract Secp192r1 fast reduction from the prototype
    gilles-peskine-arm committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    b20d2c0 View commit details
    Browse the repository at this point in the history
  4. Add test generation for ecp_mod_p521_raw

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    1fc3529 View commit details
    Browse the repository at this point in the history
  5. Fix pylint issues

    Create a new function for calculating the number of hex digits needed
    for a certain amount of limbs.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    6b348de View commit details
    Browse the repository at this point in the history
  6. Fix 32-bit issues

    The 521 bit needs different limb alignment for different word sizes.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    0f22852 View commit details
    Browse the repository at this point in the history
  7. Add corner case to mod_p521 tests

    Signed-off-by: Janos Follath <janos.follath@arm.com>
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    yanesca authored and gabor-mezei-arm committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    d388080 View commit details
    Browse the repository at this point in the history
  8. Restrict input parameter size for ecp_mod_p521_raw

    The imput mpi parameter must have twice as many limbs as the modulus.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    44fbcaf View commit details
    Browse the repository at this point in the history
  9. Revert the addition of hex digit calculator function

    This reverts commit 0f83e15e670565147daa32fd1fac510759520e26.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    8959be7 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. Fix tests for 32bit

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    f43a2c9 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. Merge pull request #7045 from lpy4105/issue/6947/apply-exclusions-in-…

    …code_style_py
    
    code_style.py: Apply exclusions when restyling a list of files
    gilles-peskine-arm committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    77c489f View commit details
    Browse the repository at this point in the history
  2. Use a common function to calculate the number of hex digits

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    217efa0 View commit details
    Browse the repository at this point in the history
  3. Add test generation for ecp_mod_p224_raw

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    7011783 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. Add more test cases for P224 testing

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    35626cc View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Use lower case hex number

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    c494135 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Remove unnecessary function override

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    f1cbbec View commit details
    Browse the repository at this point in the history
  2. Code style: have two empty lines before and after class definitions

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    1c1eb3c View commit details
    Browse the repository at this point in the history
  3. Correct the maximum canonical value in tests

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    e0a84d7 View commit details
    Browse the repository at this point in the history
  4. The is_valid() function is needed to not filter out test cases

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    c9709b3 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Add test generation for ecp_mod_p256_raw

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    340f92f View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. Add and fix comments

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    fa85e66 View commit details
    Browse the repository at this point in the history
  2. Fix maximum cannonical value

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    a970c38 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. ecp test generator: Added EcpPp384R1Raw().

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    6dc6947 View commit details
    Browse the repository at this point in the history
  2. ecp_curves: Minor rework for p384

    This patch adjusts formatting, documentation and testing.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    636abec View commit details
    Browse the repository at this point in the history
  3. EcpP384R1Raw: Added test case for 2nd round of carry reduction.

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    75bdc54 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. Add test cases for P192 fast reduction testing

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    ce6c440 View commit details
    Browse the repository at this point in the history
  2. Add test cases for P224 fast reduction testing

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    59e748a View commit details
    Browse the repository at this point in the history
  3. Add test cases for P521 fast reduction testing

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    bf59479 View commit details
    Browse the repository at this point in the history
  4. Typo: reformat numbers

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    83abbc1 View commit details
    Browse the repository at this point in the history
  5. Add test cases for P384 fast reduction testing

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    ca9b17c View commit details
    Browse the repository at this point in the history
  6. Add test cases for P256 fast reduction testing

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    5f5421c View commit details
    Browse the repository at this point in the history
  7. Typo: reorder testing classes

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    3211697 View commit details
    Browse the repository at this point in the history
  8. Fix comments

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    9be2525 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Fix 0 limb size for value 0

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    dc86aa7 View commit details
    Browse the repository at this point in the history
  2. Add generated test for core_mul

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    3f37a25 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2023

  1. Multplication is simmetric so only generate unique combinations

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    8645c27 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2023

  1. bignum: Removed merge scaffolding.

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    f3c99a9 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. cert_audit: Initial script for auditing expiry date

    We introduce the script to audit the expiry date of X509 files
    (i.e. crt/crl/csr files) in tests/data_files/ folder.
    
    This commit add basic classes and the framework for auditing
    and "-a" option to list all valid crt/crl/csr files it found.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    32f3bcc View commit details
    Browse the repository at this point in the history
  2. cert_audit: Support audit on test suite data files

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    109399c View commit details
    Browse the repository at this point in the history
  3. Merge pull request #7324 from minosgalanakis/bignum/remove-scaffolding

    bignum: Removed merge scaffolding
    yanesca committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    b427f27 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #7351 from gabor-mezei-arm/7109_ecp_fast_reduction…

    …_testing
    
    Test unlikely cases of ECC modular reduction
    yanesca committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    ef3cd67 View commit details
    Browse the repository at this point in the history
  5. test_suite_ecp: Introduced ecp_mod_p_generic_raw

    This patch replaces similiarly structured test functions
    for:
    
    * MBEDTLS_ECP_DP_SECP192R1
    * MBEDTLS_ECP_DP_SECP224R1
    * MBEDTLS_ECP_DP_SECP256R1
    * MBEDTLS_ECP_DP_SECP384R1
    * MBEDTLS_ECP_DP_BP512R1R1
    
    with a more generic version, which adjusts the parameters, based on the `curve_id` field,
    provided by the testing data.
    
    The python test framework has been updated to provide that extra field.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    e5624fc View commit details
    Browse the repository at this point in the history
  6. ecp.py: Set test-dependencies as attributes.

    This patch enables declaring dependencie as test-class
    members. ECP curve functions have been updated
    to use the new capability.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    47f7017 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2023

  1. cert_audit: Parse more information from test suite data file

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    8e8cc2b View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. cert_audit: Introduce not-[before|after] option

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    3b7a941 View commit details
    Browse the repository at this point in the history
  2. cert_audit: Fill validity dates in AuditData constructor

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    2a4abc4 View commit details
    Browse the repository at this point in the history
  3. cert_audit: Disable pylint error for importing cryptography

    This is to make CI happy. The script requires cryptography
    >= 35.0.0, which is only available for Python >= 3.6. But
    both ubuntu-16.04 and Travis CI are using Python 3.5.x.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    a678c0a View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. cert_audit: Make FILE as positional argument

    Make FILE as positional argument so that we can
    pass multiple files to the script. This commit
    also contains some help message improvements.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    adda9da View commit details
    Browse the repository at this point in the history
  2. cert_audit: Output line/argument number for *.data files

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    ac593c7 View commit details
    Browse the repository at this point in the history
  3. Add generated tests for ecp_mod_p192k1

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    2184cf2 View commit details
    Browse the repository at this point in the history
  4. Add dependency for P192K1 tests

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    1331362 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2023

  1. Fix test case dependency

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    7b02aa3 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. cert_audit: Improve documentation

    This commit is a collection of improving the documentation in the
    script:
    
      * Restore uppercase in the license header.
      * Reword the script description.
      * Reword the docstring of AuditData.fill_validity_duration
      * Rename AuditData.filename to *.location
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    17d14fd View commit details
    Browse the repository at this point in the history
  2. cert_audit: Code refinement

    This commit is a collection of code refinements
    from review comments.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    6f97d92 View commit details
    Browse the repository at this point in the history
  3. ecp_curves: Added unit-tests for secp224k1

    This patch introduces basic unit-testing for the `ecp_mod_p224k1()`.
    
    The method is exposed through the ecp_invasive interface, and
    the standard testing data is being provided by the python framework.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    7ff6f7c View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. New implementation for generate_test_code.FileWrapper

    We get some performance benefit from the Buffered I/O.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    9dfb26f View commit details
    Browse the repository at this point in the history
  2. cert_audit: Reuse generate_test_code.FileWrapper

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    228d863 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. cert_audit: Enable logging module

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    8f21dd9 View commit details
    Browse the repository at this point in the history
  2. cert_audit: Add data-files and suite-data-files options

    The commit adds '--data-files' and '--suite-data-files'
    options so that we could pass names for the two types
    of files separately. Additionally, the commit improves
    the documentation in the script.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    fb508f0 View commit details
    Browse the repository at this point in the history
  3. cert_audit: Improve the method to find tests folder

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    f948226 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #7425 from minosgalanakis/ecp/7257_ecp_mod_p224k1_…

    …add_test_cases
    
    ECP: Add Unit Tests for secp224k1
    paul-elliott-arm committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    372e7a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2023

  1. cert_audit: Add simple parser of suite data file

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 23, 2023
    Configuration menu
    Copy the full SHA
    64a5fb5 View commit details
    Browse the repository at this point in the history
  2. cert_audit: Clarify the abstraction of Auditor

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 23, 2023
    Configuration menu
    Copy the full SHA
    25d1dae View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. cert_audit: Check the version of cryptography

    The script requires cryptography >= 35.0.0, we
    need to check the version and provide meaningful
    error message when the package version was too
    old.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    831471a View commit details
    Browse the repository at this point in the history
  2. cert_audit: Reword the options and their descriptions

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    17b7c70 View commit details
    Browse the repository at this point in the history
  3. ecp_curves: Added unit-tests for secp256k1

    This patch introduces basic unit-testing for the `ecp_mod_p256k1()`.
    
    The method is exposed through the ecp_invasive interface, and
    the standard testing data is being provided by the python framework.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    f6a6fe8 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. bignum_core.py: Add "BignumCoreShiftL()"

    This patch introduces automatic test input generation for
    `mpi_core_shift_l()` function.
    
    It also adds two utility functions in bignum_common.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    afe5ca7 View commit details
    Browse the repository at this point in the history
  2. Add line number to a few error messages

    This is just a quick improvement, not meant to tackle the problem as a
    whole.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    f33ba7b View commit details
    Browse the repository at this point in the history
  3. Factor get_function_info out of gen_from_test_data

    No intended behavior change. This commit is mainly to satisfy pylint, which
    complains that gen_from_test_data now has too many variables. But it's a
    good thing anyway to make the function a little more readable.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    e74801e View commit details
    Browse the repository at this point in the history
  4. Simplify parsing of integers in .datax files

    In the .datax parser, since we're calling strtol() anyway, rely on it for
    verification. This makes the .datax parser very slightly more
    liberal (leading spaces and '+' are now accepted), and changes the
    interpretation of numbers with leading zeros to octal.
    
    Before, an argument like :0123: was parsed as decimal, but an argument like
    :0123+1: was parsed as a C expression and hence the leading zero marked an
    octal representation. Now, a leading zero is always interpreted according to
    C syntax, namely indicating octal. There are no nonzero integer constants
    with a leading zero in a .data file, so this does not affect existing test
    cases.
    
    In the .datax generator, allow negative arguments to be 'int' (before, they
    were systematically treated as 'exp' even though they didn't need to be).
    
    In the .datax parser, validate the range of integer constants. They have to
    fit in int32_t. In the .datax generator, use 'exp' instead of 'int' for
    integer constants that are out of range.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    2d07e7f View commit details
    Browse the repository at this point in the history
  5. Support different types in the parameter store

    The test framework stores size_t and int32_t values in the parameter store
    by converting them all to int. This is ok in practice, since we assume int
    covers int32_t and we don't have test data larger than 2GB. But it's
    confusing and error-prone. So make the parameter store a union, which allows
    size_t values not to be potentially truncated and makes the code a little
    clearer.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    8f35c81 View commit details
    Browse the repository at this point in the history
  6. parse_function_arguments: make local_vars a list

    Internal refactoring only, no behavior change.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    4bd2ad9 View commit details
    Browse the repository at this point in the history
  7. parse_function_arguments: extract per-argument function

    Internal refactoring only, no behavior change.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    02fc566 View commit details
    Browse the repository at this point in the history
  8. Support (void) as an argument list of a test function

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    84fd799 View commit details
    Browse the repository at this point in the history
  9. parse_function_arguments: stricter type parsing

    Use normalization the equality comparisons instead of loose regular
    expressions to determine the type of an argument of a test function.
    
    Now declarations are parsed in a stricter way: there can't be ignored junk
    at the beginning or at the end. For example, `long long unsigned int x`
    was accepted as a test function argument (but not `long long unsigned x`),
    although this was misleading since the value was truncated to the range of
    int. Now only recognized types are accepted.
    
    The new code is slightly looser in that it accepts `char const*` as well as
    `const char*`.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    88d56de View commit details
    Browse the repository at this point in the history
  10. Support larger integer test arguments: C part

    Change the type of signed integer arguments from int32_t to intmax_t.
    This allows the C code to work with test function arguments with a range
    larger than int32_t. A subsequent commit will change the .datax generator
    to support larger types.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    0091624 View commit details
    Browse the repository at this point in the history
  11. Allow more signed integer types in test function arguments

    Now that the C code supports the full range of intmax_t, allow any size of
    signed integer type in the .data file parser.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    99be173 View commit details
    Browse the repository at this point in the history
  12. Test the line number returned by parse_test_data

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    15018cf View commit details
    Browse the repository at this point in the history
  13. typo

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    d8476e8 View commit details
    Browse the repository at this point in the history
  14. Adjust code style for pointer types and casts

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    ad5629d View commit details
    Browse the repository at this point in the history
  15. Add Curve 448 tests

    Signed-off-by: Paul Elliott <paul.elliott@arm.com>
    paul-elliott-arm committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    b70de43 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2023

  1. Correct max canonical multiplication result

    Signed-off-by: Paul Elliott <paul.elliott@arm.com>
    paul-elliott-arm committed May 3, 2023
    Configuration menu
    Copy the full SHA
    379f671 View commit details
    Browse the repository at this point in the history
  2. Remove unrequired limb size calculation

    Signed-off-by: Paul Elliott <paul.elliott@arm.com>
    paul-elliott-arm committed May 3, 2023
    Configuration menu
    Copy the full SHA
    6105259 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2023

  1. Merge pull request #6716 from gilles-peskine-arm/test-argument-types-…

    …union
    
    Support larger integer test arguments
    gilles-peskine-arm committed May 4, 2023
    Configuration menu
    Copy the full SHA
    6fa83f5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #7490 from paul-elliott-arm/test_ecp_mod_p448

    [Bignum] Add unit tests for ecp_mod_p448
    paul-elliott-arm committed May 4, 2023
    Configuration menu
    Copy the full SHA
    17bbca8 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2023

  1. Fix input parameter alignment in P256K1 test cases

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed May 5, 2023
    Configuration menu
    Copy the full SHA
    ebef055 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2023

  1. Merge pull request #7399 from lpy4105/issue/7014/certificate-audit-sc…

    …ript
    
    cert_audit: Add test certificate date audit script
    bensze01 committed May 9, 2023
    Configuration menu
    Copy the full SHA
    ee7aedb View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. cert_audit: Support parsing file with multiple PEMs

    Previously, if a file had multiple PEM objects, only
    the first one would be parsed. This commit add the
    support so that we could parse all the PEM objects
    in the file.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    26f0239 View commit details
    Browse the repository at this point in the history
  2. cert_audit: Merge audit_data for identical X.509 objects

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    12157ba View commit details
    Browse the repository at this point in the history
  3. cert_audit: Sort the outputs by not_valid_after date

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    318d696 View commit details
    Browse the repository at this point in the history
  4. cert_audit: Fix bug in check_cryptography_version

    check_cryptography_version didn't provide helpful
    message with Python < 3.6, because re.Match object
    is not subscriptable.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    fbe2939 View commit details
    Browse the repository at this point in the history
  5. cert_audit: Calculate identifier for X.509 objects

    The identifier is calculated SHA1 hex string from
    the DER encoding of each X.509 objects. It's useful
    for finding out the identical X.509 objects.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    2f52f05 View commit details
    Browse the repository at this point in the history
  6. cert_audit: Output format improvement

    We should print all the information for each objects
    found every line. This makes it easy to analyze the
    output.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    f2bb1eb View commit details
    Browse the repository at this point in the history
  7. cert_audit: Use dictionary to store parsed AuditData

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    beac0bb View commit details
    Browse the repository at this point in the history
  8. cert_audit: Remove merge_auditdata

    We maintain a dict with unique AudiData objects
    (AuditData with unique underlying X.509 objects).
    We don't need merge_auditdata anymore.
    
    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    0217808 View commit details
    Browse the repository at this point in the history
  9. cert_audit: Fix DER files missed from parsing

    Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
    lpy4105 committed May 10, 2023
    Configuration menu
    Copy the full SHA
    876d933 View commit details
    Browse the repository at this point in the history
  10. Merge pull request #7482 from gabor-mezei-arm/6029_use_core_api_in_ec…

    …p_mod_koblitz
    
    [Bignum] Use core API in ecp_mod_koblitz()
    paul-elliott-arm committed May 10, 2023
    Configuration menu
    Copy the full SHA
    96fb3a7 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. bignum_common.py: Addressed minor typos

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed May 11, 2023
    Configuration menu
    Copy the full SHA
    6a1358e View commit details
    Browse the repository at this point in the history

Commits on May 12, 2023

  1. Add test cases to test overflow in the Kobltz reduction

    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed May 12, 2023
    Configuration menu
    Copy the full SHA
    872a5fa View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. bignum_core.py: Simplified result calculation for BignumCoreShiftL

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed May 16, 2023
    Configuration menu
    Copy the full SHA
    ef01247 View commit details
    Browse the repository at this point in the history
  2. Add _raw function to P192K1

    Modified the testing to use the generic fast reduction test function.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed May 16, 2023
    Configuration menu
    Copy the full SHA
    cf8826c View commit details
    Browse the repository at this point in the history
  3. Add _raw function to P224K1

    Modified the testing to use the generic fast reduction test function.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed May 16, 2023
    Configuration menu
    Copy the full SHA
    9c82445 View commit details
    Browse the repository at this point in the history
  4. Add _raw function to P256K1

    Modified the testing to use the generic fast reduction test function.
    
    Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
    gabor-mezei-arm committed May 16, 2023
    Configuration menu
    Copy the full SHA
    1e9020a View commit details
    Browse the repository at this point in the history
  5. Merge pull request #7489 from minosgalanakis/ecp/7246_xtrack_core_shi…

    …ft_l
    
    [Bignum]: Introduce left shift from prototype
    paul-elliott-arm committed May 16, 2023
    Configuration menu
    Copy the full SHA
    31b3062 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Merge pull request #7565 from gabor-mezei-arm/7263_split_out_Koblitz_…

    …raw_functions
    
    [Bignum] Split out _raw Koblitz reduction functions
    paul-elliott-arm committed May 22, 2023
    Configuration menu
    Copy the full SHA
    92e7937 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. ecp.py: Added tests for mbedtls_ecp_mod_p255_raw

    This patch introduces the `EcpP255Raw` test class for testing
    the curve using the preestablished `ecp_mod_p_generic_raw()`
    test. The test's logic has been updated accordingly.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed May 23, 2023
    Configuration menu
    Copy the full SHA
    b93e2ee View commit details
    Browse the repository at this point in the history
  2. ecp.py: Fixed types for arguments() overrides.

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed May 23, 2023
    Configuration menu
    Copy the full SHA
    9fd6d1e View commit details
    Browse the repository at this point in the history
  3. ecp_curves: Minor refactoring of mbedtls_ecp_mod_p255_raw()

    * Fixed whitespace issues.
    * Renamed variables to align with bignum conventions.
    * Updated alignment on test input data.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed May 23, 2023
    Configuration menu
    Copy the full SHA
    7bb8019 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2023

  1. Merge pull request #7512 from lpy4105/issue/7014/cert_audit-improvement

    cert_audit: Improvements of audit script
    gilles-peskine-arm committed May 24, 2023
    Configuration menu
    Copy the full SHA
    725748a View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. Merge pull request #7591 from minosgalanakis/ecp/6028_xtract_fast_red…

    …uction_curve25519
    
    [Bignum] Implement fast reduction curve25519
    paul-elliott-arm committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    7073ae2 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. Move corner test case into python framework

    Signed-off-by: Paul Elliott <paul.elliott@arm.com>
    paul-elliott-arm committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    ba37450 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Merge pull request #7637 from paul-elliott-arm/fixed_ecp_mod_p448

    [Bignum] Fixed width for ecp mod p448
    paul-elliott-arm committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    b7cbaad View commit details
    Browse the repository at this point in the history
  2. Split out mbedtls_ecp_mod_p448_raw()

    Switch testing over to using the generic raw functions.
    
    Signed-off-by: Paul Elliott <paul.elliott@arm.com>
    paul-elliott-arm committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    de1a028 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. test_suite_ecp: Added MBEDTLS_ECP_NIST_OPTIM define guards.

    This patch updates `ecp_mod_p_generic_raw` and corresponding
    curve test methods, that depend on the NIST optimisation
    parameter to not run when it is not included.
    
    The following curves are affected:
    * SECP192R1
    * SECP224R1
    * SECP256R1
    * SECP384R1
    * SECP521R1
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    e46cde9 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Clean up subprocess invocation in get_src_files

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    61af299 View commit details
    Browse the repository at this point in the history
  2. Add --since option to check files modified since a given commit

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    35de652 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2023

  1. Handle deleted files correctly

    Don't attempt to run on a file that isn't present now.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    31299ca View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. bignum_common.py: Added bits_to_limbs method.

    This patch introduces a rounding-error-resiliant method to
    calculate bits_to_limbs, and is updating `SECP224R1` and
    `SECP224K1` to use it.
    
    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    c69a549 View commit details
    Browse the repository at this point in the history
  2. ecp.py: Extended EcpP224K1Raw tests for 32/64 bit architectures.

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    7fe083e View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    03b2524 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. code_size_compare: add logging module and tweak prompt message

    Signed-off-by: Yanray Wang <yanray.wang@arm.com>
    Yanray Wang committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    f877ce6 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. logging_util: rename argument

    Signed-off-by: Yanray Wang <yanray.wang@arm.com>
    Yanray Wang committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    bd4f3cc View commit details
    Browse the repository at this point in the history
  2. Enable DH in generate_psa_tests.py

    Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
    mpg committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    537fd3e View commit details
    Browse the repository at this point in the history
  3. Shorten DH_FAMILY just like ECC_FAMILY

    Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
    mpg committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    aa454f6 View commit details
    Browse the repository at this point in the history
  4. Fix KeyType.can_do() for DH+FFDH

    Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
    mpg committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    b8f8019 View commit details
    Browse the repository at this point in the history
  5. Fix warnings from clang-16

    Running clang-16 on mbedtls reports warnings of type "-Wstrict-prototypes".
    This patch fixes these warnings by adding void to functions with no
    arguments. The generate_test_code.py is modified to insert void into test
    functions with no arguments in *.function files.
    
    Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
    gowthamsk-arm committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    56bab4e View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Make code_style.py -s more precise

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    12cd806 View commit details
    Browse the repository at this point in the history
  2. Make code_style.py -s default to -s=development

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    7853f4e View commit details
    Browse the repository at this point in the history
  3. pylint tidy-up

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    34b89f9 View commit details
    Browse the repository at this point in the history
  4. whitespace fix

    Signed-off-by: Dave Rodgman <dave.rodgman@gmail.com>
    dave-rodgman committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    bb2f4d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Update default variable values for compilers

    Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
    gowthamsk-arm committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    86fd07c View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. Add default test cases for add/subtract in bignum

    Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
    Agathiyan Bragadeesh committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    08984c0 View commit details
    Browse the repository at this point in the history
  2. Use ADD_SUB_DEFAULT as test input for bignum tests

    In BignumCoreAddAndAddIf and BignumCoreSub we use the new dedicated
    test inputs.
    
    Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
    Agathiyan Bragadeesh committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f00f5e4 View commit details
    Browse the repository at this point in the history
  3. Rename ADD_SUB_DEFAULT to ADD_SUB_DATA

    Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
    Agathiyan Bragadeesh committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f43c186 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. Merge pull request #7968 from gowthamsk-arm/use_earliest_latest_compi…

    …lers
    
    Use earliest latest compilers
    bensze01 committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    abd6cc9 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Remove trailing whitespace

    Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
    Agathiyan Bragadeesh committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    24d635d View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Merge pull request #8018 from AgathiyanB/add-overflow-test-inputs-bignum

    [Bignum] Add overflow test inputs for add and add if
    tom-cosgrove-arm committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    ecd6281 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. logging_util: support to tweak loglevel directed to stderr/stdout

    Previously we set loglevel >= WARNING printed to stderr and
    loglevel < WARNING printed to stdout. To be more flexible, we
    replace this `WARNING` value with an argument: split_level and leave
    `WARNING` as default split_level if not set.
    
    Signed-off-by: Yanray Wang <yanray.wang@arm.com>
    Yanray Wang committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    f335772 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Merge pull request #7937 from yanrayw/code_size_compare_improvement

    code_size_compare.py: preparation work to show code size changes in PR comment
    bensze01 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    573d74f View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Move PSA information and dependency automation into their own module

    This will let us use these features from other modules (yet to be created).
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    7a19bbc View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. New test suite for the low-level hash interface

    Some basic test coverage for now:
    
    * Nominal operation.
    * Larger output buffer.
    * Clone an operation and use it after the original operation stops.
    
    Generate test data automatically. For the time being, only do that for
    hashes that Python supports natively. Supporting all algorithms is future
    work.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    496313d View commit details
    Browse the repository at this point in the history
  2. Fix type annotation

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6ef458a View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Modify build_tree.py for the PSA Crypto repo

    When detecting the root dir, look both for PSA Crypto and Mbed TLS
    directories.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    567a828 View commit details
    Browse the repository at this point in the history
  2. Support psa-crypto repo in psa_storage.py

    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    7f35b6b View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Improve directory coverage in PSA repo detection

    Check for the 'drivers' and 'programs' directories additionally to the
    ones that are already there.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    81e8e30 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Merge pull request #1050 from Mbed-TLS/update-restricted-2023-08-30

    Sync development-restricted with tip of development
    gilles-peskine-arm committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    2abd26d View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Merge remote-tracking branch 'upstream-public/development' into devel…

    …opment-restricted-merge-20230925
    
    Conflicts:
    * `include/mbedtls/build_info.h`: a new fragment to auto-enable
      `MBEDTLS_CIPHER_PADDING_PKCS7` was added in
      c9f4040 in `development-restricted`.
      In `development`, this section of the file has moved to
      `include/mbedtls/config_adjust_legacy_crypto.h`.
    * `library/bignum.c`: function name change in `development-restricted` vs
      comment change in development. The comment change in `development` is not
      really relevant, so just take the line from `development-restricted`.
    gilles-peskine-arm committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    7021408 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Merge pull request #1090 from Mbed-TLS/mbedtls-3.5.0rc0-pr

    Mbedtls 3.5.0rc0 pr DO NOT MERGE
    minosgalanakis committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    7759610 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. Correct styling of Mbed TLS in documentation

    Several bits of documentation were incorrectly styling Mbed TLS
    as MbedTLS.
    
    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    4ab66b8 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Adapt to new PSA Crypto repo name

    Patterns I looked for:
    grep -i "psa-crypto"
    grep -i "psa.*crypto.*repo"
    grep -i "psa.*crypto.*root"
    
    Signed-off-by: Ronald Cron <ronald.cron@arm.com>
    ronald-cron-arm committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    7e479ed View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Merge pull request #8327 from ronald-cron-arm/adapt-psa-crypto-repo-name

    Adapt to new PSA Crypto repo name
    ronald-cron-arm committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    5c899a8 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. add script for server9_bad_saltlen

    Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
    yuhaoth committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    2515cfa View commit details
    Browse the repository at this point in the history
  2. fix wrong typo and indent issue

    Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
    yuhaoth committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    432e00e View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. improve document

    Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
    yuhaoth committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    20c91d5 View commit details
    Browse the repository at this point in the history
  2. move script to tests/scripts

    Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
    yuhaoth committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    07bc4a8 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. update headers

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    09146d7 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. psa_information.py: generate dep for AES/ARIA/CAMELLIA ECB test case

    Signed-off-by: Yanray Wang <yanray.wang@arm.com>
    Yanray Wang committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    b232974 View commit details
    Browse the repository at this point in the history
  2. Header updates

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    3652581 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. Revert back to v3.5.0

    git revert v3.5.0..v3.5.1
    git rebase to combine the resulting revert commits
    
    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    b56cc53 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/development' into mbedtls-3.5.1-pr

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    6225c84 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. psa_information: compile a regex instead of using string directly

    Compiling a regex improves performance and avoids accidentally
    combining it with a string. This commit makes this change.
    
    Signed-off-by: Yanray Wang <yanray.wang@arm.com>
    Yanray Wang committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    e803233 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. psa_information: improve code readability

    Signed-off-by: Yanray Wang <yanray.wang@arm.com>
    Yanray Wang committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    5fd78db View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Introduce function to return library/core directory

    Add crypto_core_directory in build_tree.py so that
    the libary/core directory can be returned based
    on what repository we are in.
    
    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    0231c7d View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2023

  1. Merge pull request #7649 from yuhaoth/pr/add-command-for-server9-bad-…

    …saltlen
    
    Add command for server9-bad-saltlen
    gilles-peskine-arm committed Nov 20, 2023
    Configuration menu
    Copy the full SHA
    a99caa8 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. Merge pull request #1122 from gilles-peskine-arm/development-restrict…

    …ed-merge-20231120
    
    Merge development on 2023-11-20
    gilles-peskine-arm committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    89032fb View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Improve implementation of crypto_core_directory

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    372e532 View commit details
    Browse the repository at this point in the history
  2. Rename guess_mbedtls_root to guess_project_root

    Rename for consistency. Also, replace all calls to
    this function with correct name.
    
    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    d990342 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Merge remote-tracking branch 'origin/development' into support_cipher…

    …_encrypt_only
    Yanray Wang committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    fef67e9 View commit details
    Browse the repository at this point in the history
  2. Introduce project_crypto_name in build_tree.py

    Add new function to build_tree.py to return the crypto
    name for the project; either tfpsacrypto or mbedcrypto.
    Deploy this function where needed.
    
    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    acf4569 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. Use os.path.join in crypto_core_directory

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    415486a View commit details
    Browse the repository at this point in the history
  2. Add documentation for new public functions

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    ebae927 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Configuration menu
    Copy the full SHA
    ef87f7f View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Rename project_crypto_name

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    f880d03 View commit details
    Browse the repository at this point in the history
  2. Improve documentation of crypto_core_directory

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    176d3a6 View commit details
    Browse the repository at this point in the history
  3. Introduce guess_mbedtls_root

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    d2eedbd View commit details
    Browse the repository at this point in the history
  4. Introduce guess_tf_psa_crypto_root

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    19da414 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. Remove trailing whitespace

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    a62109a View commit details
    Browse the repository at this point in the history
  2. Modify crypto_core_directory to also return a relative path

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    f8d0313 View commit details
    Browse the repository at this point in the history
  3. Use guess_mbedtls_root in Mbed-TLS-only script

    Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
    tom-daubney-arm committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    ebd3304 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2023

  1. Merge pull request #1121 from gilles-peskine-arm/psa-buffers-test-poison

    Memory poisoning function for Asan
    davidhorstmann-arm committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    b9c445a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #8523 from tom-daubney-arm/modify_check_generated_…

    …files_script
    
    Modify check generated files script to work with TF PSA Crypto too
    gilles-peskine-arm committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    f487eea View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Fix mixup between secp224r1 and secp224k1 in test scripts

    secp224k1 is the one with 225-bit private keys.
    
    The consequences of this mistake were:
    
    * We emitted positive test cases for hypothetical SECP_R1_225 and
      SECP_K1_224 curves, which were never executed.
    * We emitted useless not-supported test cases for SECP_R1_225 and SECP_K1_224.
    * We were missing positive test cases for SECP_R1_224 in automatically
      generated tests.
    * We were missing not-supported test cases for SECP_R1_224 and SECP_K1_225.
    
    Thus this didn't cause test failures, but it caused missing test coverage
    and some never-executed test cases.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    4bcd102 View commit details
    Browse the repository at this point in the history
  2. Add test data for secp192r1

    Same generation methodology as b68a358:
    
    ```
    openssl genpkey -algorithm ec -pkeyopt ec_paramgen_curve:P-192 -text |perl -0777 -pe 's/.*\npriv:([\n 0-9a-f:]*)pub:([\n 0-9a-f:]*).*/"$1","$2"/s or die; y/\n ://d; s/,/,\n              /;'
    ```
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    cee6a06 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. Python module to parse function declarations from a header file

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    903f3aa View commit details
    Browse the repository at this point in the history
  2. C function wrapper generator

    The Base class generates trivial wrappers that just call the underlying
    function. It is meant as a base class to construct useful wrapper generators.
    
    The Logging class generates wrappers that can log the inputs and outputs to
    a function.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    3621060 View commit details
    Browse the repository at this point in the history
  3. Guard the macro definition

    It doesn't make sense to define a macro expanding to a non-existent function.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    3e62373 View commit details
    Browse the repository at this point in the history
  4. Add review exception warning

    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    c4bf74c View commit details
    Browse the repository at this point in the history
  5. Fix parsing of C line comments

    Fix // comments stopping on 'n' instead of newlines. Also allow
    backslash-newline in // comments.
    
    Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
    gilles-peskine-arm committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    d4d4fb6 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. tests: add guards for DH groups

    Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
    valeriosetti committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    00a325d View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Merge remote-tracking branch 'restricted/development-restricted' into…

    … update-development-r
    
    Conflicts:
    	programs/Makefile
    	tests/scripts/check-generated-files.sh
    daverodgman committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    214f077 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Configuration menu
    Copy the full SHA
    eca2a42 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Configuration menu
    Copy the full SHA
    5a46f42 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Check file content to see if it looks auto-generated

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    aeb4fb5 View commit details
    Browse the repository at this point in the history
  2. line length fix

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    d2f82ca View commit details
    Browse the repository at this point in the history
  3. Minor relaxation to auto-gen regex

    Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
    daverodgman committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    d9f386c View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Merge branch 'development' into 'development-restricted'

    Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
    minosgalanakis committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    16deea8 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Merge pull request #1208 from Mbed-TLS/origin/dev/minosgalanakis/deve…

    …lopment-restricted-merge-19032024
    
     Merge development on restricted 10/03/2024
    minosgalanakis committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    f9fc138 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Merge pull request #1213 from Mbed-TLS/mbedtls-3.6.0rc0-pr

    Mbedtls 3.6.0 Release Candidate
    minosgalanakis committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    ef8b4be View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    56e0c15 View commit details
    Browse the repository at this point in the history
  2. Replace old references to 'mbedtls_dev'

    The module has been renamed to 'framework_dev'.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    4765480 View commit details
    Browse the repository at this point in the history
  3. Remove path import from audit-validity-dates.py

    This import is now unnecessary, as the script is in the same directory
    as the module it imports in the framework submodule.
    
    Signed-off-by: David Horstmann <david.horstmann@arm.com>
    davidhorstmann-arm committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    f1ef72a View commit details
    Browse the repository at this point in the history