Added verify method to AES also.