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:
parent
3e1a04afa1
commit
a0628f8a50
1 changed files with 1 additions and 3 deletions
|
@ -4856,10 +4856,8 @@ hpke_labeled_expand(struct hpke_context *ctx, bool kem, const u8 *prk,
|
||||||
pos += suite_id_len;
|
pos += suite_id_len;
|
||||||
os_memcpy(pos, label, label_len);
|
os_memcpy(pos, label, label_len);
|
||||||
pos += label_len;
|
pos += label_len;
|
||||||
if (info && info_len) {
|
if (info && info_len)
|
||||||
os_memcpy(pos, info, info_len);
|
os_memcpy(pos, info, info_len);
|
||||||
pos += info_len;
|
|
||||||
}
|
|
||||||
|
|
||||||
pos = out;
|
pos = out;
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
|
|
Loading…
Reference in a new issue