예제 #1
0
 /// <summary>
 /// Initializes a new instance with the key provided by the ECDsa object.
 /// </summary>
 /// <param name="ecsda">The ECDsa object previously initialized with the desired key.</param>
 /// <param name="includePrivateParameters">Tells if the instance must inclue private parameters.
 /// This requires the key in the ECDsa object to include private material and be marked as exportable.</param>
 public JsonWebKey(ECDsa ecsda, bool includePrivateParameters = false)
     : this(ecParameters : EccExtension.ExportParameters(ecsda, includePrivateParameters))
 {
     KeyOps = ecsda.GetKeyOperations();
 }