Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/totomanov/sha1-asm
SHA-1 hash function implementation in AT&T syntax x86 Assembly.
https://github.com/totomanov/sha1-asm
Last synced: 21 days ago
JSON representation
SHA-1 hash function implementation in AT&T syntax x86 Assembly.
- Host: GitHub
- URL: https://github.com/totomanov/sha1-asm
- Owner: totomanov
- Created: 2020-06-19T06:33:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T06:55:48.000Z (over 4 years ago)
- Last Synced: 2024-04-14T02:02:40.929Z (7 months ago)
- Language: Assembly
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sha1-asm
Implementation of the SHA-1 hash function implementation in AT&T syntax x86 Assembly. It works on the 512-bit data chunks directly,
so the preprocessing and chunking phases of the algorithm are not implemented.
The program was created as a part of the Computer Organisation course at TU Delft.
The [pseudocode from Wikipedia](https://en.wikipedia.org/wiki/SHA-1#Examples_and_pseudocode) was very useful in the development process.# Running on Linux
1. Clone this repo in a new directory.
```
git clone https://github.com/totomanov/sha1-asm.git
```
2. Assemble the program with GCC.
```
gcc -no-pie -o sha1 sha1.s
```
3. Execute the binary
```
./sha1
```# Debugging
1. Pass the ```-g``` flag to GCC.
```
gcc -g -no-pie -o sha1 sha1.s
```
2. Start the debugger.
```
gdb ./sha1
```