hu_ECPVSRecoverUpdate()

Updates the visible message to the ECPVS context.

Synopsis:

#include "huecpvs.h"
 
int hu_ECPVSRecoverUpdate(sb_Context ecpvsContext, size_t visibleMessageLen, const unsigned char *visibleMessage, sb_GlobalCtx sbCtx)

Arguments:

ecpvsContext

ECPVS context object pointer.

visibleMessageLen

The length (in bytes) of visibleMessage.

visibleMessage

The visible part of the message.

sbCtx

A global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

This is the second API function to be called during the ECPVS recovery process. It can be called multiple times to update parts of the message; this is useful if the message is particularly large.

The complete r must be passed in first, either in full or in parts. This must be followed by the complete visible message, again either in full or in parts.

Returns:

SB_ERR_NULL_CONTEXT

Context object pointer is NULL.

SB_ERR_BAD_CONTEXT

Context object is invalid.

SB_ERR_NULL_GLOBAL_CTX

Global context is NULL.

SB_ERR_NULL_INPUT_BUF

The dataValue parameter is NULL while the dataLen is non-zero.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus