Implementation for TLS buffer manager.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include "tls_buffer_manager.h"
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().