Skip to content

Commit af7f656

Browse files
committed
crypto/ec/curve448/eddsa.c: fix EBCDIC platforms
Signed-off-by: Patrick Steuer <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from openssl#11229)
1 parent 7b2ce4a commit af7f656

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crypto/ec/curve448/eddsa.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ static c448_error_t hash_init_with_dom(OPENSSL_CTX *ctx, EVP_MD_CTX *hashctx,
5858
const uint8_t *context,
5959
size_t context_len)
6060
{
61-
const char *dom_s = "SigEd448";
61+
#ifdef CHARSET_EBCDIC
62+
const char dom_s[] = {0x53, 0x69, 0x67, 0x45,
63+
0x64, 0x34, 0x34, 0x38, 0x00};
64+
#else
65+
const char dom_s[] = "SigEd448";
66+
#endif
6267
uint8_t dom[2];
6368
EVP_MD *shake256 = NULL;
6469

0 commit comments

Comments
 (0)