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