Use properly local variables for thread-safety.
[openssl.git] / engines / ccgost / gost_params.c
1 /**********************************************************************
2  *                        params.c                                    *
3  *             Copyright (c) 2005-2006 Cryptocom LTD                  *
4  *         This file is distributed under the same license as OpenSSL *
5  *                                                                    *
6  * Definitions of GOST R 34.10 parameter sets, defined in RFC 4357    *
7  *         OpenSSL 0.9.9 libraries required to compile and use        *
8  *                              this code                             *
9  **********************************************************************/ 
10 #include "gost_params.h"
11 #include <openssl/objects.h>
12 /* Parameters of GOST 34.10 */
13
14 R3410_params R3410_paramset[]={
15 /* Paramset A */
16 {NID_id_GostR3410_94_CryptoPro_A_ParamSet,
17 "100997906755055304772081815535925224869"
18 "8410825720534578748235158755771479905292727772441528526992987964833"
19 "5669968284202797289605274717317548059048560713474685214192868091256"
20 "1502802222185647539190902656116367847270145019066794290930185446216"
21 "3997308722217328898303231940973554032134009725883228768509467406639"
22 "62",
23 "127021248288932417465907042777176443525"
24 "7876535089165358128175072657050312609850984974231883334834011809259"
25 "9999512098893413065920561499672425412104927434935707492031276956145"
26 "1689224110579311248812610229678534638401693520013288995000362260684"
27 "2227508135323070045173416336850045410625869714168836867788425378203"
28 "83",
29 "683631961449557007844441656118272528951"
30 "02170888761442055095051287550314083023"},
31 {NID_id_GostR3410_94_CryptoPro_B_ParamSet,
32 "429418261486158041438734477379555023926"
33 "7234596860714306679811299408947123142002706038521669956384871995765"
34 "7284814898909770759462613437669456364882730370838934791080835932647"
35 "9767786019153434744009610342313166725786869204821949328786333602033"
36 "8479709268434224762105576023501613261478065276102850944540333865234"
37 "1",
38 "139454871199115825601409655107690713107"
39 "0417070599280317977580014543757653577229840941243685222882398330391"
40 "1468164807668823692122073732267216074074777170091113455043205380464"
41 "7694904686120113087816240740184800477047157336662926249423571248823"
42 "9685422217536601433914856808405203368594584948031873412885804895251"
43 "63",
44 "79885141663410976897627118935756323747307951916507639758300472692338873533959"
45 },
46 {NID_id_GostR3410_94_CryptoPro_C_ParamSet,
47 "816552717970881016017893191415300348226"
48 "2544051353358162468249467681876621283478212884286545844013955142622"
49 "2087723485023722868022275009502224827866201744494021697716482008353"
50 "6398202298024892620480898699335508064332313529725332208819456895108"
51 "5155178100221003459370588291073071186553005962149936840737128710832"
52 "3",
53 "110624679233511963040518952417017040248"
54 "5862954819831383774196396298584395948970608956170224210628525560327"
55 "8638246716655439297654402921844747893079518669992827880792192992701"
56 "1428546551433875806377110443534293554066712653034996277099320715774"
57 "3542287621283671843703709141350171945045805050291770503634517804938"
58 "01",
59 "113468861199819350564868233378875198043"
60 "267947776488510997961231672532899549103"
61 },
62 {NID_id_GostR3410_94_CryptoPro_D_ParamSet,
63 "756976611021707301782128757801610628085"
64 "5283803109571158829574281419208532589041660017017859858216341400371"
65 "4687551412794400562878935266630754392677014598582103365983119173924"
66 "4732511225464712252386803315902707727668715343476086350472025298282"
67 "7271461690125050616858238384366331089777463541013033926723743254833"
68 "7",
69 "905457649621929965904290958774625315611"
70 "3056083907389766971404812524422262512556054474620855996091570786713"
71 "5849550236741915584185990627801066465809510095784713989819413820871"
72 "5964648914493053407920737078890520482730623038837767710173664838239"
73 "8574828787891286471201460474326612697849693665518073864436497893214"
74 "9",
75 "108988435796353506912374591498972192620"
76 "190487557619582334771735390599299211593"
77 },
78
79 {NID_id_GostR3410_94_CryptoPro_XchA_ParamSet,
80 "1335318132727206734338595199483190012179423759678474868994823595993"
81 "6964252873471246159040332773182141032801252925387191478859899310331"
82 "0567744136196364803064721377826656898686468463277710150809401182608"
83 "7702016153249904683329312949209127762411378780302243557466062839716"
84 "59376426832674269780880061631528163475887",
85 "14201174159756348119636828602231808974327613839524373876287257344192"
86 "74593935127189736311660784676003608489466235676257952827747192122419"
87 "29071046134208380636394084512691828894000571524625445295769349356752"
88 "72895683154177544176313938445719175509684710784659566254794231229333"
89 "8483924514339614727760681880609734239",
90 "91771529896554605945588149018382750217296858393520724172743325725474"
91 "374979801"
92 },
93 {NID_id_GostR3410_94_CryptoPro_XchB_ParamSet,
94 "8890864727828423151699995801875757891031463338652579140051973659"
95 "3048131440685857067369829407947744496306656291505503608252399443"
96 "7900272386749145996230867832228661977543992816745254823298629859"
97 "8753575466286051738837854736167685769017780335804511440773337196"
98 "2538423532919394477873664752824509986617878992443177",
99 "1028946126624994859676552074360530315217970499989304888248413244"
100 "8474923022758470167998871003604670704877377286176171227694098633"
101 "1539089568784129110109512690503345393869871295783467257264868341"
102 "7200196629860561193666752429682367397084815179752036423595736533"
103 "68957392061769855284593965042530895046088067160269433",
104 "9109671391802626916582318050603555673628769498182593088388796888"
105 "5281641595199"
106 },
107 {NID_id_GostR3410_94_CryptoPro_XchC_ParamSet,
108 "4430618464297584182473135030809859326863990650118941756995270074"
109 "8609973181426950235239623239110557450826919295792878938752101867"
110 "7047181623251027516953100431855964837602657827828194249605561893"
111 "6965865325513137194483136247773653468410118796740709840825496997"
112 "9375560722345106704721086025979309968763193072908334",
113 "1246996366993477513607147265794064436203408861395055989217248455"
114 "7299870737698999651480662364723992859320868822848751165438350943"
115 "3276647222625940615560580450040947211826027729977563540237169063"
116 "0448079715771649447778447000597419032457722226253269698374446528"
117 "35352729304393746106576383349151001715930924115499549",
118 "6787876137336591234380295020065682527118129468050147943114675429"
119 "4748422492761"
120 },
121
122
123 {NID_undef,NULL, NULL, NULL}
124 };
125         
126 R3410_2001_params R3410_2001_paramset[]={
127         /* default_cc_sign01_param 1.2.643.2.9.1.8.1 */
128         {NID_id_GostR3410_2001_ParamSet_cc,
129         /* A */ 
130         "C0000000000000000000000000000000000000000000000000000000000003c4",
131         /* B */
132         "2d06B4265ebc749ff7d0f1f1f88232e81632e9088fd44b7787d5e407e955080c",
133         /* P */
134         "C0000000000000000000000000000000000000000000000000000000000003C7",
135         /* Q */
136         "5fffffffffffffffffffffffffffffff606117a2f4bde428b7458a54b6e87b85",
137         /* X */
138         "2",
139         /* Y */
140         "a20e034bf8813ef5c18d01105e726a17eb248b264ae9706f440bedc8ccb6b22c"
141         },
142         /* 1.2.643.2.2.35.0 */
143         {NID_id_GostR3410_2001_TestParamSet,
144         "7",
145         "5FBFF498AA938CE739B8E022FBAFEF40563F6E6A3472FC2A514C0CE9DAE23B7E",
146         "8000000000000000000000000000000000000000000000000000000000000431",
147         "8000000000000000000000000000000150FE8A1892976154C59CFC193ACCF5B3",
148         "2",
149         "08E2A8A0E65147D4BD6316030E16D19C85C97F0A9CA267122B96ABBCEA7E8FC8"
150         },
151         /*1.2.643.2.2.35.1*/
152         {NID_id_GostR3410_2001_CryptoPro_A_ParamSet,
153         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD94",
154         "a6",
155         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97",
156         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C611070995AD10045841B09B761B893",
157         "1",
158         "8D91E471E0989CDA27DF505A453F2B7635294F2DDF23E3B122ACC99C9E9F1E14"
159         },
160         /*1.2.643.2.2.35.2*/
161         {NID_id_GostR3410_2001_CryptoPro_B_ParamSet,    
162         "8000000000000000000000000000000000000000000000000000000000000C96",
163         "3E1AF419A269A5F866A7D3C25C3DF80AE979259373FF2B182F49D4CE7E1BBC8B",
164         "8000000000000000000000000000000000000000000000000000000000000C99",
165         "800000000000000000000000000000015F700CFFF1A624E5E497161BCC8A198F",
166         "1",    
167         "3FA8124359F96680B83D1C3EB2C070E5C545C9858D03ECFB744BF8D717717EFC"
168         },
169         /*1.2.643.2.2.35.3*/
170         {NID_id_GostR3410_2001_CryptoPro_C_ParamSet,
171         "9B9F605F5A858107AB1EC85E6B41C8AACF846E86789051D37998F7B9022D7598",
172         "805a",
173         "9B9F605F5A858107AB1EC85E6B41C8AACF846E86789051D37998F7B9022D759B",
174         "9B9F605F5A858107AB1EC85E6B41C8AA582CA3511EDDFB74F02F3A6598980BB9",
175         "0",
176         "41ECE55743711A8C3CBF3783CD08C0EE4D4DC440D4641A8F366E550DFDB3BB67"
177         },
178         /*1.2.643.2.2.36.0*/
179         {NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet,
180         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD94",
181         "a6",
182         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97",
183         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6C611070995AD10045841B09B761B893",
184         "1",
185         "8D91E471E0989CDA27DF505A453F2B7635294F2DDF23E3B122ACC99C9E9F1E14"
186         },
187         /*1.2.643.2.2.36.1*/
188         {NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet,
189         "9B9F605F5A858107AB1EC85E6B41C8AACF846E86789051D37998F7B9022D7598",
190         "805a",
191         "9B9F605F5A858107AB1EC85E6B41C8AACF846E86789051D37998F7B9022D759B",
192         "9B9F605F5A858107AB1EC85E6B41C8AA582CA3511EDDFB74F02F3A6598980BB9",
193         "0",
194         "41ECE55743711A8C3CBF3783CD08C0EE4D4DC440D4641A8F366E550DFDB3BB67"
195         },
196         { 0,NULL,NULL,NULL,NULL,NULL,NULL
197         }
198 };