|
gwenhywfar 5.10.1
|
#include "tag16_p.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/inherit.h>#include <gwenhywfar/misc.h>#include <gwenhywfar/text.h>#include <stdlib.h>#include <assert.h>#include <string.h>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
Functions | |
| void | GWEN_Tag16_DirectlyToBuffer (unsigned int tagType, const char *p, int size, GWEN_BUFFER *buf) |
| void | GWEN_Tag16_free (GWEN_TAG16 *tlv) |
| GWEN_TAG16 * | GWEN_Tag16_fromBuffer (GWEN_BUFFER *mbuf, GWEN_UNUSED int isBerTlv) |
| GWEN_TAG16 * | GWEN_Tag16_fromBuffer2 (const uint8_t *p, uint32_t l, int doCopy) |
| const void * | GWEN_Tag16_GetTagData (const GWEN_TAG16 *tlv) |
| unsigned int | GWEN_Tag16_GetTagLength (const GWEN_TAG16 *tlv) |
| unsigned int | GWEN_Tag16_GetTagSize (const GWEN_TAG16 *tlv) |
| unsigned int | GWEN_Tag16_GetTagType (const GWEN_TAG16 *tlv) |
| GWEN_TAG16 * | GWEN_Tag16_new (void) |
| void GWEN_Tag16_DirectlyToBuffer | ( | unsigned int | tagType, |
| const char * | p, | ||
| int | size, | ||
| GWEN_BUFFER * | buf | ||
| ) |
Definition at line 213 of file tag16.c.
References GWEN_Buffer_AppendByte(), and GWEN_Buffer_AppendBytes().
Referenced by GWEN_Crypt_TokenOHBCI__EncodeKey(), GWEN_Crypt_TokenOHBCI_Encode(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_CryptHead_toBuffer(), GWEN_CryptMgr_Encrypt(), GWEN_CryptMgr_Sign(), GWEN_SigHead_toBuffer(), and GWEN_SigTail_toBuffer().


| void GWEN_Tag16_free | ( | GWEN_TAG16 * | tlv | ) |
Definition at line 44 of file tag16.c.
References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.
Referenced by GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

| GWEN_TAG16 * GWEN_Tag16_fromBuffer | ( | GWEN_BUFFER * | mbuf, |
| GWEN_UNUSED int | isBerTlv | ||
| ) |
Definition at line 88 of file tag16.c.
References DBG_ERROR, GWEN_Buffer_GetBytesLeft(), GWEN_Buffer_GetPos(), GWEN_Buffer_GetPosPointer(), GWEN_Buffer_IncrementPos(), and GWEN_Tag16_new().
Referenced by GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), and GWEN_Crypt_TokenOHBCI_Read().


| GWEN_TAG16 * GWEN_Tag16_fromBuffer2 | ( | const uint8_t * | p, |
| uint32_t | l, | ||
| int | doCopy | ||
| ) |
Definition at line 151 of file tag16.c.
References DBG_ERROR, GWEN_Tag16_new(), and NULL.
Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().


| const void * GWEN_Tag16_GetTagData | ( | const GWEN_TAG16 * | tlv | ) |
Definition at line 80 of file tag16.c.
Referenced by GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

| unsigned int GWEN_Tag16_GetTagLength | ( | const GWEN_TAG16 * | tlv | ) |
Definition at line 64 of file tag16.c.
Referenced by GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

| unsigned int GWEN_Tag16_GetTagSize | ( | const GWEN_TAG16 * | tlv | ) |
Definition at line 72 of file tag16.c.
Referenced by GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

| unsigned int GWEN_Tag16_GetTagType | ( | const GWEN_TAG16 * | tlv | ) |
Definition at line 56 of file tag16.c.
Referenced by GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI__DecodeKey(), GWEN_Crypt_TokenOHBCI__DecryptFile16(), GWEN_CryptHead_fromBuffer(), GWEN_CryptMgr_Decrypt(), GWEN_CryptMgr_Verify(), GWEN_SigHead_fromBuffer(), and GWEN_SigTail_fromBuffer().

| GWEN_TAG16 * GWEN_Tag16_new | ( | void | ) |
Definition at line 32 of file tag16.c.
References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_Tag16_fromBuffer(), and GWEN_Tag16_fromBuffer2().
