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(); }