svn commit: r216073 - stable/8/sys/crypto/aesni
Konstantin Belousov
kib at FreeBSD.org
Tue Nov 30 08:39:06 UTC 2010
Author: kib
Date: Tue Nov 30 08:39:05 2010
New Revision: 216073
URL: http://svn.freebsd.org/changeset/base/216073
Log:
MFC r215942:
Remove DEBUG sections.
Approved by: re (bz)
Modified:
stable/8/sys/crypto/aesni/aesni_wrap.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/crypto/aesni/aesni_wrap.c
==============================================================================
--- stable/8/sys/crypto/aesni/aesni_wrap.c Tue Nov 30 08:25:57 2010 (r216072)
+++ stable/8/sys/crypto/aesni/aesni_wrap.c Tue Nov 30 08:39:05 2010 (r216073)
@@ -37,22 +37,6 @@ __FBSDID("$FreeBSD$");
MALLOC_DECLARE(M_AESNI);
-#ifdef DEBUG
-static void
-ps_len(const char *string, const uint8_t *data, int length)
-{
- int i;
-
- printf("%-12s[0x", string);
- for(i = 0; i < length; i++) {
- if (i % AES_BLOCK_LEN == 0 && i > 0)
- printf("+");
- printf("%02x", data[i]);
- }
- printf("]\n");
-}
-#endif
-
void
aesni_encrypt_cbc(int rounds, const void *key_schedule, size_t len,
const uint8_t *from, uint8_t *to, const uint8_t iv[AES_BLOCK_LEN])
@@ -60,11 +44,6 @@ aesni_encrypt_cbc(int rounds, const void
const uint8_t *ivp;
size_t i;
-#ifdef DEBUG
- ps_len("AES CBC encrypt iv:", iv, AES_BLOCK_LEN);
- ps_len("from:", from, len);
-#endif
-
len /= AES_BLOCK_LEN;
ivp = iv;
for (i = 0; i < len; i++) {
@@ -73,9 +52,6 @@ aesni_encrypt_cbc(int rounds, const void
from += AES_BLOCK_LEN;
to += AES_BLOCK_LEN;
}
-#ifdef DEBUG
- ps_len("to:", to - len * AES_BLOCK_LEN, len * AES_BLOCK_LEN);
-#endif
}
void
More information about the svn-src-stable-8
mailing list