From 221d4abb0c466177ab32ed1e9dbe607028559641 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 17 Jan 2020 23:32:55 -0500 Subject: [PATCH] [cgo] refs #116 Finalized `cipher.encrypt` --- lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go b/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go index 408f1e2ef..75122d9d4 100644 --- a/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go +++ b/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go @@ -4,21 +4,22 @@ import ( "reflect" "unsafe" - encrypt "github.com/SkycoinProject/skycoin/src/cipher/encrypt" + "github.com/SkycoinProject/skycoin/src/cipher/encrypt" ) /* #include #include + #include #include "skytypes.h" + #include "skyfee.h" */ import "C" //export SKY_encrypt_ScryptChacha20poly1305_Encrypt -func SKY_encrypt_ScryptChacha20poly1305_Encrypt(_s *C.encrypt__ScryptChacha20poly1305, _data []byte, _password []byte, _arg1 *C.GoSlice_) (____error_code uint32) { - +func SKY_encrypt_ScryptChacha20poly1305_Encrypt(_s *C.encrypt__ScryptChacha20poly1305, _data, _password []byte, _arg1 *C.GoSlice_) (____error_code uint32) { s := *(*encrypt.ScryptChacha20poly1305)(unsafe.Pointer(_s)) data := *(*[]byte)(unsafe.Pointer(&_data)) password := *(*[]byte)(unsafe.Pointer(&_password)) @@ -31,7 +32,7 @@ func SKY_encrypt_ScryptChacha20poly1305_Encrypt(_s *C.encrypt__ScryptChacha20pol } //export SKY_encrypt_ScryptChacha20poly1305_Decrypt -func SKY_encrypt_ScryptChacha20poly1305_Decrypt(_s *C.encrypt__ScryptChacha20poly1305, _data []byte, _password []byte, _arg1 *C.GoSlice_) (____error_code uint32) { +func SKY_encrypt_ScryptChacha20poly1305_Decrypt(_s *C.encrypt__ScryptChacha20poly1305, _data, _password []byte, _arg1 *C.GoSlice_) (____error_code uint32) { s := *(*encrypt.ScryptChacha20poly1305)(unsafe.Pointer(_s)) data := *(*[]byte)(unsafe.Pointer(&_data)) password := *(*[]byte)(unsafe.Pointer(&_password))