signer.util.keygenΒΆ
This File contains functions to create Public and Private Keys.
FunctionsΒΆ
|
This Function generates a Private Key. Which later on is used to get public Key. |
|
This function loads a private key from PEM format. |
Module ContentsΒΆ
- signer.util.keygen.generate_private_key(algorithm_oid_str, curve_name, key_size)[source]ΒΆ
This Function generates a Private Key. Which later on is used to get public Key.
- Parameters:
algorithm_oid_str (str) β oid string of the algorithm to use.
curve_name (str | None) β curve name which is used to generate the private key (either of two is used).
key_size (int | None) β length of the private key (either of two is used).
- Returns:
Gives out the private key. In string pem format.
- Return type:
str