diff options
Diffstat (limited to 'openpgp/src/crypto/backend/interface.rs')
-rw-r--r-- | openpgp/src/crypto/backend/interface.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openpgp/src/crypto/backend/interface.rs b/openpgp/src/crypto/backend/interface.rs new file mode 100644 index 00000000..d0c8ffff --- /dev/null +++ b/openpgp/src/crypto/backend/interface.rs @@ -0,0 +1,11 @@ +//! The crypto-backend abstraction. + +/// Abstracts over the cryptographic backends. +pub trait Backend { + /// Returns a short, human-readable description of the backend. + /// + /// This starts with the name of the backend, possibly a version, + /// and any optional features that are available. This is meant + /// for inclusion in version strings to improve bug reports. + fn backend() -> String; +} |