1 * ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is the Elliptic Curve Cryptography library.
15 *
16 * The Initial Developer of the Original Code is
17 * Sun Microsystems, Inc.
18 * Portions created by the Initial Developer are Copyright (C) 2003
19 * the Initial Developer. All Rights Reserved.
20 *
21 * Contributor(s):
22 *   Dr Vipul Gupta <vipul.gupta@sun.com> and
23 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39 * ***** BEGIN LICENSE BLOCK *****
40 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
41 *
42 * The contents of this file are subject to the Mozilla Public License Version
43 * 1.1 (the "License"); you may not use this file except in compliance with
44 * the License. You may obtain a copy of the License at
45 * http://www.mozilla.org/MPL/
46 *
47 * Software distributed under the License is distributed on an "AS IS" basis,
48 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
49 * for the specific language governing rights and limitations under the
50 * License.
51 *
52 * The Original Code is the Elliptic Curve Cryptography library.
53 *
54 * The Initial Developer of the Original Code is
55 * Sun Microsystems, Inc.
56 * Portions created by the Initial Developer are Copyright (C) 2003
57 * the Initial Developer. All Rights Reserved.
58 *
59 * Contributor(s):
60 *   Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
61 *
62 * Alternatively, the contents of this file may be used under the terms of
63 * either the GNU General Public License Version 2 or later (the "GPL"), or
64 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
65 * in which case the provisions of the GPL or the LGPL are applicable instead
66 * of those above. If you wish to allow use of your version of this file only
67 * under the terms of either the GPL or the LGPL, and not to allow others to
68 * use your version of this file under the terms of the MPL, indicate your
69 * decision by deleting the provisions above and replace them with the notice
70 * and other provisions required by the GPL or the LGPL. If you do not delete
71 * the provisions above, a recipient may use your version of this file under
72 * the terms of any one of the MPL, the GPL or the LGPL.
73 *
74 * ***** END LICENSE BLOCK ***** */
75
76 * ***** BEGIN LICENSE BLOCK *****
77 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
78 *
79 * The contents of this file are subject to the Mozilla Public License Version
80 * 1.1 (the "License"); you may not use this file except in compliance with
81 * the License. You may obtain a copy of the License at
82 * http://www.mozilla.org/MPL/
83 *
84 * Software distributed under the License is distributed on an "AS IS" basis,
85 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
86 * for the specific language governing rights and limitations under the
87 * License.
88 *
89 * The Original Code is the elliptic curve math library for binary polynomial field curves.
90 *
91 * The Initial Developer of the Original Code is
92 * Sun Microsystems, Inc.
93 * Portions created by the Initial Developer are Copyright (C) 2003
94 * the Initial Developer. All Rights Reserved.
95 *
96 * Contributor(s):
97 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
98 *
99 * Alternatively, the contents of this file may be used under the terms of
100 * either the GNU General Public License Version 2 or later (the "GPL"), or
101 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
102 * in which case the provisions of the GPL or the LGPL are applicable instead
103 * of those above. If you wish to allow use of your version of this file only
104 * under the terms of either the GPL or the LGPL, and not to allow others to
105 * use your version of this file under the terms of the MPL, indicate your
106 * decision by deleting the provisions above and replace them with the notice
107 * and other provisions required by the GPL or the LGPL. If you do not delete
108 * the provisions above, a recipient may use your version of this file under
109 * the terms of any one of the MPL, the GPL or the LGPL.
110 *
111 * ***** END LICENSE BLOCK ***** */
112
113 * ***** BEGIN LICENSE BLOCK *****
114 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
115 *
116 * The contents of this file are subject to the Mozilla Public License Version
117 * 1.1 (the "License"); you may not use this file except in compliance with
118 * the License. You may obtain a copy of the License at
119 * http://www.mozilla.org/MPL/
120 *
121 * Software distributed under the License is distributed on an "AS IS" basis,
122 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
123 * for the specific language governing rights and limitations under the
124 * License.
125 *
126 * The Original Code is the elliptic curve math library for binary polynomial field curves.
127 *
128 * The Initial Developer of the Original Code is
129 * Sun Microsystems, Inc.
130 * Portions created by the Initial Developer are Copyright (C) 2003
131 * the Initial Developer. All Rights Reserved.
132 *
133 * Contributor(s):
134 *   Sheueling Chang-Shantz <sheueling.chang@sun.com>,
135 *   Stephen Fung <fungstep@hotmail.com>, and
136 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
137 *
138 * Alternatively, the contents of this file may be used under the terms of
139 * either the GNU General Public License Version 2 or later (the "GPL"), or
140 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
141 * in which case the provisions of the GPL or the LGPL are applicable instead
142 * of those above. If you wish to allow use of your version of this file only
143 * under the terms of either the GPL or the LGPL, and not to allow others to
144 * use your version of this file under the terms of the MPL, indicate your
145 * decision by deleting the provisions above and replace them with the notice
146 * and other provisions required by the GPL or the LGPL. If you do not delete
147 * the provisions above, a recipient may use your version of this file under
148 * the terms of any one of the MPL, the GPL or the LGPL.
149 *
150 * ***** END LICENSE BLOCK ***** */
151
152 * ***** BEGIN LICENSE BLOCK *****
153 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
154 *
155 * The contents of this file are subject to the Mozilla Public License Version
156 * 1.1 (the "License"); you may not use this file except in compliance with
157 * the License. You may obtain a copy of the License at
158 * http://www.mozilla.org/MPL/
159 *
160 * Software distributed under the License is distributed on an "AS IS" basis,
161 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
162 * for the specific language governing rights and limitations under the
163 * License.
164 *
165 * The Original Code is the elliptic curve math library.
166 *
167 * The Initial Developer of the Original Code is
168 * Sun Microsystems, Inc.
169 * Portions created by the Initial Developer are Copyright (C) 2003
170 * the Initial Developer. All Rights Reserved.
171 *
172 * Contributor(s):
173 *   Stephen Fung <fungstep@hotmail.com>, Sun Microsystems Laboratories
174 *
175 * Alternatively, the contents of this file may be used under the terms of
176 * either the GNU General Public License Version 2 or later (the "GPL"), or
177 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
178 * in which case the provisions of the GPL or the LGPL are applicable instead
179 * of those above. If you wish to allow use of your version of this file only
180 * under the terms of either the GPL or the LGPL, and not to allow others to
181 * use your version of this file under the terms of the MPL, indicate your
182 * decision by deleting the provisions above and replace them with the notice
183 * and other provisions required by the GPL or the LGPL. If you do not delete
184 * the provisions above, a recipient may use your version of this file under
185 * the terms of any one of the MPL, the GPL or the LGPL.
186 *
187 * ***** END LICENSE BLOCK ***** */
188
189/* ***** BEGIN LICENSE BLOCK *****
190 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
191 *
192 * The contents of this file are subject to the Mozilla Public License Version
193 * 1.1 (the "License"); you may not use this file except in compliance with
194 * the License. You may obtain a copy of the License at
195 * http://www.mozilla.org/MPL/
196 *
197 * Software distributed under the License is distributed on an "AS IS" basis,
198 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
199 * for the specific language governing rights and limitations under the
200 * License.
201 *
202 * The Original Code is the Netscape security libraries.
203 *
204 * The Initial Developer of the Original Code is
205 * Netscape Communications Corporation.
206 * Portions created by the Initial Developer are Copyright (C) 1994-2000
207 * the Initial Developer. All Rights Reserved.
208 *
209 * Contributor(s):
210 *   Dr Vipul Gupta <vipul.gupta@sun.com> and
211 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
212 *
213 * Alternatively, the contents of this file may be used under the terms of
214 * either the GNU General Public License Version 2 or later (the "GPL"), or
215 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
216 * in which case the provisions of the GPL or the LGPL are applicable instead
217 * of those above. If you wish to allow use of your version of this file only
218 * under the terms of either the GPL or the LGPL, and not to allow others to
219 * use your version of this file under the terms of the MPL, indicate your
220 * decision by deleting the provisions above and replace them with the notice
221 * and other provisions required by the GPL or the LGPL. If you do not delete
222 * the provisions above, a recipient may use your version of this file under
223 * the terms of any one of the MPL, the GPL or the LGPL.
224 *
225 * ***** END LICENSE BLOCK ***** */
226
227 * ***** BEGIN LICENSE BLOCK *****
228 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
229 *
230 * The contents of this file are subject to the Mozilla Public License Version
231 * 1.1 (the "License"); you may not use this file except in compliance with
232 * the License. You may obtain a copy of the License at
233 * http://www.mozilla.org/MPL/
234 *
235 * Software distributed under the License is distributed on an "AS IS" basis,
236 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
237 * for the specific language governing rights and limitations under the
238 * License.
239 *
240 * The Original Code is the elliptic curve math library.
241 *
242 * The Initial Developer of the Original Code is
243 * Sun Microsystems, Inc.
244 * Portions created by the Initial Developer are Copyright (C) 2003
245 * the Initial Developer. All Rights Reserved.
246 *
247 * Contributor(s):
248 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
249 *
250 * Alternatively, the contents of this file may be used under the terms of
251 * either the GNU General Public License Version 2 or later (the "GPL"), or
252 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
253 * in which case the provisions of the GPL or the LGPL are applicable instead
254 * of those above. If you wish to allow use of your version of this file only
255 * under the terms of either the GPL or the LGPL, and not to allow others to
256 * use your version of this file under the terms of the MPL, indicate your
257 * decision by deleting the provisions above and replace them with the notice
258 * and other provisions required by the GPL or the LGPL. If you do not delete
259 * the provisions above, a recipient may use your version of this file under
260 * the terms of any one of the MPL, the GPL or the LGPL.
261 *
262 * ***** END LICENSE BLOCK ***** */
263
264 * ***** BEGIN LICENSE BLOCK *****
265 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
266 *
267 * The contents of this file are subject to the Mozilla Public License Version
268 * 1.1 (the "License"); you may not use this file except in compliance with
269 * the License. You may obtain a copy of the License at
270 * http://www.mozilla.org/MPL/
271 *
272 * Software distributed under the License is distributed on an "AS IS" basis,
273 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
274 * for the specific language governing rights and limitations under the
275 * License.
276 *
277 * The Original Code is the elliptic curve math library.
278 *
279 * The Initial Developer of the Original Code is
280 * Sun Microsystems, Inc.
281 * Portions created by the Initial Developer are Copyright (C) 2003
282 * the Initial Developer. All Rights Reserved.
283 *
284 * Contributor(s):
285 *   Stephen Fung <fungstep@hotmail.com> and
286 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
287 *
288 * Alternatively, the contents of this file may be used under the terms of
289 * either the GNU General Public License Version 2 or later (the "GPL"), or
290 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
291 * in which case the provisions of the GPL or the LGPL are applicable instead
292 * of those above. If you wish to allow use of your version of this file only
293 * under the terms of either the GPL or the LGPL, and not to allow others to
294 * use your version of this file under the terms of the MPL, indicate your
295 * decision by deleting the provisions above and replace them with the notice
296 * and other provisions required by the GPL or the LGPL. If you do not delete
297 * the provisions above, a recipient may use your version of this file under
298 * the terms of any one of the MPL, the GPL or the LGPL.
299 *
300 * ***** END LICENSE BLOCK ***** */
301
302 * ***** BEGIN LICENSE BLOCK *****
303 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
304 *
305 * The contents of this file are subject to the Mozilla Public License Version
306 * 1.1 (the "License"); you may not use this file except in compliance with
307 * the License. You may obtain a copy of the License at
308 * http://www.mozilla.org/MPL/
309 *
310 * Software distributed under the License is distributed on an "AS IS" basis,
311 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
312 * for the specific language governing rights and limitations under the
313 * License.
314 *
315 * The Original Code is the elliptic curve math library for prime field curves.
316 *
317 * The Initial Developer of the Original Code is
318 * Sun Microsystems, Inc.
319 * Portions created by the Initial Developer are Copyright (C) 2003
320 * the Initial Developer. All Rights Reserved.
321 *
322 * Contributor(s):
323 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
324 *
325 * Alternatively, the contents of this file may be used under the terms of
326 * either the GNU General Public License Version 2 or later (the "GPL"), or
327 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
328 * in which case the provisions of the GPL or the LGPL are applicable instead
329 * of those above. If you wish to allow use of your version of this file only
330 * under the terms of either the GPL or the LGPL, and not to allow others to
331 * use your version of this file under the terms of the MPL, indicate your
332 * decision by deleting the provisions above and replace them with the notice
333 * and other provisions required by the GPL or the LGPL. If you do not delete
334 * the provisions above, a recipient may use your version of this file under
335 * the terms of any one of the MPL, the GPL or the LGPL.
336 *
337 * ***** END LICENSE BLOCK ***** */
338
339 * ***** BEGIN LICENSE BLOCK *****
340 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
341 *
342 * The contents of this file are subject to the Mozilla Public License Version
343 * 1.1 (the "License"); you may not use this file except in compliance with
344 * the License. You may obtain a copy of the License at
345 * http://www.mozilla.org/MPL/
346 *
347 * Software distributed under the License is distributed on an "AS IS" basis,
348 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
349 * for the specific language governing rights and limitations under the
350 * License.
351 *
352 * The Original Code is the elliptic curve math library for prime field curves.
353 *
354 * The Initial Developer of the Original Code is
355 * Sun Microsystems, Inc.
356 * Portions created by the Initial Developer are Copyright (C) 2003
357 * the Initial Developer. All Rights Reserved.
358 *
359 * Contributor(s):
360 *   Sheueling Chang-Shantz <sheueling.chang@sun.com>,
361 *   Stephen Fung <fungstep@hotmail.com>, and
362 *   Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
363 *   Bodo Moeller <moeller@cdc.informatik.tu-darmstadt.de>,
364 *   Nils Larsch <nla@trustcenter.de>, and
365 *   Lenka Fibikova <fibikova@exp-math.uni-essen.de>, the OpenSSL Project
366 *
367 * Alternatively, the contents of this file may be used under the terms of
368 * either the GNU General Public License Version 2 or later (the "GPL"), or
369 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
370 * in which case the provisions of the GPL or the LGPL are applicable instead
371 * of those above. If you wish to allow use of your version of this file only
372 * under the terms of either the GPL or the LGPL, and not to allow others to
373 * use your version of this file under the terms of the MPL, indicate your
374 * decision by deleting the provisions above and replace them with the notice
375 * and other provisions required by the GPL or the LGPL. If you do not delete
376 * the provisions above, a recipient may use your version of this file under
377 * the terms of any one of the MPL, the GPL or the LGPL.
378 *
379 * ***** END LICENSE BLOCK ***** */
380
381 * ***** BEGIN LICENSE BLOCK *****
382 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
383 *
384 * The contents of this file are subject to the Mozilla Public License Version
385 * 1.1 (the "License"); you may not use this file except in compliance with
386 * the License. You may obtain a copy of the License at
387 * http://www.mozilla.org/MPL/
388 *
389 * Software distributed under the License is distributed on an "AS IS" basis,
390 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
391 * for the specific language governing rights and limitations under the
392 * License.
393 *
394 * The Original Code is the elliptic curve math library for prime field curves.
395 *
396 * The Initial Developer of the Original Code is
397 * Sun Microsystems, Inc.
398 * Portions created by the Initial Developer are Copyright (C) 2003
399 * the Initial Developer. All Rights Reserved.
400 *
401 * Contributor(s):
402 *   Stephen Fung <fungstep@hotmail.com>, Sun Microsystems Laboratories
403 *
404 * Alternatively, the contents of this file may be used under the terms of
405 * either the GNU General Public License Version 2 or later (the "GPL"), or
406 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
407 * in which case the provisions of the GPL or the LGPL are applicable instead
408 * of those above. If you wish to allow use of your version of this file only
409 * under the terms of either the GPL or the LGPL, and not to allow others to
410 * use your version of this file under the terms of the MPL, indicate your
411 * decision by deleting the provisions above and replace them with the notice
412 * and other provisions required by the GPL or the LGPL. If you do not delete
413 * the provisions above, a recipient may use your version of this file under
414 * the terms of any one of the MPL, the GPL or the LGPL.
415 *
416 * ***** END LICENSE BLOCK ***** */
417
418/* ***** BEGIN LICENSE BLOCK *****
419 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
420 *
421 * The contents of this file are subject to the Mozilla Public License Version
422 * 1.1 (the "License"); you may not use this file except in compliance with
423 * the License. You may obtain a copy of the License at
424 * http://www.mozilla.org/MPL/
425 *
426 * Software distributed under the License is distributed on an "AS IS" basis,
427 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
428 * for the specific language governing rights and limitations under the
429 * License.
430 *
431 * The Original Code is the Netscape security libraries.
432 *
433 * The Initial Developer of the Original Code is
434 * Netscape Communications Corporation.
435 * Portions created by the Initial Developer are Copyright (C) 1994-2000
436 * the Initial Developer. All Rights Reserved.
437 *
438 * Contributor(s):
439 *   Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
440 *
441 * Alternatively, the contents of this file may be used under the terms of
442 * either the GNU General Public License Version 2 or later (the "GPL"), or
443 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
444 * in which case the provisions of the GPL or the LGPL are applicable instead
445 * of those above. If you wish to allow use of your version of this file only
446 * under the terms of either the GPL or the LGPL, and not to allow others to
447 * use your version of this file under the terms of the MPL, indicate your
448 * decision by deleting the provisions above and replace them with the notice
449 * and other provisions required by the GPL or the LGPL. If you do not delete
450 * the provisions above, a recipient may use your version of this file under
451 * the terms of any one of the MPL, the GPL or the LGPL.
452 *
453 * ***** END LICENSE BLOCK ***** */
454
455/* ***** BEGIN LICENSE BLOCK *****
456 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
457 *
458 * The contents of this file are subject to the Mozilla Public License Version
459 * 1.1 (the "License"); you may not use this file except in compliance with
460 * the License. You may obtain a copy of the License at
461 * http://www.mozilla.org/MPL/
462 *
463 * Software distributed under the License is distributed on an "AS IS" basis,
464 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
465 * for the specific language governing rights and limitations under the
466 * License.
467 *
468 * The Original Code is the Netscape security libraries.
469 *
470 * The Initial Developer of the Original Code is
471 * Netscape Communications Corporation.
472 * Portions created by the Initial Developer are Copyright (C) 1994-2000
473 * the Initial Developer. All Rights Reserved.
474 *
475 * Contributor(s):
476 *
477 * Alternatively, the contents of this file may be used under the terms of
478 * either the GNU General Public License Version 2 or later (the "GPL"), or
479 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
480 * in which case the provisions of the GPL or the LGPL are applicable instead
481 * of those above. If you wish to allow use of your version of this file only
482 * under the terms of either the GPL or the LGPL, and not to allow others to
483 * use your version of this file under the terms of the MPL, indicate your
484 * decision by deleting the provisions above and replace them with the notice
485 * and other provisions required by the GPL or the LGPL. If you do not delete
486 * the provisions above, a recipient may use your version of this file under
487 * the terms of any one of the MPL, the GPL or the LGPL.
488 *
489 * ***** END LICENSE BLOCK ***** */
490
491/*
492 * Sun elects to use this software under the MPL license.
493 */
494/*
495 * Source location:
496 * The source for this code is available at opensolaris.org under the
497 * terms of the Mozilla Public License Version 1.1.  Contact
498 * on-discuss@opensolaris.org for details.
499 */
500