libdecaf
Public Types | Public Member Functions | Static Public Attributes | List of all members
decaf::EdDSA< Ed448Goldilocks >::PublicKeyBase Class Reference

EdDSA Public key base class. More...

Inheritance diagram for decaf::EdDSA< Ed448Goldilocks >::PublicKeyBase:
decaf::Serializable< PublicKeyBase >

Public Types

typedef class PrivateKeyBase PrivateKey
 Private key corresponding to this type of public key.
 
typedef Ed448Goldilocks Group
 Underlying group.
 

Public Member Functions

 PublicKeyBase (const NOINIT &) DECAF_NOEXCEPT
 Create but don't initialize.
 
 PublicKeyBase (const FixedBlock< SER_BYTES > &b) DECAF_NOEXCEPT
 Read a private key from a string.
 
 PublicKeyBase (const PublicKeyBase &k) DECAF_NOEXCEPT
 Copy constructor.
 
 PublicKeyBase (const PrivateKey &k) DECAF_NOEXCEPT
 Copy constructor.
 
PublicKey & operator= (const FixedBlock< SER_BYTES > &b) DECAF_NOEXCEPT
 Assignment from string.
 
PublicKey & operator= (const PublicKey &p) DECAF_NOEXCEPT
 Assignment from public key.
 
PublicKey & operator= (const PrivateKey &p) DECAF_NOEXCEPT
 Assignment from private key.
 
size_t ser_size () const DECAF_NOEXCEPT
 Serialization size. More...
 
void serialize_into (unsigned char *x) const DECAF_NOEXCEPT
 Serialize into a buffer. More...
 
SecureBuffer convert_to_x () const
 Convert to X format (to be used for key exchange)
 
- Public Member Functions inherited from decaf::Serializable< PublicKeyBase >
size_t ser_size () const DECAF_NOEXCEPT
 Return the number of bytes needed to serialize this object.
 
void serialize_into (unsigned char *buf) const DECAF_NOEXCEPT
 Serialize this object into a buffer.
 
SecureBuffer serialize () const
 Serialize this object into a SecureBuffer and return it.
 

Static Public Attributes

static const size_t SIG_BYTES = DECAF_EDDSA_448_SIGNATURE_BYTES
 Signature size. More...
 
static const size_t SER_BYTES = DECAF_EDDSA_448_PRIVATE_BYTES
 Serialization size. More...
 

Detailed Description

template<>
class decaf::EdDSA< Ed448Goldilocks >::PublicKeyBase

EdDSA Public key base class.

Member Function Documentation

◆ ser_size()

size_t decaf::EdDSA< Ed448Goldilocks >::PublicKeyBase::ser_size ( ) const
inline

Serialization size.

◆ serialize_into()

void decaf::EdDSA< Ed448Goldilocks >::PublicKeyBase::serialize_into ( unsigned char *  x) const
inline

Serialize into a buffer.

Member Data Documentation

◆ SER_BYTES

const size_t decaf::EdDSA< Ed448Goldilocks >::PublicKeyBase::SER_BYTES = DECAF_EDDSA_448_PRIVATE_BYTES
static

Serialization size.

◆ SIG_BYTES

const size_t decaf::EdDSA< Ed448Goldilocks >::PublicKeyBase::SIG_BYTES = DECAF_EDDSA_448_SIGNATURE_BYTES
static

Signature size.


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