Lines Matching refs:DhContext
659 This function first initiate a DHContext, then call the DhSetParameter() to set
666 @param[in, out] DhContext Pointer to the DH context.
682 IN OUT UINT8 **DhContext,
692 *DhContext = DhNew ();
693 ASSERT (*DhContext != NULL);
694 if (!DhSetParameter (*DhContext, Generator, PrimeLength, Prime)) {
699 if (!DhGenerateKey (*DhContext, PublicKey, PublicKeySize)) {
706 if (*DhContext != NULL) {
707 DhFree (*DhContext);
708 DhContext = NULL;
720 @param[in, out] DhContext Pointer to the DH context.
734 IN OUT UINT8 *DhContext,
741 if (!DhComputeKey (DhContext, PeerPublicKey, PeerPublicKeySize, Key, KeySize)) {
749 Releases the DH context. If DhContext is NULL, return EFI_INVALID_PARAMETER.
751 @param[in, out] DhContext Pointer to the DH context to be freed.
754 @retval EFI_INVALID_PARAMETER The DhContext is NULL.
759 IN OUT UINT8 **DhContext
762 if (*DhContext == NULL) {
766 DhFree (*DhContext);