|
gwenhywfar
5.10.1
|
#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>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
Variables | |
| static uint8_t | nullarray [] = {0, 0, 0, 0, 0, 0, 0, 0} |
| int GWEN_Padd__UnpaddWithPkcs1Bt1Or2 | ( | GWEN_BUFFER * | buf | ) |
Definition at line 367 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().


| int GWEN_Padd_AddPkcs1Pss | ( | uint8_t * | pDestBuffer, |
| GWEN_UNUSED uint32_t | lDestBuffer, | ||
| uint32_t | nbits, | ||
| const uint8_t * | pHash, | ||
| uint32_t | lHash, | ||
| uint32_t | lSalt, | ||
| GWEN_MDIGEST * | md | ||
| ) |
Definition at line 495 of file padd.c.
References DBG_INFO, GWEN_Crypt_Random(), GWEN_LOGDOMAIN, GWEN_MDigest_Begin(), GWEN_MDigest_End(), GWEN_MDigest_GetDigestPtr(), GWEN_MDigest_GetDigestSize(), GWEN_MDigest_Update(), GWEN_Padd_MGF1(), NULL, and nullarray.
Referenced by GWEN_Crypt_TokenFile__Sign().


| unsigned char GWEN_Padd_permutate | ( | unsigned char | input | ) |
Definition at line 51 of file padd.c.
Referenced by GWEN_Padd_PaddWithISO9796().

|
static |
Definition at line 44 of file padd.c.
Referenced by GWEN_Padd_AddPkcs1Pss(), and GWEN_Padd_VerifyPkcs1Pss().
1.8.14