Not all jce providers allow encryption of empty string.