m_cipher=NULL;
}
- if (!m_cipher)
+ if (!m_cipher) {
m_cipher=XMLToolingInternalConfig::getInternalConfig().m_xsecProvider->newCipher(element->getOwnerDocument());
+ m_cipher->setExclusiveC14nSerialisation(false);
+ }
try {
checkParams(encParams,kencParams);
m_cipher=NULL;
}
- if (!m_cipher)
+ if (!m_cipher) {
m_cipher=XMLToolingInternalConfig::getInternalConfig().m_xsecProvider->newCipher(element->getOwnerDocument());
+ m_cipher->setExclusiveC14nSerialisation(false);
+ }
try {
checkParams(encParams,kencParams);
doc=XMLToolingConfig::getConfig().getParser().newDocument();
XercesJanitor<DOMDocument> janitor(doc);
m_cipher=XMLToolingInternalConfig::getInternalConfig().m_xsecProvider->newCipher(doc);
+ m_cipher->setExclusiveC14nSerialisation(false);
checkParams(encParams,kencParams);
StreamInputSource::StreamBinInputStream xstream(input);
doc=XMLToolingConfig::getConfig().getParser().newDocument();
XercesJanitor<DOMDocument> janitor(doc);
m_cipher=XMLToolingInternalConfig::getInternalConfig().m_xsecProvider->newCipher(doc);
+ m_cipher->setExclusiveC14nSerialisation(false);
m_cipher->setKEK(kencParams.m_key->clone());
auto_ptr<XENCEncryptedKey> encKey(m_cipher->encryptKey(keyBuffer, keyBufferSize, ENCRYPT_NONE, kencParams.m_algorithm));