summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2021-02-24 13:03:41 +0200
committerYuval Adam <_@yuv.al>2021-02-24 13:03:41 +0200
commite97fdd5f6910078f128cde131f70738f4e1874a5 (patch)
treeeba5e27e1e24b69734aa2ec0ef1d427aa4f2ad56 /README.md
parent67a7345cc9bbe3e8e5d3110e56641e85ef4912ca (diff)
Add double hashing clarification
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index e909506..5dfd3f7 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ Base64EncodedSignature#{"id":"01/IL/ABCD1234ABCD1234ABCD1234ABCD1234#ABCD1234","
Where `Base64EncodedSignature` are 256 bytes of an RSA signature signed with a 2048-bit public key and PKCS#1 v1.5 padding, followed by a `#` delimiter, and then the signed JSON payload as defined in https://github.com/MohGovIL/Ramzor#minimal-dataset
-⚠️ **The current MOH implementation has a pitfall.** ⚠️ The JSON payload is not signed as is, but rather the **SHA256 hash** of the data is signed.
+⚠️ **The current MOH implementation has a pitfall.** ⚠️ The JSON payload is not signed as is, but rather the **SHA256 hash** of the data is signed. This effectively means the payload is hashed twice, once manually, and once as part of the signature verification scheme.
### Certificates