对接 C++ 某加解密接口
1 | // 定义了 KEY 是一个长度为 32 的字符串 |
AES is based on a design principle known as a substitution–permutation network, and is efficient in both software and hardware.[9] Unlike its predecessor DES, AES does not use a Feistel network. AES is a variant of Rijndael, with a fixed block size of 128 bits, and a key size of 128, 192, or 256 bits. By contrast, Rijndael per se is specified with block and key sizes that may be any multiple of 32 bits, with a minimum of 128 and a maximum of 256 bits.
根据维基百科里的说法,AES 的 key size 只支持 128 bits, 192 bits, 256 bits