Crypto algorithm list

后端 未结 5 572
死守一世寂寞
死守一世寂寞 2020-12-09 01:32

I\'m trying to find a list of strings that can be used a a crypto algorithm to fit into this function, replacing SHA256.

crypto.cre         


        
5条回答
  •  没有蜡笔的小新
    2020-12-09 01:49

    SHA-256 is not a cipher, it is a hash algorithm. That is probably why you didn't find it in a list of ciphers. The same goes for MD5 and all the various SHA algorithms.

    Indeed, a hash algorithm is exactly what you need for HMAC. If you want to construct a MAC based on a block cipher, you'll need to use some other construction, such as OMAC/CMAC, PMAC or CBC-MAC.

提交回复
热议问题