Feature #3075
Updated by Junxiao Shi over 9 years ago
The signature format [SignatureHmacWithSha256](http://named-data.net/doc/NDN-TLV/current/signature.html#signaturehmacwithsha256) SignatureHmacWithSha256 has been approved. approved:<br> http://named-data.net/doc/NDN-TLV/current/signature.html#signaturehmacwithsha256 Need to design support HMAC signatures where the shared key is accessed with a keyName. Ideas: A simple option is to support HMAC keys in [SecTpm::signInTpm](https://github.com/named-data/ndn-cxx/blob/af99f4692b798272705e22ad2df1d8d345db60a1/src/security/sec-tpm.hpp#L153). SecTpm::signInTpm:<br> https://github.com/named-data/ndn-cxx/blob/af99f4692b798272705e22ad2df1d8d345db60a1/src/security/sec-tpm.hpp#L153 Then, if KeyChain::prepareSignatureInfo supports HMAC signatures, then the existing [KeyChain::signImpl](https://github.com/named-data/ndn-cxx/blob/1b0311ce9ab0fd9248bf26fae7020de5cca87d86/src/security/key-chain.hpp#L886) KeyChain::signImpl will work. work:<br> https://github.com/named-data/ndn-cxx/blob/1b0311ce9ab0fd9248bf26fae7020de5cca87d86/src/security/key-chain.hpp#L886