diff options
author | Patrick Steuer <patrick.steuer@de.ibm.com> | 2020-03-03 13:29:03 +0100 |
---|---|---|
committer | Patrick Steuer <patrick.steuer@de.ibm.com> | 2020-03-05 17:29:30 +0100 |
commit | af7f656cd91d99d62567e2b20c61f07cb4d81d0b (patch) | |
tree | f4751c41016d86d4906acdc70b2a208c054a5ce6 /crypto | |
parent | 7b2ce4a6e817e4385ff77fea0c6e349294c7b756 (diff) |
crypto/ec/curve448/eddsa.c: fix EBCDIC platforms
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11229)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ec/curve448/eddsa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/ec/curve448/eddsa.c b/crypto/ec/curve448/eddsa.c index 95fd66571e..b5762cb584 100644 --- a/crypto/ec/curve448/eddsa.c +++ b/crypto/ec/curve448/eddsa.c @@ -58,7 +58,12 @@ static c448_error_t hash_init_with_dom(OPENSSL_CTX *ctx, EVP_MD_CTX *hashctx, const uint8_t *context, size_t context_len) { - const char *dom_s = "SigEd448"; +#ifdef CHARSET_EBCDIC + const char dom_s[] = {0x53, 0x69, 0x67, 0x45, + 0x64, 0x34, 0x34, 0x38, 0x00}; +#else + const char dom_s[] = "SigEd448"; +#endif uint8_t dom[2]; EVP_MD *shake256 = NULL; |