summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/cng/aead.rs
diff options
context:
space:
mode:
authorIgor Matuszewski <igor@sequoia-pgp.org>2020-04-10 23:44:51 +0200
committerIgor Matuszewski <igor@sequoia-pgp.org>2020-08-13 13:15:04 +0200
commit976424a29509e194e10d277f15425fb67bb17493 (patch)
tree016f55a487961c2527593035174e1153619b1714 /openpgp/src/crypto/backend/cng/aead.rs
parent9a367f4d5049709b35de12f4879a72c0ada674b0 (diff)
openpgp: Add stubs for other crypto impls using Windows CNG API
Diffstat (limited to 'openpgp/src/crypto/backend/cng/aead.rs')
-rw-r--r--openpgp/src/crypto/backend/cng/aead.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/openpgp/src/crypto/backend/cng/aead.rs b/openpgp/src/crypto/backend/cng/aead.rs
new file mode 100644
index 00000000..4251fb5b
--- /dev/null
+++ b/openpgp/src/crypto/backend/cng/aead.rs
@@ -0,0 +1,18 @@
+//! Implementation of AEAD using Windows CNG API.
+#![allow(unused_variables)]
+
+use crate::Result;
+
+use crate::crypto::aead::Aead;
+use crate::types::{AEADAlgorithm, SymmetricAlgorithm};
+
+impl AEADAlgorithm {
+ pub(crate) fn context(
+ &self,
+ sym_algo: SymmetricAlgorithm,
+ key: &[u8],
+ nonce: &[u8],
+ ) -> Result<Box<dyn Aead>> {
+ unimplemented!()
+ }
+}