TAILIEUCHUNG - Cracker Handbook 1.0 part 399

Tham khảo tài liệu 'cracker handbook part 399', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | define define define cra_chksum struct crypto_alg struct list_head cra_list @@ -102 6 111 7 @@ struct cipher_alg cipher struct digest_alg digest struct compress_alg compress struct chksum_alg chksum cra_u struct module cra_module @@ -171 9 181 23 @@ u8 dst unsigned int dlen Setting the seed allows arbitrary accumulators and flexible XOR policy struct chksum_tfm void cht_init struct crypto_tfm tfm inits to 0 void cht_setseed struct crypto_tfm tfm const u32 seed void cht_update struct crypto_tfm tfm struct scatterlist sg unsigned int nsg void cht_final struct crypto_tfm tfm u32 out void cht_digest struct crypto_tfm tfm struct scatterlist sg unsigned int nsg u32 out define define define define crt_chksum struct crypto_tfm @@ -183 6 207 7 @@ struct cipher_tfm cipher struct digest_tfm digest struct compress_tfm compress struct chksum_tfm chksum crt_u struct crypto_alg _crt_alg @@ -357 6 382 49 @@ return tfm- tfm src slen dst dlen static inline void crypto_chksum_init struct crypto_tfm tfm BUG_ON crypto_tfm_alg_type tfm CRYPTO_ALG_TYPE_CHKSUM tfm- crt_chksum. cht_init tfm If your algorithm normally inits with 0 then you must XOR your seed with 0 before calling setseed . static inline void crypto_chksum_setseed struct crypto_tfm tfm const u32 seed BUG_ON crypto_tfm_alg_type tfm CRYPTO_ALG_TYPE_CHKSUM tfm- tfm seed static inline void crypto_chksum_update struct crypto_tfm tfm struct scatterlist sg unsigned int nsg BUG_ON crypto_tfm_alg_type tfm CRYPTO_ALG_TYPE_CHKSUM tfm- tfm sg nsg This function will XOR the results with 0 so take that into account. static inline void crypto_chksum_final struct crypto_tfm tfm u32 out BUG_ON crypto_tfm_alg_type tfm CRYPTO_ALG_TYPE_CHKSUM tfm- crt_chksum. cht_final tfm out static inline void crypto_chksum_digest struct .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.