Tham khảo tài liệu 'hacker professional ebook part 134', công nghệ thông tin, an ninh - bảo mật phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | for j 0 j VECSIZE j test_vec i j b sg i .page virt_to_page test_vec i sg i .offset offset_in_page test_vec i sg i .length VECSIZE crypto_chksum_setseed tfm SEEDTESTVAL crypto_chksum_final tfm crc printk testing crc32c setseed returns 08x s n crc crc SEEDTESTVAL A u32 0 pass ERROR printk testing crc32c using update final n pass 1 assume all is well for i 0 i NUMVEC i crypto_chksum_setseed tfm u32 0 crypto_chksum_update tfm sg i 1 crypto_chksum_final tfm crc if crc vec_results i printk 08x OK crc else printk 08x BAD wanted 08x n crc vec_results i pass 0 printk ntesting crc32c using incremental accumulator n crc 0 for i 0 i NUMVEC i crypto_chksum_setseed tfm crc a u32 0 crypto_chksum_update tfm sg i 1 crypto_chksum_final tfm crc if crc tot_vec_results printk 08x OK crc else printk 08x BAD wanted 08x n crc tot_vec_results pass 0 printk ntesting crc32c using digest n crypto_chksum_setseed tfm u32 0 crypto_chksum_digest tfm sg NUMVEC crc if crc tot_vec_results printk 08x OK crc else printk 08x BAD wanted 08x n crc tot_vec_results pass 0 printk n s n pass pass ERROR crypto_free_tfm tfm printk crc32c test complete n static void test_available void char name check @@ -558 7 654 8 @@ test_hash sha384 sha384_tv_template SHA384_TEST_VECTORS test_hash sha512 sha512_tv_template SHA512_TEST_VECTORS -test_deflate test_deflate test_crc32c ifdef CONFIG_CRYPTO_HMAC test_hmac md5 hmac_md5_tv_template HMAC_MD5_TEST_VECTORS test_hmac sha1 hmac_sha1_tv_template HMAC_SHA1_TEST_VECTORS @@ -638 6 735 10 @@ test_cipher cast6 MODE_ECB DECRYPT cast6_dec_tv_template CAST6_DEC_TEST_VECTORS break case 16 test_crc32c break ifdef C0NFIG_CRYPT0_HMAC case 100 test_hmac md5 hmac_md5_tv_template HMAC_MD5_TEST_VECT0RS diff -urN --exclude .ko --exclude .mod. --exclude --exclude .o -exclude . --exclude .cmd --exclude drivers linux- include linux linux include linux include linux Jan 9 00 59 19 2004 linux include linux Jan 14 11 26 39 .