Home
last modified time | relevance | path

Searched refs:ctx_magic (Results 1 – 2 of 2) sorted by relevance

/freebsd/crypto/libecc/include/libecc/sig/
H A Dsig_algs_internal.h156 word_t ctx_magic; member
174 return (((ctx == NULL) || (ctx->ctx_magic != SIG_SIGN_MAGIC)) ? -1 : 0); in sig_sign_check_initialized()
215 word_t ctx_magic; member
232 return (((ctx == NULL) || (ctx->ctx_magic != SIG_VERIFY_MAGIC)) ? -1 : 0); in sig_verify_check_initialized()
/freebsd/crypto/libecc/src/sig/
H A Dsig_algs.c216 MUST_HAVE((sig_ctx != NULL) && (sig_ctx->ctx_magic == SIG_SIGN_MAGIC), ret, err); in ec_sig_ctx_callbacks_sanity_check()
233 MUST_HAVE((verify_ctx != NULL) && (verify_ctx->ctx_magic == SIG_VERIFY_MAGIC), ret, err); in ec_verify_ctx_callbacks_sanity_check()
367 ctx->ctx_magic = SIG_SIGN_MAGIC; in _ec_sign_init()
565 ctx->ctx_magic = SIG_VERIFY_MAGIC; in ec_verify_init()