diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-06 01:39:33 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-06 01:39:33 +0100 |
commit | 6533e74370acfa51653608b1dc5e1292c72970c9 (patch) | |
tree | dbd3b13cb10df6f341a82a5a449fcf5a4b9d9b66 /blowfish.c | |
parent | a583bb24fb23728c9c4ed6c6c573d526ab654c49 (diff) | |
download | crypto-6533e74370acfa51653608b1dc5e1292c72970c9.zip crypto-6533e74370acfa51653608b1dc5e1292c72970c9.tar.gz |
remove extra spaces
Diffstat (limited to 'blowfish.c')
-rw-r--r-- | blowfish.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,11 +1,11 @@ -/* +/* * Cryptographic API. * * Blowfish Cipher Algorithm, by Bruce Schneier. * http://www.counterpane.com/blowfish.html - * + * * Adapated from Kerneli implementation. - * + * * Copyright (c) Herbert Valerio Riedel <hvr@hvrlab.org> * Copyright (c) Kyle McMartin <kyle@debian.org> * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> @@ -288,7 +288,7 @@ static const u32 bf_sbox[256 * 4] = { 0xb74e6132, 0xce77e25b, 0x578fdfe3, 0x3ac372e6, }; -/* +/* * Round loop unrolling macros, S is a pointer to a S-Box array * organized in 4 unsigned longs at a row. */ @@ -304,7 +304,7 @@ static const u32 bf_sbox[256 * 4] = { /* * The blowfish encipher, processes 64-bit blocks. - * NOTE: This function MUSTN'T respect endianess + * NOTE: This function MUSTN'T respect endianess */ static __inline void encrypt_block(struct blowfish_ctx *bctx, u32 *dst, u32 *src) { @@ -383,7 +383,7 @@ void blowfish_decrypt(void *ctx, u8 *dst, const u8 *src) out_blk[1] = cpu_to_be32(yl); } -/* +/* * Calculates the blowfish S and P boxes for encryption and decryption. */ int blowfish_setkey(void *ctx, const u8 *key, unsigned int keylen, u32 *flags) @@ -431,7 +431,7 @@ int blowfish_setkey(void *ctx, const u8 *key, unsigned int keylen, u32 *flags) S[count + 1] = data[1]; } } - + /* Bruce says not to bother with the weak key check. */ return 0; } |