mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 21:40:11 +00:00
Add docs for mbedtls_ct_memcmp_partial test
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
28bc1ab923
commit
2c9f86b3b6
@ -260,6 +260,17 @@ exit:
|
|||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
/* BEGIN_CASE depends_on:MBEDTLS_NIST_KW_C */
|
/* BEGIN_CASE depends_on:MBEDTLS_NIST_KW_C */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate two arrays of the given size, and test mbedtls_ct_memcmp_partial
|
||||||
|
* over them. The arrays will be identical, except that one byte may be specified
|
||||||
|
* to be different.
|
||||||
|
*
|
||||||
|
* \p diff Index of byte that differs (if out of range, the arrays will match).
|
||||||
|
* \p size Size of arrays to compare
|
||||||
|
* \p skip_head Leading bytes to skip, as per mbedtls_ct_memcmp_partial
|
||||||
|
* \p skip_tail Trailing bytes to skip, as per mbedtls_ct_memcmp_partial
|
||||||
|
*/
|
||||||
void mbedtls_ct_memcmp_partial(int diff, int size, int skip_head, int skip_tail)
|
void mbedtls_ct_memcmp_partial(int diff, int size, int skip_head, int skip_tail)
|
||||||
{
|
{
|
||||||
uint8_t *a = NULL, *b = NULL;
|
uint8_t *a = NULL, *b = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user