From b3a3903834a034f849a6e911cf7b79ab8024aab9 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 17 Jan 2024 15:47:51 +0100 Subject: [PATCH] Suggest default algorithm choice --- rcgen/src/key_pair.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rcgen/src/key_pair.rs b/rcgen/src/key_pair.rs index 001860c8..7f4fe54f 100644 --- a/rcgen/src/key_pair.rs +++ b/rcgen/src/key_pair.rs @@ -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 { let rng = &SystemRandom::new();