diff options
Diffstat (limited to 'openpgp/src/crypto/backend/nettle.rs')
-rw-r--r-- | openpgp/src/crypto/backend/nettle.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openpgp/src/crypto/backend/nettle.rs b/openpgp/src/crypto/backend/nettle.rs index d2197493..d2d8750a 100644 --- a/openpgp/src/crypto/backend/nettle.rs +++ b/openpgp/src/crypto/backend/nettle.rs @@ -12,9 +12,12 @@ pub mod symmetric; /// Returns a short, human-readable description of the backend. pub fn backend() -> String { - // XXX: Once we depend on nettle-rs 7.1, add cv448 feature - // XXX: Once we depend on nettle-rs 7.2, add nettle::version - "Nettle".to_string() + let (major, minor) = nettle::version(); + format!( + "Nettle {}.{} (Cv448: {:?})", + major, minor, + nettle::curve448::IS_SUPPORTED, + ) } /// Fills the given buffer with random data. |