Mixe for Privacy and Anonymity in the Internet
Classes | Macros | Functions
CAASymCipher.hpp File Reference
#include "CACertificate.hpp"
Include dependency graph for CAASymCipher.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CAASymCipher
 

Macros

#define RSA_SIZE   128
 

Functions

void setRSAFlags (RSA *pRSA)
 

Macro Definition Documentation

◆ RSA_SIZE

#define RSA_SIZE   128

Definition at line 44 of file CAASymCipher.hpp.

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: