hu_ECPVSSignEnd()

Destroys an ECPVS sign context.

Synopsis:

#include "huecpvs.h"
 
int hu_ECPVSSignEnd(sb_Context *ecpvsContext, size_t *sLen, unsigned char *sValue, sb_GlobalCtx sbCtx)

Arguments:

ecpvsContext

ECPVS context object pointer.

sLen

The length (in bytes) of sValue.

sValue

The s component from the signature computation.

sbCtx

A global context.

Library:

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

Description:

This is the fourth (and final) API function to be called during the ECPVS signing process.

Provide output buffer in sValue, and indicate the amount in sLen. If sufficient amount of buffer is supplied, this function will place the value of s into sValue and set the actual length in sLen. If the buffer is insufficient, this function will return an error.

If sValue is NULL, this function will set the correct length of s in sLen.

Returns:

SB_ERR_NULL_CONTEXT_PTR

Context object pointer is NULL.

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_S_VALUE_LEN

The signature component length is NULL.

SB_ERR_BAD_S_VALUE_LEN

The signature component length is invalid.

SB_SUCCESS

Success.

Last modified: 2014-05-14



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

comments powered by Disqus