1 | # $Id$
|
---|
2 | ## @file
|
---|
3 | # OpenSSL Sub-Makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 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_ec
|
---|
17 | crypto_ec_TEMPLATE = SUBLIBCRYPTO
|
---|
18 | crypto_ec_DEFS = OPENSSL_NO_DEPRECATED
|
---|
19 | crypto_ec_SOURCES = \
|
---|
20 | curve25519.c \
|
---|
21 | curve448/arch_32/f_impl.c \
|
---|
22 | curve448/curve448.c \
|
---|
23 | curve448/curve448_tables.c \
|
---|
24 | curve448/eddsa.c \
|
---|
25 | curve448/f_generic.c \
|
---|
26 | curve448/scalar.c \
|
---|
27 | ec2_oct.c \
|
---|
28 | ec2_smpl.c \
|
---|
29 | ec_ameth.c \
|
---|
30 | ec_asn1.c \
|
---|
31 | ec_check.c \
|
---|
32 | ec_curve.c \
|
---|
33 | ec_cvt.c \
|
---|
34 | ec_err.c \
|
---|
35 | ec_key.c \
|
---|
36 | ec_kmeth.c \
|
---|
37 | ec_lib.c \
|
---|
38 | ec_mult.c \
|
---|
39 | ec_oct.c \
|
---|
40 | ec_pmeth.c \
|
---|
41 | ec_print.c \
|
---|
42 | ecdh_kdf.c \
|
---|
43 | ecdh_ossl.c \
|
---|
44 | ecdsa_ossl.c \
|
---|
45 | ecdsa_sign.c \
|
---|
46 | ecdsa_vrf.c \
|
---|
47 | eck_prn.c \
|
---|
48 | ecp_mont.c \
|
---|
49 | ecp_nist.c \
|
---|
50 | ecp_nistz256.c \
|
---|
51 | ecp_oct.c \
|
---|
52 | ecp_smpl.c \
|
---|
53 | ecx_meth.c
|
---|
54 |
|
---|
55 | ifdef VBOX_WITH_CRYPTO_ASM
|
---|
56 | crypto_ec_SOURCES.x86 += \
|
---|
57 | $(VBOX_PATH_CRYPTO_GENASM)/ecp_nistz256-x86.S
|
---|
58 | crypto_ec_SOURCES.amd64 += \
|
---|
59 | $(VBOX_PATH_CRYPTO_GENASM)/ecp_nistz256-x86_64.S \
|
---|
60 | $(VBOX_PATH_CRYPTO_GENASM)/x25519-x86_64.S
|
---|
61 | endif
|
---|
62 | $(evalcall VBOX_OPENSSL_X86,crypto_ec)
|
---|
63 |
|
---|
64 |
|
---|
65 | recreate-ec-asm: $(VBOX_PATH_CRYPTO)/perlasm/x86asm.pl \
|
---|
66 | $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl \
|
---|
67 | $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl \
|
---|
68 | $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl
|
---|
69 | perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl elf -fPIC $(VBOX_PATH_CRYPTO)/genasm-elf/ecp_nistz256-x86.S
|
---|
70 | perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/ecp_nistz256-x86_64.S
|
---|
71 | perl $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl elf $(VBOX_PATH_CRYPTO)/genasm-elf/x25519-x86_64.S
|
---|
72 | perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ecp_nistz256-x86.S
|
---|
73 | perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/ecp_nistz256-x86_64.S
|
---|
74 | perl $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl macosx $(VBOX_PATH_CRYPTO)/genasm-macosx/x25519-x86_64.S
|
---|
75 | perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86.pl win32n $(VBOX_PATH_CRYPTO)/genasm-nasm/ecp_nistz256-x86.S
|
---|
76 | perl $(VBOX_PATH_CRYPTO_EC)/asm/ecp_nistz256-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/ecp_nistz256-x86_64.S
|
---|
77 | perl $(VBOX_PATH_CRYPTO_EC)/asm/x25519-x86_64.pl nasm $(VBOX_PATH_CRYPTO)/genasm-nasm/x25519-x86_64.S
|
---|
78 |
|
---|
79 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|