Skip to content

Commit 777eefa

Browse files
committed
Suggest default algorithm choice
1 parent 9d75f31 commit 777eefa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rcgen/src/key_pair.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ impl KeyPair {
178178
}
179179

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

0 commit comments

Comments
 (0)