Ejemplo n.º 1
0
 public static ISM2 CreateWithPrivateKey(BigInteger key) => new Sm2Function(Sm2KeyGenerator.GeneratePrivateKey(key));
Ejemplo n.º 2
0
 public static Sm2Key GenerateKey(AsymmetricKeyMode mode) => Sm2KeyGenerator.Generate(mode);
Ejemplo n.º 3
0
 public static ISM2 CreateWithPublicKey(ECPoint key) => new Sm2Function(Sm2KeyGenerator.GeneratePublicKey(key));
Ejemplo n.º 4
0
 public static ISM2 CreateWithPrivateKey(string key) => new Sm2Function(Sm2KeyGenerator.GeneratePrivateKey(key));
Ejemplo n.º 5
0
 public static Sm2Key GeneratePrivateKey(BigInteger privatePem) => Sm2KeyGenerator.GeneratePrivateKey(privatePem);
Ejemplo n.º 6
0
 public static Sm2Key GeneratePrivateKey(string privateKey) => Sm2KeyGenerator.GeneratePrivateKey(privateKey);
Ejemplo n.º 7
0
 public static Sm2Key GeneratePrivateKey() => Sm2KeyGenerator.GeneratePrivateKey();
Ejemplo n.º 8
0
 public static Sm2Key GeneratePublicKey(string publicKey) => Sm2KeyGenerator.GeneratePublicKey(publicKey);
Ejemplo n.º 9
0
 public static Sm2Key GeneratePublicKey(ECPoint publicPem) => Sm2KeyGenerator.GeneratePublicKey(publicPem);
Ejemplo n.º 10
0
 public static Sm2Key GeneratePublicKey() => Sm2KeyGenerator.GeneratePublicKey();
Ejemplo n.º 11
0
 public static Sm2Key GenerateKey(AsymmetricKeyMode mode, string publicKey, string privateKey) => Sm2KeyGenerator.Generate(mode, publicKey, privateKey);