!174 I3UWQT: fix kae exception compatibility

From: @jvmboy
Reviewed-by: @jiangfeilong1003
Signed-off-by: @jiangfeilong1003
This commit is contained in:
openeuler-ci-bot 2021-06-09 09:08:26 +08:00 committed by Gitee
commit f4f738ee9c
2 changed files with 6 additions and 3 deletions

View File

@ -3756,8 +3756,8 @@ index 00000000..897e2c6b
+ } catch (ArrayIndexOutOfBoundsException | BadPaddingException e) {
+ if (e instanceof AEADBadTagException) {
+ throw e; // AEADBadTagException is expected for some tests
+ } else if (e instanceof BadPaddingException || e.getMessage().contains("wrong final block length")) {
+ if (padding == Padding.NOPADDING) {
+ } else if (e instanceof BadPaddingException) {
+ if (padding == Padding.NOPADDING || e.getMessage().contains("wrong final block length")) {
+ throw new IllegalBlockSizeException("Input length not multiple of " + blockSize + " bytes");
+ } else {
+ throw e;

View File

@ -918,7 +918,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r
Name: java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver}
Release: 7
Release: 8
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a
@ -2174,6 +2174,9 @@ require "copy_jdk_configs.lua"
%endif
%changelog
* Tue Jun 8 2021 noah <hedongbo@huawei.com> - 1:1.8.0.292-b10.8
- fix kae exception compatibility
* Tue Jun 8 2021 kuenking111 <wangkun49@huawei.com> - 1:1.8.0.292-b10.7
- add improve_algorithmConstraints_checkAlgorithm_performance.patch