hu_ECPVSSignUpdate()

Updates the visible message to the ECPVS context.

Synopsis:

#include "huecpvs.h"
 
int hu_ECPVSSignUpdate(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 third API function to be called during the ECPVS signing process. It can be called multiple times to update parts of the visible message; this is useful if the message is particularly large.

Returns:

SB_ERR_NULL_CONTEXT

Context object 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 visible part of the message is NULL.

SB_SUCCESS

Success.

Last modified: 2014-05-14



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

comments powered by Disqus