build.info 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # We make separate GOAL variables for each algorithm, to make it easy to
  2. # switch each to the Legacy provider when needed.
  3. #
  4. # $TDES_1_GOAL and $TDES_2_GOAL separate FIPSable and non-FIPSable TDES.
  5. # The latter may become legacy sooner, so it's comfortable to have two
  6. # variables already now, to switch the non-FIPSable TDES to legacy if needed.
  7. $COMMON_GOAL=../../libcommon.a
  8. $NULL_GOAL=../../libimplementations.a
  9. $AES_GOAL=../../libimplementations.a
  10. $TDES_1_GOAL=../../libimplementations.a
  11. $TDES_2_GOAL=../../libimplementations.a
  12. $ARIA_GOAL=../../libimplementations.a
  13. $CAMELLIA_GOAL=../../libimplementations.a
  14. $DES_GOAL=../../liblegacy.a
  15. $BLOWFISH_GOAL=../../liblegacy.a
  16. $IDEA_GOAL=../../liblegacy.a
  17. $CAST5_GOAL=../../liblegacy.a
  18. $RC2_GOAL=../../liblegacy.a
  19. $RC4_GOAL=../../liblegacy.a
  20. $RC5_GOAL=../../liblegacy.a
  21. $SEED_GOAL=../../liblegacy.a
  22. $SM4_GOAL=../../libimplementations.a
  23. $CHACHA_GOAL=../../libimplementations.a
  24. $CHACHAPOLY_GOAL=../../libimplementations.a
  25. $SIV_GOAL=../../libimplementations.a
  26. # This source is common building blocks for all ciphers in all our providers.
  27. SOURCE[$COMMON_GOAL]=\
  28. ciphercommon.c ciphercommon_hw.c ciphercommon_block.c \
  29. ciphercommon_gcm.c ciphercommon_gcm_hw.c \
  30. ciphercommon_ccm.c ciphercommon_ccm_hw.c
  31. IF[{- !$disabled{des} -}]
  32. SOURCE[$TDES_1_GOAL]=cipher_tdes.c cipher_tdes_common.c cipher_tdes_hw.c
  33. ENDIF
  34. SOURCE[$NULL_GOAL]=\
  35. cipher_null.c
  36. SOURCE[$AES_GOAL]=\
  37. cipher_aes.c cipher_aes_hw.c \
  38. cipher_aes_xts.c cipher_aes_xts_hw.c \
  39. cipher_aes_gcm.c cipher_aes_gcm_hw.c \
  40. cipher_aes_ccm.c cipher_aes_ccm_hw.c \
  41. cipher_aes_wrp.c \
  42. cipher_aes_cbc_hmac_sha.c \
  43. cipher_aes_cbc_hmac_sha256_hw.c cipher_aes_cbc_hmac_sha1_hw.c \
  44. cipher_aes_cts.c
  45. # Extra code to satisfy the FIPS and non-FIPS separation.
  46. # When the AES-xxx-XTS moves to legacy, cipher_aes_xts_fips.c can be removed.
  47. SOURCE[../../libfips.a]=cipher_aes_xts_fips.c
  48. SOURCE[../../libnonfips.a]=cipher_aes_xts_fips.c
  49. IF[{- !$disabled{siv} -}]
  50. SOURCE[$SIV_GOAL]=\
  51. cipher_aes_siv.c cipher_aes_siv_hw.c
  52. ENDIF
  53. IF[{- !$disabled{des} -}]
  54. SOURCE[$TDES_2_GOAL]=\
  55. cipher_tdes_default.c cipher_tdes_default_hw.c \
  56. cipher_tdes_wrap.c cipher_tdes_wrap_hw.c
  57. SOURCE[$DES_GOAL]=\
  58. cipher_desx.c cipher_desx_hw.c \
  59. cipher_des.c cipher_des_hw.c
  60. IF[{- !$disabled{module} -}]
  61. SOURCE[$DES_GOAL]=\
  62. cipher_tdes_common.c
  63. ENDIF
  64. ENDIF
  65. IF[{- !$disabled{aria} -}]
  66. SOURCE[$ARIA_GOAL]=\
  67. cipher_aria.c cipher_aria_hw.c \
  68. cipher_aria_gcm.c cipher_aria_gcm_hw.c \
  69. cipher_aria_ccm.c cipher_aria_ccm_hw.c
  70. ENDIF
  71. IF[{- !$disabled{camellia} -}]
  72. SOURCE[$CAMELLIA_GOAL]=\
  73. cipher_camellia.c cipher_camellia_hw.c
  74. ENDIF
  75. IF[{- !$disabled{bf} -}]
  76. SOURCE[$BLOWFISH_GOAL]=\
  77. cipher_blowfish.c cipher_blowfish_hw.c
  78. ENDIF
  79. IF[{- !$disabled{idea} -}]
  80. SOURCE[$IDEA_GOAL]=\
  81. cipher_idea.c cipher_idea_hw.c
  82. ENDIF
  83. IF[{- !$disabled{cast} -}]
  84. SOURCE[$CAST5_GOAL]=\
  85. cipher_cast5.c cipher_cast5_hw.c
  86. ENDIF
  87. IF[{- !$disabled{seed} -}]
  88. SOURCE[$SEED_GOAL]=\
  89. cipher_seed.c cipher_seed_hw.c
  90. ENDIF
  91. IF[{- !$disabled{sm4} -}]
  92. SOURCE[$SM4_GOAL]=\
  93. cipher_sm4.c cipher_sm4_hw.c
  94. ENDIF
  95. IF[{- !$disabled{ocb} -}]
  96. SOURCE[$AES_GOAL]=\
  97. cipher_aes_ocb.c cipher_aes_ocb_hw.c
  98. ENDIF
  99. IF[{- !$disabled{rc4} -}]
  100. SOURCE[$RC4_GOAL]=\
  101. cipher_rc4.c cipher_rc4_hw.c
  102. IF[{- !$disabled{md5} -}]
  103. SOURCE[$RC4_GOAL]=\
  104. cipher_rc4_hmac_md5.c cipher_rc4_hmac_md5_hw.c
  105. ENDIF
  106. ENDIF
  107. IF[{- !$disabled{rc5} -}]
  108. SOURCE[$RC5_GOAL]=\
  109. cipher_rc5.c cipher_rc5_hw.c
  110. ENDIF
  111. IF[{- !$disabled{rc2} -}]
  112. SOURCE[$RC2_GOAL]=\
  113. cipher_rc2.c cipher_rc2_hw.c
  114. ENDIF
  115. IF[{- !$disabled{chacha} -}]
  116. SOURCE[$CHACHA_GOAL]=\
  117. cipher_chacha20.c cipher_chacha20_hw.c
  118. IF[{- !$disabled{poly1305} -}]
  119. SOURCE[$CHACHAPOLY_GOAL]=\
  120. cipher_chacha20_poly1305.c cipher_chacha20_poly1305_hw.c
  121. ENDIF
  122. ENDIF