mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:crypto: Fix code formatting
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
b2215aaee0
commit
ac3d67adab
@ -164,13 +164,12 @@ out:
|
||||
return status;
|
||||
}
|
||||
|
||||
static NTSTATUS compute_l1_seed_key(
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct GkdiContext *ctx,
|
||||
const DATA_BLOB security_descriptor,
|
||||
const struct ProvRootKey *const root_key,
|
||||
const struct Gkid gkid,
|
||||
uint8_t key[static const GKDI_KEY_LEN])
|
||||
static NTSTATUS compute_l1_seed_key(TALLOC_CTX *mem_ctx,
|
||||
struct GkdiContext *ctx,
|
||||
const DATA_BLOB security_descriptor,
|
||||
const struct ProvRootKey *const root_key,
|
||||
const struct Gkid gkid,
|
||||
uint8_t key[static const GKDI_KEY_LEN])
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
struct GkdiContextShort short_ctx;
|
||||
@ -350,12 +349,11 @@ static bool gkid_is_valid(const struct Gkid gkid)
|
||||
return true;
|
||||
}
|
||||
|
||||
NTSTATUS compute_seed_key(
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const DATA_BLOB target_security_descriptor,
|
||||
const struct ProvRootKey *const root_key,
|
||||
const struct Gkid gkid,
|
||||
uint8_t key[static const GKDI_KEY_LEN])
|
||||
NTSTATUS compute_seed_key(TALLOC_CTX *mem_ctx,
|
||||
const DATA_BLOB target_security_descriptor,
|
||||
const struct ProvRootKey *const root_key,
|
||||
const struct Gkid gkid,
|
||||
uint8_t key[static const GKDI_KEY_LEN])
|
||||
{
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
enum GkidType gkid_type;
|
||||
|
@ -89,11 +89,10 @@ static const int64_t gkdi_max_clock_skew = 3000000000;
|
||||
gnutls_mac_algorithm_t get_sp800_108_mac_algorithm(
|
||||
const struct KdfAlgorithm kdf_algorithm);
|
||||
|
||||
NTSTATUS compute_seed_key(
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const DATA_BLOB target_security_descriptor,
|
||||
const struct ProvRootKey *const root_key,
|
||||
const struct Gkid gkid,
|
||||
uint8_t out[static const GKDI_KEY_LEN]);
|
||||
NTSTATUS compute_seed_key(TALLOC_CTX *mem_ctx,
|
||||
const DATA_BLOB target_security_descriptor,
|
||||
const struct ProvRootKey *const root_key,
|
||||
const struct Gkid gkid,
|
||||
uint8_t out[static const GKDI_KEY_LEN]);
|
||||
|
||||
#endif /* LIB_CRYPTO_GKDI_H */
|
||||
|
@ -464,7 +464,7 @@ static void test_gkdi_key_derivation(void **state)
|
||||
status = compute_seed_key(
|
||||
mem_ctx,
|
||||
DATA_BLOB_CONST(gmsa_security_descriptor,
|
||||
sizeof gmsa_security_descriptor),
|
||||
sizeof gmsa_security_descriptor),
|
||||
&test_vector->root_key,
|
||||
test_vector->gkid,
|
||||
out);
|
||||
|
Loading…
Reference in New Issue
Block a user