Skip to content

Commit

Permalink
Suggest default algorithm choice
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Jan 17, 2024
1 parent 224d629 commit b3a3903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rcgen/src/key_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ impl KeyPair {
}

/// Generate a new random key pair for the specified signature algorithm
///
/// If you're not sure which algorithm to use, [`PKCS_ECDSA_P256_SHA256`] is a good choice.
pub fn generate(alg: &'static SignatureAlgorithm) -> Result<Self, Error> {
let rng = &SystemRandom::new();

Expand Down

0 comments on commit b3a3903

Please sign in to comment.