3 votes

Can ECB block cipher mode be used to implement CTR?

Yes, that's usually also the reason why ECB is supplied, to have it implement other cryptographic primitives. The good thing about CTR is that you can create the resulting key stream in advance, in ...
Maarten Bodewes's user avatar
  • 92.4k
3 votes

ChaCha20 as a block cipher

It's not possible to use any existing part of ChaCha# as a block cipher. In particular, I read this statement as incorrect: With the key, the entire (ChaCha) block function can be reversed. Chacha's ...
fgrieu's user avatar
  • 140k
1 vote

Can HKDF be safely used as a round function in a Feistel Cipher

I didn't look too closely at the code for all issues. But in general, you could use HKDF to implement a Feistel cipher for the sake of an experiment. The way this is implemented currently uses HKDF ...
Marc Ilunga's user avatar
  • 3,163

Only top scored, non community-wiki answers of a minimum length are eligible