Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
60430ba
did stuff
Aasmundur Mar 4, 2026
c9c2296
while works!
pbaekgaard Mar 5, 2026
58e2ce9
good tests?
pbaekgaard Mar 5, 2026
ce7bd81
clean up
pbaekgaard Mar 5, 2026
d5560cc
better arg handling
pbaekgaard Mar 6, 2026
eef37b2
stuff
Aasmundur Mar 6, 2026
e6c8709
stuff
Aasmundur Mar 6, 2026
095951b
removed folder oops
Aasmundur Mar 6, 2026
f9a82d4
dingdong
Aasmundur Mar 6, 2026
d03d098
booleans work
pbaekgaard Mar 10, 2026
78202de
Merge pull request #51 from pbaekgaard/implement-booleans
pbaekgaard Mar 10, 2026
e601c2f
core stuff
pbaekgaard Mar 10, 2026
c09f475
added prints and stuff and example of crt-rsa
pbaekgaard Mar 10, 2026
93a8ca6
some initial stuff for interpreter. it already can do quite some stuff
pbaekgaard Feb 26, 2026
be7ca96
pretty print fixes
pbaekgaard Feb 26, 2026
b428d6f
updates
pbaekgaard Feb 26, 2026
b81043e
perchance str works?
pbaekgaard Feb 26, 2026
bf82e06
progress
pbaekgaard Mar 1, 2026
0ab9015
udpates
pbaekgaard Mar 3, 2026
ca44ef4
exec b og exec add
Aasmundur Mar 5, 2026
ec96003
adds compiled tests files for while loops
pbaekgaard Mar 5, 2026
403962d
test for the qemu vs interpreter status codes
Aasmundur Mar 5, 2026
bdca6e1
stuff
Aasmundur Mar 5, 2026
92a9259
pooshe
pbaekgaard Mar 5, 2026
385c5f1
stuff
Aasmundur Mar 5, 2026
d564cab
some stuff i tried, progress i think
pbaekgaard Mar 5, 2026
b940fde
fixed
pbaekgaard Mar 6, 2026
489357b
infinite loop detection
pbaekgaard Mar 6, 2026
8f1eacd
better argument handling
pbaekgaard Mar 6, 2026
3040133
main.asm
pbaekgaard Mar 10, 2026
916756f
added default value for compiler output
pbaekgaard Mar 11, 2026
db8ba35
crt-rsa works? now we just need prints maybe?
pbaekgaard Mar 11, 2026
791530b
prints work, yippiiiiiie!
pbaekgaard Mar 11, 2026
8d7e6a3
more than one print
pbaekgaard Mar 11, 2026
b0dae1e
restructuring
pbaekgaard Mar 11, 2026
21a3c52
testing framework looks great!
pbaekgaard Mar 11, 2026
6fb62c9
git ignore stuff
pbaekgaard Mar 11, 2026
63e8d89
rebase
pbaekgaard Mar 12, 2026
021ce79
me n mr. g made the step counter, may or may not work, need to make t…
Aasmundur Mar 11, 2026
eb1cbe3
restucture
Aasmundur Mar 12, 2026
25b5711
add hardening step counter for the code generation
Aasmundur Mar 12, 2026
0911395
restructure
pbaekgaard Mar 12, 2026
33077ae
init
pbaekgaard Mar 12, 2026
26272c9
rebase
pbaekgaard Mar 12, 2026
b879ea0
changes
pbaekgaard Mar 12, 2026
a2881ae
okaaaay lets go
pbaekgaard Mar 12, 2026
a53ea30
fault injection wokrs
pbaekgaard Mar 13, 2026
d70af5e
faultinjector
Aasmundur Mar 13, 2026
dfb16d9
Merge pull request #55 from pbaekgaard/35-code-fault-injector
Aasmundur Mar 13, 2026
d3538d7
me n mr. g made the step counter, may or may not work, need to make t…
Aasmundur Mar 11, 2026
206861c
restucture
Aasmundur Mar 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
#
# already existing elements were commented out

#/target
/tmp
/temp
**/target
/interpreter/target
/interpreter/tmp
/playground

*.core
**/tmp
**/temp

/testing/bin
/testing/artifacts
/testing/src/__pycache__
48 changes: 0 additions & 48 deletions Cargo.lock

This file was deleted.

225 changes: 225 additions & 0 deletions compiler/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml → compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ name = "trivic"
path = "src/main.rs"

[dependencies]
clap = { version = "4.5.60", features = ["derive"] }
indoc = "2.0"


[dev-dependencies]
pretty_assertions = "1.4.1"
pretty_assertions = "1.4.1"
File renamed without changes.
Binary file added compiler/fissc/Basic/.Makefile.swp
Binary file not shown.
23 changes: 23 additions & 0 deletions compiler/fissc/Basic/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Makefile script with commands to generate the benchmark assembly and binaries.
# Description of the targets:
# x86-rsa: produce lazart object files
# clean: clean generated files, including output binaries

.PHONY: clean x86-rsa

TARGET = crt-rsa

FILES = src/countermeasure.c src/initialize.c src/main.c src/oracle.c src/crt-rsa.c
FILES_INLINE = src/countermeasure.c src/initialize.c src/main.c

INC_DIR = -I ../share -Iinclude
BIN_DIR = bin

CFLAGS = $(INC_DIR)-Wall -Wextra

x86-rsa:
@mkdir -p $(BIN_DIR)
@clang -DMAKE_Rsa $(FILES) $(CFLAGS) -o $(BIN_DIR)/$(TARGET)

clean:
@rm -rf $(BIN_DIR)
Binary file added compiler/fissc/Basic/bin/crt-rsa
Binary file not shown.
23 changes: 23 additions & 0 deletions compiler/fissc/Basic/include/commons.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**************************************************************************/
/* */
/* This file is part of FISSC. */
/* */
/* you can redistribute it and/or modify it under the terms of the GNU */
/* Lesser General Public License as published by the Free Software */
/* Foundation, version 3.0. */
/* */
/* It is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU Lesser General Public License for more details. */
/* */
/* See the GNU Lesser General Public License version 3.0 */
/* for more details (enclosed in the file LICENSE). */
/* */
/**************************************************************************/

#ifndef H_COMMONS
#define H_COMMONS


#endif // H_COMMONS
29 changes: 29 additions & 0 deletions compiler/fissc/Basic/src/countermeasure.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**************************************************************************/
/* */
/* This file is part of FISSC. */
/* */
/* you can redistribute it and/or modify it under the terms of the GNU */
/* Lesser General Public License as published by the Free Software */
/* Foundation, version 3.0. */
/* */
/* It is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU Lesser General Public License for more details. */
/* */
/* See the GNU Lesser General Public License version 3.0 */
/* for more details (enclosed in the file LICENSE). */
/* */
/**************************************************************************/

#include "interface.h"
#include "types.h"
#include <stdlib.h>

extern UBYTE g_countermeasure;

void countermeasure()
{
g_countermeasure = 1;
exit(6);
}
Loading
Loading