Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
mkay1375 committed Aug 2, 2024
1 parent 8f8ed0f commit 7454bcc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/main/java/io/github/tap30/hiss/HissEncryptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
import org.intellij.lang.annotations.Language;
import org.jetbrains.annotations.Nullable;

import java.util.Objects;

class HissEncryptor {

private final HissProperties hissProperties;

public HissEncryptor(HissProperties hissProperties) {
Objects.requireNonNull(hissProperties);
this.hissProperties = hissProperties;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.Set;
import java.util.function.Supplier;

// Todo: import doc
/**
* Sample Envs:
* <br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

public class HissPropertiesValidator {

private static final Set<String> SUPPORTED_ENCRYPTION_ALGORITHMS
= Set.of("aes-128-gcm", "aes-128-cbc"); // Todo: get these from algorithm spec
private static final Set<String> SUPPORTED_HASHING_ALGORITHMS
= Set.of("hmac-sha256"); // Todo: get this from algorithm spec
private static final Set<String> SUPPORTED_ENCRYPTION_ALGORITHMS =
Set.of("aes-128-gcm", "aes-128-cbc"); // Todo: get these from algorithm spec
private static final Set<String> SUPPORTED_HASHING_ALGORITHMS =
Set.of("hmac-sha256"); // Todo: get this from algorithm spec

private final KeyHashGenerator keyHashGenerator;

Expand Down

0 comments on commit 7454bcc

Please sign in to comment.