From 0ce15f9f1941a0e4cc8fc3fd3d3a96b576a193eb Mon Sep 17 00:00:00 2001 From: Hideki Miyazaki Date: Fri, 12 Jun 2026 17:51:27 +0900 Subject: [PATCH] fixes for CC-RH compatibility --- src/wh_server_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wh_server_crypto.c b/src/wh_server_crypto.c index 788f91f53..850890790 100644 --- a/src/wh_server_crypto.c +++ b/src/wh_server_crypto.c @@ -422,8 +422,8 @@ static int _HandleRsaFunction(whServerContext* ctx, uint16_t magic, int devId, } /* in and out are after the fixed size fields */ - byte* in = (uint8_t*)(cryptoDataIn + sizeof(whMessageCrypto_RsaRequest)); - byte* out = (uint8_t*)(cryptoDataOut + sizeof(whMessageCrypto_RsaResponse)); + byte* in = (uint8_t*)(cryptoDataIn) + sizeof(whMessageCrypto_RsaRequest); + byte* out = (uint8_t*)(cryptoDataOut) + sizeof(whMessageCrypto_RsaResponse); WH_DEBUG_SERVER_VERBOSE("HandleRsaFunction opType:%d inLen:%u keyId:%u outLen:%u\n", op_type, in_len, key_id, out_len);