Last active
November 11, 2021 11:05
-
-
Save ronaldtse/e7569de55a4ddb476d9881b7e5267e3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"symmetric": [ | |
"aes": { | |
"key-length": [ | |
{ | |
/* anything less will score "unacceptable" */ | |
"predicate": "min", | |
"levels": [ | |
{ | |
"level": 2, | |
"value": 128 | |
}, | |
{ | |
"level": 3, | |
"value": 192 | |
} | |
] | |
} | |
] | |
}, | |
/* disable SM4 */ | |
"sm4": 0 | |
], | |
"asymmetric": { | |
"rsa": { | |
/* different filtering parameters available to algorithms */ | |
"keysize": [ | |
{ | |
/* anything less will score "unacceptable" */ | |
"predicate": "min", | |
"levels": [ | |
{ | |
"value": 1024, | |
"level": 1 | |
}, | |
{ | |
"value": 2048, | |
"level": 3 | |
} | |
] | |
} | |
] | |
} | |
}, | |
"hash": { | |
/* specifying a level as an attribute */ | |
"md5": { | |
"level": 2, | |
} | |
/* specifying a default level */ | |
"ripemd-160": 3, | |
"sha-1": { | |
"valid": [ | |
{ | |
/* sha-1 is considered level 2 until 20220101 */ | |
"predicate": "until", | |
"levels": [ | |
{ | |
"level": 2, | |
"value": "20220101" | |
} | |
] | |
}, | |
/* sha-1 is considered level 1 (e.g. insecure) since 20220101 */ | |
{ | |
"predicate": "from", | |
"levels": [ | |
{ | |
"level": 1, | |
"value": "20220101" | |
} | |
] | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following shows usage for both production and consumption of algorithms, with examples of how a client can interpret the values.