Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/add_ECDH' into add_ECDH
Browse files Browse the repository at this point in the history
# Conflicts:
#	datasafe-encryption/datasafe-encryption-api/src/main/java/de/adorsys/datasafe/encrypiton/api/types/encryption/KeyCreationConfig.java
#	pom.xml
  • Loading branch information
max402 committed Jan 18, 2024
2 parents 4eb4c90 + 6e4a3ed commit bb2a544
Show file tree
Hide file tree
Showing 52 changed files with 832 additions and 882 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ hs_err_pid*
# node.js / frontend
node_modules/
dist/
.angular/
package-lock.json

865 changes: 49 additions & 816 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion datasafe-business/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -113,6 +113,7 @@
<groupId>de.adorsys</groupId>
<artifactId>datasafe-test-storages</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>

<artifactId>datasafe-cli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/datasafe-directory-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-directory</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-directory-api</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/datasafe-directory-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-directory</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-directory-impl</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-encryption/datasafe-encryption-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-encryption</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-encryption-api</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public static class EncryptingKeyCreationCfg {

@Builder.Default
private final String sigAlgo = "SHA256withECDSA";

@Builder.Default
private final String customNamedCurve = "Curve25519";
}

@Getter
Expand All @@ -66,5 +69,8 @@ public static class SigningKeyCreationCfg {

@Builder.Default
private final String sigAlgo = "SHA256withECDSA";

@Builder.Default
private final String customNamedCurve = "Curve25519";
}
}
2 changes: 1 addition & 1 deletion datasafe-encryption/datasafe-encryption-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-encryption</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-encryption-impl</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import de.adorsys.keymanagement.api.types.template.generated.Secret;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.crypto.ec.CustomNamedCurves;
import org.bouncycastle.jcajce.provider.asymmetric.util.EC5Util;

import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
Expand Down Expand Up @@ -89,6 +91,7 @@ public KeyStore createKeyStore(KeyStoreAuth keyStoreAuth,
.keySize(encConf.getSize())
.prefix("ENC")
.password(passSupplier)
.paramSpec(EC5Util.convertToSpec(CustomNamedCurves.getByName(encConf.getCustomNamedCurve())))
.build()
.repeat(keyConfig.getEncKeyNumber())
)
Expand Down
2 changes: 1 addition & 1 deletion datasafe-encryption/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/datasafe-examples-business/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-business</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-customize-dagger</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/**
* This is Datasafe services customized implementation.
* Note, that despite is has {@code @Singleton} annotation, it is not real singleton, the only shared thing
* Note, that despite it has {@code @Singleton} annotation, it is not real singleton, the only shared thing
* across all services instantiated using build() is bindings with {@code Singleton} in its Module.
*/
@Singleton
Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/datasafe-examples-multidfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-multidfs</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/datasafe-examples-versioned-s3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-versioned-s3</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-inbox/datasafe-inbox-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-inbox</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-inbox-api</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-inbox/datasafe-inbox-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-inbox</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-inbox-impl</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-inbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-long-run-tests</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -106,6 +106,7 @@
<groupId>de.adorsys</groupId>
<artifactId>datasafe-test-storages</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-long-run-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-metainfo/datasafe-metainfo-version-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-metainfo</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-metainfo-version-api</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-metainfo/datasafe-metainfo-version-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-metainfo</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-metainfo-version-impl</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-metainfo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-privatestore/datasafe-privatestore-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-privatestore</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-privatestore/datasafe-privatestore-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-privatestore</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-privatestore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions datasafe-rest-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>

<artifactId>datasafe-rest-impl</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
<name>datasafe-rest-impl</name>
<description>Spring Boot DataSafe Application</description>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-runtime-delegate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-runtime-delegate</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-simple-adapter</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
3 changes: 2 additions & 1 deletion datasafe-simple-adapter/datasafe-simple-adapter-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-simple-adapter</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -45,6 +45,7 @@
<groupId>de.adorsys</groupId>
<artifactId>datasafe-test-storages</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package de.adorsys.datasafe.simple.adapter.impl;

import com.amazonaws.services.s3.model.AmazonS3Exception;
import com.sun.management.UnixOperatingSystemMXBean;
import de.adorsys.datasafe.encrypiton.api.types.UserID;
import de.adorsys.datasafe.encrypiton.api.types.UserIDAuth;
import de.adorsys.datasafe.encrypiton.api.types.encryption.MutableEncryptionConfig;
Expand All @@ -24,17 +23,13 @@
import de.adorsys.datasafe.types.api.utils.ReadKeyPasswordTestFactory;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import net.bytebuddy.implementation.bytecode.Throw;
import org.bouncycastle.util.io.Streams;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

import java.io.ByteArrayInputStream;
import java.io.OutputStream;
import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;
import java.nio.file.NoSuchFileException;
import java.security.UnrecoverableKeyException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-simple-adapter</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -126,6 +126,7 @@
<groupId>de.adorsys</groupId>
<artifactId>datasafe-test-storages</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.Nullable;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;

import java.util.stream.Stream;

Expand Down
Loading

0 comments on commit bb2a544

Please sign in to comment.