Merge branch 'master' of github.com:cyassl/cyassl
This commit is contained in:
commit
4eebba8162
BIN
certs/ca-cert.der
Normal file
BIN
certs/ca-cert.der
Normal file
Binary file not shown.
BIN
certs/server-cert.der
Normal file
BIN
certs/server-cert.der
Normal file
Binary file not shown.
BIN
certs/server-key.der
Normal file
BIN
certs/server-key.der
Normal file
Binary file not shown.
@ -785,15 +785,14 @@ static RNG rng;
|
||||
#ifndef NO_RSA
|
||||
|
||||
|
||||
#if !defined(USE_CERT_BUFFERS_1024) && !defined(USE_CERT_BUFFERS_2048) && \
|
||||
defined(CYASSL_MDK_SHELL)
|
||||
static char *certRSAname = "certs/rsa2048.der" ;
|
||||
static void set_Bench_RSA_File(char * cert) { certRSAname = cert ; }
|
||||
#if !defined(USE_CERT_BUFFERS_1024) && !defined(USE_CERT_BUFFERS_2048)
|
||||
#if defined(CYASSL_MDK_SHELL)
|
||||
static char *certRSAname = "certs/rsa2048.der";
|
||||
/* set by shell command */
|
||||
#elif defined(CYASSL_MDK_SHELL)
|
||||
/* nothing */
|
||||
#else
|
||||
static const char *certRSAname = "certs/rsa2048.der" ;
|
||||
static void set_Bench_RSA_File(char * cert) { certRSAname = cert ; }
|
||||
#else
|
||||
static const char *certRSAname = "certs/rsa2048.der";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void bench_rsa(void)
|
||||
@ -890,15 +889,14 @@ void bench_rsa(void)
|
||||
#ifndef NO_DH
|
||||
|
||||
|
||||
#if !defined(USE_CERT_BUFFERS_1024) && !defined(USE_CERT_BUFFERS_2048) && \
|
||||
defined(CYASSL_MDK_SHELL)
|
||||
static char *certDHname = "certs/dh2048.der" ;
|
||||
void set_Bench_DH_File(char * cert) { certDHname = cert ; }
|
||||
#if !defined(USE_CERT_BUFFERS_1024) && !defined(USE_CERT_BUFFERS_2048)
|
||||
#if defined(CYASSL_MDK_SHELL)
|
||||
static char *certDHname = "certs/dh2048.der";
|
||||
/* set by shell command */
|
||||
#elif defined(CYASSL_MDK_SHELL)
|
||||
/* nothing */
|
||||
#else
|
||||
static const char *certDHname = "certs/dh2048.der" ;
|
||||
void set_Bench_DH_File(char * cert) { certDHname = cert ; }
|
||||
#else
|
||||
static const char *certDHname = "certs/dh2048.der";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void bench_dh(void)
|
||||
|
@ -70,7 +70,7 @@ const unsigned char client_key_der_1024[] =
|
||||
0xA2, 0xFE, 0xBF, 0x08, 0x6B, 0x1A, 0x5D, 0x3F, 0x90, 0x12,
|
||||
0xB1, 0x05, 0x86, 0x31, 0x29, 0xDB, 0xD9, 0xE2
|
||||
};
|
||||
const int sizeof_client_key_der_1024 = sizeof(client_key_der_1024) ;
|
||||
const int sizeof_client_key_der_1024 = sizeof(client_key_der_1024);
|
||||
|
||||
/* ./certs/1024/client-cert.der, 1024-bit */
|
||||
const unsigned char client_cert_der_1024[] =
|
||||
@ -152,7 +152,7 @@ const unsigned char client_cert_der_1024[] =
|
||||
0x1B, 0x4E, 0x5D, 0xBC, 0x4E, 0x9A, 0x7C, 0x1F, 0xAB, 0x56,
|
||||
0x47, 0x4A
|
||||
};
|
||||
const int sizeof_client_cert_der_1024 = sizeof(client_cert_der_1024) ;
|
||||
const int sizeof_client_cert_der_1024 = sizeof(client_cert_der_1024);
|
||||
|
||||
/* ./certs/1024/dh1024.der, 1024-bit */
|
||||
const unsigned char dh_key_der_1024[] =
|
||||
@ -172,7 +172,7 @@ const unsigned char dh_key_der_1024[] =
|
||||
0x8C, 0x63, 0x0A, 0xAD, 0xC7, 0x10, 0xEA, 0xC7, 0xA1, 0xB9,
|
||||
0x9D, 0xF2, 0xA8, 0x37, 0x73, 0x02, 0x01, 0x02
|
||||
};
|
||||
const int sizeof_dh_key_der_1024 = sizeof(dh_key_der_1024) ;
|
||||
const int sizeof_dh_key_der_1024 = sizeof(dh_key_der_1024);
|
||||
|
||||
/* ./certs/1024/dsa1024.der, 1024-bit */
|
||||
const unsigned char dsa_key_der_1024[] =
|
||||
@ -223,7 +223,7 @@ const unsigned char dsa_key_der_1024[] =
|
||||
0x3B, 0xA1, 0x19, 0x75, 0xDF, 0x9B, 0xF5, 0x72, 0x53, 0x4F,
|
||||
0x39, 0xE1, 0x1C, 0xEC, 0x13, 0x84, 0x82, 0x18
|
||||
};
|
||||
const int sizeof_dsa_key_der_1024 = sizeof(dsa_key_der_1024) ;
|
||||
const int sizeof_dsa_key_der_1024 = sizeof(dsa_key_der_1024);
|
||||
|
||||
/* ./certs/1024/rsa1024.der, 1024-bit */
|
||||
const unsigned char rsa_key_der_1024[] =
|
||||
@ -290,7 +290,7 @@ const unsigned char rsa_key_der_1024[] =
|
||||
0xB9, 0x9E, 0xD5, 0x5B, 0x2E, 0x87, 0x1C, 0x58, 0xD0, 0x37,
|
||||
0x89, 0x96, 0xEC, 0x48, 0x54, 0xF5, 0x9F, 0x0F, 0xB3
|
||||
};
|
||||
const int sizeof_rsa_key_der_1024 = sizeof(rsa_key_der_1024) ;
|
||||
const int sizeof_rsa_key_der_1024 = sizeof(rsa_key_der_1024);
|
||||
|
||||
#elif defined(USE_CERT_BUFFERS_2048)
|
||||
|
||||
@ -418,7 +418,7 @@ const unsigned char client_key_der_2048[] =
|
||||
0x45, 0x5D, 0x13, 0x39, 0x65, 0x42, 0x46, 0xA1, 0x9F, 0xCD,
|
||||
0xF5, 0xBF
|
||||
};
|
||||
const int sizeof_client_key_der_2048 = sizeof(client_key_der_2048) ;
|
||||
const int sizeof_client_key_der_2048 = sizeof(client_key_der_2048);
|
||||
|
||||
/* ./certs/client-cert.der, 2048-bit */
|
||||
const unsigned char client_cert_der_2048[] =
|
||||
@ -543,7 +543,7 @@ const unsigned char client_cert_der_2048[] =
|
||||
0xC9, 0xB1, 0x71, 0x7E, 0x1B, 0x2B, 0xE1, 0xE3, 0xAF, 0xC0
|
||||
|
||||
};
|
||||
const int sizeof_client_cert_der_2048 = sizeof(client_cert_der_2048) ;
|
||||
const int sizeof_client_cert_der_2048 = sizeof(client_cert_der_2048);
|
||||
|
||||
/* ./certs/dh2048.der, 2048-bit */
|
||||
const unsigned char dh_key_der_2048[] =
|
||||
@ -576,7 +576,7 @@ const unsigned char dh_key_der_2048[] =
|
||||
0xC3, 0xA9, 0x41, 0x83, 0xFB, 0xC7, 0xFA, 0xC8, 0xE2, 0x1E,
|
||||
0x7E, 0xAF, 0x00, 0x3F, 0x93, 0x02, 0x01, 0x02
|
||||
};
|
||||
const int sizeof_dh_key_der_2048 = sizeof(dh_key_der_2048) ;
|
||||
const int sizeof_dh_key_der_2048 = sizeof(dh_key_der_2048);
|
||||
|
||||
/* ./certs/dsa2048.der, 2048-bit */
|
||||
const unsigned char dsa_key_der_2048[] =
|
||||
@ -666,7 +666,7 @@ const unsigned char dsa_key_der_2048[] =
|
||||
0x3E, 0x75, 0x13, 0x13, 0x06, 0x8F, 0x94, 0xD3, 0xE6, 0xE9,
|
||||
0x00, 0xCB, 0x62, 0x6D, 0x9A
|
||||
};
|
||||
const int sizeof_dsa_key_der_2048 = sizeof(dsa_key_der_2048) ;
|
||||
const int sizeof_dsa_key_der_2048 = sizeof(dsa_key_der_2048);
|
||||
|
||||
/* ./certs/rsa2048.der, 2048-bit */
|
||||
const unsigned char rsa_key_der_2048[] =
|
||||
@ -792,7 +792,356 @@ const unsigned char rsa_key_der_2048[] =
|
||||
0x83, 0x0B, 0xD4, 0x74, 0x80, 0xB6, 0x7D, 0x62, 0x45, 0xBF,
|
||||
0x56
|
||||
};
|
||||
const int sizeof_rsa_key_der_2048 = sizeof(rsa_key_der_2048) ;
|
||||
const int sizeof_rsa_key_der_2048 = sizeof(rsa_key_der_2048);
|
||||
|
||||
/* ./certs/ca-cert.der, 2048-bit */
|
||||
const unsigned char ca_cert_der_2048[] =
|
||||
{
|
||||
0x30, 0x82, 0x04, 0x9E, 0x30, 0x82, 0x03, 0x86, 0xA0, 0x03,
|
||||
0x02, 0x01, 0x02, 0x02, 0x09, 0x00, 0xE9, 0xD0, 0xA7, 0x5F,
|
||||
0x79, 0x25, 0xF4, 0x3C, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86,
|
||||
0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05, 0x00, 0x30,
|
||||
0x81, 0x90, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
|
||||
0x06, 0x13, 0x02, 0x55, 0x53, 0x31, 0x10, 0x30, 0x0E, 0x06,
|
||||
0x03, 0x55, 0x04, 0x08, 0x13, 0x07, 0x4D, 0x6F, 0x6E, 0x74,
|
||||
0x61, 0x6E, 0x61, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55,
|
||||
0x04, 0x07, 0x13, 0x07, 0x42, 0x6F, 0x7A, 0x65, 0x6D, 0x61,
|
||||
0x6E, 0x31, 0x11, 0x30, 0x0F, 0x06, 0x03, 0x55, 0x04, 0x0A,
|
||||
0x13, 0x08, 0x53, 0x61, 0x77, 0x74, 0x6F, 0x6F, 0x74, 0x68,
|
||||
0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x0B, 0x13,
|
||||
0x0A, 0x43, 0x6F, 0x6E, 0x73, 0x75, 0x6C, 0x74, 0x69, 0x6E,
|
||||
0x67, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x03,
|
||||
0x13, 0x0D, 0x77, 0x77, 0x77, 0x2E, 0x79, 0x61, 0x73, 0x73,
|
||||
0x6C, 0x2E, 0x63, 0x6F, 0x6D, 0x31, 0x1D, 0x30, 0x1B, 0x06,
|
||||
0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01,
|
||||
0x16, 0x0E, 0x69, 0x6E, 0x66, 0x6F, 0x40, 0x79, 0x61, 0x73,
|
||||
0x73, 0x6C, 0x2E, 0x63, 0x6F, 0x6D, 0x30, 0x1E, 0x17, 0x0D,
|
||||
0x31, 0x31, 0x31, 0x30, 0x32, 0x34, 0x31, 0x38, 0x31, 0x38,
|
||||
0x31, 0x35, 0x5A, 0x17, 0x0D, 0x31, 0x34, 0x30, 0x37, 0x32,
|
||||
0x30, 0x31, 0x38, 0x31, 0x38, 0x31, 0x35, 0x5A, 0x30, 0x81,
|
||||
0x90, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06,
|
||||
0x13, 0x02, 0x55, 0x53, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03,
|
||||
0x55, 0x04, 0x08, 0x13, 0x07, 0x4D, 0x6F, 0x6E, 0x74, 0x61,
|
||||
0x6E, 0x61, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 0x04,
|
||||
0x07, 0x13, 0x07, 0x42, 0x6F, 0x7A, 0x65, 0x6D, 0x61, 0x6E,
|
||||
0x31, 0x11, 0x30, 0x0F, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13,
|
||||
0x08, 0x53, 0x61, 0x77, 0x74, 0x6F, 0x6F, 0x74, 0x68, 0x31,
|
||||
0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x0B, 0x13, 0x0A,
|
||||
0x43, 0x6F, 0x6E, 0x73, 0x75, 0x6C, 0x74, 0x69, 0x6E, 0x67,
|
||||
0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13,
|
||||
0x0D, 0x77, 0x77, 0x77, 0x2E, 0x79, 0x61, 0x73, 0x73, 0x6C,
|
||||
0x2E, 0x63, 0x6F, 0x6D, 0x31, 0x1D, 0x30, 0x1B, 0x06, 0x09,
|
||||
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01, 0x16,
|
||||
0x0E, 0x69, 0x6E, 0x66, 0x6F, 0x40, 0x79, 0x61, 0x73, 0x73,
|
||||
0x6C, 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, 0xBF, 0x0C,
|
||||
0xCA, 0x2D, 0x14, 0xB2, 0x1E, 0x84, 0x42, 0x5B, 0xCD, 0x38,
|
||||
0x1F, 0x4A, 0xF2, 0x4D, 0x75, 0x10, 0xF1, 0xB6, 0x35, 0x9F,
|
||||
0xDF, 0xCA, 0x7D, 0x03, 0x98, 0xD3, 0xAC, 0xDE, 0x03, 0x66,
|
||||
0xEE, 0x2A, 0xF1, 0xD8, 0xB0, 0x7D, 0x6E, 0x07, 0x54, 0x0B,
|
||||
0x10, 0x98, 0x21, 0x4D, 0x80, 0xCB, 0x12, 0x20, 0xE7, 0xCC,
|
||||
0x4F, 0xDE, 0x45, 0x7D, 0xC9, 0x72, 0x77, 0x32, 0xEA, 0xCA,
|
||||
0x90, 0xBB, 0x69, 0x52, 0x10, 0x03, 0x2F, 0xA8, 0xF3, 0x95,
|
||||
0xC5, 0xF1, 0x8B, 0x62, 0x56, 0x1B, 0xEF, 0x67, 0x6F, 0xA4,
|
||||
0x10, 0x41, 0x95, 0xAD, 0x0A, 0x9B, 0xE3, 0xA5, 0xC0, 0xB0,
|
||||
0xD2, 0x70, 0x76, 0x50, 0x30, 0x5B, 0xA8, 0xE8, 0x08, 0x2C,
|
||||
0x7C, 0xED, 0xA7, 0xA2, 0x7A, 0x8D, 0x38, 0x29, 0x1C, 0xAC,
|
||||
0xC7, 0xED, 0xF2, 0x7C, 0x95, 0xB0, 0x95, 0x82, 0x7D, 0x49,
|
||||
0x5C, 0x38, 0xCD, 0x77, 0x25, 0xEF, 0xBD, 0x80, 0x75, 0x53,
|
||||
0x94, 0x3C, 0x3D, 0xCA, 0x63, 0x5B, 0x9F, 0x15, 0xB5, 0xD3,
|
||||
0x1D, 0x13, 0x2F, 0x19, 0xD1, 0x3C, 0xDB, 0x76, 0x3A, 0xCC,
|
||||
0xB8, 0x7D, 0xC9, 0xE5, 0xC2, 0xD7, 0xDA, 0x40, 0x6F, 0xD8,
|
||||
0x21, 0xDC, 0x73, 0x1B, 0x42, 0x2D, 0x53, 0x9C, 0xFE, 0x1A,
|
||||
0xFC, 0x7D, 0xAB, 0x7A, 0x36, 0x3F, 0x98, 0xDE, 0x84, 0x7C,
|
||||
0x05, 0x67, 0xCE, 0x6A, 0x14, 0x38, 0x87, 0xA9, 0xF1, 0x8C,
|
||||
0xB5, 0x68, 0xCB, 0x68, 0x7F, 0x71, 0x20, 0x2B, 0xF5, 0xA0,
|
||||
0x63, 0xF5, 0x56, 0x2F, 0xA3, 0x26, 0xD2, 0xB7, 0x6F, 0xB1,
|
||||
0x5A, 0x17, 0xD7, 0x38, 0x99, 0x08, 0xFE, 0x93, 0x58, 0x6F,
|
||||
0xFE, 0xC3, 0x13, 0x49, 0x08, 0x16, 0x0B, 0xA7, 0x4D, 0x67,
|
||||
0x00, 0x52, 0x31, 0x67, 0x23, 0x4E, 0x98, 0xED, 0x51, 0x45,
|
||||
0x1D, 0xB9, 0x04, 0xD9, 0x0B, 0xEC, 0xD8, 0x28, 0xB3, 0x4B,
|
||||
0xBD, 0xED, 0x36, 0x79, 0x02, 0x03, 0x01, 0x00, 0x01, 0xA3,
|
||||
0x81, 0xF8, 0x30, 0x81, 0xF5, 0x30, 0x1D, 0x06, 0x03, 0x55,
|
||||
0x1D, 0x0E, 0x04, 0x16, 0x04, 0x14, 0x27, 0x8E, 0x67, 0x11,
|
||||
0x74, 0xC3, 0x26, 0x1D, 0x3F, 0xED, 0x33, 0x63, 0xB3, 0xA4,
|
||||
0xD8, 0x1D, 0x30, 0xE5, 0xE8, 0xD5, 0x30, 0x81, 0xC5, 0x06,
|
||||
0x03, 0x55, 0x1D, 0x23, 0x04, 0x81, 0xBD, 0x30, 0x81, 0xBA,
|
||||
0x80, 0x14, 0x27, 0x8E, 0x67, 0x11, 0x74, 0xC3, 0x26, 0x1D,
|
||||
0x3F, 0xED, 0x33, 0x63, 0xB3, 0xA4, 0xD8, 0x1D, 0x30, 0xE5,
|
||||
0xE8, 0xD5, 0xA1, 0x81, 0x96, 0xA4, 0x81, 0x93, 0x30, 0x81,
|
||||
0x90, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06,
|
||||
0x13, 0x02, 0x55, 0x53, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03,
|
||||
0x55, 0x04, 0x08, 0x13, 0x07, 0x4D, 0x6F, 0x6E, 0x74, 0x61,
|
||||
0x6E, 0x61, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 0x04,
|
||||
0x07, 0x13, 0x07, 0x42, 0x6F, 0x7A, 0x65, 0x6D, 0x61, 0x6E,
|
||||
0x31, 0x11, 0x30, 0x0F, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13,
|
||||
0x08, 0x53, 0x61, 0x77, 0x74, 0x6F, 0x6F, 0x74, 0x68, 0x31,
|
||||
0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x0B, 0x13, 0x0A,
|
||||
0x43, 0x6F, 0x6E, 0x73, 0x75, 0x6C, 0x74, 0x69, 0x6E, 0x67,
|
||||
0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13,
|
||||
0x0D, 0x77, 0x77, 0x77, 0x2E, 0x79, 0x61, 0x73, 0x73, 0x6C,
|
||||
0x2E, 0x63, 0x6F, 0x6D, 0x31, 0x1D, 0x30, 0x1B, 0x06, 0x09,
|
||||
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01, 0x16,
|
||||
0x0E, 0x69, 0x6E, 0x66, 0x6F, 0x40, 0x79, 0x61, 0x73, 0x73,
|
||||
0x6C, 0x2E, 0x63, 0x6F, 0x6D, 0x82, 0x09, 0x00, 0xE9, 0xD0,
|
||||
0xA7, 0x5F, 0x79, 0x25, 0xF4, 0x3C, 0x30, 0x0C, 0x06, 0x03,
|
||||
0x55, 0x1D, 0x13, 0x04, 0x05, 0x30, 0x03, 0x01, 0x01, 0xFF,
|
||||
0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D,
|
||||
0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00,
|
||||
0x5F, 0x86, 0x14, 0xF4, 0x51, 0x8B, 0xBC, 0xA5, 0x4E, 0x30,
|
||||
0xDA, 0x5E, 0xAC, 0x9A, 0xF8, 0x6C, 0xD9, 0x26, 0x4B, 0x93,
|
||||
0xF9, 0xE3, 0x1C, 0x89, 0x6F, 0x9E, 0xEE, 0xB3, 0x9D, 0x77,
|
||||
0x3E, 0x89, 0x20, 0x76, 0xA3, 0xE6, 0xE8, 0x86, 0x15, 0x21,
|
||||
0xDB, 0xE2, 0x33, 0xB2, 0x34, 0xD5, 0xD0, 0x9F, 0xF3, 0xC1,
|
||||
0xA4, 0x87, 0x92, 0x5C, 0xF9, 0xD1, 0xFF, 0x30, 0x2F, 0x8E,
|
||||
0x03, 0xBC, 0xB3, 0x3C, 0x0C, 0x32, 0xA3, 0x90, 0x5F, 0x1A,
|
||||
0x90, 0x1E, 0xAF, 0x9D, 0xF3, 0x9E, 0xD7, 0x07, 0x02, 0xA9,
|
||||
0x7D, 0x27, 0x66, 0x63, 0x2F, 0xAF, 0x18, 0xD7, 0xAC, 0x18,
|
||||
0x98, 0x8C, 0x83, 0x8F, 0x38, 0xF3, 0x0B, 0xAC, 0x36, 0x10,
|
||||
0x75, 0xFB, 0xCA, 0x76, 0x13, 0x50, 0x5B, 0x02, 0x8F, 0x73,
|
||||
0xBF, 0xE3, 0xA0, 0xEE, 0x83, 0x52, 0x25, 0x54, 0xCE, 0x26,
|
||||
0xCE, 0x9C, 0xBD, 0x2F, 0x79, 0xAB, 0x1B, 0x60, 0xB8, 0x92,
|
||||
0xF1, 0x03, 0xC0, 0xFC, 0x3B, 0x08, 0xD9, 0xC0, 0xAD, 0xD5,
|
||||
0x72, 0x08, 0x25, 0x80, 0x61, 0x2D, 0xDC, 0x9F, 0xA7, 0x83,
|
||||
0x62, 0x07, 0x47, 0xE0, 0x07, 0x4C, 0x4B, 0x07, 0x30, 0x04,
|
||||
0xA9, 0x87, 0x1C, 0x55, 0x7F, 0x07, 0x12, 0xD0, 0xCB, 0x42,
|
||||
0x5D, 0xCB, 0xCF, 0x66, 0x01, 0x1A, 0x17, 0xEE, 0xF9, 0x0F,
|
||||
0x60, 0xB7, 0xDB, 0x6F, 0x68, 0xE5, 0x4E, 0x41, 0x62, 0x6E,
|
||||
0xD3, 0x6F, 0x60, 0x4F, 0x4B, 0x27, 0xDE, 0xCF, 0x18, 0x07,
|
||||
0xF1, 0x13, 0x5D, 0xCB, 0x3F, 0xA9, 0x25, 0x44, 0xDA, 0x52,
|
||||
0x5C, 0xC8, 0x04, 0xE1, 0x56, 0x12, 0xF5, 0x2A, 0x90, 0x4E,
|
||||
0xD1, 0xE2, 0xAF, 0x01, 0xB5, 0x23, 0xA1, 0xEC, 0x31, 0xDA,
|
||||
0x7B, 0x63, 0x69, 0xC4, 0xB8, 0xF3, 0xE7, 0xCE, 0xA1, 0x3D,
|
||||
0xC0, 0xDB, 0x6D, 0xF3, 0xB2, 0xD9, 0x46, 0xC8, 0x9F, 0xC3,
|
||||
0xB8, 0x70, 0x5A, 0x1F, 0x7F, 0xCA
|
||||
};
|
||||
const int sizeof_ca_cert_der_2048 = sizeof(ca_cert_der_2048);
|
||||
|
||||
/* ./certs/server-key.der, 2048-bit */
|
||||
const unsigned char server_key_der_2048[] =
|
||||
{
|
||||
0x30, 0x82, 0x04, 0xA5, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01,
|
||||
0x01, 0x00, 0xC0, 0x95, 0x08, 0xE1, 0x57, 0x41, 0xF2, 0x71,
|
||||
0x6D, 0xB7, 0xD2, 0x45, 0x41, 0x27, 0x01, 0x65, 0xC6, 0x45,
|
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x96, 0x4A, 0xBC, 0xE1,
|
||||
0xD4, 0x1A, 0x5B, 0xC7, 0xA0, 0xC0, 0xC1, 0x63, 0x78, 0x0F,
|
||||
0x44, 0x37, 0x30, 0x32, 0x96, 0x80, 0x32, 0x23, 0x95, 0xA1,
|
||||
0x77, 0xBA, 0x13, 0xD2, 0x97, 0x73, 0xE2, 0x5D, 0x25, 0xC9,
|
||||
0x6A, 0x0D, 0xC3, 0x39, 0x60, 0xA4, 0xB4, 0xB0, 0x69, 0x42,
|
||||
0x42, 0x09, 0xE9, 0xD8, 0x08, 0xBC, 0x33, 0x20, 0xB3, 0x58,
|
||||
0x22, 0xA7, 0xAA, 0xEB, 0xC4, 0xE1, 0xE6, 0x61, 0x83, 0xC5,
|
||||
0xD2, 0x96, 0xDF, 0xD9, 0xD0, 0x4F, 0xAD, 0xD7, 0x02, 0x03,
|
||||
0x01, 0x00, 0x01, 0x02, 0x82, 0x01, 0x01, 0x00, 0x9A, 0xD0,
|
||||
0x34, 0x0F, 0x52, 0x62, 0x05, 0x50, 0x01, 0xEF, 0x9F, 0xED,
|
||||
0x64, 0x6E, 0xC2, 0xC4, 0xDA, 0x1A, 0xF2, 0x84, 0xD7, 0x92,
|
||||
0x10, 0x48, 0x92, 0xC4, 0xE9, 0x6A, 0xEB, 0x8B, 0x75, 0x6C,
|
||||
0xC6, 0x79, 0x38, 0xF2, 0xC9, 0x72, 0x4A, 0x86, 0x64, 0x54,
|
||||
0x95, 0x77, 0xCB, 0xC3, 0x9A, 0x9D, 0xB7, 0xD4, 0x1D, 0xA4,
|
||||
0x00, 0xC8, 0x9E, 0x4E, 0xE4, 0xDD, 0xC7, 0xBA, 0x67, 0x16,
|
||||
0xC1, 0x74, 0xBC, 0xA9, 0xD6, 0x94, 0x8F, 0x2B, 0x30, 0x1A,
|
||||
0xFB, 0xED, 0xDF, 0x21, 0x05, 0x23, 0xD9, 0x4A, 0x39, 0xBD,
|
||||
0x98, 0x6B, 0x65, 0x9A, 0xB8, 0x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 0x81, 0x02, 0x81, 0x81, 0x00, 0xF2, 0x2C,
|
||||
0x54, 0x76, 0x39, 0x23, 0x63, 0xC9, 0x10, 0x32, 0xB7, 0x93,
|
||||
0xAD, 0xAF, 0xBE, 0x19, 0x75, 0x96, 0x81, 0x64, 0xE6, 0xB5,
|
||||
0xB8, 0x89, 0x42, 0x41, 0xD1, 0x6D, 0xD0, 0x1C, 0x1B, 0xF8,
|
||||
0x1B, 0xAC, 0x69, 0xCB, 0x36, 0x3C, 0x64, 0x7D, 0xDC, 0xF4,
|
||||
0x19, 0xB8, 0xC3, 0x60, 0xB1, 0x57, 0x48, 0x5F, 0x52, 0x4F,
|
||||
0x59, 0x3A, 0x55, 0x7F, 0x32, 0xC0, 0x19, 0x43, 0x50, 0x3F,
|
||||
0xAE, 0xCE, 0x6F, 0x17, 0xF3, 0x0E, 0x9F, 0x40, 0xCA, 0x4E,
|
||||
0xAD, 0x15, 0x3B, 0xC9, 0x79, 0xE9, 0xC0, 0x59, 0x38, 0x73,
|
||||
0x70, 0x9C, 0x0A, 0x7C, 0xC9, 0x3A, 0x48, 0x32, 0xA7, 0xD8,
|
||||
0x49, 0x75, 0x0A, 0x85, 0xC2, 0xC2, 0xFD, 0x15, 0x73, 0xDA,
|
||||
0x99, 0x09, 0x2A, 0x69, 0x9A, 0x9F, 0x0A, 0x71, 0xBF, 0xB0,
|
||||
0x04, 0xA6, 0x8C, 0x7A, 0x5A, 0x6F, 0x48, 0x5A, 0x54, 0x3B,
|
||||
0xC6, 0xB1, 0x53, 0x17, 0xDF, 0xE7, 0x02, 0x81, 0x81, 0x00,
|
||||
0xCB, 0x93, 0xDE, 0x77, 0x15, 0x5D, 0xB7, 0x5C, 0x5C, 0x7C,
|
||||
0xD8, 0x90, 0xA9, 0x98, 0x2D, 0xD6, 0x69, 0x0E, 0x63, 0xB3,
|
||||
0xA3, 0xDC, 0xA6, 0xCC, 0x8B, 0x6A, 0xA4, 0xA2, 0x12, 0x8C,
|
||||
0x8E, 0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x7D, 0xD4,
|
||||
0x5F, 0x4A, 0x51, 0x5C, 0xA4, 0x45, 0x06, 0x70, 0x44, 0xA7,
|
||||
0x56, 0xC0, 0xD4, 0x22, 0x14, 0x76, 0x9E, 0xD8, 0x63, 0x50,
|
||||
0x89, 0x90, 0xD3, 0xE2, 0xBF, 0x81, 0x95, 0x92, 0x31, 0x41,
|
||||
0x87, 0x39, 0x1A, 0x43, 0x0B, 0x18, 0xA5, 0x53, 0x1F, 0x39,
|
||||
0x1A, 0x5F, 0x1F, 0x43, 0xBC, 0x87, 0x6A, 0xDF, 0x6E, 0xD3,
|
||||
0x22, 0x00, 0xFE, 0x22, 0x98, 0x70, 0x4E, 0x1A, 0x19, 0x29,
|
||||
0x02, 0x81, 0x81, 0x00, 0x8A, 0x41, 0x56, 0x28, 0x51, 0x9E,
|
||||
0x5F, 0xD4, 0x9E, 0x0B, 0x3B, 0x98, 0xA3, 0x54, 0xF2, 0x6C,
|
||||
0x56, 0xD4, 0xAA, 0xE9, 0x69, 0x33, 0x85, 0x24, 0x0C, 0xDA,
|
||||
0xD4, 0x0C, 0x2D, 0xC4, 0xBF, 0x4F, 0x02, 0x69, 0x38, 0x7C,
|
||||
0xD4, 0xE6, 0xDC, 0x4C, 0xED, 0xD7, 0x16, 0x11, 0xC3, 0x3E,
|
||||
0x00, 0xE7, 0xC3, 0x26, 0xC0, 0x51, 0x02, 0xDE, 0xBB, 0x75,
|
||||
0x9C, 0x6F, 0x56, 0x9C, 0x7A, 0xF3, 0x8E, 0xEF, 0xCF, 0x8A,
|
||||
0xC5, 0x2B, 0xD2, 0xDA, 0x06, 0x6A, 0x44, 0xC9, 0x73, 0xFE,
|
||||
0x6E, 0x99, 0x87, 0xF8, 0x5B, 0xBE, 0xF1, 0x7C, 0xE6, 0x65,
|
||||
0xB5, 0x4F, 0x6C, 0xF0, 0xC9, 0xC5, 0xFF, 0x16, 0xCA, 0x8B,
|
||||
0x1B, 0x17, 0xE2, 0x58, 0x3D, 0xA2, 0x37, 0xAB, 0x01, 0xBC,
|
||||
0xBF, 0x40, 0xCE, 0x53, 0x8C, 0x8E, 0xED, 0xEF, 0xEE, 0x59,
|
||||
0x9D, 0xE0, 0x63, 0xE6, 0x7C, 0x5E, 0xF5, 0x8E, 0x4B, 0xF1,
|
||||
0x3B, 0xC1, 0x02, 0x81, 0x80, 0x4D, 0x45, 0xF9, 0x40, 0x8C,
|
||||
0xC5, 0x5B, 0xF4, 0x2A, 0x1A, 0x8A, 0xB4, 0xF2, 0x1C, 0xAC,
|
||||
0x6B, 0xE9, 0x0C, 0x56, 0x36, 0xB7, 0x4E, 0x72, 0x96, 0xD5,
|
||||
0xE5, 0x8A, 0xD2, 0xE2, 0xFF, 0xF1, 0xF1, 0x18, 0x13, 0x3D,
|
||||
0x86, 0x09, 0xB8, 0xD8, 0x76, 0xA7, 0xC9, 0x1C, 0x71, 0x52,
|
||||
0x94, 0x30, 0x43, 0xE0, 0xF1, 0x78, 0x74, 0xFD, 0x61, 0x1B,
|
||||
0x4C, 0x09, 0xCC, 0xE6, 0x68, 0x2A, 0x71, 0xAD, 0x1C, 0xDF,
|
||||
0x43, 0xBC, 0x56, 0xDB, 0xA5, 0xA4, 0xBE, 0x35, 0x70, 0xA4,
|
||||
0x5E, 0xCF, 0x4F, 0xFC, 0x00, 0x55, 0x99, 0x3A, 0x3D, 0x23,
|
||||
0xCF, 0x67, 0x5A, 0xF5, 0x22, 0xF8, 0xB5, 0x29, 0xD0, 0x44,
|
||||
0x11, 0xEB, 0x35, 0x2E, 0x46, 0xBE, 0xFD, 0x8E, 0x18, 0xB2,
|
||||
0x5F, 0xA8, 0xBF, 0x19, 0x32, 0xA1, 0xF5, 0xDC, 0x03, 0xE6,
|
||||
0x7C, 0x9A, 0x1F, 0x0C, 0x7C, 0xA9, 0xB0, 0x0E, 0x21, 0x37,
|
||||
0x3B, 0xF1, 0xB0
|
||||
};
|
||||
const int sizeof_server_key_der_2048 = sizeof(server_key_der_2048);
|
||||
|
||||
/* ./certs/server-cert.der, 2048-bit */
|
||||
const unsigned char server_cert_der_2048[] =
|
||||
{
|
||||
0x30, 0x82, 0x03, 0x90, 0x30, 0x82, 0x02, 0x78, 0x02, 0x01,
|
||||
0x02, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||
0x0D, 0x01, 0x01, 0x05, 0x05, 0x00, 0x30, 0x81, 0x90, 0x31,
|
||||
0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02,
|
||||
0x55, 0x53, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 0x04,
|
||||
0x08, 0x13, 0x07, 0x4D, 0x6F, 0x6E, 0x74, 0x61, 0x6E, 0x61,
|
||||
0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13,
|
||||
0x07, 0x42, 0x6F, 0x7A, 0x65, 0x6D, 0x61, 0x6E, 0x31, 0x11,
|
||||
0x30, 0x0F, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13, 0x08, 0x53,
|
||||
0x61, 0x77, 0x74, 0x6F, 0x6F, 0x74, 0x68, 0x31, 0x13, 0x30,
|
||||
0x11, 0x06, 0x03, 0x55, 0x04, 0x0B, 0x13, 0x0A, 0x43, 0x6F,
|
||||
0x6E, 0x73, 0x75, 0x6C, 0x74, 0x69, 0x6E, 0x67, 0x31, 0x16,
|
||||
0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x0D, 0x77,
|
||||
0x77, 0x77, 0x2E, 0x79, 0x61, 0x73, 0x73, 0x6C, 0x2E, 0x63,
|
||||
0x6F, 0x6D, 0x31, 0x1D, 0x30, 0x1B, 0x06, 0x09, 0x2A, 0x86,
|
||||
0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01, 0x16, 0x0E, 0x69,
|
||||
0x6E, 0x66, 0x6F, 0x40, 0x79, 0x61, 0x73, 0x73, 0x6C, 0x2E,
|
||||
0x63, 0x6F, 0x6D, 0x30, 0x1E, 0x17, 0x0D, 0x31, 0x31, 0x31,
|
||||
0x30, 0x32, 0x34, 0x31, 0x38, 0x32, 0x37, 0x31, 0x33, 0x5A,
|
||||
0x17, 0x0D, 0x31, 0x34, 0x30, 0x37, 0x32, 0x30, 0x31, 0x38,
|
||||
0x32, 0x37, 0x31, 0x33, 0x5A, 0x30, 0x81, 0x8A, 0x31, 0x0B,
|
||||
0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x55,
|
||||
0x53, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 0x04, 0x08,
|
||||
0x13, 0x07, 0x4D, 0x6F, 0x6E, 0x74, 0x61, 0x6E, 0x61, 0x31,
|
||||
0x10, 0x30, 0x0E, 0x06, 0x03, 0x55, 0x04, 0x07, 0x13, 0x07,
|
||||
0x42, 0x6F, 0x7A, 0x65, 0x6D, 0x61, 0x6E, 0x31, 0x0E, 0x30,
|
||||
0x0C, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13, 0x05, 0x79, 0x61,
|
||||
0x53, 0x53, 0x4C, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55,
|
||||
0x04, 0x0B, 0x13, 0x07, 0x53, 0x75, 0x70, 0x70, 0x6F, 0x72,
|
||||
0x74, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x03,
|
||||
0x13, 0x0D, 0x77, 0x77, 0x77, 0x2E, 0x79, 0x61, 0x73, 0x73,
|
||||
0x6C, 0x2E, 0x63, 0x6F, 0x6D, 0x31, 0x1D, 0x30, 0x1B, 0x06,
|
||||
0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01,
|
||||
0x16, 0x0E, 0x69, 0x6E, 0x66, 0x6F, 0x40, 0x79, 0x61, 0x73,
|
||||
0x73, 0x6C, 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, 0xC0,
|
||||
0x95, 0x08, 0xE1, 0x57, 0x41, 0xF2, 0x71, 0x6D, 0xB7, 0xD2,
|
||||
0x45, 0x41, 0x27, 0x01, 0x65, 0xC6, 0x45, 0xAE, 0xF2, 0xBC,
|
||||
0x24, 0x30, 0xB8, 0x95, 0xCE, 0x2F, 0x4E, 0xD6, 0xF6, 0x1C,
|
||||
0x88, 0xBC, 0x7C, 0x9F, 0xFB, 0xA8, 0x67, 0x7F, 0xFE, 0x5C,
|
||||
0x9C, 0x51, 0x75, 0xF7, 0x8A, 0xCA, 0x07, 0xE7, 0x35, 0x2F,
|
||||
0x8F, 0xE1, 0xBD, 0x7B, 0xC0, 0x2F, 0x7C, 0xAB, 0x64, 0xA8,
|
||||
0x17, 0xFC, 0xCA, 0x5D, 0x7B, 0xBA, 0xE0, 0x21, 0xE5, 0x72,
|
||||
0x2E, 0x6F, 0x2E, 0x86, 0xD8, 0x95, 0x73, 0xDA, 0xAC, 0x1B,
|
||||
0x53, 0xB9, 0x5F, 0x3F, 0xD7, 0x19, 0x0D, 0x25, 0x4F, 0xE1,
|
||||
0x63, 0x63, 0x51, 0x8B, 0x0B, 0x64, 0x3F, 0xAD, 0x43, 0xB8,
|
||||
0xA5, 0x1C, 0x5C, 0x34, 0xB3, 0xAE, 0x00, 0xA0, 0x63, 0xC5,
|
||||
0xF6, 0x7F, 0x0B, 0x59, 0x68, 0x78, 0x73, 0xA6, 0x8C, 0x18,
|
||||
0xA9, 0x02, 0x6D, 0xAF, 0xC3, 0x19, 0x01, 0x2E, 0xB8, 0x10,
|
||||
0xE3, 0xC6, 0xCC, 0x40, 0xB4, 0x69, 0xA3, 0x46, 0x33, 0x69,
|
||||
0x87, 0x6E, 0xC4, 0xBB, 0x17, 0xA6, 0xF3, 0xE8, 0xDD, 0xAD,
|
||||
0x73, 0xBC, 0x7B, 0x2F, 0x21, 0xB5, 0xFD, 0x66, 0x51, 0x0C,
|
||||
0xBD, 0x54, 0xB3, 0xE1, 0x6D, 0x5F, 0x1C, 0xBC, 0x23, 0x73,
|
||||
0xD1, 0x09, 0x03, 0x89, 0x14, 0xD2, 0x10, 0xB9, 0x64, 0xC3,
|
||||
0x2A, 0xD0, 0xA1, 0x96, 0x4A, 0xBC, 0xE1, 0xD4, 0x1A, 0x5B,
|
||||
0xC7, 0xA0, 0xC0, 0xC1, 0x63, 0x78, 0x0F, 0x44, 0x37, 0x30,
|
||||
0x32, 0x96, 0x80, 0x32, 0x23, 0x95, 0xA1, 0x77, 0xBA, 0x13,
|
||||
0xD2, 0x97, 0x73, 0xE2, 0x5D, 0x25, 0xC9, 0x6A, 0x0D, 0xC3,
|
||||
0x39, 0x60, 0xA4, 0xB4, 0xB0, 0x69, 0x42, 0x42, 0x09, 0xE9,
|
||||
0xD8, 0x08, 0xBC, 0x33, 0x20, 0xB3, 0x58, 0x22, 0xA7, 0xAA,
|
||||
0xEB, 0xC4, 0xE1, 0xE6, 0x61, 0x83, 0xC5, 0xD2, 0x96, 0xDF,
|
||||
0xD9, 0xD0, 0x4F, 0xAD, 0xD7, 0x02, 0x03, 0x01, 0x00, 0x01,
|
||||
0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D,
|
||||
0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00,
|
||||
0x71, 0x4E, 0xD3, 0x62, 0xDF, 0xCC, 0x4C, 0xF7, 0xCD, 0xB7,
|
||||
0x6E, 0x52, 0x0B, 0x6C, 0x6E, 0xE0, 0xBD, 0xC2, 0x2D, 0x07,
|
||||
0xD7, 0xC0, 0xB0, 0x6E, 0x43, 0x1E, 0x35, 0xBC, 0x30, 0x01,
|
||||
0x50, 0xF0, 0xFF, 0x99, 0x23, 0x6C, 0x18, 0x1A, 0x41, 0xB6,
|
||||
0x11, 0xD6, 0xD4, 0x19, 0x61, 0xFD, 0xE4, 0x77, 0x97, 0x1C,
|
||||
0x39, 0xE1, 0x57, 0xAB, 0xC5, 0x15, 0x63, 0x77, 0x11, 0x36,
|
||||
0x5E, 0x74, 0xE2, 0x24, 0x0B, 0x1F, 0x41, 0x78, 0xAD, 0xB7,
|
||||
0x81, 0xE7, 0xB4, 0x40, 0x66, 0x80, 0xF0, 0x4B, 0x91, 0xA0,
|
||||
0x6D, 0xA8, 0x6E, 0x3D, 0x53, 0xD9, 0x8B, 0xCE, 0x2A, 0xE1,
|
||||
0x0B, 0x45, 0x65, 0x87, 0xA1, 0x96, 0xAE, 0xEE, 0x3E, 0x88,
|
||||
0xD5, 0x12, 0x1F, 0x78, 0x17, 0xAE, 0x2C, 0xC5, 0x73, 0x44,
|
||||
0xD8, 0xDC, 0xF4, 0xAF, 0xD8, 0xCC, 0xAE, 0x4C, 0xE1, 0x0C,
|
||||
0xBE, 0x55, 0xA4, 0x99, 0xF7, 0x6E, 0x96, 0xC0, 0xC8, 0x45,
|
||||
0x87, 0xBF, 0xDC, 0x51, 0x57, 0xFF, 0x9E, 0x73, 0x37, 0x6A,
|
||||
0x18, 0x9C, 0xC3, 0xF9, 0x22, 0x7A, 0xF4, 0xB0, 0x52, 0xBD,
|
||||
0xFC, 0x21, 0x30, 0xF8, 0xC5, 0xFF, 0x1E, 0x87, 0x7D, 0xAD,
|
||||
0xA2, 0x5A, 0x35, 0xF5, 0x22, 0xA8, 0xB4, 0x0A, 0x76, 0x38,
|
||||
0xE6, 0x76, 0xB0, 0x98, 0xAF, 0x1B, 0xEC, 0x8A, 0x0A, 0x43,
|
||||
0x74, 0xD2, 0x85, 0x34, 0x37, 0x84, 0x07, 0xE1, 0xF6, 0x23,
|
||||
0xB2, 0x29, 0xDE, 0xA6, 0xB6, 0xB7, 0x4C, 0x57, 0x7E, 0x96,
|
||||
0x06, 0xCB, 0xA9, 0x16, 0x25, 0x29, 0x3A, 0x03, 0x2D, 0x55,
|
||||
0x7D, 0xA6, 0x8C, 0xA4, 0xF7, 0x9E, 0x81, 0xC9, 0x95, 0xB6,
|
||||
0x7C, 0xC1, 0x4A, 0xCE, 0x94, 0x66, 0x0C, 0xCA, 0x88, 0xEB,
|
||||
0xD2, 0x09, 0xF5, 0x5B, 0x19, 0x58, 0x82, 0xDF, 0x27, 0xFD,
|
||||
0x67, 0x95, 0x78, 0xB7, 0x02, 0x06, 0xD5, 0xA7, 0x61, 0xBD,
|
||||
0xEF, 0x3A, 0xFC, 0xB2, 0x61, 0xCD
|
||||
};
|
||||
const int sizeof_server_cert_der_2048 = sizeof(server_cert_der_2048);
|
||||
|
||||
#endif /* USE_CERT_BUFFERS_1024 */
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# gencertbuf.pl
|
||||
# version 1.0
|
||||
# Updated 01/28/2013
|
||||
# version 1.1
|
||||
# Updated 07/01/2014
|
||||
#
|
||||
# Copyright (C) 2006-2013 wolfSSL
|
||||
# Copyright (C) 2006-2014 wolfSSL Inc.
|
||||
#
|
||||
|
||||
use strict;
|
||||
@ -34,7 +34,10 @@ my @fileList_2048 = (
|
||||
[ "./certs/client-cert.der", "client_cert_der_2048" ],
|
||||
[ "./certs/dh2048.der", "dh_key_der_2048" ],
|
||||
[ "./certs/dsa2048.der", "dsa_key_der_2048" ],
|
||||
[ "./certs/rsa2048.der", "rsa_key_der_2048" ]
|
||||
[ "./certs/rsa2048.der", "rsa_key_der_2048" ],
|
||||
[ "./certs/ca-cert.der", "ca_cert_der_2048" ],
|
||||
[ "./certs/server-key.der", "server_key_der_2048" ],
|
||||
[ "./certs/server-cert.der", "server_cert_der_2048" ]
|
||||
);
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
@ -51,22 +54,32 @@ print OUT_FILE "#define CYASSL_CERTS_TEST_H\n\n";
|
||||
|
||||
# convert and print 1024-bit cert/keys
|
||||
print OUT_FILE "#ifdef USE_CERT_BUFFERS_1024\n\n";
|
||||
for(my $i = 0; $i < $num_1024; $i++) {
|
||||
print OUT_FILE "/* $fileList_1024[$i][0], 1024-bit */\n";
|
||||
print OUT_FILE "const unsigned char $fileList_1024[$i][1]\[] =\n";
|
||||
for (my $i = 0; $i < $num_1024; $i++) {
|
||||
|
||||
my $fname = $fileList_1024[$i][0];
|
||||
my $sname = $fileList_1024[$i][1];
|
||||
|
||||
print OUT_FILE "/* $fname, 1024-bit */\n";
|
||||
print OUT_FILE "const unsigned char $sname\[] =\n";
|
||||
print OUT_FILE "{\n";
|
||||
file_to_hex($fileList_1024[$i][0]);
|
||||
print OUT_FILE "};\n\n";
|
||||
file_to_hex($fname);
|
||||
print OUT_FILE "};\n";
|
||||
print OUT_FILE "const int sizeof_$sname = sizeof($sname);\n\n";
|
||||
}
|
||||
|
||||
# convert and print 2048-bit certs/keys
|
||||
print OUT_FILE "#elif defined(USE_CERT_BUFFERS_2048)\n\n";
|
||||
for(my $i = 0; $i < $num_2048; $i++) {
|
||||
print OUT_FILE "/* $fileList_2048[$i][0], 2048-bit */\n";
|
||||
print OUT_FILE "const unsigned char $fileList_2048[$i][1]\[] =\n";
|
||||
for (my $i = 0; $i < $num_2048; $i++) {
|
||||
|
||||
my $fname = $fileList_2048[$i][0];
|
||||
my $sname = $fileList_2048[$i][1];
|
||||
|
||||
print OUT_FILE "/* $fname, 2048-bit */\n";
|
||||
print OUT_FILE "const unsigned char $sname\[] =\n";
|
||||
print OUT_FILE "{\n";
|
||||
file_to_hex($fileList_2048[$i][0]);
|
||||
print OUT_FILE "};\n\n";
|
||||
file_to_hex($fname);
|
||||
print OUT_FILE "};\n";
|
||||
print OUT_FILE "const int sizeof_$sname = sizeof($sname);\n\n";
|
||||
}
|
||||
|
||||
print OUT_FILE "#endif /* USE_CERT_BUFFERS_1024 */\n\n";
|
||||
@ -108,3 +121,4 @@ sub file_to_hex {
|
||||
|
||||
close($fp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user