Fix segmentation fault when creating new Cipher object