From 3a56735914970bcc9f28431b563f2fbbc44d03ce Mon Sep 17 00:00:00 2001 From: Thendo20 Date: Tue, 9 Jul 2024 15:49:16 +0200 Subject: [PATCH] fixes made --- datasafe-business/src/test/resources/config/mutable.yaml | 4 ++-- .../api/types/encryption/MutableEncryptionConfig.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/datasafe-business/src/test/resources/config/mutable.yaml b/datasafe-business/src/test/resources/config/mutable.yaml index 2be9d8689..61460e89b 100644 --- a/datasafe-business/src/test/resources/config/mutable.yaml +++ b/datasafe-business/src/test/resources/config/mutable.yaml @@ -20,11 +20,11 @@ keys: algo: RSA size: 2048 sigAlgo: SHA256withRSA -# curve: NULL +# curve: signing: algo: RSA size: 2048 sigAlgo: SHA256withRSA -# curve: NULL +# curve: cms: algo: AES256_GCM \ No newline at end of file diff --git a/datasafe-encryption/datasafe-encryption-api/src/main/java/de/adorsys/datasafe/encrypiton/api/types/encryption/MutableEncryptionConfig.java b/datasafe-encryption/datasafe-encryption-api/src/main/java/de/adorsys/datasafe/encrypiton/api/types/encryption/MutableEncryptionConfig.java index 36b4cbdb9..7c13e358c 100644 --- a/datasafe-encryption/datasafe-encryption-api/src/main/java/de/adorsys/datasafe/encrypiton/api/types/encryption/MutableEncryptionConfig.java +++ b/datasafe-encryption/datasafe-encryption-api/src/main/java/de/adorsys/datasafe/encrypiton/api/types/encryption/MutableEncryptionConfig.java @@ -200,9 +200,9 @@ KeyCreationConfig.EncryptingKeyCreationCfg toEncryptingKeyCreationCfg() { builder.sigAlgo(sigAlgo); } - if(null != curve) { + builder.curve(curve); - } + return builder.build(); } @@ -231,9 +231,9 @@ KeyCreationConfig.SigningKeyCreationCfg toSigningKeyCreationCfg() { builder.sigAlgo(sigAlgo); } - if (null != curve) { + builder.curve(curve); - } + return builder.build(); }