A lightweight NDN protocol stack with high-level application support including security bootstrapping, access control, trust management, etc.
GNU Lesser General Public License v3.0
44
stars
16
forks
source link
ndn_lite_default_hmac_sha256 computes T(1) incorrectly #30
Closed
yoursunny closed 5 years ago
According to RFC5869 section 2.3:
And section 2.1:
Given
T(0)
is empty, ifinfo
is also empty, the HMAC key used to computeT(1)
should be0x01
.As of a4dcb80458dff521ac8767b0e0067c1e14fab98d,
ndn_lite_default_hkdf
invokes:This code uses
t_first
(i.e.0x00 0x01
) as HMAC key to computeT(1)
, which differs from RFC5869's definition.