xref: /aosp_15_r20/external/licenseclassifier/v2/scenarios/157091836 (revision 46c4c49da23cae783fa41bf46525a6505638499a)
1*46c4c49dSIbrahim KanoucheLegacy classifier identifies LGPL-2.1
2*46c4c49dSIbrahim KanoucheEXPECTED:Copyright,LGPL-3.0
3*46c4c49dSIbrahim Kanouche/**
4*46c4c49dSIbrahim Kanouche * @license
5*46c4c49dSIbrahim Kanouche *                    GNU LESSER GENERAL PUBLIC LICENSE
6*46c4c49dSIbrahim Kanouche *                        Version 3, 29 June 2007
7*46c4c49dSIbrahim Kanouche *
8*46c4c49dSIbrahim Kanouche *  Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
9*46c4c49dSIbrahim Kanouche *  Everyone is permitted to copy and distribute verbatim copies
10*46c4c49dSIbrahim Kanouche *  of this license document, but changing it is not allowed.
11*46c4c49dSIbrahim Kanouche *
12*46c4c49dSIbrahim Kanouche *
13*46c4c49dSIbrahim Kanouche *   This version of the GNU Lesser General Public License incorporates
14*46c4c49dSIbrahim Kanouche * the terms and conditions of version 3 of the GNU General Public
15*46c4c49dSIbrahim Kanouche * License, supplemented by the additional permissions listed below.
16*46c4c49dSIbrahim Kanouche *
17*46c4c49dSIbrahim Kanouche *   0. Additional Definitions.
18*46c4c49dSIbrahim Kanouche *
19*46c4c49dSIbrahim Kanouche *   As used herein, "this License" refers to version 3 of the GNU Lesser
20*46c4c49dSIbrahim Kanouche * General Public License, and the "GNU GPL" refers to version 3 of the GNU
21*46c4c49dSIbrahim Kanouche * General Public License.
22*46c4c49dSIbrahim Kanouche *
23*46c4c49dSIbrahim Kanouche *   "The Library" refers to a covered work governed by this License,
24*46c4c49dSIbrahim Kanouche * other than an Application or a Combined Work as defined below.
25*46c4c49dSIbrahim Kanouche *
26*46c4c49dSIbrahim Kanouche *   An "Application" is any work that makes use of an interface provided
27*46c4c49dSIbrahim Kanouche * by the Library, but which is not otherwise based on the Library.
28*46c4c49dSIbrahim Kanouche * Defining a subclass of a class defined by the Library is deemed a mode
29*46c4c49dSIbrahim Kanouche * of using an interface provided by the Library.
30*46c4c49dSIbrahim Kanouche *
31*46c4c49dSIbrahim Kanouche *   A "Combined Work" is a work produced by combining or linking an
32*46c4c49dSIbrahim Kanouche * Application with the Library.  The particular version of the Library
33*46c4c49dSIbrahim Kanouche * with which the Combined Work was made is also called the "Linked
34*46c4c49dSIbrahim Kanouche * Version".
35*46c4c49dSIbrahim Kanouche *
36*46c4c49dSIbrahim Kanouche *   The "Minimal Corresponding Source" for a Combined Work means the
37*46c4c49dSIbrahim Kanouche * Corresponding Source for the Combined Work, excluding any source code
38*46c4c49dSIbrahim Kanouche * for portions of the Combined Work that, considered in isolation, are
39*46c4c49dSIbrahim Kanouche * based on the Application, and not on the Linked Version.
40*46c4c49dSIbrahim Kanouche *
41*46c4c49dSIbrahim Kanouche *   The "Corresponding Application Code" for a Combined Work means the
42*46c4c49dSIbrahim Kanouche * object code and/or source code for the Application, including any data
43*46c4c49dSIbrahim Kanouche * and utility programs needed for reproducing the Combined Work from the
44*46c4c49dSIbrahim Kanouche * Application, but excluding the System Libraries of the Combined Work.
45*46c4c49dSIbrahim Kanouche *
46*46c4c49dSIbrahim Kanouche *   1. Exception to Section 3 of the GNU GPL.
47*46c4c49dSIbrahim Kanouche *
48*46c4c49dSIbrahim Kanouche *   You may convey a covered work under sections 3 and 4 of this License
49*46c4c49dSIbrahim Kanouche * without being bound by section 3 of the GNU GPL.
50*46c4c49dSIbrahim Kanouche *
51*46c4c49dSIbrahim Kanouche *   2. Conveying Modified Versions.
52*46c4c49dSIbrahim Kanouche *
53*46c4c49dSIbrahim Kanouche *   If you modify a copy of the Library, and, in your modifications, a
54*46c4c49dSIbrahim Kanouche * facility refers to a function or data to be supplied by an Application
55*46c4c49dSIbrahim Kanouche * that uses the facility (other than as an argument passed when the
56*46c4c49dSIbrahim Kanouche * facility is invoked), then you may convey a copy of the modified
57*46c4c49dSIbrahim Kanouche * version:
58*46c4c49dSIbrahim Kanouche *
59*46c4c49dSIbrahim Kanouche *    a) under this License, provided that you make a good faith effort to
60*46c4c49dSIbrahim Kanouche *    ensure that, in the event an Application does not supply the
61*46c4c49dSIbrahim Kanouche *    function or data, the facility still operates, and performs
62*46c4c49dSIbrahim Kanouche *    whatever part of its purpose remains meaningful, or
63*46c4c49dSIbrahim Kanouche *
64*46c4c49dSIbrahim Kanouche *    b) under the GNU GPL, with none of the additional permissions of
65*46c4c49dSIbrahim Kanouche *    this License applicable to that copy.
66*46c4c49dSIbrahim Kanouche *
67*46c4c49dSIbrahim Kanouche *   3. Object Code Incorporating Material from Library Header Files.
68*46c4c49dSIbrahim Kanouche *
69*46c4c49dSIbrahim Kanouche *   The object code form of an Application may incorporate material from
70*46c4c49dSIbrahim Kanouche * a header file that is part of the Library.  You may convey such object
71*46c4c49dSIbrahim Kanouche * code under terms of your choice, provided that, if the incorporated
72*46c4c49dSIbrahim Kanouche * material is not limited to numerical parameters, data structure
73*46c4c49dSIbrahim Kanouche * layouts and accessors, or small macros, inline functions and templates
74*46c4c49dSIbrahim Kanouche * (ten or fewer lines in length), you do both of the following:
75*46c4c49dSIbrahim Kanouche *
76*46c4c49dSIbrahim Kanouche *    a) Give prominent notice with each copy of the object code that the
77*46c4c49dSIbrahim Kanouche *    Library is used in it and that the Library and its use are
78*46c4c49dSIbrahim Kanouche *    covered by this License.
79*46c4c49dSIbrahim Kanouche *
80*46c4c49dSIbrahim Kanouche *    b) Accompany the object code with a copy of the GNU GPL and this license
81*46c4c49dSIbrahim Kanouche *    document.
82*46c4c49dSIbrahim Kanouche *
83*46c4c49dSIbrahim Kanouche *   4. Combined Works.
84*46c4c49dSIbrahim Kanouche *
85*46c4c49dSIbrahim Kanouche *   You may convey a Combined Work under terms of your choice that,
86*46c4c49dSIbrahim Kanouche * taken together, effectively do not restrict modification of the
87*46c4c49dSIbrahim Kanouche * portions of the Library contained in the Combined Work and reverse
88*46c4c49dSIbrahim Kanouche * engineering for debugging such modifications, if you also do each of
89*46c4c49dSIbrahim Kanouche * the following:
90*46c4c49dSIbrahim Kanouche *
91*46c4c49dSIbrahim Kanouche *    a) Give prominent notice with each copy of the Combined Work that
92*46c4c49dSIbrahim Kanouche *    the Library is used in it and that the Library and its use are
93*46c4c49dSIbrahim Kanouche *    covered by this License.
94*46c4c49dSIbrahim Kanouche *
95*46c4c49dSIbrahim Kanouche *    b) Accompany the Combined Work with a copy of the GNU GPL and this license
96*46c4c49dSIbrahim Kanouche *    document.
97*46c4c49dSIbrahim Kanouche *
98*46c4c49dSIbrahim Kanouche *    c) For a Combined Work that displays copyright notices during
99*46c4c49dSIbrahim Kanouche *    execution, include the copyright notice for the Library among
100*46c4c49dSIbrahim Kanouche *    these notices, as well as a reference directing the user to the
101*46c4c49dSIbrahim Kanouche *    copies of the GNU GPL and this license document.
102*46c4c49dSIbrahim Kanouche *
103*46c4c49dSIbrahim Kanouche *    d) Do one of the following:
104*46c4c49dSIbrahim Kanouche *
105*46c4c49dSIbrahim Kanouche *        0) Convey the Minimal Corresponding Source under the terms of this
106*46c4c49dSIbrahim Kanouche *        License, and the Corresponding Application Code in a form
107*46c4c49dSIbrahim Kanouche *        suitable for, and under terms that permit, the user to
108*46c4c49dSIbrahim Kanouche *        recombine or relink the Application with a modified version of
109*46c4c49dSIbrahim Kanouche *        the Linked Version to produce a modified Combined Work, in the
110*46c4c49dSIbrahim Kanouche *        manner specified by section 6 of the GNU GPL for conveying
111*46c4c49dSIbrahim Kanouche *        Corresponding Source.
112*46c4c49dSIbrahim Kanouche *
113*46c4c49dSIbrahim Kanouche *        1) Use a suitable shared library mechanism for linking with the
114*46c4c49dSIbrahim Kanouche *        Library.  A suitable mechanism is one that (a) uses at run time
115*46c4c49dSIbrahim Kanouche *        a copy of the Library already present on the user's computer
116*46c4c49dSIbrahim Kanouche *        system, and (b) will operate properly with a modified version
117*46c4c49dSIbrahim Kanouche *        of the Library that is interface-compatible with the Linked
118*46c4c49dSIbrahim Kanouche *        Version.
119*46c4c49dSIbrahim Kanouche *
120*46c4c49dSIbrahim Kanouche *    e) Provide Installation Information, but only if you would otherwise
121*46c4c49dSIbrahim Kanouche *    be required to provide such information under section 6 of the
122*46c4c49dSIbrahim Kanouche *    GNU GPL, and only to the extent that such information is
123*46c4c49dSIbrahim Kanouche *    necessary to install and execute a modified version of the
124*46c4c49dSIbrahim Kanouche *    Combined Work produced by recombining or relinking the
125*46c4c49dSIbrahim Kanouche *    Application with a modified version of the Linked Version. (If
126*46c4c49dSIbrahim Kanouche *    you use option 4d0, the Installation Information must accompany
127*46c4c49dSIbrahim Kanouche *    the Minimal Corresponding Source and Corresponding Application
128*46c4c49dSIbrahim Kanouche *    Code. If you use option 4d1, you must provide the Installation
129*46c4c49dSIbrahim Kanouche *    Information in the manner specified by section 6 of the GNU GPL
130*46c4c49dSIbrahim Kanouche *    for conveying Corresponding Source.)
131*46c4c49dSIbrahim Kanouche *
132*46c4c49dSIbrahim Kanouche *   5. Combined Libraries.
133*46c4c49dSIbrahim Kanouche *
134*46c4c49dSIbrahim Kanouche *   You may place library facilities that are a work based on the
135*46c4c49dSIbrahim Kanouche * Library side by side in a single library together with other library
136*46c4c49dSIbrahim Kanouche * facilities that are not Applications and are not covered by this
137*46c4c49dSIbrahim Kanouche * License, and convey such a combined library under terms of your
138*46c4c49dSIbrahim Kanouche * choice, if you do both of the following:
139*46c4c49dSIbrahim Kanouche *
140*46c4c49dSIbrahim Kanouche *    a) Accompany the combined library with a copy of the same work based
141*46c4c49dSIbrahim Kanouche *    on the Library, uncombined with any other library facilities,
142*46c4c49dSIbrahim Kanouche *    conveyed under the terms of this License.
143*46c4c49dSIbrahim Kanouche *
144*46c4c49dSIbrahim Kanouche *    b) Give prominent notice with the combined library that part of it
145*46c4c49dSIbrahim Kanouche *    is a work based on the Library, and explaining where to find the
146*46c4c49dSIbrahim Kanouche *    accompanying uncombined form of the same work.
147*46c4c49dSIbrahim Kanouche *
148*46c4c49dSIbrahim Kanouche *   6. Revised Versions of the GNU Lesser General Public License.
149*46c4c49dSIbrahim Kanouche *
150*46c4c49dSIbrahim Kanouche *   The Free Software Foundation may publish revised and/or new versions
151*46c4c49dSIbrahim Kanouche * of the GNU Lesser General Public License from time to time. Such new
152*46c4c49dSIbrahim Kanouche * versions will be similar in spirit to the present version, but may
153*46c4c49dSIbrahim Kanouche * differ in detail to address new problems or concerns.
154*46c4c49dSIbrahim Kanouche *
155*46c4c49dSIbrahim Kanouche *   Each version is given a distinguishing version number. If the
156*46c4c49dSIbrahim Kanouche * Library as you received it specifies that a certain numbered version
157*46c4c49dSIbrahim Kanouche * of the GNU Lesser General Public License "or any later version"
158*46c4c49dSIbrahim Kanouche * applies to it, you have the option of following the terms and
159*46c4c49dSIbrahim Kanouche * conditions either of that published version or of any later version
160*46c4c49dSIbrahim Kanouche * published by the Free Software Foundation. If the Library as you
161*46c4c49dSIbrahim Kanouche * received it does not specify a version number of the GNU Lesser
162*46c4c49dSIbrahim Kanouche * General Public License, you may choose any version of the GNU Lesser
163*46c4c49dSIbrahim Kanouche * General Public License ever published by the Free Software Foundation.
164*46c4c49dSIbrahim Kanouche *
165*46c4c49dSIbrahim Kanouche *   If the Library as you received it specifies that a proxy can decide
166*46c4c49dSIbrahim Kanouche * whether future versions of the GNU Lesser General Public License shall
167*46c4c49dSIbrahim Kanouche * apply, that proxy's public statement of acceptance of any version is
168*46c4c49dSIbrahim Kanouche * permanent authorization for you to choose that version for the
169*46c4c49dSIbrahim Kanouche * Library.
170*46c4c49dSIbrahim Kanouche */
171*46c4c49dSIbrahim Kanouche
172*46c4c49dSIbrahim Kanouche// OpenPGP.js - An OpenPGP implementation in javascript
173*46c4c49dSIbrahim Kanouche// Copyright (C) 2015-2016 Decentral
174*46c4c49dSIbrahim Kanouche//
175*46c4c49dSIbrahim Kanouche// This library is free software; you can redistribute it and/or
176*46c4c49dSIbrahim Kanouche// modify it under the terms of the GNU Lesser General Public
177*46c4c49dSIbrahim Kanouche// License as published by the Free Software Foundation; either
178*46c4c49dSIbrahim Kanouche// version 3.0 of the License, or (at your option) any later version.
179*46c4c49dSIbrahim Kanouche//
180*46c4c49dSIbrahim Kanouche// This library is distributed in the hope that it will be useful,
181*46c4c49dSIbrahim Kanouche// but WITHOUT ANY WARRANTY; without even the implied warranty of
182*46c4c49dSIbrahim Kanouche// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
183*46c4c49dSIbrahim Kanouche// Lesser General Public License for more details.
184*46c4c49dSIbrahim Kanouche//
185*46c4c49dSIbrahim Kanouche// You should have received a copy of the GNU Lesser General Public
186*46c4c49dSIbrahim Kanouche// License along with this library; if not, write to the Free Software
187*46c4c49dSIbrahim Kanouche// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
188*46c4c49dSIbrahim Kanouche
189*46c4c49dSIbrahim Kanouche/**
190*46c4c49dSIbrahim Kanouche * @fileoverview Key encryption and decryption for RFC 6637 ECDH
191*46c4c49dSIbrahim Kanouche * @requires bn.js
192*46c4c49dSIbrahim Kanouche * @requires tweetnacl
193*46c4c49dSIbrahim Kanouche * @requires crypto/public_key/elliptic/curve
194*46c4c49dSIbrahim Kanouche * @requires crypto/aes_kw
195*46c4c49dSIbrahim Kanouche * @requires crypto/cipher
196*46c4c49dSIbrahim Kanouche * @requires crypto/random
197*46c4c49dSIbrahim Kanouche * @requires crypto/hash
198*46c4c49dSIbrahim Kanouche * @requires type/kdf_params
199*46c4c49dSIbrahim Kanouche * @requires enums
200*46c4c49dSIbrahim Kanouche * @requires util
201*46c4c49dSIbrahim Kanouche * @module crypto/public_key/elliptic/ecdh
202*46c4c49dSIbrahim Kanouche */
203*46c4c49dSIbrahim Kanouche
204