Exemple #1
0
 /// <summary>
 /// Generate Pkcs8 format RSA private key.
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKeyInPkcs8(string key) => Factory.GeneratePrivateKeyInPkcs8(key);
Exemple #2
0
 /// <summary>
 /// Generate Pkcs8 format RSA private key.
 /// </summary>
 /// <param name="keySize">Key Size.Unit: bits</param>
 /// <param name="keepingFormat">Whether the format is true If it is standard pem file format</param>
 /// <returns></returns>
 public static RsaKey GeneratePrivateKeyInPkcs8(RsaKeySize keySize, bool keepingFormat) => Factory.GeneratePrivateKeyInPkcs8(keySize, keepingFormat);