Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
db911b4d
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
db911b4d
编写于
5月 30, 2011
作者:
V
vinnie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7049173: Replace the software license for ECC native code
Reviewed-by: alanb
上级
5c93a4be
变更
44
隐藏空白更改
内联
并排
Showing
44 changed file
with
894 addition
and
1741 deletion
+894
-1741
src/share/native/sun/security/ec/impl/ec.c
src/share/native/sun/security/ec/impl/ec.c
+20
-39
src/share/native/sun/security/ec/impl/ec.h
src/share/native/sun/security/ec/impl/ec.h
+20
-39
src/share/native/sun/security/ec/impl/ec2.h
src/share/native/sun/security/ec/impl/ec2.h
+20
-39
src/share/native/sun/security/ec/impl/ec2_163.c
src/share/native/sun/security/ec/impl/ec2_163.c
+20
-39
src/share/native/sun/security/ec/impl/ec2_193.c
src/share/native/sun/security/ec/impl/ec2_193.c
+20
-39
src/share/native/sun/security/ec/impl/ec2_233.c
src/share/native/sun/security/ec/impl/ec2_233.c
+20
-39
src/share/native/sun/security/ec/impl/ec2_aff.c
src/share/native/sun/security/ec/impl/ec2_aff.c
+20
-39
src/share/native/sun/security/ec/impl/ec2_mont.c
src/share/native/sun/security/ec/impl/ec2_mont.c
+20
-39
src/share/native/sun/security/ec/impl/ec_naf.c
src/share/native/sun/security/ec/impl/ec_naf.c
+20
-39
src/share/native/sun/security/ec/impl/ecc_impl.h
src/share/native/sun/security/ec/impl/ecc_impl.h
+20
-39
src/share/native/sun/security/ec/impl/ecdecode.c
src/share/native/sun/security/ec/impl/ecdecode.c
+20
-39
src/share/native/sun/security/ec/impl/ecl-curve.h
src/share/native/sun/security/ec/impl/ecl-curve.h
+20
-39
src/share/native/sun/security/ec/impl/ecl-exp.h
src/share/native/sun/security/ec/impl/ecl-exp.h
+20
-39
src/share/native/sun/security/ec/impl/ecl-priv.h
src/share/native/sun/security/ec/impl/ecl-priv.h
+20
-39
src/share/native/sun/security/ec/impl/ecl.c
src/share/native/sun/security/ec/impl/ecl.c
+20
-39
src/share/native/sun/security/ec/impl/ecl.h
src/share/native/sun/security/ec/impl/ecl.h
+20
-39
src/share/native/sun/security/ec/impl/ecl_curve.c
src/share/native/sun/security/ec/impl/ecl_curve.c
+20
-39
src/share/native/sun/security/ec/impl/ecl_gf.c
src/share/native/sun/security/ec/impl/ecl_gf.c
+20
-39
src/share/native/sun/security/ec/impl/ecl_mult.c
src/share/native/sun/security/ec/impl/ecl_mult.c
+20
-39
src/share/native/sun/security/ec/impl/ecp.h
src/share/native/sun/security/ec/impl/ecp.h
+20
-39
src/share/native/sun/security/ec/impl/ecp_192.c
src/share/native/sun/security/ec/impl/ecp_192.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_224.c
src/share/native/sun/security/ec/impl/ecp_224.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_256.c
src/share/native/sun/security/ec/impl/ecp_256.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_384.c
src/share/native/sun/security/ec/impl/ecp_384.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_521.c
src/share/native/sun/security/ec/impl/ecp_521.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_aff.c
src/share/native/sun/security/ec/impl/ecp_aff.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_jac.c
src/share/native/sun/security/ec/impl/ecp_jac.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_jm.c
src/share/native/sun/security/ec/impl/ecp_jm.c
+20
-39
src/share/native/sun/security/ec/impl/ecp_mont.c
src/share/native/sun/security/ec/impl/ecp_mont.c
+20
-39
src/share/native/sun/security/ec/impl/logtab.h
src/share/native/sun/security/ec/impl/logtab.h
+20
-39
src/share/native/sun/security/ec/impl/mp_gf2m-priv.h
src/share/native/sun/security/ec/impl/mp_gf2m-priv.h
+20
-39
src/share/native/sun/security/ec/impl/mp_gf2m.c
src/share/native/sun/security/ec/impl/mp_gf2m.c
+20
-39
src/share/native/sun/security/ec/impl/mp_gf2m.h
src/share/native/sun/security/ec/impl/mp_gf2m.h
+20
-39
src/share/native/sun/security/ec/impl/mpi-config.h
src/share/native/sun/security/ec/impl/mpi-config.h
+20
-39
src/share/native/sun/security/ec/impl/mpi-priv.h
src/share/native/sun/security/ec/impl/mpi-priv.h
+26
-44
src/share/native/sun/security/ec/impl/mpi.c
src/share/native/sun/security/ec/impl/mpi.c
+21
-43
src/share/native/sun/security/ec/impl/mpi.h
src/share/native/sun/security/ec/impl/mpi.h
+22
-42
src/share/native/sun/security/ec/impl/mplogic.c
src/share/native/sun/security/ec/impl/mplogic.c
+21
-43
src/share/native/sun/security/ec/impl/mplogic.h
src/share/native/sun/security/ec/impl/mplogic.h
+22
-42
src/share/native/sun/security/ec/impl/mpmontg.c
src/share/native/sun/security/ec/impl/mpmontg.c
+20
-41
src/share/native/sun/security/ec/impl/mpprime.h
src/share/native/sun/security/ec/impl/mpprime.h
+22
-43
src/share/native/sun/security/ec/impl/oid.c
src/share/native/sun/security/ec/impl/oid.c
+20
-39
src/share/native/sun/security/ec/impl/secitem.c
src/share/native/sun/security/ec/impl/secitem.c
+20
-39
src/share/native/sun/security/ec/impl/secoidt.h
src/share/native/sun/security/ec/impl/secoidt.h
+20
-39
未找到文件。
src/share/native/sun/security/ec/impl/ec.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Elliptic Curve Cryptography library.
* The Original Code is the Elliptic Curve Cryptography library.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Dr Vipul Gupta <vipul.gupta@sun.com> and
* Dr Vipul Gupta <vipul.gupta@sun.com> and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "mplogic.h"
#include "mplogic.h"
#include "ec.h"
#include "ec.h"
...
...
src/share/native/sun/security/ec/impl/ec.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Elliptic Curve Cryptography library.
* The Original Code is the Elliptic Curve Cryptography library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef __ec_h_
#ifndef __ec_h_
#define __ec_h_
#define __ec_h_
...
...
src/share/native/sun/security/ec/impl/ec2.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for binary polynomial field curves.
* The Original Code is the elliptic curve math library for binary polynomial field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _EC2_H
#ifndef _EC2_H
#define _EC2_H
#define _EC2_H
...
...
src/share/native/sun/security/ec/impl/ec2_163.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for binary polynomial field curves.
* The Original Code is the elliptic curve math library for binary polynomial field curves.
*
*
...
@@ -38,23 +35,7 @@
...
@@ -38,23 +35,7 @@
* Stephen Fung <fungstep@hotmail.com>, and
* Stephen Fung <fungstep@hotmail.com>, and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ec2.h"
#include "ec2.h"
#include "mp_gf2m.h"
#include "mp_gf2m.h"
...
...
src/share/native/sun/security/ec/impl/ec2_193.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for binary polynomial field curves.
* The Original Code is the elliptic curve math library for binary polynomial field curves.
*
*
...
@@ -38,23 +35,7 @@
...
@@ -38,23 +35,7 @@
* Stephen Fung <fungstep@hotmail.com>, and
* Stephen Fung <fungstep@hotmail.com>, and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ec2.h"
#include "ec2.h"
#include "mp_gf2m.h"
#include "mp_gf2m.h"
...
...
src/share/native/sun/security/ec/impl/ec2_233.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for binary polynomial field curves.
* The Original Code is the elliptic curve math library for binary polynomial field curves.
*
*
...
@@ -38,23 +35,7 @@
...
@@ -38,23 +35,7 @@
* Stephen Fung <fungstep@hotmail.com>, and
* Stephen Fung <fungstep@hotmail.com>, and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ec2.h"
#include "ec2.h"
#include "mp_gf2m.h"
#include "mp_gf2m.h"
...
...
src/share/native/sun/security/ec/impl/ec2_aff.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for binary polynomial field curves.
* The Original Code is the elliptic curve math library for binary polynomial field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ec2.h"
#include "ec2.h"
#include "mplogic.h"
#include "mplogic.h"
...
...
src/share/native/sun/security/ec/impl/ec2_mont.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for binary polynomial field curves.
* The Original Code is the elliptic curve math library for binary polynomial field curves.
*
*
...
@@ -38,23 +35,7 @@
...
@@ -38,23 +35,7 @@
* Stephen Fung <fungstep@hotmail.com>, and
* Stephen Fung <fungstep@hotmail.com>, and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ec2.h"
#include "ec2.h"
#include "mplogic.h"
#include "mplogic.h"
...
...
src/share/native/sun/security/ec/impl/ec_naf.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Stephen Fung <fungstep@hotmail.com>, Sun Microsystems Laboratories
* Stephen Fung <fungstep@hotmail.com>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecl-priv.h"
#include "ecl-priv.h"
...
...
src/share/native/sun/security/ec/impl/ecc_impl.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Netscape security libraries.
* The Original Code is the Netscape security libraries.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Dr Vipul Gupta <vipul.gupta@sun.com> and
* Dr Vipul Gupta <vipul.gupta@sun.com> and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ECC_IMPL_H
#ifndef _ECC_IMPL_H
#define _ECC_IMPL_H
#define _ECC_IMPL_H
...
...
src/share/native/sun/security/ec/impl/ecdecode.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Elliptic Curve Cryptography library.
* The Original Code is the Elliptic Curve Cryptography library.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Dr Vipul Gupta <vipul.gupta@sun.com> and
* Dr Vipul Gupta <vipul.gupta@sun.com> and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/types.h>
#include <sys/types.h>
...
...
src/share/native/sun/security/ec/impl/ecl-curve.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ECL_CURVE_H
#ifndef _ECL_CURVE_H
#define _ECL_CURVE_H
#define _ECL_CURVE_H
...
...
src/share/native/sun/security/ec/impl/ecl-exp.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ECL_EXP_H
#ifndef _ECL_EXP_H
#define _ECL_EXP_H
#define _ECL_EXP_H
...
...
src/share/native/sun/security/ec/impl/ecl-priv.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Stephen Fung <fungstep@hotmail.com> and
* Stephen Fung <fungstep@hotmail.com> and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ECL_PRIV_H
#ifndef _ECL_PRIV_H
#define _ECL_PRIV_H
#define _ECL_PRIV_H
...
...
src/share/native/sun/security/ec/impl/ecl.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "mpi.h"
#include "mpi.h"
#include "mplogic.h"
#include "mplogic.h"
...
...
src/share/native/sun/security/ec/impl/ecl.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ECL_H
#ifndef _ECL_H
#define _ECL_H
#define _ECL_H
...
...
src/share/native/sun/security/ec/impl/ecl_curve.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecl.h"
#include "ecl.h"
#include "ecl-curve.h"
#include "ecl-curve.h"
...
...
src/share/native/sun/security/ec/impl/ecl_gf.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Stephen Fung <fungstep@hotmail.com> and
* Stephen Fung <fungstep@hotmail.com> and
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "mpi.h"
#include "mpi.h"
#include "mp_gf2m.h"
#include "mp_gf2m.h"
...
...
src/share/native/sun/security/ec/impl/ecl_mult.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "mpi.h"
#include "mpi.h"
#include "mplogic.h"
#include "mplogic.h"
...
...
src/share/native/sun/security/ec/impl/ecp.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ECP_H
#ifndef _ECP_H
#define _ECP_H
#define _ECP_H
...
...
src/share/native/sun/security/ec/impl/ecp_192.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "mpi.h"
#include "mpi.h"
...
...
src/share/native/sun/security/ec/impl/ecp_224.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "mpi.h"
#include "mpi.h"
...
...
src/share/native/sun/security/ec/impl/ecp_256.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>
* Douglas Stebila <douglas@stebila.ca>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "mpi.h"
#include "mpi.h"
...
...
src/share/native/sun/security/ec/impl/ecp_384.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>
* Douglas Stebila <douglas@stebila.ca>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "mpi.h"
#include "mpi.h"
...
...
src/share/native/sun/security/ec/impl/ecp_521.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>
* Douglas Stebila <douglas@stebila.ca>
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "mpi.h"
#include "mpi.h"
...
...
src/share/native/sun/security/ec/impl/ecp_aff.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -41,23 +38,7 @@
...
@@ -41,23 +38,7 @@
* Nils Larsch <nla@trustcenter.de>, and
* Nils Larsch <nla@trustcenter.de>, and
* Lenka Fibikova <fibikova@exp-math.uni-essen.de>, the OpenSSL Project
* Lenka Fibikova <fibikova@exp-math.uni-essen.de>, the OpenSSL Project
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "mplogic.h"
#include "mplogic.h"
...
...
src/share/native/sun/security/ec/impl/ecp_jac.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -41,23 +38,7 @@
...
@@ -41,23 +38,7 @@
* Nils Larsch <nla@trustcenter.de>, and
* Nils Larsch <nla@trustcenter.de>, and
* Lenka Fibikova <fibikova@exp-math.uni-essen.de>, the OpenSSL Project
* Lenka Fibikova <fibikova@exp-math.uni-essen.de>, the OpenSSL Project
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "mplogic.h"
#include "mplogic.h"
...
...
src/share/native/sun/security/ec/impl/ecp_jm.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library for prime field curves.
* The Original Code is the elliptic curve math library for prime field curves.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Stephen Fung <fungstep@hotmail.com>, Sun Microsystems Laboratories
* Stephen Fung <fungstep@hotmail.com>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "ecp.h"
#include "ecp.h"
#include "ecl-priv.h"
#include "ecl-priv.h"
...
...
src/share/native/sun/security/ec/impl/ecp_mont.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the elliptic curve math library.
* The Original Code is the elliptic curve math library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
* Douglas Stebila <douglas@stebila.ca>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/* Uses Montgomery reduction for field arithmetic. See mpi/mpmontg.c for
/* Uses Montgomery reduction for field arithmetic. See mpi/mpmontg.c for
* code implementation. */
* code implementation. */
...
...
src/share/native/sun/security/ec/impl/logtab.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Netscape security libraries.
* The Original Code is the Netscape security libraries.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LOGTAB_H
#ifndef _LOGTAB_H
#define _LOGTAB_H
#define _LOGTAB_H
...
...
src/share/native/sun/security/ec/impl/mp_gf2m-priv.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Multi-precision Binary Polynomial Arithmetic Library.
* The Original Code is the Multi-precision Binary Polynomial Arithmetic Library.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Sheueling Chang Shantz <sheueling.chang@sun.com> and
* Sheueling Chang Shantz <sheueling.chang@sun.com> and
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MP_GF2M_PRIV_H_
#ifndef _MP_GF2M_PRIV_H_
#define _MP_GF2M_PRIV_H_
#define _MP_GF2M_PRIV_H_
...
...
src/share/native/sun/security/ec/impl/mp_gf2m.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Multi-precision Binary Polynomial Arithmetic Library.
* The Original Code is the Multi-precision Binary Polynomial Arithmetic Library.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Sheueling Chang Shantz <sheueling.chang@sun.com> and
* Sheueling Chang Shantz <sheueling.chang@sun.com> and
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include "mp_gf2m.h"
#include "mp_gf2m.h"
#include "mp_gf2m-priv.h"
#include "mp_gf2m-priv.h"
...
...
src/share/native/sun/security/ec/impl/mp_gf2m.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Multi-precision Binary Polynomial Arithmetic Library.
* The Original Code is the Multi-precision Binary Polynomial Arithmetic Library.
*
*
...
@@ -37,23 +34,7 @@
...
@@ -37,23 +34,7 @@
* Sheueling Chang Shantz <sheueling.chang@sun.com> and
* Sheueling Chang Shantz <sheueling.chang@sun.com> and
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MP_GF2M_H_
#ifndef _MP_GF2M_H_
#define _MP_GF2M_H_
#define _MP_GF2M_H_
...
...
src/share/native/sun/security/ec/impl/mpi-config.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Netscape Communications Corporation
* Netscape Communications Corporation
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MPI_CONFIG_H
#ifndef _MPI_CONFIG_H
#define _MPI_CONFIG_H
#define _MPI_CONFIG_H
...
...
src/share/native/sun/security/ec/impl/mpi-priv.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Arbitrary precision integer arithmetic library
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* NOTE WELL: the content of this header file is NOT part of the "public"
* You should have received a copy of the GNU Lesser General Public License
* API for the MPI library, and may change at any time.
* along with this library; if not, write to the Free Software Foundation,
* Application programs that use libmpi should NOT include this header file.
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
*
*
...
@@ -42,22 +33,13 @@
...
@@ -42,22 +33,13 @@
* Contributor(s):
* Contributor(s):
* Netscape Communications Corporation
* Netscape Communications Corporation
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
/* Arbitrary precision integer arithmetic library
* Use is subject to license terms.
*
* NOTE WELL: the content of this header file is NOT part of the "public"
* API for the MPI library, and may change at any time.
* Application programs that use libmpi should NOT include this header file.
*/
*/
#ifndef _MPI_PRIV_H
#ifndef _MPI_PRIV_H
...
...
src/share/native/sun/security/ec/impl/mpi.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Sun elects to have this file available under and governed by the
* Use is subject to license terms.
* Mozilla Public License Version 1.1 ("MPL") (see
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* of doubt and subject to the following, Sun also elects to allow
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
*
* Arbitrary precision integer arithmetic library
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
*
*
...
@@ -40,25 +34,9 @@
...
@@ -40,25 +34,9 @@
* Netscape Communications Corporation
* Netscape Communications Corporation
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
$Id: mpi.c,v 1.45 2006/09/29 20:12:21 alexei.volkov.bugs%sun.com Exp $
*/
/*
Arbitrary precision integer arithmetic library
*/
#include "mpi-priv.h"
#include "mpi-priv.h"
#if defined(OSF1)
#if defined(OSF1)
...
...
src/share/native/sun/security/ec/impl/mpi.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Sun elects to have this file available under and governed by the
* Use is subject to license terms.
* Mozilla Public License Version 1.1 ("MPL") (see
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* of doubt and subject to the following, Sun also elects to allow
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
*
* Arbitrary precision integer arithmetic library
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
*
*
...
@@ -39,23 +33,9 @@
...
@@ -39,23 +33,9 @@
* Contributor(s):
* Contributor(s):
* Netscape Communications Corporation
* Netscape Communications Corporation
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
/* Arbitrary precision integer arithmetic library */
* Use is subject to license terms.
*/
#ifndef _MPI_H
#ifndef _MPI_H
#define _MPI_H
#define _MPI_H
...
...
src/share/native/sun/security/ec/impl/mplogic.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Sun elects to have this file available under and governed by the
* Use is subject to license terms.
* Mozilla Public License Version 1.1 ("MPL") (see
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* of doubt and subject to the following, Sun also elects to allow
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
*
* Bitwise logical operations on MPI values
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
*
*
...
@@ -38,25 +32,9 @@
...
@@ -38,25 +32,9 @@
*
*
* Contributor(s):
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
$Id: mplogic.c,v 1.15 2004/04/27 23:04:36 gerv%gerv.net Exp $
*/
/*
Bitwise logical operations on MPI values
*/
#include "mpi-priv.h"
#include "mpi-priv.h"
#include "mplogic.h"
#include "mplogic.h"
...
...
src/share/native/sun/security/ec/impl/mplogic.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Sun elects to have this file available under and governed by the
* Use is subject to license terms.
* Mozilla Public License Version 1.1 ("MPL") (see
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* of doubt and subject to the following, Sun also elects to allow
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
*
* Bitwise logical operations on MPI values
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
*
*
...
@@ -38,23 +32,9 @@
...
@@ -38,23 +32,9 @@
*
*
* Contributor(s):
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
/* Bitwise logical operations on MPI values */
* Use is subject to license terms.
*/
#ifndef _MPLOGIC_H
#ifndef _MPLOGIC_H
#define _MPLOGIC_H
#define _MPLOGIC_H
...
...
src/share/native/sun/security/ec/impl/mpmontg.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Netscape security libraries.
* The Original Code is the Netscape security libraries.
*
*
...
@@ -38,25 +35,7 @@
...
@@ -38,25 +35,7 @@
* Stephen Fung <stephen.fung@sun.com>, and
* Stephen Fung <stephen.fung@sun.com>, and
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
* Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/* $Id: mpmontg.c,v 1.20 2006/08/29 02:41:38 nelson%bolyard.com Exp $ */
/* This file implements moduluar exponentiation using Montgomery's
/* This file implements moduluar exponentiation using Montgomery's
* method for modular reduction. This file implements the method
* method for modular reduction. This file implements the method
...
...
src/share/native/sun/security/ec/impl/mpprime.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Sun elects to have this file available under and governed by the
* Use is subject to license terms.
* Mozilla Public License Version 1.1 ("MPL") (see
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* of doubt and subject to the following, Sun also elects to allow
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
*
* Utilities for finding and working with prime and pseudo-prime
* This library is free software; you can redistribute it and/or
* integers
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
*
*
...
@@ -39,23 +32,9 @@
...
@@ -39,23 +32,9 @@
*
*
* Contributor(s):
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
/* Utilities for finding and working with prime and pseudo-prime integers */
* Use is subject to license terms.
*/
#ifndef _MP_PRIME_H
#ifndef _MP_PRIME_H
#define _MP_PRIME_H
#define _MP_PRIME_H
...
...
src/share/native/sun/security/ec/impl/oid.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Netscape security libraries.
* The Original Code is the Netscape security libraries.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/types.h>
#include <sys/types.h>
...
...
src/share/native/sun/security/ec/impl/secitem.c
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Netscape security libraries.
* The Original Code is the Netscape security libraries.
*
*
...
@@ -35,23 +32,7 @@
...
@@ -35,23 +32,7 @@
*
*
* Contributor(s):
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
/*
* Support routines for SECItem data structure.
* Support routines for SECItem data structure.
...
...
src/share/native/sun/security/ec/impl/secoidt.h
浏览文件 @
db911b4d
/* *********************************************************************
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
*
* Sun elects to have this file available under and governed by the
* This library is free software; you can redistribute it and/or
* Mozilla Public License Version 1.1 ("MPL") (see
* modify it under the terms of the GNU Lesser General Public
* http://www.mozilla.org/MPL/ for full license text). For the avoidance
* License as published by the Free Software Foundation; either
* of doubt and subject to the following, Sun also elects to allow
* version 2.1 of the License, or (at your option) any later version.
* licensees to use this file under the MPL, the GNU General Public
* License version 2 only or the Lesser General Public License version
* 2.1 only. Any references to the "GNU General Public License version 2
* or later" or "GPL" in the following shall be construed to mean the
* GNU General Public License version 2 only. Any references to the "GNU
* Lesser General Public License version 2.1 or later" or "LGPL" in the
* following shall be construed to mean the GNU Lesser General Public
* License version 2.1 only. However, the following notice accompanied
* the original version of this file:
*
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* The contents of this file are subject to the Mozilla Public License Version
* You should have received a copy of the GNU Lesser General Public License
* 1.1 (the "License"); you may not use this file except in compliance with
* along with this library; if not, write to the Free Software Foundation,
* the License. You may obtain a copy of the License at
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* http://www.mozilla.org/MPL/
*
*
* Software distributed under the License is distributed on an "AS IS" basis,
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* or visit www.oracle.com if you need additional information or have any
* for the specific language governing rights and limitations under the
* questions.
* License.
*/
/* *********************************************************************
*
*
* The Original Code is the Netscape security libraries.
* The Original Code is the Netscape security libraries.
*
*
...
@@ -36,23 +33,7 @@
...
@@ -36,23 +33,7 @@
* Contributor(s):
* Contributor(s):
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
*********************************************************************** */
*********************************************************************** */
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SECOIDT_H_
#ifndef _SECOIDT_H_
#define _SECOIDT_H_
#define _SECOIDT_H_
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录