Mixe for Privacy and Anonymity in the Internet
Functions
CAASymCipher.cpp File Reference
#include "StdAfx.h"
#include "CAASymCipher.hpp"
#include "CABase64.hpp"
#include "CAUtil.hpp"
#include "xml/DOM_Output.hpp"
Include dependency graph for CAASymCipher.cpp:

Go to the source code of this file.

Functions

void setRSAFlags (RSA *pRSA)

Function Documentation

void setRSAFlags ( RSA *  pRSA) [inline]

Definition at line 51 of file CAASymCipher.cpp.

Referenced by CAASymCipher::generateKeyPair(), CAASymCipher::setPublicKey(), and CAASymCipher::setPublicKeyAsDOMNode().

  {
    if(pRSA==NULL)
      return;
    pRSA->flags|=RSA_FLAG_THREAD_SAFE;
    #ifdef RSA_FLAG_NO_BLINDING
      pRSA->flags|=RSA_FLAG_NO_BLINDING;
    #endif
#if OPENSSL_VERSION_NUMBER  > 0x0090707fL
    pRSA->flags|=RSA_FLAG_NO_EXP_CONSTTIME;
#endif
  }