init

For symmetric ciphers the key format must be RAW meaning that SecretKeySpec can be used. For RSA the encryption supported key format is X.509, and for decryption PKCS8.