-
Notifications
You must be signed in to change notification settings - Fork 0
/
key.c
28 lines (26 loc) · 4.52 KB
/
key.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stddef.h>
#include "encrypt.h"
const unsigned char key_n[] = {0xc3, 0x40, 0x80, 0x7f, 0x8b, 0x10, 0x2a, 0xdb, 0xf9, 0x09, 0x22, 0x08, 0x12, 0x45, 0xcc, 0x86, 0x0b, 0xb8, 0xfb, 0xa8, 0x6b, 0xde, 0x53, 0x33, 0x15, 0x3f, 0x24, 0xc7, 0xc4, 0x35, 0x5b, 0xf6, 0xbd, 0x98, 0x72, 0x9d, 0x7d, 0xc2, 0x26, 0x5d, 0xd7, 0x5d, 0x0d, 0xa9, 0xaa, 0x0f, 0x45, 0xd8, 0x14, 0x6a, 0x85, 0x44, 0xa2, 0xf1, 0xed, 0x91, 0x8a, 0x17, 0x41, 0x11, 0xf8, 0x2c, 0xd5, 0x2d, 0x65, 0xc6, 0x17, 0x46, 0x2e, 0xf5, 0xe3, 0x3c, 0xe5, 0x56, 0x1b, 0xc7, 0x66, 0x8e, 0x08, 0xf7, 0x6a, 0x27, 0xe2, 0xb2, 0xe0, 0x36, 0x01, 0x6c, 0xd6, 0x24, 0x40, 0xc1, 0x92, 0xe1, 0x59, 0x4d, 0xd1, 0x9d, 0xde, 0x72, 0xa6, 0xdb, 0x1d, 0xba, 0x09, 0x7e, 0xc4, 0xf4, 0xe2, 0xae, 0xe9, 0xe2, 0xb0, 0xe5, 0x72, 0x7c, 0x2d, 0xc2, 0xaf, 0x62, 0x7a, 0xda, 0xe4, 0x38, 0xe5, 0x3e, 0x2b, 0x17};
const size_t key_n_size = sizeof(key_n);
const unsigned char key_e[] = {0x01, 0x00, 0x01};
const size_t key_e_size = sizeof(key_e);
const unsigned char key_d[] = {0x33, 0x7a, 0x8b, 0x26, 0x95, 0x84, 0xa2, 0xb8, 0x32, 0x95, 0xbc, 0xda, 0x41, 0xef, 0x13, 0x38, 0x78, 0x58, 0xc2, 0x49, 0x2a, 0x7f, 0x88, 0x92, 0x1c, 0x54, 0xf4, 0x9e, 0x92, 0xd5, 0xba, 0xb4, 0x78, 0x52, 0x7c, 0x4d, 0x97, 0xbd, 0x9b, 0x9d, 0xfc, 0x4d, 0x35, 0x6f, 0xf9, 0x3d, 0x63, 0x9d, 0xcf, 0xec, 0x31, 0xcc, 0xe1, 0xe5, 0x45, 0x4c, 0xad, 0x0a, 0xea, 0x86, 0x11, 0x57, 0xc8, 0xb0, 0x64, 0x91, 0xbe, 0x91, 0x34, 0x71, 0x2f, 0xd4, 0xb0, 0x4d, 0xb4, 0x06, 0x89, 0x49, 0x45, 0x05, 0x16, 0x4f, 0x71, 0xe3, 0x0b, 0x4d, 0x79, 0xec, 0x8c, 0x64, 0x65, 0xf8, 0xe1, 0x15, 0x79, 0xdb, 0x51, 0x09, 0x11, 0x31, 0x4a, 0xb4, 0xc5, 0x16, 0x5f, 0x1d, 0x2d, 0x13, 0xce, 0xe6, 0xc6, 0xf1, 0x5b, 0xe7, 0x4e, 0x8a, 0x48, 0xff, 0x64, 0xdb, 0xaa, 0x34, 0xf9, 0x13, 0x67, 0x89, 0x5c, 0x31};
const size_t key_d_size = sizeof(key_d);
const unsigned char key_p[] = {0xe1, 0xf5, 0xe3, 0x50, 0x8e, 0xd6, 0x3d, 0x39, 0x88, 0x92, 0xe0, 0x9f, 0xf4, 0xca, 0xa5, 0x42, 0x19, 0x8b, 0x9a, 0x6b, 0x87, 0x1d, 0x3a, 0x14, 0xbb, 0x30, 0xd5, 0x6f, 0xce, 0x0d, 0xd1, 0xe6, 0x23, 0x6c, 0x56, 0x44, 0xb3, 0x01, 0x18, 0xdc, 0x29, 0x39, 0xec, 0x6f, 0xda, 0xf5, 0x30, 0xb1, 0xa5, 0x4f, 0x05, 0x85, 0x21, 0x3c, 0x98, 0x89, 0xb8, 0x9e, 0x37, 0x4c, 0x64, 0xa2, 0x87, 0xef};
const size_t key_p_size = sizeof(key_p);
const unsigned char key_q[] = {0xdd, 0x35, 0x82, 0xb0, 0xd2, 0x44, 0xd4, 0xef, 0xab, 0x9b, 0x17, 0x2d, 0x96, 0x99, 0x0e, 0x7b, 0xb4, 0xe7, 0x9a, 0x2f, 0xf3, 0x87, 0x13, 0xf8, 0x6f, 0x90, 0x5e, 0xfd, 0x18, 0xb1, 0x4a, 0x71, 0x0b, 0xa8, 0xed, 0x96, 0x63, 0xc4, 0xb0, 0x00, 0x1c, 0xb1, 0xa6, 0x34, 0xb3, 0x2d, 0xb7, 0xb5, 0x3f, 0x6e, 0xbe, 0x21, 0x9f, 0x06, 0xa1, 0xd4, 0xe7, 0xdb, 0xff, 0xc0, 0xae, 0xf0, 0xa7, 0x59};
const size_t key_q_size = sizeof(key_q);
const unsigned char key_dmp1[] = {0x79, 0xad, 0x6a, 0x52, 0x28, 0x08, 0xb0, 0x01, 0x7a, 0x4c, 0xf5, 0x8e, 0xcd, 0x48, 0x0e, 0x83, 0xb0, 0xb3, 0xdf, 0x5c, 0xc5, 0xee, 0x74, 0x27, 0x53, 0xc1, 0xf1, 0x3d, 0x7a, 0xad, 0x30, 0x79, 0x88, 0x5b, 0xbf, 0x7c, 0xd1, 0x13, 0xe7, 0x2a, 0x2f, 0x3d, 0x14, 0xd8, 0x0b, 0x05, 0x7b, 0xca, 0x3d, 0xa5, 0x76, 0xe8, 0x80, 0xc4, 0x5b, 0xb3, 0xd5, 0xe9, 0xc5, 0x07, 0x6b, 0x2d, 0xa6, 0x9b};
const size_t key_dmp1_size = sizeof(key_dmp1);
const unsigned char key_dmq1[] = {0x8f, 0x88, 0x55, 0x10, 0x9e, 0x9f, 0x02, 0xfb, 0xb0, 0x81, 0xa5, 0x7c, 0x73, 0x27, 0x44, 0xfa, 0x87, 0xdb, 0x6f, 0x74, 0x85, 0xb3, 0xb4, 0x05, 0x93, 0x7e, 0x3d, 0xe4, 0x43, 0xcd, 0x65, 0xdc, 0x0c, 0x10, 0xc4, 0x78, 0xbc, 0xab, 0xb6, 0xf7, 0x9b, 0xa6, 0xb9, 0x8d, 0xa0, 0x65, 0x9d, 0xba, 0x01, 0x3a, 0xbe, 0x2b, 0xda, 0x9f, 0xd7, 0x09, 0xea, 0x98, 0x19, 0x4e, 0xd1, 0x34, 0x5d, 0xa1};
const size_t key_dmq1_size = sizeof(key_dmq1);
const unsigned char key_iqmp[] = {0xd2, 0x07, 0x86, 0x5f, 0xe1, 0xdd, 0xde, 0xa7, 0x53, 0x33, 0x40, 0xea, 0x17, 0xf0, 0xba, 0x98, 0x73, 0x9a, 0x9d, 0x85, 0x93, 0xa6, 0xe1, 0xa8, 0x7a, 0xc1, 0xe6, 0x30, 0x7a, 0x1c, 0x41, 0x87, 0x78, 0x39, 0x70, 0x2a, 0x6d, 0xbc, 0xb7, 0x0c, 0x1c, 0x18, 0x2b, 0x94, 0xd8, 0xa8, 0xff, 0x36, 0xc5, 0xf5, 0x8b, 0x18, 0x11, 0xd4, 0x5c, 0x7d, 0xc5, 0x22, 0xa6, 0x84, 0xbd, 0x89, 0x0f, 0x48};
const size_t key_iqmp_size = sizeof(key_iqmp);
const bignum e = {(halfword *)key_e, sizeof(key_e), 0, 0};
const bignum d = {(halfword *)key_d, sizeof(key_d), 0, 0};
const bignum n = {(halfword *)key_n, sizeof(key_n), 0, 0};
const bignum p = {(halfword *)key_p, sizeof(key_p), 0, 0};
const bignum q = {(halfword *)key_q, sizeof(key_q), 0, 0};
const bignum dmp1 = {(halfword *)key_dmp1, sizeof(key_dmp1), 0, 0};
const bignum dmq1 = {(halfword *)key_dmq1, sizeof(key_dmq1), 0, 0};
const bignum iqmp = {(halfword *)key_iqmp, sizeof(key_iqmp), 0, 0};