Fix fetchcontent, add constant time compare for bytearray
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386, asrock) (push) Successful in 43s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64, asrock) (push) Successful in 45s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64, asrock) (push) Successful in 46s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64, msi-walmart) (push) Successful in 3m5s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 3m8s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7, msi-walmart) (push) Successful in 3m12s
Build and Deploy on Tag / update-tap (push) Successful in 4m53s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386, asrock) (push) Successful in 43s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64, asrock) (push) Successful in 45s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64, asrock) (push) Successful in 46s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64, msi-walmart) (push) Successful in 3m5s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 3m8s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7, msi-walmart) (push) Successful in 3m12s
Build and Deploy on Tag / update-tap (push) Successful in 4m53s
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
||||
- 'v*'
|
||||
|
||||
env:
|
||||
TF_VERSION: 0.0.9
|
||||
TF_VERSION: 0.0.10
|
||||
PACKAGE_AND_BREW: ${{ secrets.PACKAGE_AND_BREW }}
|
||||
VERSION: ${{ gitea.ref_name }}
|
||||
RESULT_IMAGE_NAME: tesses50/crosslang
|
||||
@@ -15,7 +15,7 @@ env:
|
||||
jobs:
|
||||
build-ppc:
|
||||
name: "🔨 Build for PowerPC"
|
||||
runs-on: asrock
|
||||
runs-on: msi-walmart
|
||||
container:
|
||||
image: git.tesses.org/tesses50/linux-ppc:latest
|
||||
steps:
|
||||
@@ -44,11 +44,11 @@ jobs:
|
||||
nfpmName: "386"
|
||||
debianName: "i386-linux-gnu"
|
||||
- container: "git.tesses.org/tesses50/linux-arm:latest"
|
||||
puter: "fw13-ubuntu-latest"
|
||||
puter: "msi-walmart"
|
||||
nfpmName: "arm7"
|
||||
debianName: "arm-linux-gnueabihf"
|
||||
- container: "git.tesses.org/tesses50/linux-arm64:latest"
|
||||
puter: "msi-walmart"
|
||||
puter: "asrock"
|
||||
nfpmName: "arm64"
|
||||
debianName: "aarch64-linux-gnu"
|
||||
- container: "git.tesses.org/tesses50/linux-riscv64:latest"
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
|
||||
|
||||
update-tap:
|
||||
runs-on: msi-walmart
|
||||
runs-on: asrock
|
||||
container: git.tesses.org/tesses50/global-containers-mingw:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
## 0.0.12
|
||||
Fix fetchcontent,
|
||||
Fix fetchcontent, add constant time compare for bytearray
|
||||
|
||||
## 0.0.11
|
||||
Add htmlparser, conditional variables, make alloc_threshold overridable in prefs.json
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ set(CROSSLANG_STATIC ${TESSESFRAMEWORK_STATIC} CACHE INTERNAL "For CrossLang" FO
|
||||
FetchContent_Declare(
|
||||
TessesFramework
|
||||
GIT_REPOSITORY https://git.tesses.org/tesses50/tessesframework.git
|
||||
GIT_TAG e4ca34aa597c9b0955aa23c18c500048af697c92
|
||||
GIT_TAG d99001d6ebb957272f399dd371bf571c8c16f248
|
||||
)
|
||||
set(TESSESFRAMEWORK_ENABLE_EXAMPLES OFF)
|
||||
FetchContent_MakeAvailable(TessesFramework)
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
set(CROSSLANG_MAJOR_VERSION 0)
|
||||
set(CROSSLANG_MINOR_VERSION 0)
|
||||
set(CROSSLANG_PATCH_VERSION 11)
|
||||
set(CROSSLANG_PATCH_VERSION 12)
|
||||
|
||||
@@ -100,6 +100,15 @@ static TObject Crypto_Base64Decode(GCList &ls, std::vector<TObject> args) {
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
static TObject Crypto_ConstantEquals(GCList &ls, std::vector<TObject> args) {
|
||||
TByteArray *left;
|
||||
TByteArray *right;
|
||||
if (GetArgumentHeap(args, 0, left) && GetArgumentHeap(args, 1, right)) {
|
||||
return Tesses::Framework::Crypto::ConstantEquals(left->data,
|
||||
right->data);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
void TStd::RegisterCrypto(std::shared_ptr<GC> gc, TRootEnvironment *env) {
|
||||
|
||||
env->permissions.canRegisterCrypto = true;
|
||||
@@ -110,6 +119,9 @@ void TStd::RegisterCrypto(std::shared_ptr<GC> gc, TRootEnvironment *env) {
|
||||
dict->DeclareFunction(gc, "PBKDF2", "Hash passwords with PBKDF2",
|
||||
{"pass", "salt", "itterations", "keylen", "shanum"},
|
||||
Crypto_PBKDF2);
|
||||
dict->DeclareFunction(gc, "ConstantEquals",
|
||||
"Compare two byte arrays using constant time",
|
||||
{"array1", "array2"}, Crypto_ConstantEquals);
|
||||
dict->DeclareFunction(gc, "RandomBytes",
|
||||
"Create bytearray but with random bytes in it "
|
||||
"instead of zeros (this uses mbedtls by the way)",
|
||||
|
||||
Reference in New Issue
Block a user