blob: 1ddaa912e7bae52c5b9217438fc3b695f73fd792 [file] [log] [blame]
Jeff Thompson47c93cf2013-08-09 00:38:48 -07001/**
2 * @author: Jeff Thompson
3 * See COPYING for copyright and distribution information.
4 */
5
6#ifndef NDN_KEY_CHAIN_HPP
7#define NDN_KEY_CHAIN_HPP
8
9#include "data.hpp";
10
11namespace ndn {
12
13class KeyChain {
14public:
15 /**
Jeff Thompson3df81372013-08-09 12:02:37 -070016 * In data, set the signed info publisher public key digest and key locator key to the default public key and set the
17 * signature using the default private key.
Jeff Thompsonade5b1e2013-08-09 12:16:45 -070018 * Note: the caller must make sure the timestamp is correct, for example with
19 * data.getSignedInfo().setTimestampMilliseconds(time(NULL) * 1000.0).
Jeff Thompson47c93cf2013-08-09 00:38:48 -070020 * @param data The Data object to sign and set the signature.
21 */
22 static void defaultSign(Data &data);
23
24};
25
26}
27
28#endif