Run util/openssl-format-source -v -c .
[openssl.git] / crypto / cmac / cm_ameth.c
index 0b8e5670b0ec7b0ef09bb04929306293346ca570..bf933e0866d29d3c271b70fef64b9146bdfb6065 100644 (file)
@@ -1,5 +1,6 @@
-/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
- * project 2010.
+/*
+ * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
+ * 2010.
  */
 /* ====================================================================
  * Copyright (c) 2010 The OpenSSL Project.  All rights reserved.
@@ -9,7 +10,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
 #include <openssl/cmac.h>
 #include "asn1_locl.h"
 
-/* CMAC "ASN1" method. This is just here to indicate the
- * maximum CMAC output length and to free up a CMAC
- * key.
+/*
+ * CMAC "ASN1" method. This is just here to indicate the maximum CMAC output
+ * length and to free up a CMAC key.
  */
 
 static int cmac_size(const EVP_PKEY *pkey)
-       {
-       return EVP_MAX_BLOCK_LENGTH;
-       }
+{
+    return EVP_MAX_BLOCK_LENGTH;
+}
 
 static void cmac_key_free(EVP_PKEY *pkey)
-       {
-       CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
-       if (cmctx)
-               CMAC_CTX_free(cmctx);
-       }
+{
+    CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
+    if (cmctx)
+        CMAC_CTX_free(cmctx);
+}
 
-const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = 
-       {
-       EVP_PKEY_CMAC,
-       EVP_PKEY_CMAC,
-       0,
+const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = {
+    EVP_PKEY_CMAC,
+    EVP_PKEY_CMAC,
+    0,
 
-       "CMAC",
-       "OpenSSL CMAC method",
+    "CMAC",
+    "OpenSSL CMAC method",
 
-       0,0,0,0,
+    0, 0, 0, 0,
 
-       0,0,0,
+    0, 0, 0,
 
-       cmac_size,
-       0,
-       0,0,0,0,0,0,0,
-
-       cmac_key_free,
-       0,
-       0,0
-       };
+    cmac_size,
+    0,
+    0, 0, 0, 0, 0, 0, 0,
 
+    cmac_key_free,
+    0,
+    0, 0
+};