Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wh_server_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading