private function getEncryptionOptions($encType = CryptographyProviderInterface::PROPERTY_ENCRYPTION)
    {
        switch ($encType) {
            case CryptographyProviderInterface::PROPERTY_ENCRYPTION:
            case CryptographyProviderInterface::PRIVATE_KEY_ENCRYPTION:
                return 0;
            case CryptographyProviderInterface::FILE_ENCRYPTION:
                return OPENSSL_RAW_DATA;
            default:
                throw new EncryptionException('Encryption type not supported: '.$encType);
        }
    }