From 4cdeb284ef0ecaa3f88b6b2e0e2771f7cbca9175 Mon Sep 17 00:00:00 2001 From: Henry Graham Date: Thu, 25 Sep 2025 13:24:52 -0500 Subject: [PATCH] Set CKA_VALUE_LEN attribute in DeriveNoise (#1482) --- pkclient/pkclient_cgo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkclient/pkclient_cgo.go b/pkclient/pkclient_cgo.go index a2ead55..e628609 100644 --- a/pkclient/pkclient_cgo.go +++ b/pkclient/pkclient_cgo.go @@ -180,6 +180,7 @@ func (c *PKClient) DeriveNoise(peerPubKey []byte) ([]byte, error) { pkcs11.NewAttribute(pkcs11.CKA_DECRYPT, true), pkcs11.NewAttribute(pkcs11.CKA_WRAP, true), pkcs11.NewAttribute(pkcs11.CKA_UNWRAP, true), + pkcs11.NewAttribute(pkcs11.CKA_VALUE_LEN, NoiseKeySize), } // Set up the parameters which include the peer's public key