diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_3.RULE b/src/licensedcode/data/rules/ocb-open-source-2013_3.RULE new file mode 100644 index 00000000000..c5b75a17b9a --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_3.RULE @@ -0,0 +1 @@ +https://www.cs.ucdavis.edu/~rogaway/ocb/license1.pdf \ No newline at end of file diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_3.yml b/src/licensedcode/data/rules/ocb-open-source-2013_3.yml new file mode 100644 index 00000000000..0546bbd95f1 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_3.yml @@ -0,0 +1,6 @@ +license_expression: ocb-open-source-2013 +is_license_reference: yes +relevance: 100 +ignorable_urls: + - https://www.cs.ucdavis.edu/~rogaway/ocb/license1.pdf + diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_4.RULE b/src/licensedcode/data/rules/ocb-open-source-2013_4.RULE new file mode 100644 index 00000000000..31886728d46 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_4.RULE @@ -0,0 +1,6 @@ +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. \ No newline at end of file diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_4.yml b/src/licensedcode/data/rules/ocb-open-source-2013_4.yml new file mode 100644 index 00000000000..5e7488b9356 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_4.yml @@ -0,0 +1,3 @@ +license_expression: ocb-open-source-2013 +is_license_notice: yes +relevance: 100 diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_5.RULE b/src/licensedcode/data/rules/ocb-open-source-2013_5.RULE new file mode 100644 index 00000000000..e353209928c --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_5.RULE @@ -0,0 +1,4 @@ +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. \ No newline at end of file diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_5.yml b/src/licensedcode/data/rules/ocb-open-source-2013_5.yml new file mode 100644 index 00000000000..5e7488b9356 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_5.yml @@ -0,0 +1,3 @@ +license_expression: ocb-open-source-2013 +is_license_notice: yes +relevance: 100 diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_6.RULE b/src/licensedcode/data/rules/ocb-open-source-2013_6.RULE new file mode 100644 index 00000000000..ef7b9cc78ff --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_6.RULE @@ -0,0 +1 @@ +License for Open-Source Software Implementations of OCB \ No newline at end of file diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_6.yml b/src/licensedcode/data/rules/ocb-open-source-2013_6.yml new file mode 100644 index 00000000000..9a375f83278 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_6.yml @@ -0,0 +1,3 @@ +license_expression: ocb-open-source-2013 +is_license_reference: yes +relevance: 100 diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_7.RULE b/src/licensedcode/data/rules/ocb-open-source-2013_7.RULE new file mode 100644 index 00000000000..9ced8c8b80a --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_7.RULE @@ -0,0 +1,2 @@ +License 1 — License for Open-Source Software Implementations of OCB + (Jan 9, 2013) \ No newline at end of file diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_7.yml b/src/licensedcode/data/rules/ocb-open-source-2013_7.yml new file mode 100644 index 00000000000..9a375f83278 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_7.yml @@ -0,0 +1,3 @@ +license_expression: ocb-open-source-2013 +is_license_reference: yes +relevance: 100 diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_8.RULE b/src/licensedcode/data/rules/ocb-open-source-2013_8.RULE new file mode 100644 index 00000000000..6ea628345d2 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_8.RULE @@ -0,0 +1,8 @@ +License 1 — License for Open-Source Software Implementations of OCB + (Jan 9, 2013) + + 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. \ No newline at end of file diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_8.yml b/src/licensedcode/data/rules/ocb-open-source-2013_8.yml new file mode 100644 index 00000000000..5e7488b9356 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_8.yml @@ -0,0 +1,3 @@ +license_expression: ocb-open-source-2013 +is_license_notice: yes +relevance: 100 diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_9.RULE b/src/licensedcode/data/rules/ocb-open-source-2013_9.RULE new file mode 100644 index 00000000000..c9358ea8c51 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_9.RULE @@ -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. \ No newline at end of file diff --git a/src/licensedcode/data/rules/ocb-open-source-2013_9.yml b/src/licensedcode/data/rules/ocb-open-source-2013_9.yml new file mode 100644 index 00000000000..66ae1ae7910 --- /dev/null +++ b/src/licensedcode/data/rules/ocb-open-source-2013_9.yml @@ -0,0 +1,6 @@ +license_expression: ocb-open-source-2013 +is_license_notice: yes +relevance: 100 +ignorable_urls: + - https://www.cs.ucdavis.edu/~rogaway/ocb/license1.pdf + diff --git a/tests/licensedcode/data/datadriven/lic4/ocb.java b/tests/licensedcode/data/datadriven/lic4/ocb.java new file mode 100644 index 00000000000..9a0217871b6 --- /dev/null +++ b/tests/licensedcode/data/datadriven/lic4/ocb.java @@ -0,0 +1,21 @@ +/** + * An implementation of RFC 7253 on The OCB + * Authenticated-Encryption Algorithm, licensed per: + *
+ *
License for + * Open-Source Software Implementations of OCB (Jan 9, 2013) — “License 1”+ */ +public class OCBBlockCipher + implements AEADBlockCipher +{ + private static final int BLOCK_SIZE = 16; + + private BlockCipher hashCipher; + private BlockCipher mainCipher; + diff --git a/tests/licensedcode/data/datadriven/lic4/ocb.java.yml b/tests/licensedcode/data/datadriven/lic4/ocb.java.yml new file mode 100644 index 00000000000..0dd9b708abe --- /dev/null +++ b/tests/licensedcode/data/datadriven/lic4/ocb.java.yml @@ -0,0 +1,3 @@ +license_expressions: + - ocb-open-source-2013 + diff --git a/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml b/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml index cff71dbdd08..f17c62577db 100644 --- a/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml +++ b/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml @@ -5,7 +5,7 @@ license_expression: gpl-1.0-plus AND public-domain AND fsf-unlimited-no-warranty lgpl-2.1-plus AND lgpl-2.1-plus AND lgpl-2.0-plus AND gpl-1.0-plus AND gpl-2.0-plus AND ((gpl-2.0 AND lgpl-2.1-plus) AND other-permissive) AND bsd-new AND bsd-new AND (bsd-new OR gpl-1.0-plus) AND x11-xconsortium AND public-domain AND public-domain AND ocb-open-source-2013 AND ocb-open-source-2013 - AND gpl-2.0-plus + AND ocb-open-source-2013 AND ocb-open-source-2013 AND gpl-2.0-plus copyright: | Copyright (c) 1989,1991-2019 Free Software Foundation, Inc. Copyright (c) 1994 X Consortium @@ -469,6 +469,42 @@ matches: matched_text: | OCB is covered by several patents but may be used freely by most software. + - score: '100.0' + start_line: 459 + end_line: 466 + matcher: 2-aho + rule_length: 55 + matched_length: 55 + match_coverage: '100.0' + rule_relevance: 100 + identifier: ocb-open-source-2013_8.RULE + license_expression: ocb-open-source-2013 + is_license_text: no + is_license_notice: yes + is_license_reference: no + is_license_tag: no + is_license_intro: no + matched_text: "License 1 — License for Open-Source Software Implementations of OCB\n \ + \ (Jan 9, 2013)\n \n Under this license, you are authorized to make,\ + \ use, and\n distribute open-source software implementations of OCB. This\n license\ + \ terminates for you if you sue someone over their\n open-source software implementation\ + \ of OCB claiming that you have\n a patent covering their implementation." + - score: '100.0' + start_line: 470 + end_line: 470 + matcher: 2-aho + rule_length: 8 + matched_length: 8 + match_coverage: '100.0' + rule_relevance: 100 + identifier: ocb-open-source-2013_6.RULE + license_expression: ocb-open-source-2013 + is_license_text: no + is_license_notice: no + is_license_reference: yes + is_license_tag: no + is_license_intro: no + matched_text: License for Open Source Software Implementations of OCB - score: '96.98' start_line: 475 end_line: 540 diff --git a/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright.expected.yml b/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright.expected.yml index c98116a75f6..a2890a1116c 100644 --- a/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright.expected.yml +++ b/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright.expected.yml @@ -467,6 +467,42 @@ matches: matched_text: | OCB is covered by several patents but may be used freely by most software. + - score: '100.0' + start_line: 459 + end_line: 466 + matcher: 2-aho + rule_length: 55 + matched_length: 55 + match_coverage: '100.0' + rule_relevance: 100 + identifier: ocb-open-source-2013_8.RULE + license_expression: ocb-open-source-2013 + is_license_text: no + is_license_notice: yes + is_license_reference: no + is_license_tag: no + is_license_intro: no + matched_text: "License 1 — License for Open-Source Software Implementations of OCB\n \ + \ (Jan 9, 2013)\n \n Under this license, you are authorized to make,\ + \ use, and\n distribute open-source software implementations of OCB. This\n license\ + \ terminates for you if you sue someone over their\n open-source software implementation\ + \ of OCB claiming that you have\n a patent covering their implementation." + - score: '100.0' + start_line: 470 + end_line: 470 + matcher: 2-aho + rule_length: 8 + matched_length: 8 + match_coverage: '100.0' + rule_relevance: 100 + identifier: ocb-open-source-2013_6.RULE + license_expression: ocb-open-source-2013 + is_license_text: no + is_license_notice: no + is_license_reference: yes + is_license_tag: no + is_license_intro: no + matched_text: License for Open Source Software Implementations of OCB - score: '96.98' start_line: 475 end_line: 540
+ * 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.