Virgil Security Crypto library  2.6.3
Classes | Public Member Functions | Static Public Member Functions | List of all members
virgil::crypto::primitive::VirgilOperationDH Class Reference

Define proxy interface for the Diffie-Hellman functionality. More...

#include <VirgilOperationDH.h>

Public Member Functions

template<class Impl >
 VirgilOperationDH (Impl impl)
 Captures implementation object. More...
 
VirgilByteArray calculate (const VirgilByteArray &publicKey, const VirgilByteArray &privateKey, const VirgilByteArray &privateKeyPassword=VirgilByteArray()) const
 Compute shared key by using Diffie-Hellman algorithm. More...
 

Static Public Member Functions

static VirgilOperationDH getDefault ()
 Return default implementation.
 

Detailed Description

Define proxy interface for the Diffie-Hellman functionality.

Note
This is experimental feature.

Constructor & Destructor Documentation

template<class Impl >
virgil::crypto::primitive::VirgilOperationDH::VirgilOperationDH ( Impl  impl)
inline

Captures implementation object.

Template Parameters
Impl- class that contains functions that has identical signature to this class functions.
Parameters
impl- object that implements interface.

Member Function Documentation

VirgilByteArray virgil::crypto::primitive::VirgilOperationDH::calculate ( const VirgilByteArray publicKey,
const VirgilByteArray privateKey,
const VirgilByteArray privateKeyPassword = VirgilByteArray() 
) const
inline

Compute shared key by using Diffie-Hellman algorithm.

Parameters
publicKey- public key of the side 1.
privateKey- private key of the side 2.
privateKeyPassword- private key password of the side 2.
Returns
Shared key.

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