Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Crypto.h File Reference
#include "Poco/Foundation.h"
#include <openssl/opensslv.h>
+ Include dependency graph for Crypto.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Poco
 
namespace  Poco::Crypto
 

Macros

#define POCO_EXTERNAL_OPENSSL_DEFAULT   1
 
#define POCO_EXTERNAL_OPENSSL_SLPRO   2
 
#define OPENSSL_VERSION_PREREQ(maj, min)    (OPENSSL_VERSION_NUMBER >= (((maj) << 28) | ((min) << 20)))
 
#define Crypto_API
 

Enumerations

enum  RSAPaddingMode { RSA_PADDING_PKCS1 , RSA_PADDING_PKCS1_OAEP , RSA_PADDING_NONE }
 The padding mode used for RSA public key encryption. More...
 

Functions

void Crypto_API Poco::Crypto::initializeCrypto ()
 
void Crypto_API Poco::Crypto::uninitializeCrypto ()
 

Macro Definition Documentation

◆ Crypto_API

#define Crypto_API

Definition at line 82 of file Crypto.h.

◆ OPENSSL_VERSION_PREREQ

#define OPENSSL_VERSION_PREREQ ( maj,
min )    (OPENSSL_VERSION_NUMBER >= (((maj) << 28) | ((min) << 20)))

Definition at line 36 of file Crypto.h.

◆ POCO_EXTERNAL_OPENSSL_DEFAULT

#define POCO_EXTERNAL_OPENSSL_DEFAULT   1

Definition at line 23 of file Crypto.h.

◆ POCO_EXTERNAL_OPENSSL_SLPRO

#define POCO_EXTERNAL_OPENSSL_SLPRO   2

Definition at line 24 of file Crypto.h.

Enumeration Type Documentation

◆ RSAPaddingMode

The padding mode used for RSA public key encryption.

Enumerator
RSA_PADDING_PKCS1 
RSA_PADDING_PKCS1_OAEP 

PKCS #1 v1.5 padding. This currently is the most widely used mode.

RSA_PADDING_NONE 

EME-OAEP as defined in PKCS #1 v2.0 with SHA-1, MGF1 and an empty encoding parameter. This mode is recommended for all new applications. Raw RSA encryption. This mode should only be used to implement cryptographically sound padding modes in the application code. Encrypting user data directly with RSA is insecure.

Definition at line 42 of file Crypto.h.