2 * Copyright (c) 2022 Andreas Schneider <asn@samba.org>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef _DCERPC_SAMR_H
19 #define _DCERPC_SAMR_H
21 #include <util/discard.h>
22 #include "lib/util/data_blob.h"
24 #define SAMR_AES256_ENC_KEY_STRING \
25 "Microsoft SAM encryption key AEAD-AES-256-CBC-HMAC-SHA512 16"
26 #define SAMR_AES256_ENC_KEY_STRING_LEN 61 /* Including terminating null byte */
28 #define SAMR_AES256_MAC_KEY_STRING \
29 "Microsoft SAM MAC key AEAD-AES-256-CBC-HMAC-SHA512 16"
30 #define SAMR_AES256_MAC_KEY_STRING_LEN 54 /* Including terminating null byte */
32 static const DATA_BLOB samr_aes256_enc_key_salt
= {
33 .data
= discard_const_p(uint8_t, SAMR_AES256_ENC_KEY_STRING
),
34 .length
= SAMR_AES256_ENC_KEY_STRING_LEN
,
37 static const DATA_BLOB samr_aes256_mac_key_salt
= {
38 .data
= discard_const_p(uint8_t, SAMR_AES256_MAC_KEY_STRING
),
39 .length
= SAMR_AES256_MAC_KEY_STRING_LEN
,
42 #endif /* _DCERPC_SAMR_H */