Skip to content

Commit 4cdeb28

Browse files
Set CKA_VALUE_LEN attribute in DeriveNoise (#1482)
1 parent 5cccd39 commit 4cdeb28

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkclient/pkclient_cgo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func (c *PKClient) DeriveNoise(peerPubKey []byte) ([]byte, error) {
180180
pkcs11.NewAttribute(pkcs11.CKA_DECRYPT, true),
181181
pkcs11.NewAttribute(pkcs11.CKA_WRAP, true),
182182
pkcs11.NewAttribute(pkcs11.CKA_UNWRAP, true),
183+
pkcs11.NewAttribute(pkcs11.CKA_VALUE_LEN, NoiseKeySize),
183184
}
184185

185186
// Set up the parameters which include the peer's public key

0 commit comments

Comments
 (0)