mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:crypto: Add GKDI module with some constants
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
44f6bfea5a
commit
6369f2cf1b
21
lib/crypto/gkdi.c
Normal file
21
lib/crypto/gkdi.c
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
Group Key Distribution Protocol functions
|
||||
|
||||
Copyright (C) Catalyst.Net Ltd 2023
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "lib/crypto/gkdi.h"
|
32
lib/crypto/gkdi.h
Normal file
32
lib/crypto/gkdi.h
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
Group Key Distribution Protocol functions
|
||||
|
||||
Copyright (C) Catalyst.Net Ltd 2023
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIB_CRYPTO_GKDI_H
|
||||
#define LIB_CRYPTO_GKDI_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
static const int gkdi_l1_key_iteration = 32;
|
||||
static const int gkdi_l2_key_iteration = 32;
|
||||
|
||||
static const int64_t gkdi_key_cycle_duration = 360000000000;
|
||||
static const int64_t gkdi_max_clock_skew = 3000000000;
|
||||
|
||||
#endif /* LIB_CRYPTO_GKDI_H */
|
@ -27,6 +27,9 @@ def build(bld):
|
||||
LIBCRYPTO
|
||||
''')
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('gkdi',
|
||||
source='gkdi.c')
|
||||
|
||||
bld.SAMBA_PYTHON('python_crypto',
|
||||
source='py_crypto.c',
|
||||
deps='gnutls talloc LIBCLI_AUTH',
|
||||
|
Loading…
Reference in New Issue
Block a user