Implement DKIM signer.

For every session maintain a state that could record and calculate
hashes of headers and data respectively. On eom, prepare the base64
strings of hashes, sign the headers hash with RSA algorithm using
the provided privatekey.