Show / Hide Table of Contents

EcdhPrimitivesCreator Property

EcdhPrimitivesCreator

This property is a delegate (function pointer). This method will return an instance of IEcdhPrimitives.

C#
public static Func<IEcdhPrimitives> EcdhPrimitivesCreator { get; set; }

Property Value

Type Description
Func<IEcdhPrimitives>

Remarks

When an SDK operation needs to perform compute the ECDH shared secret, it will do so using an implementation of the IEcdhPrimitives interface. However, when it needs an instance, it will as this delegate to build an object, rather than build it itself.

If you want to replace the implementation, you will likely do something like this in your application. The body of the delegate is responsible for creating an instance of ECDH based on an implementation of your own choosing.

CryptographyProviders.EcdhPrimitivesCreator = () =>
{
    Handle ecdhHandle = GetHandle();
    return EcdhImpl.GetEcdhObject(ecdhHandle);
}
In this article
Back to top Generated by DocFX