This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/source/helpers/crypto.cpp b/source/helpers/crypto.cpp | |
index fa23428..e0ef3ad 100644 | |
--- a/source/helpers/crypto.cpp | |
+++ b/source/helpers/crypto.cpp | |
@@ -41,7 +41,7 @@ namespace hex { | |
std::array<u8, 512> buffer = { 0 }; | |
for (u64 bufferOffset = 0; offset < size; offset += buffer.size()) { | |
- const u64 readSize = std::min(buffer.size(), size - bufferOffset); | |
+ const u64 readSize = std::min((u64)buffer.size(), size - bufferOffset); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install Homebrew (https://brew.sh) | |
``` | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
``` | |
2. Install python3.7 | |
``` | |
brew install python3 | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nmigen import * | |
from nmigen_boards.icebreaker import * | |
from nmigen.back import rtlil, verilog, pysim | |
class Blinker(Elaboratable): | |
def __init__(self, maxperiod): | |
self.maxperiod = maxperiod | |
self.led = Signal() | |
self.counter = Signal(max=self.maxperiod+1) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/aarch64_cryptoextension.cpp b/aarch64_cryptoextension.cpp | |
index ed167e3..6dd5309 100644 | |
--- a/aarch64_cryptoextension.cpp | |
+++ b/aarch64_cryptoextension.cpp | |
@@ -5,6 +5,22 @@ | |
#include <kernwin.hpp> | |
#include <allins.hpp> | |
+#if (IDA_SDK_VERSION < 700) && defined(__X64__) | |
+ #error Incompatible SDK version. Please use SDK 7.0 or higher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct termios tty; | |
memset (&tty, 0, sizeof tty); | |
if (tcgetattr (serial_fd, &tty) != 0) | |
return -1; | |
// set speed | |
cfsetospeed (&tty, B115200); | |
// set control options |