summaryrefslogtreecommitdiffstats
path: root/crypto/cmac/cm_ameth.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-01-22 04:40:55 +0100
committerMatt Caswell <matt@openssl.org>2015-01-22 10:20:09 +0100
commit0f113f3ee4d629ef9a4a30911b22b224772085e5 (patch)
treee014603da5aed1d0751f587a66d6e270b6bda3de /crypto/cmac/cm_ameth.c
parentMore tweaks for comments due indent issues (diff)
downloadopenssl-0f113f3ee4d629ef9a4a30911b22b224772085e5.tar.xz
openssl-0f113f3ee4d629ef9a4a30911b22b224772085e5.zip
Run util/openssl-format-source -v -c .
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/cmac/cm_ameth.c')
-rw-r--r--crypto/cmac/cm_ameth.c61
1 files changed, 30 insertions, 31 deletions
diff --git a/crypto/cmac/cm_ameth.c b/crypto/cmac/cm_ameth.c
index 455c5602d9..0b6850ed1b 100644
--- a/crypto/cmac/cm_ameth.c
+++ b/crypto/cmac/cm_ameth.c
@@ -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
@@ -56,42 +57,40 @@
#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,0,
-
- cmac_key_free,
- 0,
- 0,0
- };
+ cmac_size,
+ 0, 0,
+ 0, 0, 0, 0, 0, 0, 0,
+ cmac_key_free,
+ 0,
+ 0, 0
+};