diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-19 18:20:26 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-19 18:20:26 +0200 |
commit | 5507ea6f51bd227ce4af661d550ad4d4de80674b (patch) | |
tree | 324958e4792047c42f9cc41041c5e0c7c0843103 /ncr-dh.h | |
parent | a7befd9b8fba6f6d777f7d8436154dc62f1fa652 (diff) | |
download | kernel-crypto-5507ea6f51bd227ce4af661d550ad4d4de80674b.tar.gz kernel-crypto-5507ea6f51bd227ce4af661d550ad4d4de80674b.tar.xz kernel-crypto-5507ea6f51bd227ce4af661d550ad4d4de80674b.zip |
Added KEY_WRAPPING flag that allows a key to be used for wrapping other keys.
Only superuser can enable this flag. Prevent short keys to wrap longer ones. Added initial stuff
for supporting wrapping of private and public keys.
Diffstat (limited to 'ncr-dh.h')
-rw-r--r-- | ncr-dh.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -22,4 +22,6 @@ int dh_import(const uint8_t *in, size_t inlen, dh_key *key); int dh_derive_gxy(struct key_item_st* newkey, dh_key * key, void* pk, size_t pk_size); +int ncr_pk_get_dh_size( dh_key* key); + #endif |