summaryrefslogtreecommitdiffstats
path: root/net/sctp/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/auth.c')
-rw-r--r--net/sctp/auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/auth.c b/net/sctp/auth.c
index 5c9f64c1c906..78767aa20435 100644
--- a/net/sctp/auth.c
+++ b/net/sctp/auth.c
@@ -41,7 +41,7 @@ static struct sctp_hmac sctp_hmac_list[SCTP_AUTH_NUM_HMACS] = {
41 }, 41 },
42 { 42 {
43 .hmac_id = SCTP_AUTH_HMAC_ID_SHA1, 43 .hmac_id = SCTP_AUTH_HMAC_ID_SHA1,
44 .hmac_name="hmac(sha1)", 44 .hmac_name = "hmac(sha1)",
45 .hmac_len = SCTP_SHA1_SIG_SIZE, 45 .hmac_len = SCTP_SHA1_SIG_SIZE,
46 }, 46 },
47 { 47 {
@@ -51,7 +51,7 @@ static struct sctp_hmac sctp_hmac_list[SCTP_AUTH_NUM_HMACS] = {
51#if defined (CONFIG_CRYPTO_SHA256) || defined (CONFIG_CRYPTO_SHA256_MODULE) 51#if defined (CONFIG_CRYPTO_SHA256) || defined (CONFIG_CRYPTO_SHA256_MODULE)
52 { 52 {
53 .hmac_id = SCTP_AUTH_HMAC_ID_SHA256, 53 .hmac_id = SCTP_AUTH_HMAC_ID_SHA256,
54 .hmac_name="hmac(sha256)", 54 .hmac_name = "hmac(sha256)",
55 .hmac_len = SCTP_SHA256_SIG_SIZE, 55 .hmac_len = SCTP_SHA256_SIG_SIZE,
56 } 56 }
57#endif 57#endif
@@ -163,7 +163,7 @@ static int sctp_auth_compare_vectors(struct sctp_auth_bytes *vector1,
163 * lead-zero padded. If it is not, it 163 * lead-zero padded. If it is not, it
164 * is automatically larger numerically. 164 * is automatically larger numerically.
165 */ 165 */
166 for (i = 0; i < abs(diff); i++ ) { 166 for (i = 0; i < abs(diff); i++) {
167 if (longer[i] != 0) 167 if (longer[i] != 0)
168 return diff; 168 return diff;
169 } 169 }