- wo_pkey_parse: PKCS#8 PrivateKeyInfo (wrapping PKCS#1/SEC1), bare PKCS#1 RSAPrivateKey, and bare SEC1 ECPrivateKey -> RSA (n,d) or the EC P-256 32-byte scalar. Reuses the X.509 DER reader; spans point into the buffer - KAT: all three formats parse, and the extracted key signs a hash our verify accepts (RSA-PSS + ECDSA); garbage rejected. test_crypto 130, ASan/UBSan clean Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> (cherry picked from commit 819d67226a94c4cd5a765ec403e57466c64f1e65)
292 lines
17 KiB
C
292 lines
17 KiB
C
/* Private-key DER vectors: RSA (PKCS#8 + PKCS#1), EC P-256 (PKCS#8 + SEC1),
|
|
* plus the matching public keys for a sign->verify round-trip. */
|
|
static const unsigned char pk_rsa_pk8[] = {
|
|
0x30,0x82,0x04,0xbd,0x02,0x01,0x00,0x30,0x0d,0x06,0x09,0x2a,
|
|
0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x01,0x05,0x00,0x04,0x82,
|
|
0x04,0xa7,0x30,0x82,0x04,0xa3,0x02,0x01,0x00,0x02,0x82,0x01,
|
|
0x01,0x00,0xb8,0x41,0xd1,0x7c,0xa3,0x79,0x4e,0xd2,0x3c,0x83,
|
|
0x06,0x85,0x87,0xec,0xf4,0x2a,0xbd,0x48,0x54,0x82,0xb4,0x75,
|
|
0xa5,0x71,0x73,0x7f,0xaf,0x3b,0xd9,0x45,0x0b,0xf5,0x50,0x76,
|
|
0x7c,0x83,0xc9,0x07,0xcc,0xe6,0x19,0xdb,0x1b,0x83,0xf8,0xc8,
|
|
0xc2,0xcc,0x09,0xd7,0x99,0xb9,0x30,0x98,0x7e,0xbf,0xb8,0xec,
|
|
0x76,0x0a,0x6c,0x41,0x88,0x17,0x9f,0xed,0xac,0x39,0x06,0xfd,
|
|
0x5f,0xbd,0x97,0x41,0x47,0x4f,0x62,0xf5,0x74,0x6f,0xd2,0x5e,
|
|
0x54,0x7f,0xfe,0x17,0xb8,0x44,0x18,0x2c,0x56,0x07,0x63,0x35,
|
|
0x68,0x4e,0x12,0x9d,0x68,0xc9,0x76,0xce,0x4f,0x44,0x02,0xeb,
|
|
0xf1,0x41,0xc0,0xab,0x34,0xf4,0x48,0xc8,0x55,0xd8,0xa9,0xd4,
|
|
0x84,0xe2,0x64,0x4b,0xac,0x4e,0xf0,0x88,0x7b,0xab,0xf4,0xdc,
|
|
0xa1,0x11,0xe9,0xc2,0x86,0xff,0x40,0xd8,0x83,0xfe,0x86,0x04,
|
|
0x0d,0xe2,0x52,0x27,0xef,0x14,0xad,0xdc,0x90,0x4d,0x8a,0x8a,
|
|
0xcc,0xda,0x60,0x32,0x96,0x3e,0x60,0x84,0x10,0xcd,0x5d,0x91,
|
|
0x85,0x6c,0x75,0x74,0xdc,0xb1,0xf3,0xed,0x92,0x9d,0x1e,0xf2,
|
|
0xa7,0x65,0x72,0x00,0x7d,0x51,0x66,0x8f,0xc5,0x2b,0x26,0xf8,
|
|
0x9f,0xb6,0x42,0xba,0x5a,0x01,0x9e,0xdd,0xe9,0x61,0x24,0x60,
|
|
0xbf,0x13,0x09,0xbf,0xea,0x05,0x28,0xe3,0x7f,0x09,0x54,0x4f,
|
|
0x6d,0x9b,0x40,0xc3,0x7f,0x5c,0x90,0x03,0xa2,0xeb,0xa8,0x66,
|
|
0x36,0xac,0x2e,0x6d,0xac,0x32,0xc5,0xf5,0xc5,0xb5,0xf2,0xbd,
|
|
0x80,0x4c,0x82,0x93,0xa3,0x6d,0x3a,0x91,0xda,0x38,0x47,0xf8,
|
|
0xe6,0x5d,0xf4,0x48,0xfb,0xcb,0x02,0x03,0x01,0x00,0x01,0x02,
|
|
0x82,0x01,0x00,0x03,0x9a,0xb6,0x00,0x5c,0x2a,0x49,0x52,0x6f,
|
|
0x80,0x98,0xa6,0x10,0x0c,0xa0,0x92,0x1d,0x75,0xc6,0xc1,0x6f,
|
|
0xca,0x45,0x5c,0x3c,0xc8,0x28,0xa3,0x61,0x12,0xaa,0xb3,0x37,
|
|
0xc9,0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04,0x71,0x19,0xf7,0xb8,0x6a,0x61,0x38,0x1a,
|
|
0xdd,0x35,0x3d,0xa8,0x36,0x79,0x01,0x02,0x81,0x81,0x00,0xfe,
|
|
0x7b,0x24,0xea,0x19,0x33,0xb7,0x4b,0x75,0x29,0x4b,0xae,0x17,
|
|
0x7a,0x39,0xf1,0x11,0xec,0x5a,0xba,0x91,0x0f,0x81,0x66,0x6a,
|
|
0xb7,0xc4,0x2b,0x70,0x72,0x2a,0xe3,0x81,0x47,0x5e,0x4c,0xf0,
|
|
0x34,0x3d,0x28,0x7d,0x77,0x88,0x0d,0x6a,0x01,0x35,0x81,0xa8,
|
|
0x77,0x66,0xe0,0x25,0x1d,0xec,0xab,0x48,0x46,0xb8,0x04,0x98,
|
|
0x3d,0x3a,0xbc,0x0d,0xee,0x55,0xe0,0xd0,0x1b,0x72,0x46,0xbd,
|
|
0xe5,0x02,0x8c,0xa5,0xb7,0xcd,0x2f,0xe4,0xa1,0xc4,0xa9,0x94,
|
|
0x8b,0x07,0x32,0x31,0xa2,0x8e,0x45,0x16,0x77,0xa0,0xb4,0xc5,
|
|
0x56,0x49,0xce,0x6a,0x9b,0x88,0x41,0x22,0xa7,0xa2,0xe2,0xa8,
|
|
0x2e,0xfb,0x1f,0x26,0x24,0x7d,0x92,0x23,0x8d,0x8d,0xb6,0x05,
|
|
0x52,0x44,0x8f,0xba,0xe2,0x19,0x41,0x02,0x81,0x81,0x00,0xb9,
|
|
0x5b,0x5e,0x99,0x08,0xf2,0x8c,0x15,0x11,0x8a,0x6f,0x42,0x35,
|
|
0xd4,0x81,0x54,0x84,0xaa,0x92,0x06,0x6e,0xe7,0x67,0x44,0xb7,
|
|
0xfd,0xe4,0x60,0x68,0xd4,0x30,0x64,0x6f,0xc9,0x58,0xdc,0xe3,
|
|
0x1d,0xa3,0x9a,0x0a,0x39,0x11,0x62,0x24,0x84,0xdf,0xa6,0x23,
|
|
0x7c,0x18,0x63,0xaa,0xaa,0x88,0xee,0x5f,0x53,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|
0x5d,0x89,0xda,0x7e,0x0f,0xc3,0x5a,0x1b,0xb5,0xab,0x70,0x29,
|
|
0x4f,0x4d,0x29,0x40,0xe8,0xd9,0xf7,0x55,0x7e,0x05,0x91,0xf0,
|
|
0x21,0x4c,0x4e,0x27,0x16,0x28,0x24,0xf2,0x23,0x38,0x77,0xa4,
|
|
0x3a,0x49,0x29,0xd1,0x15,0x22,0xd4,0x7c,0xc1,0x06,0x25,0x34,
|
|
0x44,0xd1,0x61,0xf8,0x4d,
|
|
};
|
|
|
|
static const unsigned char pk_rsa_pk1[] = {
|
|
0x30,0x82,0x04,0xa3,0x02,0x01,0x00,0x02,0x82,0x01,0x01,0x00,
|
|
0xb8,0x41,0xd1,0x7c,0xa3,0x79,0x4e,0xd2,0x3c,0x83,0x06,0x85,
|
|
0x87,0xec,0xf4,0x2a,0xbd,0x48,0x54,0x82,0xb4,0x75,0xa5,0x71,
|
|
0x73,0x7f,0xaf,0x3b,0xd9,0x45,0x0b,0xf5,0x50,0x76,0x7c,0x83,
|
|
0xc9,0x07,0xcc,0xe6,0x19,0xdb,0x1b,0x83,0xf8,0xc8,0xc2,0xcc,
|
|
0x09,0xd7,0x99,0xb9,0x30,0x98,0x7e,0xbf,0xb8,0xec,0x76,0x0a,
|
|
0x6c,0x41,0x88,0x17,0x9f,0xed,0xac,0x39,0x06,0xfd,0x5f,0xbd,
|
|
0x97,0x41,0x47,0x4f,0x62,0xf5,0x74,0x6f,0xd2,0x5e,0x54,0x7f,
|
|
0xfe,0x17,0xb8,0x44,0x18,0x2c,0x56,0x07,0x63,0x35,0x68,0x4e,
|
|
0x12,0x9d,0x68,0xc9,0x76,0xce,0x4f,0x44,0x02,0xeb,0xf1,0x41,
|
|
0xc0,0xab,0x34,0xf4,0x48,0xc8,0x55,0xd8,0xa9,0xd4,0x84,0xe2,
|
|
0x64,0x4b,0xac,0x4e,0xf0,0x88,0x7b,0xab,0xf4,0xdc,0xa1,0x11,
|
|
0xe9,0xc2,0x86,0xff,0x40,0xd8,0x83,0xfe,0x86,0x04,0x0d,0xe2,
|
|
0x52,0x27,0xef,0x14,0xad,0xdc,0x90,0x4d,0x8a,0x8a,0xcc,0xda,
|
|
0x60,0x32,0x96,0x3e,0x60,0x84,0x10,0xcd,0x5d,0x91,0x85,0x6c,
|
|
0x75,0x74,0xdc,0xb1,0xf3,0xed,0x92,0x9d,0x1e,0xf2,0xa7,0x65,
|
|
0x72,0x00,0x7d,0x51,0x66,0x8f,0xc5,0x2b,0x26,0xf8,0x9f,0xb6,
|
|
0x42,0xba,0x5a,0x01,0x9e,0xdd,0xe9,0x61,0x24,0x60,0xbf,0x13,
|
|
0x09,0xbf,0xea,0x05,0x28,0xe3,0x7f,0x09,0x54,0x4f,0x6d,0x9b,
|
|
0x40,0xc3,0x7f,0x5c,0x90,0x03,0xa2,0xeb,0xa8,0x66,0x36,0xac,
|
|
0x2e,0x6d,0xac,0x32,0xc5,0xf5,0xc5,0xb5,0xf2,0xbd,0x80,0x4c,
|
|
0x82,0x93,0xa3,0x6d,0x3a,0x91,0xda,0x38,0x47,0xf8,0xe6,0x5d,
|
|
0xf4,0x48,0xfb,0xcb,0x02,0x03,0x01,0x00,0x01,0x02,0x82,0x01,
|
|
0x00,0x03,0x9a,0xb6,0x00,0x5c,0x2a,0x49,0x52,0x6f,0x80,0x98,
|
|
0xa6,0x10,0x0c,0xa0,0x92,0x1d,0x75,0xc6,0xc1,0x6f,0xca,0x45,
|
|
0x5c,0x3c,0xc8,0x28,0xa3,0x61,0x12,0xaa,0xb3,0x37,0xc9,0xb9,
|
|
0x91,0xd2,0x62,0xe6,0xad,0x31,0xa0,0x49,0x9f,0x81,0x44,0x5c,
|
|
0x1b,0x25,0xae,0x24,0x01,0xad,0x63,0xae,0x47,0x0d,0xd5,0x02,
|
|
0x52,0x1d,0xe0,0x02,0x4b,0x84,0x03,0x60,0x35,0x15,0x5f,0xeb,
|
|
0x79,0x87,0xf5,0xec,0xf1,0x2e,0x9c,0x62,0x94,0xb5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0x06,0x25,0x34,0x44,0xd1,
|
|
0x61,0xf8,0x4d,
|
|
};
|
|
|
|
static const unsigned char pk_rsa_n[] = {
|
|
0xb8,0x41,0xd1,0x7c,0xa3,0x79,0x4e,0xd2,0x3c,0x83,0x06,0x85,
|
|
0x87,0xec,0xf4,0x2a,0xbd,0x48,0x54,0x82,0xb4,0x75,0xa5,0x71,
|
|
0x73,0x7f,0xaf,0x3b,0xd9,0x45,0x0b,0xf5,0x50,0x76,0x7c,0x83,
|
|
0xc9,0x07,0xcc,0xe6,0x19,0xdb,0x1b,0x83,0xf8,0xc8,0xc2,0xcc,
|
|
0x09,0xd7,0x99,0xb9,0x30,0x98,0x7e,0xbf,0xb8,0xec,0x76,0x0a,
|
|
0x6c,0x41,0x88,0x17,0x9f,0xed,0xac,0x39,0x06,0xfd,0x5f,0xbd,
|
|
0x97,0x41,0x47,0x4f,0x62,0xf5,0x74,0x6f,0xd2,0x5e,0x54,0x7f,
|
|
0xfe,0x17,0xb8,0x44,0x18,0x2c,0x56,0x07,0x63,0x35,0x68,0x4e,
|
|
0x12,0x9d,0x68,0xc9,0x76,0xce,0x4f,0x44,0x02,0xeb,0xf1,0x41,
|
|
0xc0,0xab,0x34,0xf4,0x48,0xc8,0x55,0xd8,0xa9,0xd4,0x84,0xe2,
|
|
0x64,0x4b,0xac,0x4e,0xf0,0x88,0x7b,0xab,0xf4,0xdc,0xa1,0x11,
|
|
0xe9,0xc2,0x86,0xff,0x40,0xd8,0x83,0xfe,0x86,0x04,0x0d,0xe2,
|
|
0x52,0x27,0xef,0x14,0xad,0xdc,0x90,0x4d,0x8a,0x8a,0xcc,0xda,
|
|
0x60,0x32,0x96,0x3e,0x60,0x84,0x10,0xcd,0x5d,0x91,0x85,0x6c,
|
|
0x75,0x74,0xdc,0xb1,0xf3,0xed,0x92,0x9d,0x1e,0xf2,0xa7,0x65,
|
|
0x72,0x00,0x7d,0x51,0x66,0x8f,0xc5,0x2b,0x26,0xf8,0x9f,0xb6,
|
|
0x42,0xba,0x5a,0x01,0x9e,0xdd,0xe9,0x61,0x24,0x60,0xbf,0x13,
|
|
0x09,0xbf,0xea,0x05,0x28,0xe3,0x7f,0x09,0x54,0x4f,0x6d,0x9b,
|
|
0x40,0xc3,0x7f,0x5c,0x90,0x03,0xa2,0xeb,0xa8,0x66,0x36,0xac,
|
|
0x2e,0x6d,0xac,0x32,0xc5,0xf5,0xc5,0xb5,0xf2,0xbd,0x80,0x4c,
|
|
0x82,0x93,0xa3,0x6d,0x3a,0x91,0xda,0x38,0x47,0xf8,0xe6,0x5d,
|
|
0xf4,0x48,0xfb,0xcb,
|
|
};
|
|
|
|
static const unsigned char pk_rsa_e[] = {
|
|
0x01,0x00,0x01,
|
|
};
|
|
|
|
static const unsigned char pk_ec_pk8[] = {
|
|
0x30,0x81,0x87,0x02,0x01,0x00,0x30,0x13,0x06,0x07,0x2a,0x86,
|
|
0x48,0xce,0x3d,0x02,0x01,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,
|
|
0x03,0x01,0x07,0x04,0x6d,0x30,0x6b,0x02,0x01,0x01,0x04,0x20,
|
|
0x6d,0x8d,0x45,0xbc,0xe7,0x8c,0x09,0x8d,0xcb,0x3c,0xf5,0x92,
|
|
0x87,0xfc,0xae,0x28,0x1d,0x9c,0x5b,0x4b,0x9a,0xd1,0xd8,0x6b,
|
|
0xc4,0x17,0xae,0xd3,0x1e,0xfb,0xf3,0xb8,0xa1,0x44,0x03,0x42,
|
|
0x00,0x04,0xf8,0xaa,0xbc,0xff,0x4a,0xb5,0x9a,0x51,0x14,0x13,
|
|
0xa9,0xc6,0x93,0x24,0x32,0x1f,0xd1,0x0c,0xe6,0xcd,0xe8,0xd0,
|
|
0x91,0x2f,0xa8,0xab,0x8b,0xd4,0x7e,0xa6,0x43,0xf6,0x76,0x37,
|
|
0x43,0x66,0xda,0xc9,0x60,0x6d,0x45,0x7d,0x90,0x43,0x12,0x71,
|
|
0xc9,0x99,0xce,0x5a,0xf1,0x7e,0x7c,0xbc,0x77,0xaf,0x0a,0xdc,
|
|
0x37,0x60,0x32,0x97,0xb1,0xc2,
|
|
};
|
|
|
|
static const unsigned char pk_ec_sec1[] = {
|
|
0x30,0x77,0x02,0x01,0x01,0x04,0x20,0x6d,0x8d,0x45,0xbc,0xe7,
|
|
0x8c,0x09,0x8d,0xcb,0x3c,0xf5,0x92,0x87,0xfc,0xae,0x28,0x1d,
|
|
0x9c,0x5b,0x4b,0x9a,0xd1,0xd8,0x6b,0xc4,0x17,0xae,0xd3,0x1e,
|
|
0xfb,0xf3,0xb8,0xa0,0x0a,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,
|
|
0x03,0x01,0x07,0xa1,0x44,0x03,0x42,0x00,0x04,0xf8,0xaa,0xbc,
|
|
0xff,0x4a,0xb5,0x9a,0x51,0x14,0x13,0xa9,0xc6,0x93,0x24,0x32,
|
|
0x1f,0xd1,0x0c,0xe6,0xcd,0xe8,0xd0,0x91,0x2f,0xa8,0xab,0x8b,
|
|
0xd4,0x7e,0xa6,0x43,0xf6,0x76,0x37,0x43,0x66,0xda,0xc9,0x60,
|
|
0x6d,0x45,0x7d,0x90,0x43,0x12,0x71,0xc9,0x99,0xce,0x5a,0xf1,
|
|
0x7e,0x7c,0xbc,0x77,0xaf,0x0a,0xdc,0x37,0x60,0x32,0x97,0xb1,
|
|
0xc2,
|
|
};
|
|
|
|
static const unsigned char pk_ec_qx[] = {
|
|
0xf8,0xaa,0xbc,0xff,0x4a,0xb5,0x9a,0x51,0x14,0x13,0xa9,0xc6,
|
|
0x93,0x24,0x32,0x1f,0xd1,0x0c,0xe6,0xcd,0xe8,0xd0,0x91,0x2f,
|
|
0xa8,0xab,0x8b,0xd4,0x7e,0xa6,0x43,0xf6,
|
|
};
|
|
|
|
static const unsigned char pk_ec_qy[] = {
|
|
0x76,0x37,0x43,0x66,0xda,0xc9,0x60,0x6d,0x45,0x7d,0x90,0x43,
|
|
0x12,0x71,0xc9,0x99,0xce,0x5a,0xf1,0x7e,0x7c,0xbc,0x77,0xaf,
|
|
0x0a,0xdc,0x37,0x60,0x32,0x97,0xb1,0xc2,
|
|
};
|
|
|
|
static const unsigned char pk_salt[] = {
|
|
0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,
|
|
0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,
|
|
0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,
|
|
};
|
|
|
|
static const unsigned char pk_hash[] = {
|
|
0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,
|
|
0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,
|
|
0x7c,0x7d,0x7e,0x7f,0x80,0x81,0x82,0x83,
|
|
};
|
|
|