summaryrefslogtreecommitdiffstats
path: root/include/net/tls.h
diff options
context:
space:
mode:
authorDave Watson2019-01-30 22:58:05 +0100
committerDavid S. Miller2019-02-02 00:00:55 +0100
commitfb99bce7120014307dde57b3d7def6977a9a62a1 (patch)
tree675e706950fa83542e60630c08a1eee8c91400ad /include/net/tls.h
parentMerge tag 'batadv-next-for-davem-20190201' of git://git.open-mesh.org/linux-m... (diff)
downloadkernel-qcow2-linux-fb99bce7120014307dde57b3d7def6977a9a62a1.tar.gz
kernel-qcow2-linux-fb99bce7120014307dde57b3d7def6977a9a62a1.tar.xz
kernel-qcow2-linux-fb99bce7120014307dde57b3d7def6977a9a62a1.zip
net: tls: Support 256 bit keys
Wire up support for 256 bit keys from the setsockopt to the crypto framework Signed-off-by: Dave Watson <davejwatson@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tls.h')
-rw-r--r--include/net/tls.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net/tls.h b/include/net/tls.h
index 4592606e136a..da616db48413 100644
--- a/include/net/tls.h
+++ b/include/net/tls.h
@@ -206,7 +206,10 @@ struct cipher_context {
union tls_crypto_context {
struct tls_crypto_info info;
- struct tls12_crypto_info_aes_gcm_128 aes_gcm_128;
+ union {
+ struct tls12_crypto_info_aes_gcm_128 aes_gcm_128;
+ struct tls12_crypto_info_aes_gcm_256 aes_gcm_256;
+ };
};
struct tls_context {