Lines Matching full:if
7 * configuration. Generally speaking, we activate a legacy mechanism if
22 #if defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED)
37 * A triplet/pair is accelerated if all of is components are accelerated;
41 * 1. Check if acceleration is complete for curves, key types, algs.
50 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_256) && \
56 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_384) && \
62 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_512) && \
68 #if defined(PSA_WANT_ECC_MONTGOMERY_255) && \
73 #if defined(PSA_WANT_ECC_MONTGOMERY_448) && \
78 #if defined(PSA_WANT_ECC_SECP_R1_192) && \
84 #if defined(PSA_WANT_ECC_SECP_R1_224) && \
90 #if defined(PSA_WANT_ECC_SECP_R1_256) && \
96 #if defined(PSA_WANT_ECC_SECP_R1_384) && \
102 #if defined(PSA_WANT_ECC_SECP_R1_521) && \
108 #if defined(PSA_WANT_ECC_SECP_K1_192) && \
114 #if defined(PSA_WANT_ECC_SECP_K1_224) && \
120 #if defined(PSA_WANT_ECC_SECP_K1_256) && \
127 #if defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA) && \
132 #if defined(PSA_WANT_ALG_ECDH) && \
137 #if defined(PSA_WANT_ALG_ECDSA) && \
142 #if defined(PSA_WANT_ALG_JPAKE) && \
148 #if defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY) && \
154 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC) && \
160 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT) && \
165 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT) && \
170 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE) && \
176 #if defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR_DERIVE)
181 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE) && \
189 * - if it's not accelerated, or
190 * - if there's a key type with missing acceleration, or
191 * - if there's a alg with missing acceleration.
193 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_256)
194 #if !defined(MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_256) || \
202 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_384)
203 #if !defined(MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_384) || \
211 #if defined(PSA_WANT_ECC_BRAINPOOL_P_R1_512)
212 #if !defined(MBEDTLS_PSA_ACCEL_ECC_BRAINPOOL_P_R1_512) || \
220 #if defined(PSA_WANT_ECC_MONTGOMERY_255)
221 #if !defined(MBEDTLS_PSA_ACCEL_ECC_MONTGOMERY_255) || \
229 #if defined(PSA_WANT_ECC_MONTGOMERY_448)
230 #if !defined(MBEDTLS_PSA_ACCEL_ECC_MONTGOMERY_448) || \
238 #if defined(PSA_WANT_ECC_SECP_R1_192)
239 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_192) || \
247 #if defined(PSA_WANT_ECC_SECP_R1_224)
248 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_224) || \
256 #if defined(PSA_WANT_ECC_SECP_R1_256)
257 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_256) || \
265 #if defined(PSA_WANT_ECC_SECP_R1_384)
266 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_384) || \
274 #if defined(PSA_WANT_ECC_SECP_R1_521)
275 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_R1_521) || \
283 #if defined(PSA_WANT_ECC_SECP_K1_192)
284 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_K1_192) || \
292 #if defined(PSA_WANT_ECC_SECP_K1_224)
293 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_K1_224) || \
303 #if defined(PSA_WANT_ECC_SECP_K1_256)
304 #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_K1_256) || \
315 * - if it's not accelerated, or
316 * - if there's a relevant curve (see below) with missing acceleration, or
317 * - if there's a key type among (public, basic) with missing acceleration.
324 #if defined(PSA_WANT_ALG_DETERMINISTIC_ECDSA)
325 #if !defined(MBEDTLS_PSA_ACCEL_ALG_DETERMINISTIC_ECDSA) || \
340 #if defined(PSA_WANT_ALG_ECDH)
341 #if !defined(MBEDTLS_PSA_ACCEL_ALG_ECDH) || \
351 #if defined(PSA_WANT_ALG_ECDSA)
352 #if !defined(MBEDTLS_PSA_ACCEL_ALG_ECDSA) || \
364 #if defined(PSA_WANT_ALG_JPAKE)
365 #if !defined(MBEDTLS_PSA_ACCEL_ALG_JPAKE) || \
380 * - if it's not accelerated, or
381 * - if there's a curve with missing acceleration, or
382 * - only for public/basic: if there's an alg with missing acceleration.
384 #if defined(PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY)
385 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_PUBLIC_KEY) || \
394 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_BASIC)
395 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR_BASIC) || \
404 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_IMPORT)
405 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR_IMPORT) || \
413 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_EXPORT)
414 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR_EXPORT) || \
422 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_GENERATE)
423 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR_GENERATE) || \
432 #if defined(PSA_WANT_KEY_TYPE_ECC_KEY_PAIR_DERIVE)
433 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ECC_KEY_PAIR_DERIVE) || \
443 #if defined(PSA_WANT_ALG_FFDH)
444 #if !defined(MBEDTLS_PSA_ACCEL_ALG_FFDH)
450 #if defined(PSA_WANT_ALG_HKDF)
451 #if !defined(MBEDTLS_PSA_ACCEL_ALG_HKDF)
461 #if defined(PSA_WANT_ALG_HKDF_EXTRACT)
462 #if !defined(MBEDTLS_PSA_ACCEL_ALG_HKDF_EXTRACT)
472 #if defined(PSA_WANT_ALG_HKDF_EXPAND)
473 #if !defined(MBEDTLS_PSA_ACCEL_ALG_HKDF_EXPAND)
483 #if defined(PSA_WANT_ALG_HMAC)
484 #if !defined(MBEDTLS_PSA_ACCEL_ALG_HMAC)
489 #if defined(PSA_WANT_ALG_MD5) && !defined(MBEDTLS_PSA_ACCEL_ALG_MD5)
494 #if defined(PSA_WANT_ALG_RIPEMD160) && !defined(MBEDTLS_PSA_ACCEL_ALG_RIPEMD160)
499 #if defined(PSA_WANT_ALG_RSA_OAEP)
500 #if !defined(MBEDTLS_PSA_ACCEL_ALG_RSA_OAEP)
509 #if defined(PSA_WANT_ALG_RSA_PKCS1V15_CRYPT)
510 #if !defined(MBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_CRYPT)
519 #if defined(PSA_WANT_ALG_RSA_PKCS1V15_SIGN)
520 #if !defined(MBEDTLS_PSA_ACCEL_ALG_RSA_PKCS1V15_SIGN)
529 #if defined(PSA_WANT_ALG_RSA_PSS)
530 #if !defined(MBEDTLS_PSA_ACCEL_ALG_RSA_PSS)
539 #if defined(PSA_WANT_ALG_SHA_1) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA_1)
544 #if defined(PSA_WANT_ALG_SHA_224) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA_224)
549 #if defined(PSA_WANT_ALG_SHA_256) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA_256)
554 #if defined(PSA_WANT_ALG_SHA_384) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA_384)
559 #if defined(PSA_WANT_ALG_SHA_512) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA_512)
564 #if defined(PSA_WANT_ALG_SHA3_224) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA3_224)
569 #if defined(PSA_WANT_ALG_SHA3_256) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA3_256)
574 #if defined(PSA_WANT_ALG_SHA3_384) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA3_384)
579 #if defined(PSA_WANT_ALG_SHA3_512) && !defined(MBEDTLS_PSA_ACCEL_ALG_SHA3_512)
584 #if defined(PSA_WANT_ALG_PBKDF2_HMAC)
585 #if !defined(MBEDTLS_PSA_ACCEL_ALG_PBKDF2_HMAC)
588 #if !defined(MBEDTLS_PSA_ACCEL_ALG_HMAC)
594 #if defined(PSA_WANT_ALG_TLS12_PRF)
595 #if !defined(MBEDTLS_PSA_ACCEL_ALG_TLS12_PRF)
600 #if defined(PSA_WANT_ALG_TLS12_PSK_TO_MS)
601 #if !defined(MBEDTLS_PSA_ACCEL_ALG_TLS12_PSK_TO_MS)
606 #if defined(PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS)
607 #if !defined(MBEDTLS_PSA_ACCEL_ALG_TLS12_ECJPAKE_TO_PMS)
612 #if defined(PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_IMPORT)
613 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR_IMPORT)
618 #if defined(PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_EXPORT)
619 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR_EXPORT)
624 #if defined(PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_GENERATE)
625 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR_GENERATE)
631 #if defined(PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC)
632 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_KEY_PAIR_BASIC)
637 #if defined(PSA_WANT_KEY_TYPE_DH_KEY_PAIR_IMPORT)
638 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DH_KEY_PAIR_IMPORT)
643 #if defined(PSA_WANT_KEY_TYPE_DH_KEY_PAIR_EXPORT)
644 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DH_KEY_PAIR_EXPORT)
649 #if defined(PSA_WANT_KEY_TYPE_DH_KEY_PAIR_GENERATE)
650 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DH_KEY_PAIR_GENERATE)
655 #if defined(PSA_WANT_KEY_TYPE_DH_KEY_PAIR_BASIC)
656 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DH_KEY_PAIR_BASIC)
661 #if defined(PSA_WANT_KEY_TYPE_DH_PUBLIC_KEY)
662 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DH_PUBLIC_KEY)
668 #if defined(PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY)
669 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_RSA_PUBLIC_KEY)
682 /* If any of the block modes are requested that don't have an
685 #if (defined(PSA_WANT_ALG_CTR) && !defined(MBEDTLS_PSA_ACCEL_ALG_CTR)) || \
697 #if (defined(PSA_WANT_ALG_GCM) && !defined(MBEDTLS_PSA_ACCEL_ALG_GCM)) || \
702 #if defined(PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128)
703 #if !defined(MBEDTLS_PSA_ACCEL_ALG_PBKDF2_AES_CMAC_PRF_128)
709 #if defined(PSA_WANT_KEY_TYPE_AES)
710 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_AES)
713 #if defined(PSA_HAVE_SOFT_KEY_TYPE_AES) || \
722 #if defined(PSA_WANT_KEY_TYPE_ARIA)
723 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_ARIA)
726 #if defined(PSA_HAVE_SOFT_KEY_TYPE_ARIA) || \
734 #if defined(PSA_WANT_KEY_TYPE_CAMELLIA)
735 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_CAMELLIA)
738 #if defined(PSA_HAVE_SOFT_KEY_TYPE_CAMELLIA) || \
746 #if defined(PSA_WANT_KEY_TYPE_DES)
747 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_DES)
750 #if defined(PSA_HAVE_SOFT_KEY_TYPE_DES) || \
757 #if defined(PSA_WANT_KEY_TYPE_CHACHA20)
758 #if !defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_CHACHA20)
764 /* If any of the software block ciphers are selected, define
767 #if defined(PSA_HAVE_SOFT_KEY_TYPE_AES) || \
774 #if defined(PSA_WANT_ALG_STREAM_CIPHER)
778 #if defined(PSA_WANT_ALG_CBC_MAC)
779 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CBC_MAC)
785 #if defined(PSA_WANT_ALG_CMAC)
786 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CMAC) || \
794 #if defined(PSA_HAVE_SOFT_PBKDF2_HMAC) || \
799 #if defined(PSA_WANT_ALG_CTR)
800 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CTR) || \
807 #if defined(PSA_WANT_ALG_CFB)
808 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CFB) || \
815 #if defined(PSA_WANT_ALG_OFB)
816 #if !defined(MBEDTLS_PSA_ACCEL_ALG_OFB) || \
823 #if defined(PSA_WANT_ALG_ECB_NO_PADDING) && \
828 #if defined(PSA_WANT_ALG_CBC_NO_PADDING)
829 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CBC_NO_PADDING) || \
836 #if defined(PSA_WANT_ALG_CBC_PKCS7)
837 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CBC_PKCS7) || \
845 #if defined(PSA_WANT_ALG_CCM)
846 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CCM) || \
856 #if defined(PSA_WANT_ALG_GCM)
857 #if !defined(MBEDTLS_PSA_ACCEL_ALG_GCM) || \
866 #if defined(PSA_WANT_ALG_CHACHA20_POLY1305)
867 #if !defined(MBEDTLS_PSA_ACCEL_ALG_CHACHA20_POLY1305)
868 #if defined(PSA_WANT_KEY_TYPE_CHACHA20)