MagickCore 7.0.10
cipher.h File Reference
#include "wizard/random_.h"
Include dependency graph for cipher.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MaxCipherBlocksize   128
 

Typedefs

typedef struct _CipherInfo CipherInfo
 

Enumerations

enum  CipherMode {
  UndefinedMode , CBCMode , CFBMode , CTRMode ,
  ECBMode , OFBMode
}
 
enum  CipherType {
  UndefinedCipher , NoCipher , AESCipher , ChachaCipher ,
  SerpentCipher , TwofishCipher
}
 

Functions

WizardExport CipherInfoAcquireCipherInfo (const CipherType, const CipherMode)
 
WizardExport CipherInfoDestroyCipherInfo (CipherInfo *)
 
WizardExport const StringInfoGetCipherNonce (CipherInfo *)
 
WizardExport StringInfoDecipherCipher (CipherInfo *, StringInfo *)
 
WizardExport StringInfoEncipherCipher (CipherInfo *, StringInfo *)
 
WizardExport StringInfoGenerateCipherNonce (CipherInfo *)
 
WizardExport size_t GetCipherBlocksize (const CipherInfo *)
 
WizardExport void ResetCipherNonce (CipherInfo *)
 
WizardExport void SetCipherNonce (CipherInfo *, const StringInfo *)
 
WizardExport void SetCipherKey (CipherInfo *, const StringInfo *)
 
WizardExport StringInfoDecryptCipher (CipherInfo *, StringInfo *)
 
WizardExport StringInfoEncryptCipher (CipherInfo *, StringInfo *)
 

Macro Definition Documentation

◆ MaxCipherBlocksize

#define MaxCipherBlocksize   128

Definition at line 27 of file cipher.h.

Typedef Documentation

◆ CipherInfo

typedef struct _CipherInfo CipherInfo

Definition at line 50 of file cipher.h.

Enumeration Type Documentation

◆ CipherMode

enum CipherMode
Enumerator
UndefinedMode 
CBCMode 
CFBMode 
CTRMode 
ECBMode 
OFBMode 

Definition at line 29 of file cipher.h.

◆ CipherType

enum CipherType
Enumerator
UndefinedCipher 
NoCipher 
AESCipher 
ChachaCipher 
SerpentCipher 
TwofishCipher 

Definition at line 39 of file cipher.h.

Function Documentation

◆ AcquireCipherInfo()

WizardExport CipherInfo * AcquireCipherInfo ( const CipherType  ,
const CipherMode   
)

◆ DecipherCipher()

WizardExport StringInfo * DecipherCipher ( CipherInfo ,
StringInfo  
)

◆ DecryptCipher()

WizardExport StringInfo * DecryptCipher ( CipherInfo ,
StringInfo  
)

◆ DestroyCipherInfo()

◆ EncipherCipher()

WizardExport StringInfo * EncipherCipher ( CipherInfo ,
StringInfo  
)

◆ EncryptCipher()

WizardExport StringInfo * EncryptCipher ( CipherInfo cipher_info,
StringInfo plaintext 
)

Definition at line 940 of file cipher.c.

References EncipherCipher().

◆ GenerateCipherNonce()

◆ GetCipherBlocksize()

WizardExport size_t GetCipherBlocksize ( const CipherInfo cipher_info)

◆ GetCipherNonce()

◆ ResetCipherNonce()

WizardExport void ResetCipherNonce ( CipherInfo )

◆ SetCipherKey()

◆ SetCipherNonce()

WizardExport void SetCipherNonce ( CipherInfo ,
const StringInfo  
)