auto-gen key stream