mbed library sources. Supersedes mbed-src. Edited target satm32f446 for user USART3 pins
Fork of mbed-dev by
Diff: targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h
- Revision:
- 182:a56a73fd2a6f
- Parent:
- 180:96ed750bd169
diff -r 57724642e740 -r a56a73fd2a6f targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h --- a/targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h Fri Feb 16 16:09:33 2018 +0000 +++ b/targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h Tue Mar 20 16:56:18 2018 +0000 @@ -30,6 +30,7 @@ /* Clear buffer to zero * Implementation that should never be optimized out by the compiler */ void crypto_zeroize(void *v, size_t n); +void crypto_zeroize32(uint32_t *v, size_t n); /* Acquire/release ownership of AES H/W */ /* NOTE: If "acquire" succeeds, "release" must be done to pair it. */ @@ -46,6 +47,11 @@ bool crypto_sha_acquire(void); void crypto_sha_release(void); +/* Acquire/release ownership of ECC H/W */ +/* NOTE: If "acquire" succeeds, "release" must be done to pair it. */ +bool crypto_ecc_acquire(void); +void crypto_ecc_release(void); + /* Flow control between crypto/xxx start and crypto/xxx ISR * * crypto_xxx_prestart/crypto_xxx_wait encapsulate control flow between crypto/xxx start and crypto/xxx ISR. @@ -67,6 +73,8 @@ bool crypto_aes_wait(void); void crypto_des_prestart(void); bool crypto_des_wait(void); +void crypto_ecc_prestart(void); +bool crypto_ecc_wait(void); /* Check if buffer can be used for crypto DMA. It has the following requirements: