APIs and types for TLS buffer manager.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include "root_tls_cert/crypto/crypto_types.h"
Data Structures | |
struct | tstrTlsBuffer |
struct | tstrTLSBufferPos |
Functions | |
void | TLS_BufferGetPos (tstrTlsBuffer *pstrTlsBuff, tstrTLSBufferPos *pstrCurrPos) |
uint16 | TLS_BufferRead (tstrTlsBuffer *pstrTlsBuff, uint16 u16ReadByteCount, uint8 *pu8ReadBuffer) |
uint16 | TLS_BufferReadCurrEntry (tstrTlsBuffer *pstrTlsBuff, uint16 u16ReadByteCount, uint8 **ppu8Buffer, BOOL_T bUpdateCursor) |
void | TLS_BufferSetPos (tstrTlsBuffer *pstrTlsBuff, tstrTLSBufferPos *pstrNewPos) |
void TLS_BufferGetPos | ( | tstrTlsBuffer * | pstrTlsBuff, |
tstrTLSBufferPos * | pstrCurrPos | ||
) |
References NULL, tstrTLSBufferPos::u16BuffOffset, and tstrTlsBuffer::u16ReadOffset.
Referenced by Cert_ComputeTBSCertHash(), and X509Cert_Decode().
uint16 TLS_BufferRead | ( | tstrTlsBuffer * | pstrTlsBuff, |
uint16 | u16ReadByteCount, | ||
uint8 * | pu8ReadBuffer | ||
) |
References M2M_MEMCPY, NULL, tstrTlsBuffer::pu8Buff, tstrTlsBuffer::u16BuffSz, and tstrTlsBuffer::u16ReadOffset.
Referenced by ASN1_GetNextElement(), and ASN1_Read().
uint16 TLS_BufferReadCurrEntry | ( | tstrTlsBuffer * | pstrTlsBuff, |
uint16 | u16ReadByteCount, | ||
uint8 ** | ppu8Buffer, | ||
BOOL_T | bUpdateCursor | ||
) |
References BTRUE, NULL, tstrTlsBuffer::pu8Buff, tstrTlsBuffer::u16BuffSz, and tstrTlsBuffer::u16ReadOffset.
Referenced by Cert_ComputeTBSCertHash().
void TLS_BufferSetPos | ( | tstrTlsBuffer * | pstrTlsBuff, |
tstrTLSBufferPos * | pstrNewPos | ||
) |
References NULL, tstrTLSBufferPos::u16BuffOffset, and tstrTlsBuffer::u16ReadOffset.
Referenced by Cert_ComputeTBSCertHash().