index of uint.sakura.ne.jp/z/tom

simple libtomcrypt example

- make KEK from the password and a salt using a hash function
- encrypt the HMAC key with KEK using AES
- decrypt the HMAC key with KEK using AES
- make HMAC from the data and the HMAC key using a HMAC function
- make hash from the data using a hash function