Author: kib Date: Sat Nov 27 15:41:44 2010 New Revision: 215942 URL: http://svn.freebsd.org/changeset/base/215942
Log: Remove DEBUG sections. MFC after: 3 days Modified: head/sys/crypto/aesni/aesni_wrap.c Modified: head/sys/crypto/aesni/aesni_wrap.c ============================================================================== --- head/sys/crypto/aesni/aesni_wrap.c Sat Nov 27 13:53:21 2010 (r215941) +++ head/sys/crypto/aesni/aesni_wrap.c Sat Nov 27 15:41:44 2010 (r215942) @@ -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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"