]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - include/uapi/linux/tls.h
Update kernel headers
[mirror_iproute2.git] / include / uapi / linux / tls.h
index 3b6754004466eaeab0935dfd62a1243a6f95755b..805cbce6ce3d60f90a5aa97d4608242ef996c92e 100644 (file)
 #define TLS_CIPHER_AES_CCM_128_TAG_SIZE                16
 #define TLS_CIPHER_AES_CCM_128_REC_SEQ_SIZE            8
 
+#define TLS_CIPHER_CHACHA20_POLY1305                   54
+#define TLS_CIPHER_CHACHA20_POLY1305_IV_SIZE           12
+#define TLS_CIPHER_CHACHA20_POLY1305_KEY_SIZE  32
+#define TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE         0
+#define TLS_CIPHER_CHACHA20_POLY1305_TAG_SIZE  16
+#define TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE      8
+
 #define TLS_SET_RECORD_TYPE    1
 #define TLS_GET_RECORD_TYPE    2
 
@@ -109,6 +116,14 @@ struct tls12_crypto_info_aes_ccm_128 {
        unsigned char rec_seq[TLS_CIPHER_AES_CCM_128_REC_SEQ_SIZE];
 };
 
+struct tls12_crypto_info_chacha20_poly1305 {
+       struct tls_crypto_info info;
+       unsigned char iv[TLS_CIPHER_CHACHA20_POLY1305_IV_SIZE];
+       unsigned char key[TLS_CIPHER_CHACHA20_POLY1305_KEY_SIZE];
+       unsigned char salt[TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE];
+       unsigned char rec_seq[TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE];
+};
+
 enum {
        TLS_INFO_UNSPEC,
        TLS_INFO_VERSION,