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 <gwenhywfar/text.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_AddPkcs1Pss (uint8_t *pDestBuffer, uint32_t lDestBuffer, uint32_t nbits, const uint8_t *pHash, uint32_t lHash, uint32_t lSalt, GWEN_MDIGEST *md)
int GWEN_Padd_ApplyPaddAlgo (const GWEN_CRYPT_PADDALGO *a, GWEN_BUFFER *buf)
int GWEN_Padd_MGF1 (uint8_t *pDestBuffer, uint32_t lDestBuffer, const uint8_t *pSeed, uint32_t lSeed, GWEN_MDIGEST *md)
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)
int GWEN_Padd_VerifyPkcs1Pss (const uint8_t *pSrcBuffer, uint32_t lSrcBuffer, uint32_t nbits, const uint8_t *pHash, uint32_t lHash, uint32_t lSalt, GWEN_MDIGEST *md)

Variables

static uint8_t nullarray [] = {0, 0, 0, 0, 0, 0, 0, 0}

Function Documentation

int GWEN_Padd__UnpaddWithPkcs1Bt1Or2 ( GWEN_BUFFER buf  ) 

Definition at line 344 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 51 of file padd.c.

Referenced by GWEN_Padd_PaddWithISO9796().

Here is the caller graph for this function:


Variable Documentation

uint8_t nullarray[] = {0, 0, 0, 0, 0, 0, 0, 0} [static]

Definition at line 44 of file padd.c.

Referenced by GWEN_Padd_AddPkcs1Pss(), and GWEN_Padd_VerifyPkcs1Pss().

Generated on Mon Jul 5 22:54:59 2010 for gwenhywfar by  doxygen 1.6.3