Skip to content

Commit

Permalink
Did the following:
Browse files Browse the repository at this point in the history
- Converted line endings to LF
- Optimized otp_byte_secret for ='s
- main.c test for padding now uses sha1
- main.cpp test now does everything main.c does
- bump license year
  • Loading branch information
tilkinsc committed Apr 27, 2024
1 parent c56734f commit 70161d8
Show file tree
Hide file tree
Showing 9 changed files with 1,675 additions and 1,602 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Cody Tilkins
Copyright (c) 2024 Cody Tilkins

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
34 changes: 17 additions & 17 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
@echo off

echo Compiling
gcc -O2 -Wall -shared -c cotp.c otpuri.c

echo Building DLL
gcc -O2 -Wall -shared -o libcotp.dll cotp.o otpuri.o -lcrypto

echo Building static library
ar rcs -o libcotp.a cotp.o otpuri.o

echo Building test C application
gcc -O2 -Wall -L . -I . -o test_c.exe test/main.c libcotp.a -lcrypto

echo Building test C++ application
g++ -O2 -Wall -L . -I . -o test_cpp.exe test/main.cpp libcotp.a -lcrypto

@echo off

echo Compiling
gcc -O2 -Wall -shared -c cotp.c otpuri.c

echo Building DLL
gcc -O2 -Wall -shared -o libcotp.dll cotp.o otpuri.o -lcrypto

echo Building static library
ar rcs -o libcotp.a cotp.o otpuri.o

echo Building test C application
gcc -O2 -Wall -L . -I . -o test_c.exe test/main.c libcotp.a -lcrypto

echo Building test C++ application
g++ -O2 -Wall -L . -I . -o test_cpp.exe test/main.cpp libcotp.a -lcrypto

Loading

0 comments on commit 70161d8

Please sign in to comment.