Skip to content

Add unit tests for ECDSA-SM3 signatures #894

Description

@ronald-cron-arm

Suggested enhancement

Depends on: #874 and #887

Add correctness unit tests based on sign_verify_message(), verify_hash() and verify_message() test functions for ECDSA-SM3 and ECDSA-DETERMINISTIC-SM3 signature algorithms. For verify_hash() and verify_message() based tests, compute the expected signature with a third party library. It seems to be doable with the PyCryptodome library.

Out of scope:
HMAC-DRBG-SM3 testing
HMAC-SM3 support in MD implies HMAC-DRBG-SM3 support as for any hash based MAC. No need to add SM3 specific HMAC-DRBG unit tests.

Justification

TF-PSA-Crypto needs this to tests ECDSA signatures with the SM3 hash.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsize-sEstimated task size: small (~2d)

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions