libtins  4.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Tins::ICMPv6::rsa_sign_type Struct Reference

#include <icmpv6.h>

Public Types

typedef std::vector< uint8_t > signature_type
 

Public Member Functions

template<typename RAIterator , typename ForwardIterator >
 rsa_sign_type (RAIterator hash, ForwardIterator start, ForwardIterator end)
 Constructs a rsa_sign_type object. More...
 
template<typename RAIterator >
 rsa_sign_type (RAIterator hash, const signature_type &sign)
 Constructs a rsa_sign_type object. More...
 
 rsa_sign_type ()
 Default constructs a rsa_sign_type. More...
 

Static Public Member Functions

static rsa_sign_type from_option (const option &opt)
 

Public Attributes

uint8_t key_hash [16]
 
signature_type signature
 

Detailed Description

The type used to store the RSA signature option.

Constructor & Destructor Documentation

template<typename RAIterator , typename ForwardIterator >
Tins::ICMPv6::rsa_sign_type::rsa_sign_type ( RAIterator  hash,
ForwardIterator  start,
ForwardIterator  end 
)
inline

Constructs a rsa_sign_type object.

The first parameter must be a random access iterator which will be used to initialize the key_hash member. It is assumed that std::distance(hash, end_of_hash) >= 16.

The second and third arguments indicate the start and end of the sequence which will be used to initialize the signature member.

Parameters
hashA random access iterator used to initialize the key_hash member.
startA forward iterator pointing to the start of the sequence which will be used to initialize the signature member.
endA forward iterator pointing to the end of the sequence used to initialize signature.
template<typename RAIterator >
Tins::ICMPv6::rsa_sign_type::rsa_sign_type ( RAIterator  hash,
const signature_type &  sign 
)
inline

Constructs a rsa_sign_type object.

The first parameter must be a random access iterator which will be used to initialize the key_hash member. It is assumed that std::distance(hash, end_of_hash) >= 16.

Parameters
hashA random access iterator used to initialize the key_hash member.
signThe signature to be set.
Tins::ICMPv6::rsa_sign_type::rsa_sign_type ( )
inline

Default constructs a rsa_sign_type.

The key_hash member will be 0-initialized.


The documentation for this struct was generated from the following files: