diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-25 01:05:43 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-25 04:12:40 +0200 |
commit | 9de348f24de5ab4f6eafba7a20f3fa64912b917b (patch) | |
tree | e211f27078a6a6a7cb11b7f7567eaa87271cf543 | |
parent | 371746ebd171a83172b328375992f03f6c336bd4 (diff) | |
download | cryptodev-linux-9de348f24de5ab4f6eafba7a20f3fa64912b917b.tar.gz cryptodev-linux-9de348f24de5ab4f6eafba7a20f3fa64912b917b.tar.xz cryptodev-linux-9de348f24de5ab4f6eafba7a20f3fa64912b917b.zip |
Define session cloning interface
-rw-r--r-- | crypto.4 | 5 | ||||
-rw-r--r-- | ncr.h | 1 | ||||
-rw-r--r-- | utils.c | 1 |
3 files changed, 7 insertions, 0 deletions
@@ -543,6 +543,11 @@ For RSA with \fBRSA_PKCS1_PSS\fP. An 32-bit unsigned integer in native byte order specifying the PSS salt length. Optional, defaults to 0. +.IP \fBNCR_ATTR_SESSION_CLONE_FROM\fP +Optional, a 32-bit unsigned integer in native byte order +specifying session state to clone. +Only supported for some operations and algorithms; +specifically intended for cloning hashing sessions. .IP \fBNCR_ATTR_SIGNATURE_HASH_ALGORITHM\fP Mandatory for some operations and algorithms. A NUL-terminated string specifying a hash algorithm underlying a signature, @@ -58,6 +58,7 @@ enum { NCR_ATTR_DH_BASE, /* NLA_BINARY */ NCR_ATTR_DH_PUBLIC, /* NLA_BINARY */ NCR_ATTR_WANTED_ATTRS, /* NLA_BINARY - array of u16 IDs */ + NCR_ATTR_SESSION_CLONE_FROM, /* NLA_U32 - ncr_session_t */ /* Add new attributes here */ @@ -82,6 +82,7 @@ static const struct nla_policy ncr_attr_policy[NCR_ATTR_MAX + 1] = { [NCR_ATTR_DH_BASE] = { NLA_BINARY, 0 }, [NCR_ATTR_DH_PUBLIC] = { NLA_BINARY, 0 }, [NCR_ATTR_WANTED_ATTRS] = { NLA_BINARY, 0 }, + [NCR_ATTR_SESSION_CLONE_FROM] = { NLA_U32, 0 }, }; void *__ncr_get_input_args(void *fixed, struct nlattr *tb[], size_t fixed_size, |