Q:
What is the Encrypt-Hash and Hash-Decrypt mode in PKTE module?
--------------
A:
PKTE module allows the encryption and hashing to be done in parallel. For this two modes are supported. Encrypt-Hash and Hash-Decrypt.
Encrypt-Hash operation mean that the ciphertext obtained from the encryption for a given source input (plaintext) will be used as an input for hashing and then it will produce hash message digest output. So final result will hold the following:
- The ciphertext(encrypted output) for a given input
- The hash message digest output for a ciphertext generated in step a.
Hash-Decrypt will do the reverse operation of Encrypt-Hash. It will take the ciphertext as input source and will generate the hash message digest output and plaintext(decrypted output) from the ciphertext.