当前位置: 首页 > 工具软件 > one-sm > 使用案例 >

shardingsphere sm4 java.security.InvalidKeyException: no IV set when one expected

章高朗
2023-12-01
java.security.InvalidKeyException: no IV set when one expected
	at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineInit(Unknown Source) ~[bcprov-jdk15on-1.70.jar:1.70.0]
	at javax.crypto.Cipher.init(Cipher.java:1245) ~[na:1.8.0_191]
	at javax.crypto.Cipher.init(Cipher.java:1185) ~[na:1.8.0_191]
	at org.apache.shardingsphere.encrypt.algorithm.SM4EncryptAlgorithm.handle(SM4EncryptAlgorithm.java:151) ~[shardingsphere-encrypt-core-5.1.1.jar:5.1.1]
	at org.apache.shardingsphere.encrypt.algorithm.SM4EncryptAlgorithm.decrypt(SM4EncryptAlgorithm.java:140) ~[shardingsphere-encrypt-core-5.1.1.jar:5.1.1]
	at org.apache.shardingsphere.encrypt.algorithm.SM4EncryptAlgorithm.decrypt(SM4EncryptAlgorithm.java:136) ~[shardingsphere-encrypt-core-5.1.1.jar:5.1.1]
	at org.apache.shardingsphere.encrypt.algorithm.SM4EncryptAlgorithm.decrypt(SM4EncryptAlgorithm.java:43) ~[shardingsphere-encrypt-core-5.1.1.jar:5.1.1]
	at org.apache.shardingsphere.encrypt.merge.dql.EncryptMergedResult.getValue(EncryptMergedResult.java:57) ~[shardingsphere-encrypt-core-5.1.1.jar:5.1.1]
	at org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSet.getString(ShardingSphereResultSet.java:192) ~[shardingsphere-jdbc-core-5.1.1.jar:5.1.1]
	at org.apache.shardingsphere.driver.jdbc.core.resultset.ShardingSphereResultSet.getString(ShardingSphereResultSet.java:197) ~[shardingsphere-jdbc-core-5.1.1.jar:5.1.1]
	at org.apache.ibatis.type.StringTypeHandler.getNullableResult(StringTypeHandler.java:37) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.type.StringTypeHandler.getNullableResult(StringTypeHandler.java:26) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.type.BaseTypeHandler.getResult(BaseTypeHandler.java:66) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.applyAutomaticMappings(DefaultResultSetHandler.java:520) ~[mybatis-3.4.6.jar:3.4.6]

我这里的情况就是: 当使用id查询加密后的结果时出现问题,当查询中将加密数据进行一并入参时 查询为空,不知为何…

 类似资料:

相关阅读

相关文章

相关问答