Lines Matching full:if
11 #if defined(MBEDTLS_PSA_CRYPTO_C)
20 #if defined(MBEDTLS_PSA_BUILTIN_HASH)
30 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5) in mbedtls_psa_hash_abort()
35 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160) in mbedtls_psa_hash_abort()
40 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1) in mbedtls_psa_hash_abort()
45 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224) in mbedtls_psa_hash_abort()
50 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) in mbedtls_psa_hash_abort()
55 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384) in mbedtls_psa_hash_abort()
60 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512) in mbedtls_psa_hash_abort()
65 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) in mbedtls_psa_hash_abort()
68 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_256) in mbedtls_psa_hash_abort()
71 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_384) in mbedtls_psa_hash_abort()
74 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_512) in mbedtls_psa_hash_abort()
77 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) || \ in mbedtls_psa_hash_abort()
98 if (operation->alg != 0) { in mbedtls_psa_hash_setup()
103 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5) in mbedtls_psa_hash_setup()
109 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160) in mbedtls_psa_hash_setup()
115 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1) in mbedtls_psa_hash_setup()
121 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224) in mbedtls_psa_hash_setup()
127 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) in mbedtls_psa_hash_setup()
133 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384) in mbedtls_psa_hash_setup()
139 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512) in mbedtls_psa_hash_setup()
145 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) in mbedtls_psa_hash_setup()
151 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_256) in mbedtls_psa_hash_setup()
157 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_384) in mbedtls_psa_hash_setup()
163 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_512) in mbedtls_psa_hash_setup()
174 if (ret == 0) { in mbedtls_psa_hash_setup()
189 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5) in mbedtls_psa_hash_clone()
195 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160) in mbedtls_psa_hash_clone()
201 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1) in mbedtls_psa_hash_clone()
207 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224) in mbedtls_psa_hash_clone()
213 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) in mbedtls_psa_hash_clone()
219 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384) in mbedtls_psa_hash_clone()
225 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512) in mbedtls_psa_hash_clone()
231 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) in mbedtls_psa_hash_clone()
234 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_256) in mbedtls_psa_hash_clone()
237 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_384) in mbedtls_psa_hash_clone()
240 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_512) in mbedtls_psa_hash_clone()
243 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) || \ in mbedtls_psa_hash_clone()
269 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5) in mbedtls_psa_hash_update()
275 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160) in mbedtls_psa_hash_update()
281 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1) in mbedtls_psa_hash_update()
287 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224) in mbedtls_psa_hash_update()
293 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) in mbedtls_psa_hash_update()
299 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384) in mbedtls_psa_hash_update()
305 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512) in mbedtls_psa_hash_update()
311 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) in mbedtls_psa_hash_update()
314 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_256) in mbedtls_psa_hash_update()
317 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_384) in mbedtls_psa_hash_update()
320 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_512) in mbedtls_psa_hash_update()
323 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) || \ in mbedtls_psa_hash_update()
354 /* If hash_size is 0 then hash may be NULL and then the in mbedtls_psa_hash_finish()
356 if (hash_size != 0) { in mbedtls_psa_hash_finish()
360 if (hash_size < actual_hash_length) { in mbedtls_psa_hash_finish()
366 #if defined(MBEDTLS_PSA_BUILTIN_ALG_MD5) in mbedtls_psa_hash_finish()
371 #if defined(MBEDTLS_PSA_BUILTIN_ALG_RIPEMD160) in mbedtls_psa_hash_finish()
376 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_1) in mbedtls_psa_hash_finish()
381 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_224) in mbedtls_psa_hash_finish()
386 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_256) in mbedtls_psa_hash_finish()
391 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_384) in mbedtls_psa_hash_finish()
396 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA_512) in mbedtls_psa_hash_finish()
401 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) in mbedtls_psa_hash_finish()
404 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_256) in mbedtls_psa_hash_finish()
407 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_384) in mbedtls_psa_hash_finish()
410 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_512) in mbedtls_psa_hash_finish()
413 #if defined(MBEDTLS_PSA_BUILTIN_ALG_SHA3_224) || \ in mbedtls_psa_hash_finish()
427 if (status == PSA_SUCCESS) { in mbedtls_psa_hash_finish()
447 if (status != PSA_SUCCESS) { in mbedtls_psa_hash_compute()
451 if (status != PSA_SUCCESS) { in mbedtls_psa_hash_compute()
455 if (status != PSA_SUCCESS) { in mbedtls_psa_hash_compute()
461 if (status == PSA_SUCCESS) { in mbedtls_psa_hash_compute()