BaseTools: Update Rsa2048Sha256Sign to use openssl standard options

sha256 is not the standard option. It should be replaced by sha -sha256.
Otherwise, it doesn't work in MAC OS.

In V2, update the option to sha1 -sha256.
In late openssl version >= 1.1, there is no sha option, but has sha1,sha256.
In previous openssl version < 1.1, there is no sha256, but has sha,sha1.
To work with all openssl version, use sha1 -sha256 for it.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liao Jui-peng <jui-pengx.liao@intel.com>
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
(cherry picked from commit 1d574dfc15e4495a4063ce4faf3c2e9191677d8d)
1 file changed
tree: 28cf971db5db6c39d49cfdeb03f819ce3566e2e3
  1. .gitignore
  2. .gitmodules
  3. AppPkg/
  4. ArmPkg/
  5. ArmPlatformPkg/
  6. ArmVirtPkg/
  7. BaseTools/
  8. BeagleBoardPkg/
  9. BuildNotes2.txt
  10. Conf/
  11. Contributions.txt
  12. CorebootModulePkg/
  13. CorebootPayloadPkg/
  14. CryptoPkg/
  15. DuetPkg/
  16. EdkCompatibilityPkg/
  17. EdkShellBinPkg/
  18. EdkShellPkg/
  19. EmbeddedPkg/
  20. EmulatorPkg/
  21. FatBinPkg/
  22. FatPkg/
  23. IntelFrameworkModulePkg/
  24. IntelFrameworkPkg/
  25. IntelFsp2Pkg/
  26. IntelFsp2WrapperPkg/
  27. IntelFspPkg/
  28. IntelFspWrapperPkg/
  29. IntelSiliconPkg/
  30. License.txt
  31. Maintainers.txt
  32. MdeModulePkg/
  33. MdePkg/
  34. NetworkPkg/
  35. Nt32Pkg/
  36. Omap35xxPkg/
  37. OptionRomPkg/
  38. OvmfPkg/
  39. PcAtChipsetPkg/
  40. QuarkPlatformPkg/
  41. QuarkSocPkg/
  42. Readme.md
  43. SecurityPkg/
  44. ShellBinPkg/
  45. ShellPkg/
  46. SignedCapsulePkg/
  47. SourceLevelDebugPkg/
  48. StdLib/
  49. StdLibPrivateInternalFiles/
  50. UefiCpuPkg/
  51. UnixPkg/
  52. Vlv2DeviceRefCodePkg/
  53. Vlv2TbltDevicePkg/
  54. edksetup.bat
  55. edksetup.sh
Readme.md

EDK II Project

A modern, feature-rich, cross-platform firmware development environment for the UEFI and PI specifications from www.uefi.org.

Contributions to the EDK II open source project are covered by the TianoCore Contribution Agreement 1.1

The majority of the content in the EDK II open source project uses a BSD 2-Clause License. The EDK II open source project contains the following components that are covered by additional licenses:

The EDK II Project is composed of packages. The maintainers for each package are listed in Maintainers.txt.

Resources