Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _LINUX_IF_ALG_H |
| 8 | #define _LINUX_IF_ALG_H |
| 9 | #include <linux/types.h> |
| 10 | struct sockaddr_alg { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 11 | __u16 salg_family; |
| 12 | __u8 salg_type[14]; |
| 13 | __u32 salg_feat; |
| 14 | __u32 salg_mask; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | __u8 salg_name[64]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 16 | }; |
Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 17 | struct sockaddr_alg_new { |
| 18 | __u16 salg_family; |
| 19 | __u8 salg_type[14]; |
| 20 | __u32 salg_feat; |
| 21 | __u32 salg_mask; |
| 22 | __u8 salg_name[]; |
| 23 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | struct af_alg_iv { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | __u32 ivlen; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 26 | __u8 iv[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | }; |
| 28 | #define ALG_SET_KEY 1 |
| 29 | #define ALG_SET_IV 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | #define ALG_SET_OP 3 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 31 | #define ALG_SET_AEAD_ASSOCLEN 4 |
| 32 | #define ALG_SET_AEAD_AUTHSIZE 5 |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame] | 33 | #define ALG_SET_DRBG_ENTROPY 6 |
Christopher Ferris | 8b7fdc9 | 2023-02-21 13:36:32 -0800 | [diff] [blame] | 34 | #define ALG_SET_KEY_BY_KEY_SERIAL 7 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define ALG_OP_DECRYPT 0 |
| 36 | #define ALG_OP_ENCRYPT 1 |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 37 | #endif |