commit | ee06febbb45477f052f94ba1602507a50fda404d | [log] [tgz] |
---|---|---|
author | gabor-mezei-arm <gabor.mezei@arm.com> | Mon Sep 27 13:34:25 2021 +0200 |
committer | Gabor Mezei <gabor.mezei@arm.com> | Thu Nov 11 10:59:04 2021 +0100 |
tree | a80c31745e265a9a8842a4ec33ca240e9bb05d7e | |
parent | 7b23c0b46d5367917aa3f100a24b22581fe8f60c [diff] [blame] |
Move mbedtls_cf_memcpy_if_eq function to the constant-time module Signed-off-by: Gabor Mezei <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 );