Skip to content

Customizing SSCEP

Endi S. Dewata edited this page Nov 3, 2021 · 4 revisions

Customizing Hash Algorithm

SSCEP can be modified to use SHA2 hashes by editing sscep.c:

diff ../sscep-org/sscep.c sscep.c
368a369,372
> 	} else if (!strncmp(S_char, "sha256", 6)) {
> 		sig_alg = (EVP_MD *)EVP_sha256();
> 	} else if (!strncmp(S_char, "sha512", 6)) {
> 		sig_alg = (EVP_MD *)EVP_sha512();
380a385,388
> 	} else if (!strncmp(F_char, "sha256", 6)) {
> 		fp_alg = (EVP_MD *)EVP_sha256();
> 	} else if (!strncmp(F_char, "sha512", 6)) {
> 		fp_alg = (EVP_MD *)EVP_sha512();
Clone this wiki locally