lib: support more ciphers, stream ciphers