1 #ifndef __MBED_RSA_KEY_H__ 2 #define __MBED_RSA_KEY_H__ 3 4 #include <stdio.h> 5 #include <stdint.h> 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 #define RSA_TEST_KEY_NUM 2000 11 typedef struct { 12 uint32_t n_len; 13 uint8_t n[512]; 14 uint32_t e_len; 15 uint8_t e[4]; 16 uint32_t d_len; 17 uint8_t d[512]; 18 }mbed_rsa_key_t; 19 20 extern 21 const mbed_rsa_key_t rsa_key_512[RSA_TEST_KEY_NUM]; 22 extern 23 const mbed_rsa_key_t rsa_key_1024[RSA_TEST_KEY_NUM]; 24 extern 25 const mbed_rsa_key_t rsa_key_2048[RSA_TEST_KEY_NUM]; 26 extern 27 const mbed_rsa_key_t rsa_key_3072[RSA_TEST_KEY_NUM]; 28 extern 29 const mbed_rsa_key_t rsa_key_4096[RSA_TEST_KEY_NUM]; 30 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif 37 38