mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 17:40:50 +02:00
Fix test for FIPS config
This commit is contained in:
+15
-2
@@ -731,7 +731,6 @@ int test_x509_CertFromX509_akid_overflow(void)
|
||||
{
|
||||
size_t tbs_start = pos;
|
||||
size_t s;
|
||||
int i;
|
||||
|
||||
/* version [0] EXPLICIT INTEGER 2 (v3) */
|
||||
PUT1(0xA0); PUT1(0x03); PUT1(0x02); PUT1(0x01); PUT1(0x02);
|
||||
@@ -792,7 +791,21 @@ int test_x509_CertFromX509_akid_overflow(void)
|
||||
WRAP(alg, 0x30);
|
||||
bs = pos;
|
||||
PUT1(0x00); PUT1(0x04);
|
||||
for (i = 0; i < 64; i++) PUT1(0x01);
|
||||
/* Use P-256 generator point (valid on-curve point) so that
|
||||
* builds with WOLFSSL_VALIDATE_ECC_IMPORT accept the key. */
|
||||
{
|
||||
static const unsigned char p256G[64] = {
|
||||
0x6B,0x17,0xD1,0xF2,0xE1,0x2C,0x42,0x47,
|
||||
0xF8,0xBC,0xE6,0xE5,0x63,0xA4,0x40,0xF2,
|
||||
0x77,0x03,0x7D,0x81,0x2D,0xEB,0x33,0xA0,
|
||||
0xF4,0xA1,0x39,0x45,0xD8,0x98,0xC2,0x96,
|
||||
0x4F,0xE3,0x42,0xE2,0xFE,0x1A,0x7F,0x9B,
|
||||
0x8E,0xE7,0xEB,0x4A,0x7C,0x0F,0x9E,0x16,
|
||||
0x2B,0xCE,0x33,0x57,0x6B,0x31,0x5E,0xCE,
|
||||
0xCB,0xB6,0x40,0x68,0x37,0xBF,0x51,0xF5
|
||||
};
|
||||
PUTN(p256G, sizeof(p256G));
|
||||
}
|
||||
WRAP(bs, 0x03);
|
||||
}
|
||||
WRAP(s, 0x30);
|
||||
|
||||
Reference in New Issue
Block a user