我必须使用特定算法(http://www.tta.or.kr/2001/04/xmlenc#seed-cbc)加密xml消息,并且我想使用org.apache.xml.security.encryption.XMLCipher类(xmlsec 1.5.6)。
我曾尝试添加bouncycastle提供程序并尝试了几种方法来初始化xmlCipher类(getProviderInstance(),getProvider()...)但都失败了。
每次我收到警告:
<ul id="ajax_pagi"> <?php echo $this->pagination->create_links(); ?></ul>
和相应的例外:
WARNING: Algorithm non-standard, expected one of http://www.w3.org/2001/04/xmlenc#tripledes-cbc
http://www.w3.org/2001/04/xmlenc#aes128-cbc
http://www.w3.org/2001/04/xmlenc#aes256-cbc
http://www.w3.org/2001/04/xmlenc#aes192-cbc
http://www.w3.org/2001/04/xmlenc#rsa-1_5
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
http://www.w3.org/2009/xmlenc11#rsa-oaep
http://www.w3.org/2001/04/xmlenc#kw-tripledes
http://www.w3.org/2001/04/xmlenc#kw-aes128
http://www.w3.org/2001/04/xmlenc#kw-aes256
http://www.w3.org/2001/04/xmlenc#kw-aes192
http://www.w3.org/2009/xmlenc11#aes128-gcm
http://www.w3.org/2009/xmlenc11#aes192-gcm
http://www.w3.org/2009/xmlenc11#aes256-gcm
使用XmlCipher时是否可以定义http://www.tta.or.kr/2001/04/xmlenc#seed-cbc?