mbedtls/tests
David Horstmann cfae6a1ae9 Fix incorrect detection of HardwareModuleName
The hardware module name otherName SAN contains 2 OIDs:

 OtherName ::= SEQUENCE {
      type-id    OBJECT IDENTIFIER,
      value      [0] EXPLICIT ANY DEFINED BY type-id }

 HardwareModuleName ::= SEQUENCE {
                           hwType OBJECT IDENTIFIER,
                           hwSerialNum OCTET STRING }

The first, type-id, is the one that identifies the otherName as a
HardwareModuleName. The second, hwType, identifies the type of hardware.

This change fixes 2 issues:

1. We were erroneously trying to identify HardwareModuleNames by looking
at hwType, not type-id.
2. We accidentally inverted the check so that we were checking that
hwType did NOT match HardwareModuleName.

This fix ensures that type-id is correctly checked to make sure that it
matches the OID for HardwareModuleName.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2023-08-18 19:31:39 +01:00
..
.jenkins
configs
data_files Add indent 2023-07-06 10:16:15 +08:00
docker/bionic
git-scripts
include Remove unnecessary (and harmful) include 2023-07-06 12:47:26 +02:00
opt-testcases Adapt names (curves -> groups) 2023-07-05 09:26:26 +02:00
scripts Merge pull request #7478 from yuhaoth/pr/add-script-for-generating-cert-macros 2023-07-17 11:13:07 +02:00
src Merge pull request #7478 from yuhaoth/pr/add-script-for-generating-cert-macros 2023-07-17 11:13:07 +02:00
suites Fix incorrect detection of HardwareModuleName 2023-08-18 19:31:39 +01:00
.gitignore Ignore *.o everywhere 2023-05-12 13:58:05 +02:00
CMakeLists.txt
compat-in-docker.sh
compat.sh Merge pull request #7136 from yanrayw/5692-record-compatsh-test-cases 2023-07-10 12:08:32 +01:00
context-info.sh
Descriptions.txt
make-in-docker.sh
Makefile
ssl-opt-in-docker.sh
ssl-opt.sh Adapt names (curves -> groups) in a separately added test case 2023-07-11 09:19:13 +02:00