Lines Matching refs:GCM_VALIDATE_RET

56 #define GCM_VALIDATE_RET( cond ) \  macro
146 GCM_VALIDATE_RET( ctx != NULL ); in mbedtls_gcm_setkey()
147 GCM_VALIDATE_RET( key != NULL ); in mbedtls_gcm_setkey()
148 GCM_VALIDATE_RET( keybits == 128 || keybits == 192 || keybits == 256 ); in mbedtls_gcm_setkey()
262 GCM_VALIDATE_RET( ctx != NULL ); in mbedtls_gcm_starts()
263 GCM_VALIDATE_RET( iv != NULL ); in mbedtls_gcm_starts()
264 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_gcm_starts()
349 GCM_VALIDATE_RET( ctx != NULL ); in mbedtls_gcm_update()
350 GCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_gcm_update()
351 GCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_gcm_update()
409 GCM_VALIDATE_RET( ctx != NULL ); in mbedtls_gcm_finish()
410 GCM_VALIDATE_RET( tag != NULL ); in mbedtls_gcm_finish()
455 GCM_VALIDATE_RET( ctx != NULL ); in mbedtls_gcm_crypt_and_tag()
456 GCM_VALIDATE_RET( iv != NULL ); in mbedtls_gcm_crypt_and_tag()
457 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_gcm_crypt_and_tag()
458 GCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_gcm_crypt_and_tag()
459 GCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_gcm_crypt_and_tag()
460 GCM_VALIDATE_RET( tag != NULL ); in mbedtls_gcm_crypt_and_tag()
490 GCM_VALIDATE_RET( ctx != NULL ); in mbedtls_gcm_auth_decrypt()
491 GCM_VALIDATE_RET( iv != NULL ); in mbedtls_gcm_auth_decrypt()
492 GCM_VALIDATE_RET( add_len == 0 || add != NULL ); in mbedtls_gcm_auth_decrypt()
493 GCM_VALIDATE_RET( tag != NULL ); in mbedtls_gcm_auth_decrypt()
494 GCM_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_gcm_auth_decrypt()
495 GCM_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_gcm_auth_decrypt()