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

◆ setRSAFlags()

void setRSAFlags ( RSA *  pRSA)

Definition at line 63 of file CAASymCipher.cpp.

64 {
65  if (pRSA == NULL)
66  return;
67  #if OPENSSL_VERSION_NUMBER > 0x100020cfL
68  RSA_set_flags(pRSA,RSA_FLAG_THREAD_SAFE | RSA_FLAG_NO_BLINDING );
69  #else
70  pRSA->flags |= RSA_FLAG_THREAD_SAFE;
71  pRSA->flags |= RSA_FLAG_SIGN_VER;
72  #ifdef RSA_FLAG_NO_BLINDING
73  pRSA->flags |= RSA_FLAG_NO_BLINDING;
74  #endif
75  #endif //OPENSSL_VERSION_NUMBER >= 0x1000204fL
76 #if OPENSSL_VERSION_NUMBER > 0x0090707fL
77 // pRSA->flags|=RSA_FLAG_NO_EXP_CONSTTIME;
78 #endif
79 }

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

Here is the caller graph for this function: