commit | dee0fd33f10804f6af3b6f818545f2d26e3da731 | [log] [tgz] |
---|---|---|
author | gabor-mezei-arm <gabor.mezei@arm.com> | Mon Sep 27 13:34:25 2021 +0200 |
committer | gabor-mezei-arm <gabor.mezei@arm.com> | Tue Sep 28 16:28:43 2021 +0200 |
tree | 4f09bd70e6874c101a06878bb80835cbed04c1e7 | |
parent | 394aeaaefbb678f3ede5d5c24a5afacb0ed97cf9 [diff] [blame] |
Move mbedtls_cf_memcpy_if_eq function to the constant-time module Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
diff --git a/library/constant_time.h b/library/constant_time.h index 5a932cc..ae491b8 100644 --- a/library/constant_time.h +++ b/library/constant_time.h
@@ -69,3 +69,8 @@ void mbedtls_cf_mem_move_to_left( void *start, size_t total, size_t offset ); + +void mbedtls_cf_memcpy_if_eq( unsigned char *dst, + const unsigned char *src, + size_t len, + size_t c1, size_t c2 );