该代码使用C++类方式实现,实例化后可进行DES,3DES的加解密、MAC计算。默认使用ECB算法,含CBC算法实现。
2021-11-19 19:54:26 7KB 3DES ECB CBC MAC
1
国密SM4算法加解密工具,实现了ECB模式 CBC模式 以及MAC校验等
2021-10-25 22:25:01 268KB 国密SM4 ECB CBC MAC
1
C语言实现AES-CMAC算法源码以及官方手册,在VC++环境下编译通过,完成手册中的demo测试。
2021-04-21 15:00:08 16KB CMAC AES AES-CMAC CBC-MAC
1
详细介绍了AES-CMAC的算法的原理与实现,附有C语言写的样例程序。 以下是原文的introduction: The National Institute of Standards and Technology (NIST) has recently specified the Cipher-based Message Authentication Code(CMAC). CMAC [NIST-CMAC] is a keyed hash function that is based on a symmetric key block cipher, such as the Advanced Encryption Standard [NIST-AES]. CMAC is equivalent to the One-Key CBC MAC1 (OMAC1) submitted by Iwata and Kurosawa [OMAC1a, OMAC1b]. OMAC1 is an improvement of the eXtended Cipher Block Chaining mode (XCBC) submitted by Black and Rogaway [XCBCa, XCBCb], which itself is an improvement of the basic Cipher Block Chaining-Message Authentication Code (CBC-MAC). XCBC efficiently addresses the security deficiencies of CBC-MAC, and OMAC1 efficiently reduces the key size of XCBC. AES-CMAC provides stronger assurance of data integrity than a checksum or an error-detecting code. The verification of a checksum or an error-detecting code detects only accidental modifications of the data, while CMAC is designed to detect intentional, unauthorized modifications of the data, as well as accidental modifications. AES-CMAC achieves a security goal similar to that of HMAC [RFC-HMAC]. Since AES-CMAC is based on a symmetric key block cipher, AES, and HMAC is based on a hash function, such as SHA-1, AES-CMAC is appropriate for information systems in which AES is more readily available than a hash function. This memo specifies the authentication algorithm based on CMAC with AES-128. This new authentication algorithm is named AES-CMAC.
2021-04-15 10:38:21 24KB AES-CMAC CBC-MAC AES 消息认证码
1
利用jce简单实现了CBC-MAC算法,程序主要完成了子密钥生成算法、以及MAC的生成。
2020-01-03 11:28:17 3KB AES CBC MAC JAVA
1
密码学实验(全部题目+完整代码:Hash算法MD5,DES-CBC,基于口令的加密,CBC-MAC,数字信封, 数字签名,DH)
2019-12-21 20:51:40 5MB MD5 DES-CBC CBC-MAC DH
1