/* Add a packet to the end of our sent and received packets, so that we may use it to calculate the hash at the end.  */
void ICACHE_FLASH_ATTR add_packet(SSL *ssl, const uint8_t *pkt, int len)
/* Add a packet to the end of our sent and received packets, so that we may use it to calculate the hash at the end.  */
void ICACHE_FLASH_ATTR add_packet(SSL *ssl, const uint8_t *pkt, int len)
{
    MD5_Update(&ssl->dc->md5_ctx, pkt, len);
    SHA1_Update(&ssl->dc->sha1_ctx, pkt, len);
}