summaryrefslogtreecommitdiff
path: root/providers/implementations/ciphers/build.info
blob: fb2b53e58ad88e0c8435173e711fecdd590e2ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# We make separate GOAL variables for each algorithm, to make it easy to
# switch each to the Legacy provider when needed.
#
# $TDES_1_GOAL and $TDES_2_GOAL separate FIPSable and non-FIPSable TDES.
# The latter may become legacy sooner, so it's comfortable to have two
# variables already now, to switch the non-FIPSable TDES to legacy if needed.

$AES_GOAL=../../libimplementations.a
$TDES_1_GOAL=../../libimplementations.a
$TDES_2_GOAL=../../libimplementations.a
$DES_GOAL=../../libimplementations.a
$ARIA_GOAL=../../libimplementations.a
$CAMELLIA_GOAL=../../libimplementations.a
$BLOWFISH_GOAL=../../libimplementations.a
$IDEA_GOAL=../../libimplementations.a
$CAST5_GOAL=../../libimplementations.a
$SEED_GOAL=../../libimplementations.a
$SM4_GOAL=../../libimplementations.a
$RC4_GOAL=../../libimplementations.a
$RC5_GOAL=../../libimplementations.a
$RC2_GOAL=../../libimplementations.a

IF[{- !$disabled{des} -}]
  SOURCE[$TDES_1_GOAL]=cipher_tdes.c cipher_tdes_hw.c
ENDIF

SOURCE[$AES_GOAL]=\
        cipher_aes.c cipher_aes_hw.c \
        cipher_aes_xts.c cipher_aes_xts_hw.c \
        cipher_aes_gcm.c cipher_aes_gcm_hw.c \
        cipher_aes_ccm.c cipher_aes_ccm_hw.c \
        cipher_aes_wrp.c
# Extra code to satisfy the FIPS and non-FIPS separation.
# When the AES-xxx-XTS moves to legacy, this can be removed.
SOURCE[../../libfips.a]=cipher_aes_xts_fips.c
SOURCE[../../libnonfips.a]=cipher_aes_xts_fips.c

IF[{- !$disabled{des} -}]
  SOURCE[$TDES_2_GOAL]=\
      cipher_tdes_default.c cipher_tdes_default_hw.c \
      cipher_tdes_wrap.c cipher_tdes_wrap_hw.c
  SOURCE[$DES_GOAL]=\
      cipher_desx.c cipher_desx_hw.c \
      cipher_des.c cipher_des_hw.c
ENDIF

IF[{- !$disabled{aria} -}]
  SOURCE[$ARIA_GOAL]=\
      cipher_aria.c cipher_aria_hw.c \
      cipher_aria_gcm.c cipher_aria_gcm_hw.c \
      cipher_aria_ccm.c cipher_aria_ccm_hw.c
ENDIF

IF[{- !$disabled{camellia} -}]
  SOURCE[$CAMELLIA_GOAL]=\
      cipher_camellia.c cipher_camellia_hw.c
ENDIF

IF[{- !$disabled{bf} -}]
  SOURCE[$BLOWFISH_GOAL]=\
      cipher_blowfish.c cipher_blowfish_hw.c
ENDIF

IF[{- !$disabled{idea} -}]
  SOURCE[$IDEA_GOAL]=\
      cipher_idea.c cipher_idea_hw.c
ENDIF

IF[{- !$disabled{cast} -}]
  SOURCE[$CAST5_GOAL]=\
      cipher_cast5.c cipher_cast5_hw.c
ENDIF

IF[{- !$disabled{seed} -}]
  SOURCE[$SEED_GOAL]=\
      cipher_seed.c cipher_seed_hw.c
ENDIF

IF[{- !$disabled{sm4} -}]
  SOURCE[$SM4_GOAL]=\
      cipher_sm4.c cipher_sm4_hw.c
ENDIF

IF[{- !$disabled{ocb} -}]
  SOURCE[$AES_GOAL]=\
       cipher_aes_ocb.c cipher_aes_ocb_hw.c
ENDIF

IF[{- !$disabled{rc4} -}]
  SOURCE[$RC4_GOAL]=\
      cipher_rc4.c cipher_rc4_hw.c
ENDIF

IF[{- !$disabled{rc5} -}]
  SOURCE[$RC5_GOAL]=\
      cipher_rc5.c cipher_rc5_hw.c
ENDIF

IF[{- !$disabled{rc2} -}]
  SOURCE[$RC2_GOAL]=\
      cipher_rc2.c cipher_rc2_hw.c
ENDIF