VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.3/crypto/modes/Makefile.kmk@ 101665

Last change on this file since 101665 was 101211, checked in by vboxsync, 14 months ago

openssl-3.1.3: Applied and adjusted our OpenSSL changes to 3.1.2. bugref:10527

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 101211 2023-09-21 06:43:35Z vboxsync $
2## @file
3# OpenSSL Sub-Makefile.
4#
5
6#
7# Copyright (C) 2006-2023 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31LIBRARIES += crypto_modes
32crypto_modes_TEMPLATE = SubLibCrypto
33crypto_modes_DEFS = OPENSSL_NO_DEPRECATED
34crypto_modes_SOURCES = \
35 cbc128.c \
36 ccm128.c \
37 cfb128.c \
38 ctr128.c \
39 cts128.c \
40 gcm128.c \
41 ocb128.c \
42 ofb128.c \
43 siv128.c \
44 wrap128.c \
45 xts128.c
46ifdef VBOX_WITH_CRYPTO_ASM
47 crypto_modes_SOURCES.x86 += \
48 $(VBOX_PATH_CRYPTO_GENASM)/ghash-x86.S
49 crypto_modes_SOURCES.amd64 += \
50 $(VBOX_PATH_CRYPTO_GENASM)/ghash-x86_64.S \
51 $(VBOX_PATH_CRYPTO_GENASM)/aesni-gcm-x86_64.S \
52 $(VBOX_PATH_CRYPTO_GENASM)/aes-gcm-avx512.S
53endif
54$(evalcall VBOX_OPENSSL_X86,crypto_modes)
55
56
57recreate-modes-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
58 $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl \
59 $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl \
60 $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl \
61 $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl
62 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/ghash-x86.S
63 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/ghash-x86_64.S
64 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/aesni-gcm-x86_64.S
65 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/aes-gcm-avx512.S
66
67 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ghash-x86.S
68 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ghash-x86_64.S
69 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/aesni-gcm-x86_64.S
70 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl elf $(VBOX_PATH_CRYPTO)/genasm-macosx/aes-gcm-avx512.S
71
72 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/ghash-x86.S
73 perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/ghash-x86_64.S
74 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/aesni-gcm-x86_64.S
75 perl $(VBOX_PATH_CRYPTO_MODES)/asm/aes-gcm-avx512.pl elf $(VBOX_PATH_CRYPTO)/genasm-nasm/aes-gcm-avx512.S
76
77include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette