Link to this headingSynthetic Initial Value (SIV)
F:\Memory\Crypto\Symmetric Encryption\Block Ciphers\SIV.md
- Very similar to [CCM](/Crypto/Symmetric Encryption/Block Ciphers/CCM.md) but uses CMAC rather than CBC-MAC
The SIV mode creates a MAC from the mac_key, the message and some optional data. Then it uses the MAC as the IV for encryption.
This makes it hard for duplicate IVs to be present as in both the message, key and other CMAC parameters need to be the same.
Link to this headingImplementation
= b
#Generate Keys
=
=
=
=
#Per message IV with CMAC
=
#AES-CTR with CMAC as the IV
=
=
#Encrypted Data: b'=\xd1\xfe0\xa8m\x86D\xfaG\x9c\xec'