Set CKA_VALUE_LEN attribute in DeriveNoise (#1482)

This commit is contained in:
Henry Graham
2025-09-25 13:24:52 -05:00
committed by GitHub
parent 5cccd39465
commit 4cdeb284ef

View File

@@ -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