padd.c File Reference

#include "padd_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/error.h>
#include <gwenhywfar/cryptdefs.h>
#include <string.h>
#include <stdlib.h>

Include dependency graph for padd.c:

Go to the source code of this file.

Functions

int GWEN_Padd__UnpaddWithPkcs1Bt1Or2 (GWEN_BUFFER *buf)
int GWEN_Padd_ApplyPaddAlgo (const GWEN_CRYPT_PADDALGO *a, GWEN_BUFFER *buf)
int GWEN_Padd_PaddWithAnsiX9_23 (GWEN_BUFFER *src)
int GWEN_Padd_PaddWithISO9796 (GWEN_BUFFER *src)
int GWEN_Padd_PaddWithIso9796_2 (GWEN_BUFFER *buf, int dstSize)
int GWEN_Padd_PaddWithPkcs1Bt1 (GWEN_BUFFER *buf, int dstSize)
int GWEN_Padd_PaddWithPkcs1Bt2 (GWEN_BUFFER *buf, int dstSize)
unsigned char GWEN_Padd_permutate (unsigned char input)
int GWEN_Padd_UnapplyPaddAlgo (const GWEN_CRYPT_PADDALGO *a, GWEN_BUFFER *buf)
int GWEN_Padd_UnpaddWithAnsiX9_23 (GWEN_BUFFER *src)
int GWEN_Padd_UnpaddWithIso9796_2 (GWEN_BUFFER *buf)
int GWEN_Padd_UnpaddWithPkcs1Bt1 (GWEN_BUFFER *src)
int GWEN_Padd_UnpaddWithPkcs1Bt2 (GWEN_BUFFER *src)


Function Documentation

int GWEN_Padd__UnpaddWithPkcs1Bt1Or2 ( GWEN_BUFFER buf  ) 

Definition at line 341 of file padd.c.

References DBG_ERROR, GWEN_Buffer_Crop(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_ERROR_INVALID, and GWEN_LOGDOMAIN.

Referenced by GWEN_Padd_UnpaddWithPkcs1Bt1(), and GWEN_Padd_UnpaddWithPkcs1Bt2().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char GWEN_Padd_permutate ( unsigned char  input  ) 

Definition at line 48 of file padd.c.

Referenced by GWEN_Padd_PaddWithISO9796().

Here is the caller graph for this function:


doxygen