esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ndnph::port_ec_null::Ec::PrivateKey Class Reference

Private key. More...

#include <null.hpp>

Public Member Functions

bool import (const uint8_t[Curve::PubLen::value])
 Import raw key. More...
 
ssize_t sign (const uint8_t digest[NDNPH_SHA256_LEN], uint8_t sig[Curve::MaxSigLen::value]) const
 Perform signing on a SHA256 digest. More...
 

Detailed Description

Private key.

Member Function Documentation

◆ import()

bool ndnph::port_ec_null::Ec::PrivateKey::import ( const uint8_t  [Curve::PubLen::value])
inline

Import raw key.

Returns
whether success.

◆ sign()

ssize_t ndnph::port_ec_null::Ec::PrivateKey::sign ( const uint8_t  digest[NDNPH_SHA256_LEN],
uint8_t  sig[Curve::MaxSigLen::value] 
) const
inline

Perform signing on a SHA256 digest.

Returns
signature length, or -1 upon failure.

The documentation for this class was generated from the following file: