OpenSSL: Remove unused assignment from HPKE expand

The length of labeled_info is determined separately, so there is no need
to increment the pos pointer after the final entry has been added.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-11-07 12:31:18 +02:00 committed by Jouni Malinen
parent 3e1a04afa1
commit a0628f8a50

View file

@ -4856,10 +4856,8 @@ hpke_labeled_expand(struct hpke_context *ctx, bool kem, const u8 *prk,
pos += suite_id_len;
os_memcpy(pos, label, label_len);
pos += label_len;
if (info && info_len) {
if (info && info_len)
os_memcpy(pos, info, info_len);
pos += info_len;
}
pos = out;
#if OPENSSL_VERSION_NUMBER >= 0x30000000L