No provider for SHA-256

2007-09-22 Thread huang zhimin
public void encrypt(Document document) throws Exception { KeyStore ks = getKeyStore(); X509Certificate certificate = getCertificate(ks); String algorithmURI = XMLCipher.SHA256; Element rootElement = document.getDocumentElement(); XMLCipher xmlCipher = XMLCi

Re: No provider for SHA-256

2007-09-22 Thread Michael McIntosh
I am not sure how to use SHA-256 as a cipher algorithm, and doubt you would use a public key from a certificate with it. Also, since you seem to be encrypting a significant amount of data I'd suggest you generate a symmetric key (TRIPLEDES or AES), encrypt the data ("rootElement") with it, and t