summaryrefslogtreecommitdiffstats
path: root/CryptoPkg
diff options
context:
space:
mode:
authorHou, Wenxing <wenxing.hou@intel.com>2024-03-29 10:32:40 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-04-01 02:48:15 +0000
commit278250045b45e98764b2e3c5171af784ea060553 (patch)
treefb88ed8ee958ccc9082e803fbe6be1cce5ee370a /CryptoPkg
parent37f63deeefa89b7ac28285bc59eca22a5c00eb92 (diff)
downloadedk2-278250045b45e98764b2e3c5171af784ea060553.tar.gz
edk2-278250045b45e98764b2e3c5171af784ea060553.tar.bz2
edk2-278250045b45e98764b2e3c5171af784ea060553.zip
CryptoPkg: Update OPTIONAL location for BaseCryptLibMbedTls
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4740 There is a wrong usage for OPTIONAL. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Yi Li <yi1.li@intel.com> Signed-off-by: Wenxing Hou <wenxing.hou@intel.com> Reviewed-by: Yi Li <yi1.li@intel.com>
Diffstat (limited to 'CryptoPkg')
-rw-r--r--CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptPkcs1OaepNull.c6
-rw-r--r--CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptX509Null.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptPkcs1OaepNull.c b/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptPkcs1OaepNull.c
index a686308652..0273b7b63f 100644
--- a/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptPkcs1OaepNull.c
+++ b/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptPkcs1OaepNull.c
@@ -38,10 +38,8 @@ Pkcs1v2Encrypt (
IN UINTN PublicKeySize,
IN UINT8 *InData,
IN UINTN InDataSize,
- IN CONST UINT8 *PrngSeed,
- OPTIONAL
- IN UINTN PrngSeedSize,
- OPTIONAL
+ IN CONST UINT8 *PrngSeed OPTIONAL,
+ IN UINTN PrngSeedSize OPTIONAL,
OUT UINT8 **EncryptedData,
OUT UINTN *EncryptedDataSize
)
diff --git a/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptX509Null.c b/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptX509Null.c
index 8ee3d44435..96356f87fd 100644
--- a/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptX509Null.c
+++ b/CryptoPkg/Library/BaseCryptLibMbedTls/Pk/CryptX509Null.c
@@ -377,8 +377,7 @@ EFIAPI
X509GetSerialNumber (
IN CONST UINT8 *Cert,
IN UINTN CertSize,
- OUT UINT8 *SerialNumber,
- OPTIONAL
+ OUT UINT8 *SerialNumber OPTIONAL,
IN OUT UINTN *SerialNumberSize
)
{
@@ -441,8 +440,7 @@ EFIAPI
X509GetSignatureAlgorithm (
IN CONST UINT8 *Cert,
IN UINTN CertSize,
- OUT UINT8 *Oid,
- OPTIONAL
+ OUT UINT8 *Oid OPTIONAL,
IN OUT UINTN *OidSize
)
{