Implement more of totp.Generate