]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:crypto: Fix code formatting
authorJo Sutton <josutton@catalyst.net.nz>
Fri, 22 Dec 2023 03:01:36 +0000 (16:01 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000 (02:41 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/crypto/gkdi.c
lib/crypto/gkdi.h
lib/crypto/test_gkdi_key_derivation.c

index 6799dcfd70ec9e3517052b244b18d55f69f53e5f..e2167946202be85bde44729aa4800d6926053321 100644 (file)
@@ -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;
index 892bcc4b380d6c051d550d8c8269e14d64140ea5..748e9aee9c26ab18702482b7be7002b5969e3c4b 100644 (file)
@@ -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 */
index 22f33561a575b6922e83522d446d0a5dc284d35b..f80519b5c7fd480bf0de2e801a1f35884b051919 100644 (file)
@@ -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);