TEST: Add an algorithm ID tester for libcrypto vs provider
authorRichard Levitte <levitte@openssl.org>
Tue, 2 Feb 2021 14:13:08 +0000 (15:13 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 5 Feb 2021 14:44:39 +0000 (15:44 +0100)
commit388eb0d9709b4edf0fe4edf207b23d924fde2649
treec0b336d339dd90613ca402b9fb7302c413767c3c
parent93d6132a79d85127dffa1ce4e62b264cf38c296d
TEST: Add an algorithm ID tester for libcrypto vs provider

Providers produce algorithm IDs of their own, and we need to compare
them against the same thing produced by libcrypto's ASN.1 code and
with legacy keys.

This tester can compare algorithm IDs for signatures and for keys,
given certificates that hold such data.

To verify key algorithm IDs, only one certificate is necessary, and
its public key is used.

To verify certificate algorithm IDs, we need to launch the signature
operation that would verify a certificate against the public key of
its signing CA, so that test needs two files.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14049)
test/algorithmid_test.c [new file with mode: 0644]
test/build.info
test/recipes/06-test_algorithmid.t [new file with mode: 0644]