[PATCH 3/3] Remove debug prints
Wartan Hachaturow
wart at debian.org
Sun Sep 30 12:13:45 MSK 2018
---
crypto/gost28147_generic.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/crypto/gost28147_generic.c b/crypto/gost28147_generic.c
index d20843f6252f..0c90712ac8fa 100644
--- a/crypto/gost28147_generic.c
+++ b/crypto/gost28147_generic.c
@@ -2231,9 +2231,6 @@ static void gost28147_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
const u32 *kp = ctx->key;
u32 *sbox = ctx->sbox;
- printk("Hi, GOST28147 encryption, current sbox[0] is %d, sbox[1] is %d, key first byte is %x, second byte is %x\n", sbox[0], sbox[1], kp[0], kp[1]);
- printk("Plain text first byte is %x\n", in[0]);
-
r = get_unaligned_le32(in);
l = get_unaligned_le32(in + 4);
GOST_ENCRYPT_ROUND(kp[0], kp[1], sbox)
@@ -2254,7 +2251,6 @@ static void gost28147_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
GOST_ENCRYPT_ROUND(kp[1], kp[0], sbox)
put_unaligned_le32(l, out);
put_unaligned_le32(r, out + 4);
- printk("Out's first byte is %x, second byte is %x\n", out[0], out[1]);
}
/* decrypt a block of text */
--
2.19.0.rc2
--=-=-=--
More information about the oss-gost-crypto
mailing list