1 /* 2 * Copyright (c) 2017, Linaro Limited 3 * All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 */ 7 8 #include <compiler.h> 9 #include <tee/tee_cryp_provider.h> 10 11 #if !defined(_CFG_CRYPTO_WITH_HASH) 12 TEE_Result crypto_hash_get_ctx_size(uint32_t algo __unused, 13 size_t *size __unused) 14 { 15 return TEE_ERROR_NOT_IMPLEMENTED; 16 } 17 18 TEE_Result crypto_hash_init(void *ctx __unused, uint32_t algo __unused) 19 { 20 return TEE_ERROR_NOT_IMPLEMENTED; 21 } 22 TEE_Result crypto_hash_update(void *ctx __unused, uint32_t algo __unused, 23 const uint8_t *data __unused, size_t len __unused) 24 { 25 return TEE_ERROR_NOT_IMPLEMENTED; 26 } 27 TEE_Result crypto_hash_final(void *ctx __unused, uint32_t algo __unused, 28 uint8_t *digest __unused, size_t len __unused) 29 { 30 return TEE_ERROR_NOT_IMPLEMENTED; 31 } 32 #endif /*_CFG_CRYPTO_WITH_HASH*/ 33