浏览代码

Set CKA_VALUE_LEN attribute in DeriveNoise (#1482)

Henry Graham 3 周之前
父节点
当前提交
4cdeb284ef
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkclient/pkclient_cgo.go

+ 1 - 0
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