NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
crypto.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_UTIL_CRYPTO_HPP
23
#define NDN_UTIL_CRYPTO_HPP
24
25
#include "../common.hpp"
26
#include "../encoding/buffer.hpp"
27
28
namespace
ndn
{
29
namespace
crypto {
30
32
static
const
size_t
SHA256_DIGEST_SIZE
= 32;
33
41
ConstBufferPtr
42
computeSha256Digest
(
const
uint8_t* data,
size_t
dataLength);
43
49
inline
ConstBufferPtr
50
sha256
(
const
uint8_t* data,
size_t
dataLength)
51
{
52
return
computeSha256Digest
(data, dataLength);
53
}
54
55
}
// namespace crypto
56
57
}
// namespace ndn
58
59
#endif // NDN_UTIL_CRYPTO_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::crypto::SHA256_DIGEST_SIZE
static const size_t SHA256_DIGEST_SIZE
number of octets in a SHA256 digest
Definition:
crypto.hpp:32
ndn::crypto::computeSha256Digest
ConstBufferPtr computeSha256Digest(const uint8_t *data, size_t dataLength)
Compute the sha-256 digest of data.
Definition:
crypto.cpp:31
ndn::ConstBufferPtr
shared_ptr< const Buffer > ConstBufferPtr
Definition:
buffer.hpp:33
ndn::crypto::sha256
ConstBufferPtr sha256(const uint8_t *data, size_t dataLength)
Compute the sha-256 digest of data.
Definition:
crypto.hpp:50
ndnSIM
ndn-cxx
src
util
crypto.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13