Open-source aspects of GOST Cryptography
 help / color / mirror / Atom feed
From: Wartan Hachaturow <wartan.hachaturow@gmail.com>
To: oss-gost-crypto@lists.altlinux.org
Subject: [oss-gost-crypto] [PATCH 3/3] Remove debug prints
Date: Sun, 30 Sep 2018 12:29:30 +0300
Message-ID: <8736trqqo5.fsf@gmail.com> (raw)

[-- 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


                 reply	other threads:[~2018-09-30  9:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8736trqqo5.fsf@gmail.com \
    --to=wartan.hachaturow@gmail.com \
    --cc=oss-gost-crypto@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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