aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-07-31 10:25:25 -0400
committerJack Lloyd <[email protected]>2017-07-31 10:25:25 -0400
commit274fe964858102c7e0d9077dacb882fa495980e3 (patch)
tree656428d356bd67bfa4591aee4989099519b182d2 /src/lib/ffi/ffi.h
parent40f399c920c3516d66cbea977f1d38e55a1f7fb1 (diff)
parent240797c3558407283c16e6111e6a4b0dbca40e2a (diff)
Merge GH #1135 Add RFC 3394 keywrap to FFI
Diffstat (limited to 'src/lib/ffi/ffi.h')
-rw-r--r--src/lib/ffi/ffi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h
index 4a7723974..cbe883f8d 100644
--- a/src/lib/ffi/ffi.h
+++ b/src/lib/ffi/ffi.h
@@ -1049,6 +1049,17 @@ enum botan_x509_cert_key_constraints {
BOTAN_DLL int botan_x509_cert_allowed_usage(botan_x509_cert_t cert, unsigned int key_usage);
+/**
+ * Key wrapping as per RFC 3394
+ */
+BOTAN_DLL int botan_key_wrap3394(uint8_t key[], size_t key_len,
+ uint8_t kek[], size_t kek_len,
+ uint8_t wrapped_key[], size_t *wrapped_key_len);
+
+BOTAN_DLL int botan_key_unwrap3394( uint8_t wrapped_key[], size_t wrapped_key_len,
+ uint8_t kek[], size_t kek_len,
+ uint8_t key[], size_t *key_len);
+
/*
* TLS (WIP)
*/