- crypto.c: x509_find_ext (generic extension walker) + wo_x509_basic_constraints (cA / pathLenConstraint, absent => not a CA) + wo_x509_eku_serverauth_ok (EKU absent, serverAuth, or anyEKU => usable; else not) - wo_tls_verify_chain enforces decision 6: the leaf must be server-usable (EKU), every server-sent issuer and the signing anchor must be a CA (basicConstraints CA:TRUE) with a pathLenConstraint covering the intermediates below it — stops a leaf masquerading as a CA - gen_x509.py extended (folds in the wildcard leaf, adds EKU clientAuth-only, EKU serverAuth, a non-CA intermediate + a leaf issued under it); vectors regenerated - KATs: extractors (test_crypto 104) + chain enforcement (test_tls 103) — EKU serverAuth accepted, clientAuth-only rejected, leaf-under-non-CA rejected though every signature verifies; existing chains still pass. ASan/UBSan clean Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> (cherry picked from commit 3811418014c2c8d9bc3a9464256f52104261b1b9)
491 lines
29 KiB
C
491 lines
29 KiB
C
/* Generated by runtime/test/gen_x509.py — python cryptography 41.0.7.
|
|
* RSA + EC chains, a wildcard-SAN leaf, and decision-6 negatives
|
|
* (EKU clientAuth-only, EKU serverAuth, a non-CA intermediate + a
|
|
* leaf issued under it). Vectors for the wo_x509 KATs. */
|
|
static const uint8_t kat_rsa_ca[] = {
|
|
0x30,0x82,0x02,0xc9,0x30,0x82,0x01,0xb1,0xa0,0x03,0x02,0x01,
|
|
0x02,0x02,0x14,0x31,0xf8,0xc1,0x48,0x5b,0x9a,0xe1,0xf5,0x81,
|
|
0xf9,0xbf,0xb6,0x3b,0x43,0xe4,0x5b,0x04,0x16,0x5c,0x9b,0x30,
|
|
0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,
|
|
0x05,0x00,0x30,0x14,0x31,0x12,0x30,0x10,0x06,0x03,0x55,0x04,
|
|
0x03,0x0c,0x09,0x77,0x6f,0x2d,0x72,0x73,0x61,0x2d,0x63,0x61,
|
|
0x30,0x1e,0x17,0x0d,0x32,0x30,0x30,0x31,0x30,0x31,0x30,0x30,
|
|
0x30,0x30,0x30,0x30,0x5a,0x17,0x0d,0x33,0x30,0x30,0x31,0x30,
|
|
0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,0x14,0x31,0x12,
|
|
0x30,0x10,0x06,0x03,0x55,0x04,0x03,0x0c,0x09,0x77,0x6f,0x2d,
|
|
0x72,0x73,0x61,0x2d,0x63,0x61,0x30,0x82,0x01,0x22,0x30,0x0d,
|
|
0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x01,0x05,
|
|
0x00,0x03,0x82,0x01,0x0f,0x00,0x30,0x82,0x01,0x0a,0x02,0x82,
|
|
0x01,0x01,0x00,0xb7,0x29,0xff,0x2b,0x89,0xbf,0x23,0x8b,0x35,
|
|
0x90,0xea,0x4c,0x60,0xe6,0xdf,0xfc,0xad,0x7f,0x44,0x23,0x5b,
|
|
0xdf,0xd3,0x47,0x32,0x1d,0xdf,0x2a,0x7a,0xa7,0xba,0x2c,0xa9,
|
|
0xbf,0x57,0x38,0xeb,0xcd,0x30,0x4a,0x11,0x07,0x53,0x7e,0x59,
|
|
0x7e,0x49,0x55,0xa0,0xfa,0x85,0x46,0x22,0x06,0x3c,0xe5,0x5d,
|
|
0x38,0x3a,0x09,0x16,0x13,0xf4,0x40,0x01,0xf0,0x88,0xaf,0xc7,
|
|
0x31,0xe1,0x43,0xe4,0x4a,0x27,0x96,0x34,0x97,0x70,0x4d,0xf6,
|
|
0x10,0x16,0xaa,0x93,0x8a,0xcc,0xd7,0x28,0x66,0x0a,0x93,0x24,
|
|
0xca,0x76,0x7d,0x34,0xb4,0xfc,0xbf,0x75,0xcd,0x01,0xcc,0xdf,
|
|
0x01,0x8a,0x18,0x4f,0xf8,0x03,0x60,0x88,0x1c,0x20,0x58,0xed,
|
|
0x2f,0xa9,0x49,0x76,0xe7,0x03,0x3a,0xdc,0x3f,0x96,0x9b,0x47,
|
|
0x9f,0xe1,0xfe,0xcf,0x98,0x06,0xf5,0x93,0x2b,0x06,0x72,0x65,
|
|
0x95,0xf4,0x55,0xe9,0x18,0x3e,0x61,0xc6,0x69,0x71,0x12,0x22,
|
|
0xdc,0xdd,0x85,0xf6,0x3c,0x37,0x43,0x4b,0xde,0x1f,0x1e,0x98,
|
|
0xe7,0x87,0x22,0xcf,0x93,0x66,0x8d,0x28,0x09,0x65,0xf1,0x41,
|
|
0xe6,0xc9,0x77,0x16,0x88,0x9c,0x58,0x27,0x90,0x7b,0x1a,0x42,
|
|
0x30,0x93,0xd0,0x6d,0x57,0xd7,0xe2,0xf0,0xbb,0x14,0xc9,0xf0,
|
|
0x7b,0x3e,0x1d,0xa3,0xf2,0x1a,0xb2,0x66,0xd7,0x5a,0x68,0x46,
|
|
0x00,0x9c,0xe6,0xa1,0x5a,0xb3,0x66,0x1f,0x60,0xe6,0x47,0x3b,
|
|
0xc3,0x1f,0x23,0xa3,0xea,0x12,0x0e,0x77,0xfe,0xc3,0xfb,0x3f,
|
|
0x86,0x41,0xf1,0x52,0xf9,0x22,0x7c,0x4c,0xb5,0x71,0xe5,0xf9,
|
|
0x87,0x83,0x4c,0xca,0x3e,0x47,0x1d,0x02,0x03,0x01,0x00,0x01,
|
|
0xa3,0x13,0x30,0x11,0x30,0x0f,0x06,0x03,0x55,0x1d,0x13,0x01,
|
|
0x01,0xff,0x04,0x05,0x30,0x03,0x01,0x01,0xff,0x30,0x0d,0x06,
|
|
0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,0x05,0x00,
|
|
0x03,0x82,0x01,0x01,0x00,0x5c,0x1e,0x34,0x30,0x5b,0x66,0x83,
|
|
0xaf,0x90,0x86,0xae,0x58,0x54,0xed,0xb7,0xd1,0x9b,0x53,0x38,
|
|
0x53,0x61,0x95,0x23,0x6c,0xd9,0x09,0xb0,0xc2,0x59,0x11,0x02,
|
|
0x65,0xcd,0x89,0x01,0x22,0x97,0x74,0xfc,0x67,0xbe,0x4a,0x41,
|
|
0xa0,0xd3,0x94,0xe8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e2,0xe5,0xb8,
|
|
};
|
|
|
|
static const uint8_t kat_rsa_leaf[] = {
|
|
0x30,0x82,0x02,0xdc,0x30,0x82,0x01,0xc4,0xa0,0x03,0x02,0x01,
|
|
0x02,0x02,0x14,0x55,0x77,0x0f,0x2e,0x3f,0x5c,0x1a,0x95,0x93,
|
|
0x27,0xd0,0x37,0x2b,0x6a,0x28,0xbe,0x99,0x6b,0xce,0x8f,0x30,
|
|
0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,
|
|
0x05,0x00,0x30,0x14,0x31,0x12,0x30,0x10,0x06,0x03,0x55,0x04,
|
|
0x03,0x0c,0x09,0x77,0x6f,0x2d,0x72,0x73,0x61,0x2d,0x63,0x61,
|
|
0x30,0x1e,0x17,0x0d,0x32,0x30,0x30,0x31,0x30,0x31,0x30,0x30,
|
|
0x30,0x30,0x30,0x30,0x5a,0x17,0x0d,0x33,0x30,0x30,0x31,0x30,
|
|
0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,0x1b,0x31,0x19,
|
|
0x30,0x17,0x06,0x03,0x55,0x04,0x03,0x0c,0x10,0x6c,0x65,0x61,
|
|
0x66,0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,0x65,0x2e,0x63,0x6f,
|
|
0x6d,0x30,0x82,0x01,0x22,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,
|
|
0x86,0xf7,0x0d,0x01,0x01,0x01,0x05,0x00,0x03,0x82,0x01,0x0f,
|
|
0x00,0x30,0x82,0x01,0x0a,0x02,0x82,0x01,0x01,0x00,0x8c,0x99,
|
|
0xbc,0xab,0x40,0xf5,0xdb,0xd8,0x44,0x9f,0xa8,0xec,0x3d,0x28,
|
|
0xf1,0x37,0x64,0xd9,0x19,0x6c,0xe0,0x71,0xa9,0xda,0x02,0xb7,
|
|
0x99,0xa3,0x23,0xa1,0x78,0x59,0x02,0x72,0x30,0x91,0x27,0x0d,
|
|
0x60,0x32,0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0x24,0xbb,0x37,0xd0,0xf6,
|
|
0xff,0x21,0xc8,0xdc,0xa8,0x85,0x9f,0x95,0xf4,0xa7,0x72,0x18,
|
|
0x74,0xb8,0x73,0x31,0xb2,0x25,0xec,0xb5,0xec,0x19,0x08,0x9e,
|
|
0x6d,0xaa,0x86,0x17,0xb7,0xdf,0x2c,0xb3,0x0b,0xab,0x25,0x57,
|
|
0x89,0xf3,0xb1,0xf1,0x75,0xa0,0x99,0x03,0xe1,0xa2,0xb6,0x93,
|
|
0xaf,0x4d,0xc3,0x76,0x2e,0x59,0x12,0x50,0xd1,0xbb,0xae,0x1b,
|
|
0x37,0x6a,0x35,0xab,0x40,0x6e,0x45,0xb5,0x1b,0xc8,0xb7,0x9a,
|
|
0x44,0x9f,0x4a,0x21,0xf6,0x09,0x4b,0x08,0xac,0xd7,0x38,0x96,
|
|
0xe7,0xb5,0xf5,0x52,0xce,0xde,0xed,0xcd,0xcb,0xae,0x2c,0x76,
|
|
0xef,0x5e,0x5a,0x52,0x5c,0xbe,0x22,0x43,0x50,0xf7,0xa7,0xcf,
|
|
0xd4,0xd6,0xfb,0x35,
|
|
};
|
|
|
|
static const uint8_t kat_ec_ca[] = {
|
|
0x30,0x82,0x01,0x39,0x30,0x81,0xe1,0xa0,0x03,0x02,0x01,0x02,
|
|
0x02,0x14,0x6d,0xeb,0x5e,0x17,0xc5,0xcd,0x71,0x0e,0xc5,0x53,
|
|
0x39,0xe9,0xde,0x2e,0xe1,0xc6,0x3c,0x1b,0x31,0xc1,0x30,0x0a,
|
|
0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x04,0x03,0x02,0x30,0x13,
|
|
0x31,0x11,0x30,0x0f,0x06,0x03,0x55,0x04,0x03,0x0c,0x08,0x77,
|
|
0x6f,0x2d,0x65,0x63,0x2d,0x63,0x61,0x30,0x1e,0x17,0x0d,0x32,
|
|
0x30,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,
|
|
0x17,0x0d,0x33,0x30,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,
|
|
0x30,0x30,0x5a,0x30,0x13,0x31,0x11,0x30,0x0f,0x06,0x03,0x55,
|
|
0x04,0x03,0x0c,0x08,0x77,0x6f,0x2d,0x65,0x63,0x2d,0x63,0x61,
|
|
0x30,0x59,0x30,0x13,0x06,0x07,0x2a,0x86,0x48,0xce,0x3d,0x02,
|
|
0x01,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x03,0x01,0x07,0x03,
|
|
0x42,0x00,0x04,0x54,0xa0,0xe9,0x81,0xcf,0x9b,0x05,0xed,0x76,
|
|
0x2d,0x77,0xc7,0x84,0x0f,0xb6,0xfa,0x2e,0x65,0x87,0x65,0xb3,
|
|
0x25,0x0a,0xdb,0x22,0x77,0xe5,0x40,0xcc,0xf6,0x71,0x23,0x63,
|
|
0x1c,0xcd,0x69,0x40,0x26,0x70,0xec,0xfd,0x73,0xc6,0x9d,0xba,
|
|
0xfa,0xb1,0x39,0x9f,0x65,0x8b,0x0b,0xda,0xad,0x27,0xd5,0x0a,
|
|
0x0d,0x2e,0x14,0x76,0x7c,0x5a,0x57,0xa3,0x13,0x30,0x11,0x30,
|
|
0x0f,0x06,0x03,0x55,0x1d,0x13,0x01,0x01,0xff,0x04,0x05,0x30,
|
|
0x03,0x01,0x01,0xff,0x30,0x0a,0x06,0x08,0x2a,0x86,0x48,0xce,
|
|
0x3d,0x04,0x03,0x02,0x03,0x47,0x00,0x30,0x44,0x02,0x20,0x7a,
|
|
0xb6,0x32,0xc6,0x2f,0xcd,0x45,0x2d,0x53,0xa9,0xf3,0x3d,0x7a,
|
|
0x43,0xde,0x0e,0xcd,0x65,0xf2,0xf3,0x4a,0x31,0x51,0xdb,0xc4,
|
|
0x40,0x5d,0x15,0x03,0x2a,0xd5,0x6c,0x02,0x20,0x41,0x49,0x24,
|
|
0xa2,0x09,0xa1,0x70,0xef,0x8d,0x62,0xb4,0xb9,0x32,0xd6,0x03,
|
|
0x27,0x74,0xdb,0x9c,0x24,0x12,0x0f,0x97,0x92,0x38,0x2c,0xbc,
|
|
0x18,0xd6,0x09,0xf8,0x55,
|
|
};
|
|
|
|
static const uint8_t kat_ec_leaf[] = {
|
|
0x30,0x82,0x01,0x4f,0x30,0x81,0xf5,0xa0,0x03,0x02,0x01,0x02,
|
|
0x02,0x14,0x59,0x4f,0x09,0x91,0xb7,0x80,0xac,0x50,0x56,0xa9,
|
|
0x4d,0x27,0x88,0x8e,0x6a,0xe2,0x08,0x33,0x46,0xd7,0x30,0x0a,
|
|
0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x04,0x03,0x02,0x30,0x13,
|
|
0x31,0x11,0x30,0x0f,0x06,0x03,0x55,0x04,0x03,0x0c,0x08,0x77,
|
|
0x6f,0x2d,0x65,0x63,0x2d,0x63,0x61,0x30,0x1e,0x17,0x0d,0x32,
|
|
0x30,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,
|
|
0x17,0x0d,0x33,0x30,0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,
|
|
0x30,0x30,0x5a,0x30,0x1b,0x31,0x19,0x30,0x17,0x06,0x03,0x55,
|
|
0x04,0x03,0x0c,0x10,0x6c,0x65,0x61,0x66,0x2e,0x65,0x78,0x61,
|
|
0x6d,0x70,0x6c,0x65,0x2e,0x6f,0x72,0x67,0x30,0x59,0x30,0x13,
|
|
0x06,0x07,0x2a,0x86,0x48,0xce,0x3d,0x02,0x01,0x06,0x08,0x2a,
|
|
0x86,0x48,0xce,0x3d,0x03,0x01,0x07,0x03,0x42,0x00,0x04,0xbf,
|
|
0x93,0x92,0xeb,0x65,0xfe,0xda,0x7d,0x92,0xed,0xe9,0x4f,0x93,
|
|
0x24,0xe1,0x38,0xfe,0x87,0x4b,0x0c,0x8c,0xf0,0x44,0xe4,0x95,
|
|
0x22,0x73,0x9a,0xdd,0x81,0x80,0xe4,0x7b,0x30,0x1a,0xae,0xa1,
|
|
0xfc,0xda,0xd3,0x40,0xc2,0x18,0xb0,0x8f,0x0e,0x77,0xf6,0xfe,
|
|
0x2e,0xb9,0x5c,0xc0,0x96,0xc1,0x90,0xda,0x14,0x2c,0x45,0x5f,
|
|
0x37,0x22,0xbd,0xa3,0x1f,0x30,0x1d,0x30,0x1b,0x06,0x03,0x55,
|
|
0x1d,0x11,0x04,0x14,0x30,0x12,0x82,0x10,0x6c,0x65,0x61,0x66,
|
|
0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,0x65,0x2e,0x6f,0x72,0x67,
|
|
0x30,0x0a,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x04,0x03,0x02,
|
|
0x03,0x49,0x00,0x30,0x46,0x02,0x21,0x00,0xc0,0xd3,0x31,0x65,
|
|
0xef,0x46,0x0f,0x4e,0x58,0x29,0xd9,0x8f,0x9f,0x7c,0x30,0x22,
|
|
0x82,0x25,0x43,0x74,0xbd,0xe1,0xb0,0x42,0x88,0xf9,0xd5,0x91,
|
|
0x25,0x95,0x1b,0x44,0x02,0x21,0x00,0xd0,0x49,0x08,0x53,0x2a,
|
|
0x64,0x7b,0xac,0x5b,0xe0,0xad,0x4b,0xe5,0x76,0xc3,0x18,0x48,
|
|
0x5d,0x67,0x5e,0xe8,0x72,0x94,0x0f,0xf2,0x72,0x40,0x3f,0xa7,
|
|
0x40,0x52,0x28,
|
|
};
|
|
|
|
/* wildcard-SAN leaf (*.example.com) */
|
|
static const uint8_t kat_wild_leaf[] = {
|
|
0x30,0x82,0x01,0x3b,0x30,0x81,0xe2,0xa0,0x03,0x02,0x01,0x02,
|
|
0x02,0x14,0x58,0x16,0x66,0x46,0x0e,0xb4,0xd8,0xad,0x91,0xe0,
|
|
0x8a,0x7a,0x9c,0x02,0x22,0x49,0x79,0xd6,0x0a,0x97,0x30,0x0a,
|
|
0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x04,0x03,0x02,0x30,0x0f,
|
|
0x31,0x0d,0x30,0x0b,0x06,0x03,0x55,0x04,0x03,0x0c,0x04,0x77,
|
|
0x69,0x6c,0x64,0x30,0x1e,0x17,0x0d,0x32,0x30,0x30,0x31,0x30,
|
|
0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x17,0x0d,0x33,0x30,
|
|
0x30,0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,
|
|
0x0f,0x31,0x0d,0x30,0x0b,0x06,0x03,0x55,0x04,0x03,0x0c,0x04,
|
|
0x77,0x69,0x6c,0x64,0x30,0x59,0x30,0x13,0x06,0x07,0x2a,0x86,
|
|
0x48,0xce,0x3d,0x02,0x01,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,
|
|
0x03,0x01,0x07,0x03,0x42,0x00,0x04,0x4f,0xe9,0xf4,0xe6,0x8f,
|
|
0x1c,0x1a,0x31,0xb9,0xc9,0x02,0x5f,0x86,0x60,0x34,0x44,0x4a,
|
|
0x4f,0x20,0x00,0xac,0x1d,0xfd,0x4b,0x77,0x08,0x38,0xb0,0xe6,
|
|
0xd5,0x17,0xf7,0xd3,0x8a,0x8e,0x2d,0xd3,0xf1,0xa9,0xd9,0x16,
|
|
0x9b,0x6b,0x4b,0x77,0xdc,0xc1,0xd1,0x3f,0x4e,0x21,0x8c,0x2b,
|
|
0x23,0x3b,0x0c,0x11,0x62,0xb2,0xd6,0x5a,0x41,0xaa,0xbd,0xa3,
|
|
0x1c,0x30,0x1a,0x30,0x18,0x06,0x03,0x55,0x1d,0x11,0x04,0x11,
|
|
0x30,0x0f,0x82,0x0d,0x2a,0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,
|
|
0x65,0x2e,0x63,0x6f,0x6d,0x30,0x0a,0x06,0x08,0x2a,0x86,0x48,
|
|
0xce,0x3d,0x04,0x03,0x02,0x03,0x48,0x00,0x30,0x45,0x02,0x21,
|
|
0x00,0xfc,0x16,0x8c,0xc4,0x4e,0x11,0x2b,0x04,0xe5,0x48,0x9e,
|
|
0x55,0x86,0x02,0x3d,0x9f,0x44,0x71,0xf2,0x05,0x17,0x03,0x78,
|
|
0x59,0x11,0x21,0x5a,0xf2,0xa4,0x33,0x77,0x03,0x02,0x20,0x71,
|
|
0x26,0x9e,0x5b,0xc1,0x0c,0xaf,0x8c,0x9a,0x73,0x7a,0xa0,0x95,
|
|
0xab,0x3a,0x5b,0x30,0x3a,0x72,0x10,0x60,0x42,0x46,0x45,0x96,
|
|
0xad,0x8b,0xce,0xfd,0xf1,0x7d,0x5f,
|
|
};
|
|
|
|
/* EKU clientAuth only -> reject as server */
|
|
static const uint8_t kat_leaf_eku_client[] = {
|
|
0x30,0x82,0x02,0xf1,0x30,0x82,0x01,0xd9,0xa0,0x03,0x02,0x01,
|
|
0x02,0x02,0x14,0x47,0xc7,0xab,0xfa,0x4c,0xe6,0xcf,0xc3,0x90,
|
|
0xb9,0xef,0x21,0x94,0x33,0x7b,0x6b,0x26,0x2b,0x40,0x3e,0x30,
|
|
0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,
|
|
0x05,0x00,0x30,0x14,0x31,0x12,0x30,0x10,0x06,0x03,0x55,0x04,
|
|
0x03,0x0c,0x09,0x77,0x6f,0x2d,0x72,0x73,0x61,0x2d,0x63,0x61,
|
|
0x30,0x1e,0x17,0x0d,0x32,0x30,0x30,0x31,0x30,0x31,0x30,0x30,
|
|
0x30,0x30,0x30,0x30,0x5a,0x17,0x0d,0x33,0x30,0x30,0x31,0x30,
|
|
0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,0x1b,0x31,0x19,
|
|
0x30,0x17,0x06,0x03,0x55,0x04,0x03,0x0c,0x10,0x6c,0x65,0x61,
|
|
0x66,0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,0x65,0x2e,0x63,0x6f,
|
|
0x6d,0x30,0x82,0x01,0x22,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,
|
|
0x86,0xf7,0x0d,0x01,0x01,0x01,0x05,0x00,0x03,0x82,0x01,0x0f,
|
|
0x00,0x30,0x82,0x01,0x0a,0x02,0x82,0x01,0x01,0x00,0xa8,0x81,
|
|
0xf1,0x0e,0xdf,0x5e,0x52,0xc5,0x50,0x9d,0x35,0xeb,0xdd,0x6e,
|
|
0x1b,0xae,0xc1,0x07,0x79,0x4c,0x4e,0xb5,0xf8,0x88,0x7c,0xbd,
|
|
0x16,0x5d,0x41,0x23,0x58,0x98,0x1b,0xa8,0xde,0x35,0x4e,0xbf,
|
|
0xe0,0x65,0x6b,0x4d,0x29,0xa4,0xb5,0xbc,0x82,0xb6,0x79,0x7b,
|
|
0xc8,0x36,0x1c,0x4d,0x7b,0xcd,0x40,0x94,0x52,0x32,0xba,0x15,
|
|
0x1d,0x75,0xcb,0x12,0x70,0xa2,0x8c,0x52,0xd2,0xf3,0xa6,0xed,
|
|
0x51,0xc0,0x22,0x19,0xc5,0x17,0x90,0xe1,0x78,0x83,0x16,0x96,
|
|
0x42,0xb8,0xc6,0x51,0xca,0xec,0x7b,0x6d,0x81,0x85,0x44,0x41,
|
|
0xbc,0xa5,0x4b,0x19,0xda,0xe2,0x4d,0x45,0xaf,0x4a,0x45,0x2b,
|
|
0xda,0x36,0x1d,0x7b,0x59,0x8c,0xa5,0xe8,0xd0,0x2e,0xd3,0x96,
|
|
0x57,0x13,0x48,0x98,0xd0,0x70,0xf8,0x99,0xa1,0x81,0xee,0x29,
|
|
0x95,0xea,0xad,0xba,0xcc,0xb6,0x43,0x14,0x7b,0xf8,0x6b,0xb4,
|
|
0xfb,0x5a,0x02,0x6c,0x97,0x95,0x3c,0xf6,0xf9,0x50,0xdf,0x7a,
|
|
0xdc,0x0a,0x59,0x17,0xf8,0x73,0x33,0x5f,0x4a,0xd0,0x25,0x6d,
|
|
0x11,0xb2,0x58,0x52,0x76,0xaa,0xf0,0x8e,0x75,0x97,0xbb,0xc1,
|
|
0x76,0xd9,0xfe,0xa9,0xe9,0xd9,0x89,0xb9,0x35,0xdd,0x25,0xc8,
|
|
0x27,0x89,0xa4,0x5b,0x46,0x34,0x08,0xe0,0x87,0xc1,0x3d,0xaa,
|
|
0x6f,0xe5,0xcb,0xc6,0x30,0x30,0x5c,0xcf,0x24,0x8c,0x9c,0x47,
|
|
0x4f,0x29,0x45,0x53,0x1b,0xed,0xb2,0xcf,0x90,0x92,0xcb,0xfa,
|
|
0xf4,0x15,0x41,0x4e,0x16,0x69,0xbd,0x0e,0xcd,0x5a,0x15,0x26,
|
|
0xa4,0x32,0x26,0xbb,0xce,0x09,0x94,0xd6,0x86,0x93,0xf1,0xcf,
|
|
0xef,0x61,0x02,0x03,0x01,0x00,0x01,0xa3,0x34,0x30,0x32,0x30,
|
|
0x1b,0x06,0x03,0x55,0x1d,0x11,0x04,0x14,0x30,0x12,0x82,0x10,
|
|
0x6c,0x65,0x61,0x66,0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,0x65,
|
|
0x2e,0x63,0x6f,0x6d,0x30,0x13,0x06,0x03,0x55,0x1d,0x25,0x04,
|
|
0x0c,0x30,0x0a,0x06,0x08,0x2b,0x06,0x01,0x05,0x05,0x07,0x03,
|
|
0x02,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,
|
|
0x01,0x0b,0x05,0x00,0x03,0x82,0x01,0x01,0x00,0x95,0xe3,0x4c,
|
|
0xd2,0x69,0x63,0x3a,0x51,0x69,0x28,0xb8,0xeb,0x88,0x69,0x00,
|
|
0xb4,0x12,0xc0,0x49,0xa6,0x93,0x31,0xea,0xdb,0x57,0x3f,0x76,
|
|
0xf6,0x43,0x6d,0x9f,0xe9,0x95,0x36,0xd6,0x8d,0x67,0x1b,0x69,
|
|
0x30,0x9b,0x0f,0x62,0x42,0x28,0x2e,0x6f,0x80,0xa3,0xd9,0xbd,
|
|
0x9d,0xbd,0x22,0x7d,0x49,0x5d,0x3a,0x98,0x0c,0x16,0x63,0x00,
|
|
0x63,0x00,0xd5,0x97,0xf6,0x1d,0x10,0xed,0xa8,0xb3,0x40,0x86,
|
|
0x5c,0xcf,0x0f,0x78,0x4a,0xce,0x95,0x1b,0x13,0x7c,0x3f,0x73,
|
|
0x2a,0x38,0x08,0xd0,0xb3,0x6f,0x64,0x79,0xbd,0x1c,0x36,0xee,
|
|
0x56,0xff,0xfa,0xf8,0xf3,0xe1,0xb4,0x7c,0xab,0x27,0x16,0x98,
|
|
0x19,0x1d,0x82,0xb4,0xe0,0x07,0xfd,0x10,0x06,0xa6,0x0b,0xa5,
|
|
0x0a,0x77,0x5a,0xec,0xd8,0xc3,0x61,0xde,0xfc,0x64,0x26,0x05,
|
|
0xe9,0x2c,0x83,0xec,0x88,0x30,0x36,0xd5,0x59,0xf4,0x35,0x8c,
|
|
0x74,0x7b,0xde,0xab,0x21,0xd5,0x35,0xaf,0x73,0x8c,0x3d,0x1c,
|
|
0x89,0xb7,0x7e,0x82,0xfb,0xeb,0xff,0x55,0x6d,0x77,0x30,0xb6,
|
|
0xae,0x0f,0x80,0xfe,0xf0,0x11,0x3d,0x97,0x19,0x3d,0x2c,0x77,
|
|
0x2b,0x87,0x91,0xe2,0x67,0x94,0x33,0x4f,0x00,0x94,0xb1,0xd3,
|
|
0x1a,0xeb,0x82,0x8d,0x67,0xea,0xf2,0xbe,0xb6,0x43,0x5c,0x64,
|
|
0x62,0x27,0x88,0xa4,0x58,0xbc,0x39,0x5d,0xd3,0x3b,0x38,0x97,
|
|
0xc7,0x24,0xea,0xc5,0x63,0x47,0xab,0x0c,0xa4,0xc8,0xf0,0x70,
|
|
0x5e,0x7f,0x49,0x71,0xb3,0xdc,0x95,0x0a,0xcd,0xbf,0xc8,0x46,
|
|
0xdf,0x81,0x5a,0xdf,0x8f,0x85,0x10,0x3d,0x22,0x3b,0x1a,0xf6,
|
|
0x40,
|
|
};
|
|
|
|
/* EKU serverAuth -> accept */
|
|
static const uint8_t kat_leaf_eku_server[] = {
|
|
0x30,0x82,0x02,0xf1,0x30,0x82,0x01,0xd9,0xa0,0x03,0x02,0x01,
|
|
0x02,0x02,0x14,0x7c,0x5d,0x5b,0x29,0x2a,0xdf,0x2c,0x34,0x3b,
|
|
0x2e,0x5b,0x9a,0x0e,0x38,0x03,0x93,0xaa,0x2a,0x7f,0xbc,0x30,
|
|
0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,
|
|
0x05,0x00,0x30,0x14,0x31,0x12,0x30,0x10,0x06,0x03,0x55,0x04,
|
|
0x03,0x0c,0x09,0x77,0x6f,0x2d,0x72,0x73,0x61,0x2d,0x63,0x61,
|
|
0x30,0x1e,0x17,0x0d,0x32,0x30,0x30,0x31,0x30,0x31,0x30,0x30,
|
|
0x30,0x30,0x30,0x30,0x5a,0x17,0x0d,0x33,0x30,0x30,0x31,0x30,
|
|
0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,0x1b,0x31,0x19,
|
|
0x30,0x17,0x06,0x03,0x55,0x04,0x03,0x0c,0x10,0x6c,0x65,0x61,
|
|
0x66,0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,0x65,0x2e,0x63,0x6f,
|
|
0x6d,0x30,0x82,0x01,0x22,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,
|
|
0x86,0xf7,0x0d,0x01,0x01,0x01,0x05,0x00,0x03,0x82,0x01,0x0f,
|
|
0x00,0x30,0x82,0x01,0x0a,0x02,0x82,0x01,0x01,0x00,0xa0,0xce,
|
|
0xf7,0x51,0xa1,0x8d,0x86,0x39,0xab,0x32,0x91,0x97,0x59,0xca,
|
|
0xe9,0x8d,0x92,0x5f,0xb0,0xe4,0xf0,0x96,0x8e,0x07,0x91,0xf6,
|
|
0xe2,0x8e,0xf7,0xc4,0xdf,0x3e,0x52,0xed,0x0f,0x9e,0x47,0xc8,
|
|
0xde,0xfa,0x98,0xcf,0x88,0x9f,0x0d,0x06,0x13,0x4d,0xe2,0x1b,
|
|
0xb2,0x02,0xb4,0x1b,0x01,0x15,0xa1,0x35,0xc1,0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x30,
|
|
0x1b,0x06,0x03,0x55,0x1d,0x11,0x04,0x14,0x30,0x12,0x82,0x10,
|
|
0x6c,0x65,0x61,0x66,0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,0x65,
|
|
0x2e,0x63,0x6f,0x6d,0x30,0x13,0x06,0x03,0x55,0x1d,0x25,0x04,
|
|
0x0c,0x30,0x0a,0x06,0x08,0x2b,0x06,0x01,0x05,0x05,0x07,0x03,
|
|
0x01,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,
|
|
0x01,0x0b,0x05,0x00,0x03,0x82,0x01,0x01,0x00,0x3e,0x35,0x60,
|
|
0x48,0x47,0xa6,0x6e,0x9e,0xb2,0x13,0x76,0x50,0xdb,0x48,0xb3,
|
|
0x51,0xc0,0x40,0xe1,0x43,0xe3,0xdd,0x1d,0x2f,0xe6,0x23,0xfe,
|
|
0x17,0xea,0x4d,0x53,0x17,0x39,0x54,0xc2,0xd5,0xdf,0x42,0xe3,
|
|
0x7e,0x41,0xcc,0x5e,0xf7,0x84,0x8a,0xfc,0xcf,0xa1,0xc5,0x2c,
|
|
0xba,0x75,0x01,0x09,0x7c,0x9c,0x15,0x19,0xfa,0x69,0x7a,0x4b,
|
|
0x58,0x12,0xcb,0xa1,0xc8,0x6f,0x10,0xf9,0xb9,0x76,0x13,0x07,
|
|
0xcd,0x28,0x4f,0x43,0x38,0x88,0xe7,0xa3,0xd9,0xef,0xcf,0xab,
|
|
0xef,0x8a,0x00,0x81,0x67,0xdd,0x6b,0x34,0xe0,0xad,0x40,0x05,
|
|
0x31,0xa8,0xf3,0xf6,0x01,0xda,0xc0,0xf3,0x01,0x63,0x8f,0xf7,
|
|
0xf2,0x89,0xbf,0x04,0xb4,0xa2,0xa2,0x96,0x92,0x4c,0x8b,0x48,
|
|
0x23,0x08,0xee,0x39,0x65,0xa4,0xb7,0x03,0xb1,0x84,0x03,0x56,
|
|
0xd0,0x15,0x54,0x41,0x6e,0x67,0xf7,0x1c,0x00,0x61,0xb3,0xd3,
|
|
0xe8,0x6b,0x8f,0xb1,0xe7,0xa9,0x60,0x55,0xa7,0x57,0x7a,0xa0,
|
|
0xac,0x2f,0xfd,0xcd,0xcd,0x10,0x34,0xf3,0x0f,0xff,0xe1,0x21,
|
|
0xa8,0x9e,0xd6,0xd6,0x41,0xb2,0x5b,0xbd,0x76,0x01,0xe8,0x45,
|
|
0x90,0x0d,0xec,0xf1,0xc9,0x9b,0x1d,0x06,0xf5,0x61,0xf3,0x8f,
|
|
0x31,0xce,0xc2,0x86,0xa4,0xb5,0x36,0xef,0x90,0x7f,0x82,0x44,
|
|
0xef,0x30,0x5e,0x71,0x2e,0x53,0xb2,0xa1,0xcc,0x0e,0xc6,0x1f,
|
|
0x74,0xa5,0x54,0x7c,0x63,0x41,0xb8,0xb2,0x66,0x13,0x88,0x12,
|
|
0xb0,0xf5,0x8c,0x3a,0x9d,0xaa,0xb0,0xdd,0xd9,0x24,0xcf,0xa1,
|
|
0xa5,0xc4,0x58,0x14,0x9e,0x2b,0x3f,0x6c,0xc5,0xeb,0x6d,0x83,
|
|
0x27,
|
|
};
|
|
|
|
/* intermediate with basicConstraints CA:FALSE */
|
|
static const uint8_t kat_noca_mid[] = {
|
|
0x30,0x82,0x02,0xc8,0x30,0x82,0x01,0xb0,0xa0,0x03,0x02,0x01,
|
|
0x02,0x02,0x14,0x18,0x4a,0x73,0x07,0xf4,0x7a,0xfc,0xce,0xd0,
|
|
0x88,0x50,0x52,0x92,0x04,0x31,0x1b,0x6a,0x9f,0xbe,0x8d,0x30,
|
|
0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,
|
|
0x05,0x00,0x30,0x14,0x31,0x12,0x30,0x10,0x06,0x03,0x55,0x04,
|
|
0x03,0x0c,0x09,0x77,0x6f,0x2d,0x72,0x73,0x61,0x2d,0x63,0x61,
|
|
0x30,0x1e,0x17,0x0d,0x32,0x30,0x30,0x31,0x30,0x31,0x30,0x30,
|
|
0x30,0x30,0x30,0x30,0x5a,0x17,0x0d,0x33,0x30,0x30,0x31,0x30,
|
|
0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,0x16,0x31,0x14,
|
|
0x30,0x12,0x06,0x03,0x55,0x04,0x03,0x0c,0x0b,0x77,0x6f,0x2d,
|
|
0x6e,0x6f,0x63,0x61,0x2d,0x6d,0x69,0x64,0x30,0x82,0x01,0x22,
|
|
0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,
|
|
0x01,0x05,0x00,0x03,0x82,0x01,0x0f,0x00,0x30,0x82,0x01,0x0a,
|
|
0x02,0x82,0x01,0x01,0x00,0xa4,0xe1,0x0c,0xe6,0x7a,0xf9,0x21,
|
|
0x44,0xfd,0x40,0x66,0xaf,0x51,0x42,0x51,0x71,0x1a,0x37,0x34,
|
|
0xf3,0xfb,0x73,0x7f,0x7e,0x52,0xeb,0x9b,0xb9,0x8a,0x1c,0x0f,
|
|
0xcf,0x5e,0x20,0x83,0x0f,0x77,0x14,0xf1,0xd6,0x04,0x75,0xc6,
|
|
0x15,0x6b,0xdd,0x41,0x68,0xe5,0x9a,0x8e,0x22,0xd6,0xf7,0xf7,
|
|
0x5d,0x8e,0xd3,0x32,0xed,0x2f,0x28,0x85,0xe0,0xf2,0xcd,0x5c,
|
|
0x0d,0x9f,0x0f,0x86,0x41,0x11,0xee,0xc6,0xa6,0x30,0xad,0x76,
|
|
0xa1,0x60,0x0c,0x7e,0x37,0xae,0x68,0x76,0xe7,0x8b,0x7b,0x06,
|
|
0xc5,0x48,0xe9,0x75,0x79,0x58,0xe9,0x3c,0x1b,0x63,0xd9,0xc4,
|
|
0x7a,0x4d,0xa9,0x3e,0xd6,0x83,0x5e,0xa9,0xc5,0x5b,0x34,0x62,
|
|
0xbb,0xb5,0x96,0xfa,0xf7,0x53,0x18,0xa7,0xea,0x6e,0x66,0x9e,
|
|
0x88,0x56,0xf8,0x66,0xcd,0x7c,0x73,0xb1,0x40,0x03,0xde,0xe0,
|
|
0xbf,0x77,0xf3,0xb5,0x85,0x3f,0xd1,0x20,0x4c,0x50,0x5b,0x1a,
|
|
0xeb,0x05,0x15,0x68,0xe8,0x34,0x0d,0x33,0xb8,0xdd,0x54,0x09,
|
|
0xc8,0x09,0xad,0x48,0xcd,0x1a,0x7a,0xea,0x91,0x19,0x92,0x41,
|
|
0xac,0x4f,0x78,0xb1,0x12,0x7f,0x7d,0xf4,0x53,0xc9,0xe2,0x2c,
|
|
0x2b,0x06,0xcc,0x4e,0x67,0x7b,0x9a,0xba,0x8e,0xb0,0x99,0xc7,
|
|
0x6b,0x6f,0x81,0xd5,0x63,0x80,0x61,0x08,0xfb,0x84,0x0f,0x25,
|
|
0xdd,0xd7,0x01,0x5c,0xd5,0xb8,0x16,0x97,0x76,0xfe,0xd5,0x99,
|
|
0xdb,0x2b,0x17,0xaa,0xfb,0xd6,0x29,0x89,0xce,0xbd,0x85,0x18,
|
|
0x7d,0xf8,0xad,0xb0,0x5b,0x06,0x6d,0xf5,0x8e,0xac,0xe6,0x2f,
|
|
0xde,0x05,0x5a,0x1e,0x2a,0x24,0xfe,0xa0,0xc5,0x02,0x03,0x01,
|
|
0x00,0x01,0xa3,0x10,0x30,0x0e,0x30,0x0c,0x06,0x03,0x55,0x1d,
|
|
0x13,0x01,0x01,0xff,0x04,0x02,0x30,0x00,0x30,0x0d,0x06,0x09,
|
|
0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,0x05,0x00,0x03,
|
|
0x82,0x01,0x01,0x00,0x04,0xb6,0x84,0xae,0x51,0x55,0xb3,0xba,
|
|
0x34,0x9d,0x7f,0x59,0x03,0xea,0xc4,0x37,0x89,0x21,0x72,0x78,
|
|
0x99,0xaa,0x03,0xf1,0xe0,0xb1,0x17,0x94,0xfa,0xee,0xc4,0xfe,
|
|
0x11,0xfe,0x85,0x8b,0x94,0xbe,0x0c,0x66,0x98,0x2c,0x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0x18,0x2f,0xef,0x45,0xe5,0x32,0xae,0x28,
|
|
};
|
|
|
|
/* leaf issued under the non-CA intermediate */
|
|
static const uint8_t kat_leaf_under_noca[] = {
|
|
0x30,0x82,0x02,0xde,0x30,0x82,0x01,0xc6,0xa0,0x03,0x02,0x01,
|
|
0x02,0x02,0x14,0x4a,0x0c,0x58,0x36,0x2f,0x46,0x58,0x6f,0x00,
|
|
0x42,0x47,0x71,0x33,0xd4,0xae,0x5b,0x66,0x9b,0x4c,0xd1,0x30,
|
|
0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,
|
|
0x05,0x00,0x30,0x16,0x31,0x14,0x30,0x12,0x06,0x03,0x55,0x04,
|
|
0x03,0x0c,0x0b,0x77,0x6f,0x2d,0x6e,0x6f,0x63,0x61,0x2d,0x6d,
|
|
0x69,0x64,0x30,0x1e,0x17,0x0d,0x32,0x30,0x30,0x31,0x30,0x31,
|
|
0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x17,0x0d,0x33,0x30,0x30,
|
|
0x31,0x30,0x31,0x30,0x30,0x30,0x30,0x30,0x30,0x5a,0x30,0x1b,
|
|
0x31,0x19,0x30,0x17,0x06,0x03,0x55,0x04,0x03,0x0c,0x10,0x6c,
|
|
0x65,0x61,0x66,0x2e,0x65,0x78,0x61,0x6d,0x70,0x6c,0x65,0x2e,
|
|
0x63,0x6f,0x6d,0x30,0x82,0x01,0x22,0x30,0x0d,0x06,0x09,0x2a,
|
|
0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x01,0x05,0x00,0x03,0x82,
|
|
0x01,0x0f,0x00,0x30,0x82,0x01,0x0a,0x02,0x82,0x01,0x01,0x00,
|
|
0x9d,0x71,0x21,0x4d,0xd0,0x70,0x18,0xda,0xb9,0x0f,0x51,0x87,
|
|
0x25,0x3d,0x14,0x0e,0x6b,0xa8,0x0d,0x0f,0xb7,0x3a,0xa7,0x65,
|
|
0x36,0xe4,0x92,0x46,0x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0xc6,0x56,0x88,0x71,0xeb,
|
|
0xa5,0x67,0x3d,0x2e,0xe6,0x8f,0xee,0xe8,0x75,0x3d,0x97,0x23,
|
|
0x51,0xf7,0x25,0x27,0x02,0x03,0x01,0x00,0x01,0xa3,0x1f,0x30,
|
|
0x1d,0x30,0x1b,0x06,0x03,0x55,0x1d,0x11,0x04,0x14,0x30,0x12,
|
|
0x82,0x10,0x6c,0x65,0x61,0x66,0x2e,0x65,0x78,0x61,0x6d,0x70,
|
|
0x6c,0x65,0x2e,0x63,0x6f,0x6d,0x30,0x0d,0x06,0x09,0x2a,0x86,
|
|
0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,0x05,0x00,0x03,0x82,0x01,
|
|
0x01,0x00,0x92,0xc7,0x1d,0x0f,0xd4,0x7c,0x18,0xb9,0x3c,0xcc,
|
|
0x76,0xa4,0xf7,0xc6,0x36,0x0e,0xfb,0x13,0x87,0xa2,0xe8,0xd8,
|
|
0x8e,0x62,0xff,0x9c,0x74,0xd3,0x54,0x49,0x7d,0x84,0x9d,0x62,
|
|
0xfe,0x5d,0x32,0x99,0x04,0x04,0xdd,0xc6,0x61,0x25,0x42,0xad,
|
|
0x76,0x12,0xd2,0xd8,0x7a,0x48,0x4d,0xc6,0x8c,0x04,0xbe,0xd3,
|
|
0xca,0x26,0x10,0x6c,0x39,0xdc,0x9a,0x9b,0x80,0xc6,0xae,0x6b,
|
|
0xb9,0x3d,0x5b,0x21,0x3d,0xbb,0x14,0x5f,0xbb,0x25,0x6c,0x98,
|
|
0xbe,0x8e,0x8a,0x51,0x08,0x88,0xb0,0xaf,0x41,0x55,0x84,0x09,
|
|
0x0f,0xb1,0x14,0xbf,0xf3,0xfc,0x15,0xc8,0xb8,0x5a,0x65,0xdf,
|
|
0x39,0xc6,0xdf,0x20,0x79,0xd5,0x51,0xc5,0x48,0x90,0xc7,0xde,
|
|
0xcd,0x22,0x70,0x93,0x3d,0x89,0x10,0x83,0x50,0x28,0x05,0xbe,
|
|
0x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