#include <PKIFKeyAgreeContextBase.h>
Provider-specific pieces (such as opaque secret handles) will need to be added to subclasses
TSP-enforcing: No
Definition at line 26 of file PKIFKeyAgreeContextBase.h.
Public Member Functions | |
CPKIFKeyAgreeContextBase () | |
virtual | ~CPKIFKeyAgreeContextBase () |
virtual void | SetAlgorithm (const CPKIFAlgorithm *alg) |
virtual const CPKIFAlgorithm * | GetAlgorithm () const |
virtual void | PrependSharedInfo (const CPKIFBufferPtr &data) |
virtual void | AppendSharedInfo (const CPKIFBufferPtr &data) |
virtual CPKIFBufferList & | GetPrependedSharedInfo () const |
virtual CPKIFBufferList & | GetAppendedSharedInfo () const |
virtual void | SetOwner (IPKIFCryptoKeyAgree *owner) |
virtual IPKIFCryptoKeyAgree * | GetOwner () const |
CPKIFKeyAgreeContextBase::CPKIFKeyAgreeContextBase | ( | ) |
Interface: External
Default constructor
Definition at line 33 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_kaAlg, and CPKIFKeyAgreeContextBaseImpl::m_owner.
CPKIFKeyAgreeContextBase::~CPKIFKeyAgreeContextBase | ( | ) | [virtual] |
Interface: External
Default destructor
Definition at line 47 of file PKIFKeyAgreeContextBase.cpp.
void CPKIFKeyAgreeContextBase::SetAlgorithm | ( | const CPKIFAlgorithm * | alg | ) | [virtual] |
Interface: External
Set the key agreement algorithm information. This needs to include a KDF. The pointer must be managed externally; this class does not own it and will not clean it up.
alg | [in] description of key agreement and derivation algorithm |
Implements IPKIFKeyAgreeContext.
Definition at line 64 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_kaAlg.
const CPKIFAlgorithm * CPKIFKeyAgreeContextBase::GetAlgorithm | ( | ) | const [virtual] |
Interface: External
Get the key agreement algorithm information. The pointer returned must not be freed at during the lifetime of the context.
Implements IPKIFKeyAgreeContext.
Definition at line 80 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_kaAlg.
void CPKIFKeyAgreeContextBase::PrependSharedInfo | ( | const CPKIFBufferPtr & | data | ) | [virtual] |
Interface: External
Add a buffer which will be prepended to the secret prior to key derivation. If this function is called multiple times, data will be prepended in the order it was added.
data | [in] data to prepend |
Implements IPKIFKeyAgreeContext.
Definition at line 94 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_prebufs.
void CPKIFKeyAgreeContextBase::AppendSharedInfo | ( | const CPKIFBufferPtr & | data | ) | [virtual] |
Interface: External
Add a buffer which will be appended to the secret prior to key derivation. If this function is called multiple times, data will be appended in the order it was added.
data | [in] data to append |
Implements IPKIFKeyAgreeContext.
Definition at line 111 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_appbufs.
CPKIFBufferList & CPKIFKeyAgreeContextBase::GetPrependedSharedInfo | ( | ) | const [virtual] |
Interface: External
Get a list of buffers to prepend to the secret before input to KDF.
Implements IPKIFKeyAgreeContext.
Definition at line 126 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_prebufs.
CPKIFBufferList & CPKIFKeyAgreeContextBase::GetAppendedSharedInfo | ( | ) | const [virtual] |
Interface: External
Get a list of buffers to append to the secret before input to KDF.
Implements IPKIFKeyAgreeContext.
Definition at line 138 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_appbufs.
void CPKIFKeyAgreeContextBase::SetOwner | ( | IPKIFCryptoKeyAgree * | owner | ) | [virtual] |
Interface: External
Set the owner of this context. The mediator will use this to find which colleague's KDF it should use. The pointer must be managed externally; this class does not own it and will not clean it up.
owner | [in] pointer to colleague who owns this context |
Implements IPKIFKeyAgreeContext.
Definition at line 153 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_owner.
IPKIFCryptoKeyAgree * CPKIFKeyAgreeContextBase::GetOwner | ( | ) | const [virtual] |
Interface: External
Get the colleague who owns the context
Implements IPKIFKeyAgreeContext.
Definition at line 168 of file PKIFKeyAgreeContextBase.cpp.
References CPKIFKeyAgreeContextBaseImpl::m_owner.