@@ -972,7 +972,7 @@ public enum Algorithm { |
972 | 972 | /** |
973 | 973 | * The ML-KEM-512 algorithm is the NIST FIPS 203 version of the post-quantum Kyber algorithm. |
974 | 974 | * It has 128-bits of classical security strength, and is claimed to meet NIST Level 1 |
975 | | - * quantum security strength (equivalent to finding the key for an AES-1128 block). |
| 975 | + * quantum security strength (equivalent to finding the key for an AES-128 block). |
976 | 976 | * <p> |
977 | 977 | * This algorithm was added in Java 24, and may not be supported everywhere. |
978 | 978 | */ |
@@ -992,7 +992,104 @@ public enum Algorithm { |
992 | 992 | * <p> |
993 | 993 | * This algorithm was added in Java 24, and may not be supported everywhere. |
994 | 994 | */ |
995 | | - mlKem1024("ML-KEM", namedParameterSpec("ML-KEM-1024"), UNSUPPORTED_SIGN); |
| 995 | + mlKem1024("ML-KEM", namedParameterSpec("ML-KEM-1024"), UNSUPPORTED_SIGN), |
| 996 | + /** |
| 997 | + * The SLH-DSA-SHA2-128s algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 998 | + * It has 128-bits of classical security strength, and is claimed to meet NIST Level 1 |
| 999 | + * quantum security strength (equivalent to finding the key for an AES-128 block). |
| 1000 | + * <p> |
| 1001 | + * SLH-DSA algorithms with the 's' suffix have relatively smaller signatures but are much slower. |
| 1002 | + */ |
| 1003 | + slhDsaSha2_128s("SLH-DSA", namedParameterSpec("SLH-DSA-SHA2-128s"), "SLH-DSA-SHA2-128s"), |
| 1004 | + /** |
| 1005 | + * The SLH-DSA-SHA2-128f algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1006 | + * It has 128-bits of classical security strength, and is claimed to meet NIST Level 1 |
| 1007 | + * quantum security strength (equivalent to finding the key for an AES-128 block). |
| 1008 | + * <p> |
| 1009 | + * SLH-DSA algorithms with the 'f' suffix have larger signatures but are much faster. |
| 1010 | + */ |
| 1011 | + slhDsaSha2_128f("SLH-DSA", namedParameterSpec("SLH-DSA-SHA2-128f"), "SLH-DSA-SHA2-128f"), |
| 1012 | + /** |
| 1013 | + * The SLH-DSA-SHAKE-128s algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1014 | + * It has 128-bits of classical security strength, and is claimed to meet NIST Level 1 |
| 1015 | + * quantum security strength (equivalent to finding the key for an AES-128 block). |
| 1016 | + * <p> |
| 1017 | + * SLH-DSA algorithms with the 's' suffix have relatively smaller signatures but are much slower. |
| 1018 | + */ |
| 1019 | + slhDsaShake_128s("SLH-DSA", namedParameterSpec("SLH-DSA-SHAKE-128s"), "SLH-DSA-SHAKE-128s"), |
| 1020 | + /** |
| 1021 | + * The SLH-DSA-SHAKE-128f algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1022 | + * It has 128-bits of classical security strength, and is claimed to meet NIST Level 1 |
| 1023 | + * quantum security strength (equivalent to finding the key for an AES-128 block). |
| 1024 | + * <p> |
| 1025 | + * SLH-DSA algorithms with the 'f' suffix have larger signatures but are much faster. |
| 1026 | + */ |
| 1027 | + slhDsaShake_128f("SLH-DSA", namedParameterSpec("SLH-DSA-SHAKE-128f"), "SLH-DSA-SHAKE-128f"), |
| 1028 | + /** |
| 1029 | + * The SLH-DSA-SHA2-192 algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1030 | + * It has 192-bits of classical security strength, and is claimed to meet NIST Level 3 |
| 1031 | + * quantum security strength (equivalent to finding the key for an AES-192 block). |
| 1032 | + * <p> |
| 1033 | + * SLH-DSA algorithms with the 's' suffix have relatively smaller signatures but are much slower. |
| 1034 | + */ |
| 1035 | + slhDsaSha2_192s("SLH-DSA", namedParameterSpec("SLH-DSA-SHA2-192s"), "SLH-DSA-SHA2-192s"), |
| 1036 | + /** |
| 1037 | + * The SLH-DSA-SHA2-192f algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1038 | + * It has 192-bits of classical security strength, and is claimed to meet NIST Level 3 |
| 1039 | + * quantum security strength (equivalent to finding the key for an AES-192 block). |
| 1040 | + * <p> |
| 1041 | + * SLH-DSA algorithms with the 'f' suffix have larger signatures but are much faster. |
| 1042 | + */ |
| 1043 | + slhDsaSha2_192f("SLH-DSA", namedParameterSpec("SLH-DSA-SHA2-192f"), "SLH-DSA-SHA2-192f"), |
| 1044 | + /** |
| 1045 | + * The SLH-DSA-SHAKE-192s algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1046 | + * It has 192-bits of classical security strength, and is claimed to meet NIST Level 3 |
| 1047 | + * quantum security strength (equivalent to finding the key for an AES-192 block). |
| 1048 | + * <p> |
| 1049 | + * SLH-DSA algorithms with the 's' suffix have relatively smaller signatures but are much slower. |
| 1050 | + */ |
| 1051 | + slhDsaShake_192s("SLH-DSA", namedParameterSpec("SLH-DSA-SHAKE-192s"), "SLH-DSA-SHAKE-192s"), |
| 1052 | + /** |
| 1053 | + * The SLH-DSA-SHAKE-192f algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1054 | + * It has 192-bits of classical security strength, and is claimed to meet NIST Level 3 |
| 1055 | + * quantum security strength (equivalent to finding the key for an AES-192 block). |
| 1056 | + * <p> |
| 1057 | + * SLH-DSA algorithms with the 'f' suffix have larger signatures but are much faster. |
| 1058 | + */ |
| 1059 | + slhDsaShake_192f("SLH-DSA", namedParameterSpec("SLH-DSA-SHAKE-192f"), "SLH-DSA-SHAKE-192f"), |
| 1060 | + /** |
| 1061 | + * The SLH-DSA-SHA2-256s algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1062 | + * It has 256-bits of classical security strength, and is claimed to meet NIST Level 5 |
| 1063 | + * quantum security strength (equivalent to finding the key for an AES-256 block). |
| 1064 | + * <p> |
| 1065 | + * SLH-DSA algorithms with the 's' suffix have relatively smaller signatures but are much slower. |
| 1066 | + */ |
| 1067 | + slhDsaSha2_256s("SLH-DSA", namedParameterSpec("SLH-DSA-SHA2-256s"), "SLH-DSA-SHA2-256s"), |
| 1068 | + /** |
| 1069 | + * The SLH-DSA-SHA2-256f algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1070 | + * It has 256-bits of classical security strength, and is claimed to meet NIST Level 5 |
| 1071 | + * quantum security strength (equivalent to finding the key for an AES-256 block). |
| 1072 | + * <p> |
| 1073 | + * SLH-DSA algorithms with the 'f' suffix have larger signatures but are much faster. |
| 1074 | + */ |
| 1075 | + slhDsaSha2_256f("SLH-DSA", namedParameterSpec("SLH-DSA-SHA2-256f"), "SLH-DSA-SHA2-256f"), |
| 1076 | + /** |
| 1077 | + * The SLH-DSA-SHAKE-256s algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1078 | + * It has 256-bits of classical security strength, and is claimed to meet NIST Level 5 |
| 1079 | + * quantum security strength (equivalent to finding the key for an AES-256 block). |
| 1080 | + * <p> |
| 1081 | + * SLH-DSA algorithms with the 's' suffix have relatively smaller signatures but are much slower. |
| 1082 | + */ |
| 1083 | + slhDsaShake_256s("SLH-DSA", namedParameterSpec("SLH-DSA-SHAKE-256s"), "SLH-DSA-SHAKE-256s"), |
| 1084 | + /** |
| 1085 | + * The SLH-DSA-SHAKE-256f algorithm is the NIST FIPS 205 of the post-quantum SPHINCS+ algorithm. |
| 1086 | + * It has 256-bits of classical security strength, and is claimed to meet NIST Level 5 |
| 1087 | + * quantum security strength (equivalent to finding the key for an AES-256 block). |
| 1088 | + * <p> |
| 1089 | + * SLH-DSA algorithms with the 'f' suffix have larger signatures but are much faster. |
| 1090 | + */ |
| 1091 | + slhDsaShake_256f("SLH-DSA", namedParameterSpec("SLH-DSA-SHAKE-256f"), "SLH-DSA-SHAKE-256f"), |
| 1092 | + ; |
996 | 1093 |
|
997 | 1094 | final String keyType; |
998 | 1095 | final AlgorithmParameterSpec parameterSpec; |
|