Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: x86/aes-xts - change license to Apache-2.0 OR BSD-2-Clause

As with the other AES modes I've implemented, I've received interest in
my AES-XTS assembly code being reused in other projects. Therefore,
change the license to Apache-2.0 OR BSD-2-Clause like what I used for
AES-GCM. Apache-2.0 is the license of OpenSSL and BoringSSL.

Note that it is difficult to *directly* share code between the kernel,
OpenSSL, and BoringSSL for various reasons such as perlasm vs. plain
asm, Windows ABI support, different divisions of responsibility between
C and asm in each project, etc. So whether that will happen instead of
just doing ports is still TBD. But this dual license should at least
make it possible to port changes between the projects.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Eric Biggers and committed by
Herbert Xu
0926d8ee 8c4fc9ce

+47 -8
+47 -8
arch/x86/crypto/aes-xts-avx-x86_64.S
··· 1 - /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 - /* 3 - * AES-XTS for modern x86_64 CPUs 4 - * 5 - * Copyright 2024 Google LLC 6 - * 7 - * Author: Eric Biggers <ebiggers@google.com> 8 - */ 1 + /* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ 2 + // 3 + // AES-XTS for modern x86_64 CPUs 4 + // 5 + // Copyright 2024 Google LLC 6 + // 7 + // Author: Eric Biggers <ebiggers@google.com> 8 + // 9 + //------------------------------------------------------------------------------ 10 + // 11 + // This file is dual-licensed, meaning that you can use it under your choice of 12 + // either of the following two licenses: 13 + // 14 + // Licensed under the Apache License 2.0 (the "License"). You may obtain a copy 15 + // of the License at 16 + // 17 + // http://www.apache.org/licenses/LICENSE-2.0 18 + // 19 + // Unless required by applicable law or agreed to in writing, software 20 + // distributed under the License is distributed on an "AS IS" BASIS, 21 + // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 + // See the License for the specific language governing permissions and 23 + // limitations under the License. 24 + // 25 + // or 26 + // 27 + // Redistribution and use in source and binary forms, with or without 28 + // modification, are permitted provided that the following conditions are met: 29 + // 30 + // 1. Redistributions of source code must retain the above copyright notice, 31 + // this list of conditions and the following disclaimer. 32 + // 33 + // 2. Redistributions in binary form must reproduce the above copyright 34 + // notice, this list of conditions and the following disclaimer in the 35 + // documentation and/or other materials provided with the distribution. 36 + // 37 + // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 38 + // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 39 + // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 40 + // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 41 + // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 42 + // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 43 + // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 44 + // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 45 + // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 46 + // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 47 + // POSSIBILITY OF SUCH DAMAGE. 9 48 10 49 /* 11 50 * This file implements AES-XTS for modern x86_64 CPUs. To handle the