File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5109,6 +5109,22 @@ extern void uITRON4_free(void *p) ;
51095109 " (WOLF_CRYPTO_CB_COPY/WOLF_CRYPTO_CB_FREE)" \
51105110 " require WOLF_CRYPTO_CB"
51115111#endif
5112+ /*
5113+ * WOLF_CRYPTO_CB_ONLY_* assumes no hardware crypto port is compiled in for
5114+ * the selected algorithm. Crypto Callback is expected to be the only provider.
5115+ */
5116+ #if defined(WOLF_CRYPTO_CB_ONLY_RSA ) && !defined(WOLF_CRYPTO_CB )
5117+ #error "WOLF_CRYPTO_CB_ONLY_RSA requires WOLF_CRYPTO_CB"
5118+ #endif
5119+ #if defined(WOLF_CRYPTO_CB_ONLY_ECC ) && !defined(WOLF_CRYPTO_CB )
5120+ #error "WOLF_CRYPTO_CB_ONLY_ECC requires WOLF_CRYPTO_CB"
5121+ #endif
5122+ #if defined(WOLF_CRYPTO_CB_ONLY_SHA256 ) && !defined(WOLF_CRYPTO_CB )
5123+ #error "WOLF_CRYPTO_CB_ONLY_SHA256 requires WOLF_CRYPTO_CB"
5124+ #endif
5125+ #if defined(WOLF_CRYPTO_CB_ONLY_AES ) && !defined(WOLF_CRYPTO_CB )
5126+ #error "WOLF_CRYPTO_CB_ONLY_AES requires WOLF_CRYPTO_CB"
5127+ #endif
51125128
51135129/* Early Data / Session Rules */
51145130#if !defined(WOLFCRYPT_ONLY ) && defined(WOLFSSL_EARLY_DATA ) && \
You can’t perform that action at this time.
0 commit comments