X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=CryptoPkg%2FInclude%2FLibrary%2FBaseCryptLib.h;h=4564d7be6542d959101a7a26d5fc58c442c64907;hp=d996410201c2ddd35bb33b3c0ab27ad93e015c54;hb=dda39f3a5850458391aaab330971d46bc9c2b690;hpb=a08dcb2ab16fbb496ff837d5c55c4cb22343aaa5 diff --git a/CryptoPkg/Include/Library/BaseCryptLib.h b/CryptoPkg/Include/Library/BaseCryptLib.h index d996410201..4564d7be65 100644 --- a/CryptoPkg/Include/Library/BaseCryptLib.h +++ b/CryptoPkg/Include/Library/BaseCryptLib.h @@ -1978,12 +1978,13 @@ DhGenerateKey ( Computes exchanged common key. Given peer's public key, this function computes the exchanged common key, based on its own - context including value of prime modulus and random secret exponent. + context including value of prime modulus and random secret exponent. If DhContext is NULL, then return FALSE. If PeerPublicKey is NULL, then return FALSE. If KeySize is NULL, then return FALSE. - If KeySize is large enough but Key is NULL, then return FALSE. + If Key is NULL, then return FALSE. + If KeySize is not large enough, then return FALSE. If this interface is not supported, then return FALSE. @param[in, out] DhContext Pointer to the DH context.