DynXX-Cxx
Loading...
Searching...
No Matches
Enumerations | Functions
Crypto.hxx File Reference
#include "Types.hxx"
#include <cstdio>

Go to the source code of this file.

Enumerations

enum class  DynXXCryptoRSAPaddingX : uint8_t {
  PKCS1 = 1 , SSLV23 = 2 , NONE = 3 , PKCS1_OAEP = 4 ,
  X931 = 5 , PKCS1_PSS = 6
}
 

Functions

Bytes dynxxCryptoRand (size_t len)
 
Bytes dynxxCryptoAesEncrypt (BytesView in, BytesView key)
 
Bytes dynxxCryptoAesDecrypt (BytesView in, BytesView key)
 
Bytes dynxxCryptoAesGcmEncrypt (BytesView in, BytesView key, BytesView initVector, size_t tagBits, BytesView aad={})
 
Bytes dynxxCryptoAesGcmDecrypt (BytesView in, BytesView key, BytesView initVector, size_t tagBits, BytesView aad={})
 
std::string dynxxCryptoRsaGenKey (std::string_view base64, bool isPublic)
 
Bytes dynxxCryptoRsaEncrypt (BytesView in, BytesView key, DynXXCryptoRSAPaddingX padding)
 
Bytes dynxxCryptoRsaDecrypt (BytesView in, BytesView key, DynXXCryptoRSAPaddingX padding)
 
Bytes dynxxCryptoHashMd5 (BytesView in)
 
Bytes dynxxCryptoHashSha1 (BytesView in)
 
Bytes dynxxCryptoHashSha256 (BytesView in)
 
Bytes dynxxCryptoBase64Encode (BytesView in, bool noNewLines=true)
 
Bytes dynxxCryptoBase64Decode (BytesView in, bool noNewLines=true)
 

Enumeration Type Documentation

◆ DynXXCryptoRSAPaddingX

Enumerator
PKCS1 
SSLV23 
NONE 
PKCS1_OAEP 
X931 
PKCS1_PSS 

Function Documentation

◆ dynxxCryptoAesDecrypt()

Bytes dynxxCryptoAesDecrypt ( BytesView  in,
BytesView  key 
)

◆ dynxxCryptoAesEncrypt()

Bytes dynxxCryptoAesEncrypt ( BytesView  in,
BytesView  key 
)

◆ dynxxCryptoAesGcmDecrypt()

Bytes dynxxCryptoAesGcmDecrypt ( BytesView  in,
BytesView  key,
BytesView  initVector,
size_t  tagBits,
BytesView  aad = {} 
)

◆ dynxxCryptoAesGcmEncrypt()

Bytes dynxxCryptoAesGcmEncrypt ( BytesView  in,
BytesView  key,
BytesView  initVector,
size_t  tagBits,
BytesView  aad = {} 
)

◆ dynxxCryptoBase64Decode()

Bytes dynxxCryptoBase64Decode ( BytesView  in,
bool  noNewLines = true 
)

◆ dynxxCryptoBase64Encode()

Bytes dynxxCryptoBase64Encode ( BytesView  in,
bool  noNewLines = true 
)

◆ dynxxCryptoHashMd5()

Bytes dynxxCryptoHashMd5 ( BytesView  in)

◆ dynxxCryptoHashSha1()

Bytes dynxxCryptoHashSha1 ( BytesView  in)

◆ dynxxCryptoHashSha256()

Bytes dynxxCryptoHashSha256 ( BytesView  in)

◆ dynxxCryptoRand()

Bytes dynxxCryptoRand ( size_t  len)

◆ dynxxCryptoRsaDecrypt()

Bytes dynxxCryptoRsaDecrypt ( BytesView  in,
BytesView  key,
DynXXCryptoRSAPaddingX  padding 
)

◆ dynxxCryptoRsaEncrypt()

Bytes dynxxCryptoRsaEncrypt ( BytesView  in,
BytesView  key,
DynXXCryptoRSAPaddingX  padding 
)

◆ dynxxCryptoRsaGenKey()

std::string dynxxCryptoRsaGenKey ( std::string_view  base64,
bool  isPublic 
)