]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/hpke: propagate hkdf error value
authorqmuntal <quimmuntal@gmail.com>
Mon, 17 Mar 2025 15:16:53 +0000 (16:16 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 17 Mar 2025 20:28:25 +0000 (13:28 -0700)
commiteb7ab11aafc6bcffcb49cd4fc51307dfee7a321b
treeaf25508683d47278f80110b605ca9c0561896715
parent44d1d2e5adaf95190a817980eb8439d080df6b12
crypto/internal/hpke: propagate hkdf error value

The hkdf operations done in hpke are not expected to fail given that
we control the inputs. However, propagating the error instead of
doesn't hurt and makes the code more robust to future changes.

Change-Id: I168854593a40f67e2cc275e0dedc3b24b8f1480e
Reviewed-on: https://go-review.googlesource.com/c/go/+/658475
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/crypto/internal/hpke/hpke.go