Skip to content

Commit

Permalink
Use info_sub instead of info in HMAC invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed May 28, 2024
1 parent 868e989 commit da7d5dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions draft-bradleylundberg-cfrg-arkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ KEM-Encaps(pk, info) -> (k, c)
PRK: prk
info: 'ARKG-KEM-HMAC-mac.' || DST_ext || info
L: L
t = HMAC-Hash-128(K=mk, text=info)
t = HMAC-Hash-128(K=mk, text=info_sub)

k = HKDF-Expand with the arguments:
Hash: Hash
Expand Down Expand Up @@ -608,7 +608,7 @@ KEM-Decaps(sk, c, info) -> k
info: 'ARKG-KEM-HMAC-mac.' || DST_ext || info
L: L

t' = HMAC-Hash-128(K=mk, text=info)
t' = HMAC-Hash-128(K=mk, text=info_sub)
If t = t':
k = HKDF-Expand with the arguments:
Hash: Hash
Expand Down Expand Up @@ -1232,3 +1232,5 @@ TODO
- Added requirement of KEM ciphertext integrity and generic formula for augmenting any KEM using HMAC.
- Added curve/edwards25519/448 instances.
- Added proposal for COSE bindings and key reference types.

- 03 Fixed info argument to HMAC in section "Using HMAC to adapt a KEM without integrity protection"

0 comments on commit da7d5dc

Please sign in to comment.