support expiration in message verifier and encryptor