Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/update-platform-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: "Update Platform Branch"
#
# To test:
# `act workflow_dispatch -W ./.github/workflows/update-platform-branch.yaml --input tag=protocol/go/v0.3.1`
#
# To run:
# `gh workflow run update-platform-branch.yaml --repo opentdf/java-sdk --ref main --field tag=protocol/go/v0.35.0`

on:
schedule:
Expand Down
8 changes: 8 additions & 0 deletions sdk/src/main/java/io/opentdf/platform/sdk/KeyType.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ public static KeyType fromAlgorithm(Algorithm algorithm) {
return KeyType.HybridSecp256r1MLKEM768Key;
case ALGORITHM_HPQT_SECP384R1_MLKEM1024:
return KeyType.HybridSecp384r1MLKEM1024Key;
case ALGORITHM_MLKEM_768:
return KeyType.MLKEM768Key;
case ALGORITHM_MLKEM_1024:
return KeyType.MLKEM1024Key;
default:
throw new IllegalArgumentException("Unsupported algorithm: " + algorithm);
}
Expand All @@ -127,6 +131,10 @@ public static KeyType fromPublicKeyAlgorithm(KasPublicKeyAlgEnum algorithm) {
return KeyType.HybridSecp256r1MLKEM768Key;
case KAS_PUBLIC_KEY_ALG_ENUM_HPQT_SECP384R1_MLKEM1024:
return KeyType.HybridSecp384r1MLKEM1024Key;
case KAS_PUBLIC_KEY_ALG_ENUM_MLKEM_768:
return KeyType.MLKEM768Key;
case KAS_PUBLIC_KEY_ALG_ENUM_MLKEM_1024:
return KeyType.MLKEM1024Key;
default:
throw new IllegalArgumentException(
"Unsupported KAS public-key algorithm: " + algorithm
Expand Down
Loading