Add option to choose cipher and digest algorithms.