1 #ifndef SRC_TEST_KEYS_H 2 #define SRC_TEST_KEYS_H 3 4 #include <stddef.h> 5 #include <stdint.h> 6 7 namespace test_data { 8 9 extern const uint8_t RSA_3_512_D[512 >> 3]; 10 extern const uint8_t RSA_3_512_N[512 >> 3]; 11 extern const uint8_t RSA_512_D[512 >> 3]; 12 extern const uint8_t RSA_512_N[512 >> 3]; 13 extern const uint8_t RSA_768_D[768 >> 3]; 14 extern const uint8_t RSA_768_N[768 >> 3]; 15 extern const uint8_t RSA_1024_D[1024 >> 3]; 16 extern const uint8_t RSA_1024_N[1024 >> 3]; 17 extern const uint8_t RSA_2048_D[2048 >> 3]; 18 extern const uint8_t RSA_2048_N[2048 >> 3]; 19 extern const uint8_t RSA_3072_D[3072 >> 3]; 20 extern const uint8_t RSA_3072_N[3072 >> 3]; 21 extern const uint8_t RSA_4096_D[4096 >> 3]; 22 extern const uint8_t RSA_4096_N[4096 >> 3]; 23 24 const struct { 25 const uint32_t e; 26 const uint8_t *d; 27 const uint8_t *n; 28 const size_t size; 29 } TEST_RSA_KEYS[] = { 30 {65537, RSA_1024_D, RSA_1024_N, sizeof(RSA_1024_N)}, 31 {65537, RSA_2048_D, RSA_2048_N, sizeof(RSA_2048_N)}, 32 }; 33 34 35 36 } // namespace test_data 37 38 #endif // SRC_TEST_KEYS_H 39