diff options
Diffstat (limited to 'conf/dpapi/dpapi_windows.go')
-rw-r--r-- | conf/dpapi/dpapi_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/dpapi/dpapi_windows.go b/conf/dpapi/dpapi_windows.go index 05074717..851ec1ee 100644 --- a/conf/dpapi/dpapi_windows.go +++ b/conf/dpapi/dpapi_windows.go @@ -37,7 +37,7 @@ func bytesToBlob(bytes []byte) *dpBlob { return blob } -//sys cryptProtectData(dataIn *dpBlob, name *uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptProtectData +//sys cryptProtectData(dataIn *dpBlob, name *uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptProtectData func Encrypt(data []byte, name string) ([]byte, error) { out := dpBlob{} @@ -58,7 +58,7 @@ func Encrypt(data []byte, name string) ([]byte, error) { return ret, nil } -//sys cryptUnprotectData(dataIn *dpBlob, name **uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptUnprotectData +//sys cryptUnprotectData(dataIn *dpBlob, name **uint16, optionalEntropy *dpBlob, reserved uintptr, promptStruct uintptr, flags uint32, dataOut *dpBlob) (err error) = crypt32.CryptUnprotectData func Decrypt(data []byte, name string) ([]byte, error) { out := dpBlob{} |