mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
SiLabs: cleanup TODOs
This commit is contained in:
@@ -4738,10 +4738,6 @@ int wc_ecc_init_ex(ecc_key* key, void* heap, int devId)
|
|||||||
key->heap = heap;
|
key->heap = heap;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_SILABS_SE_ACCEL
|
|
||||||
//TODO: anything?
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_ECC)
|
#if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_ECC)
|
||||||
/* handle as async */
|
/* handle as async */
|
||||||
ret = wolfAsync_DevCtxInit(&key->asyncDev, WOLFSSL_ASYNC_MARKER_ECC,
|
ret = wolfAsync_DevCtxInit(&key->asyncDev, WOLFSSL_ASYNC_MARKER_ECC,
|
||||||
@@ -5619,10 +5615,6 @@ int wc_ecc_free(ecc_key* key)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_SILABS_SE_ACCEL
|
|
||||||
// TODO:
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_ECC)
|
#if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_ECC)
|
||||||
#ifdef WC_ASYNC_ENABLE_ECC
|
#ifdef WC_ASYNC_ENABLE_ECC
|
||||||
wolfAsync_DevCtxFree(&key->asyncDev, WOLFSSL_ASYNC_MARKER_ECC);
|
wolfAsync_DevCtxFree(&key->asyncDev, WOLFSSL_ASYNC_MARKER_ECC);
|
||||||
@@ -6239,7 +6231,6 @@ int wc_ecc_verify_hash_ex(mp_int *r, mp_int *s, const byte* hash,
|
|||||||
word32 msgLenInBytes = hashlen;
|
word32 msgLenInBytes = hashlen;
|
||||||
CRYS_ECPKI_HASH_OpMode_t hash_mode;
|
CRYS_ECPKI_HASH_OpMode_t hash_mode;
|
||||||
#elif defined(WOLFSSL_SILABS_SE_ACCEL)
|
#elif defined(WOLFSSL_SILABS_SE_ACCEL)
|
||||||
// TODO:
|
|
||||||
byte sigRS[64*2];
|
byte sigRS[64*2];
|
||||||
#elif !defined(WOLFSSL_SP_MATH) || defined(FREESCALE_LTC_ECC)
|
#elif !defined(WOLFSSL_SP_MATH) || defined(FREESCALE_LTC_ECC)
|
||||||
int did_init = 0;
|
int did_init = 0;
|
||||||
@@ -7362,8 +7353,7 @@ static int ecc_check_privkey_gen_helper(ecc_key* key)
|
|||||||
/* Hardware based private key, so this operation is not supported */
|
/* Hardware based private key, so this operation is not supported */
|
||||||
err = MP_OKAY; /* just report success */
|
err = MP_OKAY; /* just report success */
|
||||||
#elif defined(WOLFSSL_SILABS_SE_ACCEL)
|
#elif defined(WOLFSSL_SILABS_SE_ACCEL)
|
||||||
|
/* Hardware based private key, so this operation is not supported */
|
||||||
// TODO:
|
|
||||||
err = MP_OKAY; /* just report success */
|
err = MP_OKAY; /* just report success */
|
||||||
#else
|
#else
|
||||||
ALLOC_CURVE_SPECS(2);
|
ALLOC_CURVE_SPECS(2);
|
||||||
|
@@ -71,7 +71,7 @@ sl_se_key_type_t silabs_map_key_type (ecc_curve_id curve_id)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO: log error
|
WOLFSSL_MSG("silabs_map_key_type() ECC curve unsupported by hardware");
|
||||||
res = 0;
|
res = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user