* [oss-gost-crypto] [PATCH 3/3] Remove debug prints
@ 2018-09-30 9:29 Wartan Hachaturow
0 siblings, 0 replies; only message in thread
From: Wartan Hachaturow @ 2018-09-30 9:29 UTC (permalink / raw)
To: oss-gost-crypto
[-- Attachment #1: Type: text/plain, Size: 26 bytes --]
:))
--
Вартан
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: [PATCH 3/3] Remove debug prints --]
[-- Type: text/x-patch, Size: 1234 bytes --]
>From 87d1c28fc93c11960d45af970bfbf3a076554ded Mon Sep 17 00:00:00 2001
From: Wartan Hachaturow <wart@debian.org>
Date: Sun, 30 Sep 2018 12:13:45 +0300
Subject: [PATCH 3/3] Remove debug prints
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-30 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-30 9:29 [oss-gost-crypto] [PATCH 3/3] Remove debug prints Wartan Hachaturow
Open-source aspects of GOST Cryptography
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/oss-gost-crypto/0 oss-gost-crypto/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 oss-gost-crypto oss-gost-crypto/ http://lore.altlinux.org/oss-gost-crypto \
oss-gost-crypto@lists.altlinux.org oss-gost-crypto@lists.altlinux.ru oss-gost-crypto@lists.altlinux.com
public-inbox-index oss-gost-crypto
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.oss-gost-crypto
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git