-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rule and test for ocb license detection #2670
This is a basic correction for this license detection issue. Reported-by: Mikko Murto <[email protected]> Signed-off-by: Philippe Ombredanne <[email protected]>
- Loading branch information
1 parent
5db9d05
commit e9286de
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
https://www.cs.ucdavis.edu/~rogaway/ocb/license1.pdf | ||
License for | ||
Open-Source Software Implementations of OCB (Jan 9, 2013) License 1 | ||
Under this license, you are authorized to make, use, and distribute open-source software | ||
implementations of OCB. This license terminates for you if you sue someone over their open-source | ||
software implementation of OCB claiming that you have a patent covering their implementation. | ||
|
||
This is a non-binding summary of a legal document (the link above). The parameters of the license | ||
are specified in the license document and that document is controlling. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
license_expression: ocb-open-source-2013 | ||
is_license_notice: yes | ||
relevance: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* An implementation of <a href="https://tools.ietf.org/html/rfc7253">RFC 7253 on The OCB | ||
* Authenticated-Encryption Algorithm</a>, licensed per: | ||
* <p> | ||
* <blockquote> <a href="https://www.cs.ucdavis.edu/~rogaway/ocb/license1.pdf">License for | ||
* Open-Source Software Implementations of OCB</a> (Jan 9, 2013) — “License 1” <br> | ||
* Under this license, you are authorized to make, use, and distribute open-source software | ||
* implementations of OCB. This license terminates for you if you sue someone over their open-source | ||
* software implementation of OCB claiming that you have a patent covering their implementation. | ||
* <p> | ||
* This is a non-binding summary of a legal document (the link above). The parameters of the license | ||
* are specified in the license document and that document is controlling. </blockquote> | ||
*/ | ||
public class OCBBlockCipher | ||
implements AEADBlockCipher | ||
{ | ||
private static final int BLOCK_SIZE = 16; | ||
|
||
private BlockCipher hashCipher; | ||
private BlockCipher mainCipher; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
license_expressions: | ||
- ocb-open-source-2013 | ||
|