Skip to content

Commit

Permalink
Update v0.1.68
Browse files Browse the repository at this point in the history
  • Loading branch information
george012 committed Apr 10, 2024
1 parent 1f03355 commit 08dc438
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package config

const (
ProjectName = "gtbox"
ProjectVersion = "v0.1.67"
ProjectVersion = "v0.1.68"
ProjectDescription = "[Golang]日常开发工具箱"
)

Expand Down
11 changes: 10 additions & 1 deletion gtbox_encryption/gtbox_encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ package gtbox_encryption
/*
#cgo CFLAGS: -I../libs/gtgo
#cgo LDFLAGS: -L../libs/gtgo -lgtgo
#include "gtgo.h"
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h> // 添加这一行
extern int GT_encryptionStr(const char *inputStr,char *outputStr,const char *keyString);
extern int GT_decryptionStr(const char *inputStr, char *outputStr, const char *keyString);
extern int gt_dec(const char *inputStr, char **outputStr, const char *keyString);
extern int gt_enc(const char *inputStr, char **outputStr, const char *keyString);
extern const char* GT_getVerison();
extern int fatal_enc(const char *inputStr, char **outputStr, char *keyString);
extern int fatal_dec(const char *inputStr, char **outputStr, char *keyString);
extern char* GT_MD5(char *inputStr);
*/
import "C"

Expand Down
Binary file modified libs/gtgo/android/arm64-v8a/libgtgo.so
Binary file not shown.
Binary file modified libs/gtgo/android/armeabi-v7a/libgtgo.so
Binary file not shown.
2 changes: 1 addition & 1 deletion libs/gtgo/android/include/gtgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern "C"

void scrypt_1024_1_1_256(const char* input, char* output);
void scrypt_1024_1_1_256_sp(const char* input, char* output, char* scratchpad);
const int scrypt_scratchpad_size = 131583;
const int scrypt_scratchpad_size;
#ifdef __cplusplus // 如果是 C++ 编译环境
} // 结束 extern "C" 块
#endif
Expand Down
Binary file modified libs/gtgo/android/x86/libgtgo.so
Binary file not shown.
Binary file modified libs/gtgo/android/x86_64/libgtgo.so
Binary file not shown.
Binary file modified libs/gtgo/gtgo.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion libs/gtgo/gtgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extern "C"

void scrypt_1024_1_1_256(const char* input, char* output);
void scrypt_1024_1_1_256_sp(const char* input, char* output, char* scratchpad);
const int scrypt_scratchpad_size = 131583;
const int scrypt_scratchpad_size;
#ifdef __cplusplus // 如果是 C++ 编译环境
} // 结束 extern "C" 块
#endif
Expand Down
Binary file modified libs/gtgo/libgtgo.dylib
Binary file not shown.
Binary file modified libs/gtgo/libgtgo.so
Binary file not shown.
8 changes: 7 additions & 1 deletion ltc_scrypt/ltc_scrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ package ltc_scrypt
/*
#cgo CFLAGS: -I../libs/gtgo
#cgo LDFLAGS: -L../libs/gtgo -lgtgo
#include "gtgo.h"
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h> // 添加这一行
extern void scrypt_1024_1_1_256(const char* input, char* output);
extern void scrypt_1024_1_1_256_sp(const char* input, char* output, char* scratchpad);
extern const int scrypt_scratchpad_size;
*/
import "C"
import (
Expand Down

0 comments on commit 08dc438

Please sign in to comment.