Lines Matching refs:CHACHAPOLY_VALIDATE_RET
43 #define CHACHAPOLY_VALIDATE_RET( cond ) \ macro
121 CHACHAPOLY_VALIDATE_RET( ctx != NULL ); in mbedtls_chachapoly_setkey()
122 CHACHAPOLY_VALIDATE_RET( key != NULL ); in mbedtls_chachapoly_setkey()
135 CHACHAPOLY_VALIDATE_RET( ctx != NULL ); in mbedtls_chachapoly_starts()
136 CHACHAPOLY_VALIDATE_RET( nonce != NULL ); in mbedtls_chachapoly_starts()
173 CHACHAPOLY_VALIDATE_RET( ctx != NULL ); in mbedtls_chachapoly_update_aad()
174 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_update_aad()
190 CHACHAPOLY_VALIDATE_RET( ctx != NULL ); in mbedtls_chachapoly_update()
191 CHACHAPOLY_VALIDATE_RET( len == 0 || input != NULL ); in mbedtls_chachapoly_update()
192 CHACHAPOLY_VALIDATE_RET( len == 0 || output != NULL ); in mbedtls_chachapoly_update()
240 CHACHAPOLY_VALIDATE_RET( ctx != NULL ); in mbedtls_chachapoly_finish()
241 CHACHAPOLY_VALIDATE_RET( mac != NULL ); in mbedtls_chachapoly_finish()
317 CHACHAPOLY_VALIDATE_RET( ctx != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
318 CHACHAPOLY_VALIDATE_RET( nonce != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
319 CHACHAPOLY_VALIDATE_RET( tag != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
320 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
321 CHACHAPOLY_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
322 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
342 CHACHAPOLY_VALIDATE_RET( ctx != NULL ); in mbedtls_chachapoly_auth_decrypt()
343 CHACHAPOLY_VALIDATE_RET( nonce != NULL ); in mbedtls_chachapoly_auth_decrypt()
344 CHACHAPOLY_VALIDATE_RET( tag != NULL ); in mbedtls_chachapoly_auth_decrypt()
345 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_auth_decrypt()
346 CHACHAPOLY_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_chachapoly_auth_decrypt()
347 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_auth_decrypt()