1 | # $Id$
|
---|
2 | ## @file
|
---|
3 | # OpenSSL Sub-Makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2019 Oracle Corporation
|
---|
8 | #
|
---|
9 | # Oracle Corporation confidential
|
---|
10 | # All rights reserved
|
---|
11 | #
|
---|
12 |
|
---|
13 | SUB_DEPTH = ../../../../..
|
---|
14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
15 |
|
---|
16 | LIBRARIES += crypto_modes
|
---|
17 | crypto_modes_TEMPLATE = SUBLIBCRYPTO
|
---|
18 | crypto_modes_DEFS = OPENSSL_NO_DEPRECATED
|
---|
19 | crypto_modes_SOURCES = \
|
---|
20 | cbc128.c \
|
---|
21 | ccm128.c \
|
---|
22 | cfb128.c \
|
---|
23 | ctr128.c \
|
---|
24 | cts128.c \
|
---|
25 | gcm128.c \
|
---|
26 | ocb128.c \
|
---|
27 | ofb128.c \
|
---|
28 | wrap128.c \
|
---|
29 | xts128.c
|
---|
30 | ifdef VBOX_WITH_CRYPTO_ASM
|
---|
31 | crypto_modes_SOURCES.x86 += \
|
---|
32 | $(VBOX_PATH_CRYPTO_GENASM)/ghash-x86.S
|
---|
33 | crypto_modes_SOURCES.amd64 += \
|
---|
34 | $(VBOX_PATH_CRYPTO_GENASM)/ghash-x86_64.S \
|
---|
35 | $(VBOX_PATH_CRYPTO_GENASM)/aesni-gcm-x86_64.S
|
---|
36 | endif
|
---|
37 | $(evalcall VBOX_OPENSSL_X86,crypto_modes)
|
---|
38 |
|
---|
39 |
|
---|
40 | recreate-modes-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
|
---|
41 | $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl \
|
---|
42 | $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl \
|
---|
43 | $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl
|
---|
44 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/ghash-x86.S
|
---|
45 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/ghash-x86_64.S
|
---|
46 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/aesni-gcm-x86_64.S
|
---|
47 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ghash-x86.S
|
---|
48 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ghash-x86_64.S
|
---|
49 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/aesni-gcm-x86_64.S
|
---|
50 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/ghash-x86.S
|
---|
51 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/ghash-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/ghash-x86_64.S
|
---|
52 | perl $(VBOX_PATH_CRYPTO_MODES)/asm/aesni-gcm-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/aesni-gcm-x86_64.S
|
---|
53 |
|
---|
54 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|