lib: support null-ciphers