wgconf/conf/store_windows.go
Vincent Batts d5812860fc
conf: bring over changes from wireguard-windows#10
https://github.com/WireGuard/wireguard-windows/pull/10 don't appear to
be of interest, and now need big rebasing.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-04-21 07:05:50 -04:00

18 lines
384 B
Go

/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
*/
package conf
import (
"golang.zx2c4.com/wireguard/windows/conf/dpapi"
)
func platformEnvelope(bytes []byte, name string) ([]byte, error) {
return dpapi.Encrypt(bytes, name)
}
func platformUnenvelope(bytes []byte, name string) ([]byte, error) {
return dpapi.Decrypt(bytes, name)
}