Skip to content

Commit ec7f21b

Browse files
committedFeb 28, 2017
Added explicit headers for MIT and Apache 2.0 licensed classes.
1 parent ddbe857 commit ec7f21b

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed
 

‎NOTICE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The product includes software from the Legion of the Bouncy Castle project
2+
under the MIT License (see: com.joyent.http.signature.crypto.MantaNativeRSACoreEngine).
3+
4+
The product includes software from the JNA GMP project
5+
under the Apache License 2.0 (see: com.joyent.http.signature.crypto.NativeRSABlindedEngine).

‎common/src/main/java/com/joyent/http/signature/crypto/MantaNativeRSACoreEngine.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
114
package com.joyent.http.signature.crypto;
215

316
import com.squareup.jnagmp.GmpInteger;

‎common/src/main/java/com/joyent/http/signature/crypto/NativeRSABlindedEngine.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/*
2+
* Copyright (c) 2000 - 2016 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org)
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
*
11+
* The above copyright notice and this permission notice shall be included in
12+
* all copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18+
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19+
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20+
* OTHER DEALINGS IN THE SOFTWARE.
21+
*/
122
package com.joyent.http.signature.crypto;
223

324
import com.squareup.jnagmp.Gmp;
@@ -17,7 +38,7 @@
1738
* replace with a native implementation. We copied the library code here
1839
* because there is no better way to for us to inherit the properties.</p>
1940
*
20-
* <p>Note: there is a single change on line 118 - we use libgmp to do modpow.</p>
41+
* <p>Note: changes from the original are only using libgmp to do modpow.</p>
2142
*
2243
* <p>Relevant copyright belongs to:<br>
2344
* Copyright (c) 2000 - 2015 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)

‎suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
<suppress checks="AvoidStarImport" files="^.*Test\.java$" />
1212
<suppress checks="ImportControl" files="^.*Test\.java$" />
1313
<suppress checks="[a-zA-Z0-9]*" files="MantaNativeRSACoreEngine.java" />
14+
<suppress checks="Header" files="NativeRSABlindedEngine.java" />
1415
</suppressions>

0 commit comments

Comments
 (0)
Please sign in to comment.