blob: 00e0123d8fdd041d301b1f71fe4c58e5173e4936 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _LINUX_IF_ALG_H
8#define _LINUX_IF_ALG_H
9#include <linux/types.h>
10struct sockaddr_alg {
Tao Baod7db5942015-01-28 10:07:51 -080011 __u16 salg_family;
12 __u8 salg_type[14];
13 __u32 salg_feat;
14 __u32 salg_mask;
Tao Baod7db5942015-01-28 10:07:51 -080015 __u8 salg_name[64];
Ben Cheng655a7c02013-10-16 16:09:24 -070016};
Christopher Ferris05667cd2021-02-16 16:01:34 -080017struct 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 Cheng655a7c02013-10-16 16:09:24 -070024struct af_alg_iv {
Tao Baod7db5942015-01-28 10:07:51 -080025 __u32 ivlen;
Christopher Ferris7447a1c2022-10-04 18:24:44 -070026 __u8 iv[];
Ben Cheng655a7c02013-10-16 16:09:24 -070027};
28#define ALG_SET_KEY 1
29#define ALG_SET_IV 2
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define ALG_SET_OP 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080031#define ALG_SET_AEAD_ASSOCLEN 4
32#define ALG_SET_AEAD_AUTHSIZE 5
Christopher Ferris32ff3f82020-12-14 13:10:04 -080033#define ALG_SET_DRBG_ENTROPY 6
Christopher Ferris8b7fdc92023-02-21 13:36:32 -080034#define ALG_SET_KEY_BY_KEY_SERIAL 7
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define ALG_OP_DECRYPT 0
36#define ALG_OP_ENCRYPT 1
Nick Kralevicha67e4de2013-01-14 11:28:26 -080037#endif