projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b2ce4a
)
crypto/ec/curve448/eddsa.c: fix EBCDIC platforms
author
Patrick Steuer
<patrick.steuer@de.ibm.com>
Tue, 3 Mar 2020 12:29:03 +0000
(13:29 +0100)
committer
Patrick Steuer
<patrick.steuer@de.ibm.com>
Thu, 5 Mar 2020 16:29:30 +0000
(17:29 +0100)
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)
crypto/ec/curve448/eddsa.c
patch
|
blob
|
history
diff --git
a/crypto/ec/curve448/eddsa.c
b/crypto/ec/curve448/eddsa.c
index 95fd66571e1cc4cb2f6a216a7f7525e591da4cc8..b5762cb584ebf086771956121dce9f697a377633 100644
(file)
--- 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;