bc-java
bc-java copied to clipboard
JceCMSContentEncryptorBuilder使用扩展算法
If you need to use sm4, then when generating Cipher, if you call CreateCipher with NamedJcaJceExtHelper, the parameter required is Cipher.getInstance("SM4","BC"), However, the JceCMSContentEncryptorBuilder passed through the sm4 oid, causing the creation of the Cipher object to fail.