Lines Matching refs:NULL

85     if( ctx == NULL )  in ecdsa_restart_ver_free()
127 if( ctx == NULL ) in ecdsa_restart_sig_free()
161 if( ctx == NULL ) in ecdsa_restart_det_free()
170 #define ECDSA_RS_ECP ( rs_ctx == NULL ? NULL : &rs_ctx->ecp )
179 if( rs_ctx != NULL && rs_ctx->ecp.depth++ == 0 ) \
184 rs_ctx != NULL && rs_ctx->SUB == NULL ) \
187 if( rs_ctx->SUB == NULL ) \
197 if( rs_ctx != NULL && rs_ctx->SUB != NULL && \
202 rs_ctx->SUB = NULL; \
205 if( rs_ctx != NULL ) \
211 #define ECDSA_RS_ECP NULL
263 if( ! mbedtls_ecdsa_can_do( grp->id ) || grp->N.p == NULL ) in ecdsa_sign_restartable()
276 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
317 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
331 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
369 if( rs_ctx != NULL && rs_ctx->sig != NULL ) in ecdsa_sign_restartable()
403 ECDSA_VALIDATE_RET( grp != NULL ); in mbedtls_ecdsa_sign()
404 ECDSA_VALIDATE_RET( r != NULL ); in mbedtls_ecdsa_sign()
405 ECDSA_VALIDATE_RET( s != NULL ); in mbedtls_ecdsa_sign()
406 ECDSA_VALIDATE_RET( d != NULL ); in mbedtls_ecdsa_sign()
407 ECDSA_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdsa_sign()
408 ECDSA_VALIDATE_RET( buf != NULL || blen == 0 ); in mbedtls_ecdsa_sign()
412 f_rng, p_rng, f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_sign()
436 if( ( md_info = mbedtls_md_info_from_type( md_alg ) ) == NULL ) in ecdsa_sign_det_restartable()
445 if( rs_ctx != NULL && rs_ctx->det != NULL ) in ecdsa_sign_det_restartable()
463 if( rs_ctx != NULL && rs_ctx->det != NULL ) in ecdsa_sign_det_restartable()
472 if( f_rng_blind != NULL ) in ecdsa_sign_det_restartable()
556 ECDSA_VALIDATE_RET( grp != NULL ); in mbedtls_ecdsa_sign_det()
557 ECDSA_VALIDATE_RET( r != NULL ); in mbedtls_ecdsa_sign_det()
558 ECDSA_VALIDATE_RET( s != NULL ); in mbedtls_ecdsa_sign_det()
559 ECDSA_VALIDATE_RET( d != NULL ); in mbedtls_ecdsa_sign_det()
560 ECDSA_VALIDATE_RET( buf != NULL || blen == 0 ); in mbedtls_ecdsa_sign_det()
563 NULL, NULL, NULL ) ); in mbedtls_ecdsa_sign_det()
575 ECDSA_VALIDATE_RET( grp != NULL ); in mbedtls_ecdsa_sign_det_ext()
576 ECDSA_VALIDATE_RET( r != NULL ); in mbedtls_ecdsa_sign_det_ext()
577 ECDSA_VALIDATE_RET( s != NULL ); in mbedtls_ecdsa_sign_det_ext()
578 ECDSA_VALIDATE_RET( d != NULL ); in mbedtls_ecdsa_sign_det_ext()
579 ECDSA_VALIDATE_RET( buf != NULL || blen == 0 ); in mbedtls_ecdsa_sign_det_ext()
580 ECDSA_VALIDATE_RET( f_rng_blind != NULL ); in mbedtls_ecdsa_sign_det_ext()
583 f_rng_blind, p_rng_blind, NULL ) ); in mbedtls_ecdsa_sign_det_ext()
608 if( ! mbedtls_ecdsa_can_do( grp->id ) || grp->N.p == NULL ) in ecdsa_verify_restartable()
614 if( rs_ctx != NULL && rs_ctx->ver != NULL ) in ecdsa_verify_restartable()
655 if( rs_ctx != NULL && rs_ctx->ver != NULL ) in ecdsa_verify_restartable()
706 ECDSA_VALIDATE_RET( grp != NULL ); in mbedtls_ecdsa_verify()
707 ECDSA_VALIDATE_RET( Q != NULL ); in mbedtls_ecdsa_verify()
708 ECDSA_VALIDATE_RET( r != NULL ); in mbedtls_ecdsa_verify()
709 ECDSA_VALIDATE_RET( s != NULL ); in mbedtls_ecdsa_verify()
710 ECDSA_VALIDATE_RET( buf != NULL || blen == 0 ); in mbedtls_ecdsa_verify()
712 return( ecdsa_verify_restartable( grp, buf, blen, Q, r, s, NULL ) ); in mbedtls_ecdsa_verify()
753 ECDSA_VALIDATE_RET( ctx != NULL ); in mbedtls_ecdsa_write_signature_restartable()
754 ECDSA_VALIDATE_RET( hash != NULL ); in mbedtls_ecdsa_write_signature_restartable()
755 ECDSA_VALIDATE_RET( sig != NULL ); in mbedtls_ecdsa_write_signature_restartable()
756 ECDSA_VALIDATE_RET( slen != NULL ); in mbedtls_ecdsa_write_signature_restartable()
798 ECDSA_VALIDATE_RET( ctx != NULL ); in mbedtls_ecdsa_write_signature()
799 ECDSA_VALIDATE_RET( hash != NULL ); in mbedtls_ecdsa_write_signature()
800 ECDSA_VALIDATE_RET( sig != NULL ); in mbedtls_ecdsa_write_signature()
801 ECDSA_VALIDATE_RET( slen != NULL ); in mbedtls_ecdsa_write_signature()
803 ctx, md_alg, hash, hlen, sig, slen, f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_write_signature()
813 ECDSA_VALIDATE_RET( ctx != NULL ); in mbedtls_ecdsa_write_signature_det()
814 ECDSA_VALIDATE_RET( hash != NULL ); in mbedtls_ecdsa_write_signature_det()
815 ECDSA_VALIDATE_RET( sig != NULL ); in mbedtls_ecdsa_write_signature_det()
816 ECDSA_VALIDATE_RET( slen != NULL ); in mbedtls_ecdsa_write_signature_det()
818 NULL, NULL ) ); in mbedtls_ecdsa_write_signature_det()
829 ECDSA_VALIDATE_RET( ctx != NULL ); in mbedtls_ecdsa_read_signature()
830 ECDSA_VALIDATE_RET( hash != NULL ); in mbedtls_ecdsa_read_signature()
831 ECDSA_VALIDATE_RET( sig != NULL ); in mbedtls_ecdsa_read_signature()
833 ctx, hash, hlen, sig, slen, NULL ) ); in mbedtls_ecdsa_read_signature()
849 ECDSA_VALIDATE_RET( ctx != NULL ); in mbedtls_ecdsa_read_signature_restartable()
850 ECDSA_VALIDATE_RET( hash != NULL ); in mbedtls_ecdsa_read_signature_restartable()
851 ECDSA_VALIDATE_RET( sig != NULL ); in mbedtls_ecdsa_read_signature_restartable()
907 ECDSA_VALIDATE_RET( ctx != NULL ); in mbedtls_ecdsa_genkey()
908 ECDSA_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdsa_genkey()
925 ECDSA_VALIDATE_RET( ctx != NULL ); in mbedtls_ecdsa_from_keypair()
926 ECDSA_VALIDATE_RET( key != NULL ); in mbedtls_ecdsa_from_keypair()
943 ECDSA_VALIDATE( ctx != NULL ); in mbedtls_ecdsa_init()
953 if( ctx == NULL ) in mbedtls_ecdsa_free()
965 ECDSA_VALIDATE( ctx != NULL ); in mbedtls_ecdsa_restart_init()
969 ctx->ver = NULL; in mbedtls_ecdsa_restart_init()
970 ctx->sig = NULL; in mbedtls_ecdsa_restart_init()
972 ctx->det = NULL; in mbedtls_ecdsa_restart_init()
981 if( ctx == NULL ) in mbedtls_ecdsa_restart_free()
988 ctx->ver = NULL; in mbedtls_ecdsa_restart_free()
992 ctx->sig = NULL; in mbedtls_ecdsa_restart_free()
997 ctx->det = NULL; in mbedtls_ecdsa_restart_free()