Skip to content

Commit

Permalink
Merge pull request #1126 from Ananya-vastare/main
Browse files Browse the repository at this point in the history
Create Tigerhashing.md  #981
  • Loading branch information
ajay-dhangar authored Oct 25, 2024
2 parents e787868 + d49e389 commit 8f8daa8
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 72 deletions.
144 changes: 72 additions & 72 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,13 @@ Thanks to these amazing people who have contributed to the **Algo** project:
<sub><b>PEDDIREDDY MADHAVI</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Akki-58">
<img src="https://avatars.githubusercontent.com/u/154585091?v=4" width="100;" alt="Akki-58"/>
<br />
<sub><b>AJ</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/SrijaVuppala295">
<img src="https://avatars.githubusercontent.com/u/140592148?v=4" width="100;" alt="SrijaVuppala295"/>
Expand All @@ -852,15 +859,15 @@ Thanks to these amazing people who have contributed to the **Algo** project:
<sub><b>Ishita Srivastava</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Mohith1490">
<img src="https://avatars.githubusercontent.com/u/141254298?v=4" width="100;" alt="Mohith1490"/>
<br />
<sub><b>Mohith Singh</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/smog-root">
<img src="https://avatars.githubusercontent.com/u/181578777?v=4" width="100;" alt="smog-root"/>
Expand Down Expand Up @@ -896,20 +903,20 @@ Thanks to these amazing people who have contributed to the **Algo** project:
<sub><b>Saurbh Kumar</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Aditijainnn">
<img src="https://avatars.githubusercontent.com/u/144632601?v=4" width="100;" alt="Aditijainnn"/>
<br />
<sub><b>Aditi</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Akki-58">
<img src="https://avatars.githubusercontent.com/u/154585091?v=4" width="100;" alt="Akki-58"/>
<a href="https://github.com/Ananya-vastare">
<img src="https://avatars.githubusercontent.com/u/116643029?v=4" width="100;" alt="Ananya-vastare"/>
<br />
<sub><b>AJ</b></sub>
<sub><b>Ananya Ravikiran Vastare</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -934,26 +941,26 @@ Thanks to these amazing people who have contributed to the **Algo** project:
</a>
</td>
<td align="center">
<a href="https://github.com/kartik1112">
<img src="https://avatars.githubusercontent.com/u/67007907?v=4" width="100;" alt="kartik1112"/>
<a href="https://github.com/coder-writes">
<img src="https://avatars.githubusercontent.com/u/173470780?v=4" width="100;" alt="coder-writes"/>
<br />
<sub><b>Kartik Buttan</b></sub>
<sub><b>Rishi Verma</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Kratik1093">
<img src="https://avatars.githubusercontent.com/u/153417068?v=4" width="100;" alt="Kratik1093"/>
<a href="https://github.com/RchtDshr">
<img src="https://avatars.githubusercontent.com/u/58704284?v=4" width="100;" alt="RchtDshr"/>
<br />
<sub><b>Kratik Mandloi </b></sub>
<sub><b>Rachita Dashore</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Mahi3454">
<img src="https://avatars.githubusercontent.com/u/161104919?v=4" width="100;" alt="Mahi3454"/>
<a href="https://github.com/rajatsinghal02">
<img src="https://avatars.githubusercontent.com/u/112543741?v=4" width="100;" alt="rajatsinghal02"/>
<br />
<sub><b>Mahi3454</b></sub>
<sub><b>Rajat singhal</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -964,61 +971,61 @@ Thanks to these amazing people who have contributed to the **Algo** project:
</a>
</td>
<td align="center">
<a href="https://github.com/rajatsinghal02">
<img src="https://avatars.githubusercontent.com/u/112543741?v=4" width="100;" alt="rajatsinghal02"/>
<a href="https://github.com/Mahi3454">
<img src="https://avatars.githubusercontent.com/u/161104919?v=4" width="100;" alt="Mahi3454"/>
<br />
<sub><b>Rajat singhal</b></sub>
<sub><b>Mahi3454</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/RchtDshr">
<img src="https://avatars.githubusercontent.com/u/58704284?v=4" width="100;" alt="RchtDshr"/>
<a href="https://github.com/Kratik1093">
<img src="https://avatars.githubusercontent.com/u/153417068?v=4" width="100;" alt="Kratik1093"/>
<br />
<sub><b>Rachita Dashore</b></sub>
<sub><b>Kratik Mandloi </b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/coder-writes">
<img src="https://avatars.githubusercontent.com/u/173470780?v=4" width="100;" alt="coder-writes"/>
<a href="https://github.com/kartik1112">
<img src="https://avatars.githubusercontent.com/u/67007907?v=4" width="100;" alt="kartik1112"/>
<br />
<sub><b>Rishi Verma</b></sub>
<sub><b>Kartik Buttan</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Lokesh-Bijarniya">
<img src="https://avatars.githubusercontent.com/u/152880035?v=4" width="100;" alt="Lokesh-Bijarniya"/>
<a href="https://github.com/purnima2904">
<img src="https://avatars.githubusercontent.com/u/149002244?v=4" width="100;" alt="purnima2904"/>
<br />
<sub><b>Lokesh_Bijarniya_</b></sub>
<sub><b>Purnima Gupta</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/shubhagarwal1">
<img src="https://avatars.githubusercontent.com/u/105449260?v=4" width="100;" alt="shubhagarwal1"/>
<a href="https://github.com/adwityac">
<img src="https://avatars.githubusercontent.com/u/102909367?v=4" width="100;" alt="adwityac"/>
<br />
<sub><b>Shubh Agarwal</b></sub>
<sub><b>Adwitya Chakraborty</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/oebelus">
<img src="https://avatars.githubusercontent.com/u/71945388?v=4" width="100;" alt="oebelus"/>
<a href="https://github.com/aasritha-24">
<img src="https://avatars.githubusercontent.com/u/171145729?v=4" width="100;" alt="aasritha-24"/>
<br />
<sub><b>Oebelus</b></sub>
<sub><b>aasritha-24</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/OmmDevgoswami">
<img src="https://avatars.githubusercontent.com/u/127383096?v=4" width="100;" alt="OmmDevgoswami"/>
<a href="https://github.com/Tusharb331">
<img src="https://avatars.githubusercontent.com/u/120712500?v=4" width="100;" alt="Tusharb331"/>
<br />
<sub><b>Omm Devgoswami</b></sub>
<sub><b>Tushar Bansal</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Rahul7raj">
<img src="https://avatars.githubusercontent.com/u/69787135?v=4" width="100;" alt="Rahul7raj"/>
<a href="https://github.com/sejals23">
<img src="https://avatars.githubusercontent.com/u/183209584?v=4" width="100;" alt="sejals23"/>
<br />
<sub><b>Rahul7raj</b></sub>
<sub><b>Sejal</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -1028,41 +1035,41 @@ Thanks to these amazing people who have contributed to the **Algo** project:
<sub><b>Rana Jay</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/sejals23">
<img src="https://avatars.githubusercontent.com/u/183209584?v=4" width="100;" alt="sejals23"/>
<a href="https://github.com/Rahul7raj">
<img src="https://avatars.githubusercontent.com/u/69787135?v=4" width="100;" alt="Rahul7raj"/>
<br />
<sub><b>Sejal</b></sub>
<sub><b>Rahul7raj</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Tusharb331">
<img src="https://avatars.githubusercontent.com/u/120712500?v=4" width="100;" alt="Tusharb331"/>
<a href="https://github.com/OmmDevgoswami">
<img src="https://avatars.githubusercontent.com/u/127383096?v=4" width="100;" alt="OmmDevgoswami"/>
<br />
<sub><b>Tushar Bansal</b></sub>
<sub><b>Omm Devgoswami</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/aasritha-24">
<img src="https://avatars.githubusercontent.com/u/171145729?v=4" width="100;" alt="aasritha-24"/>
<a href="https://github.com/oebelus">
<img src="https://avatars.githubusercontent.com/u/71945388?v=4" width="100;" alt="oebelus"/>
<br />
<sub><b>aasritha-24</b></sub>
<sub><b>Oebelus</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/adwityac">
<img src="https://avatars.githubusercontent.com/u/102909367?v=4" width="100;" alt="adwityac"/>
<a href="https://github.com/shubhagarwal1">
<img src="https://avatars.githubusercontent.com/u/105449260?v=4" width="100;" alt="shubhagarwal1"/>
<br />
<sub><b>Adwitya Chakraborty</b></sub>
<sub><b>Shubh Agarwal</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/purnima2904">
<img src="https://avatars.githubusercontent.com/u/149002244?v=4" width="100;" alt="purnima2904"/>
<a href="https://github.com/Lokesh-Bijarniya">
<img src="https://avatars.githubusercontent.com/u/152880035?v=4" width="100;" alt="Lokesh-Bijarniya"/>
<br />
<sub><b>Purnima Gupta</b></sub>
<sub><b>Lokesh_Bijarniya_</b></sub>
</a>
</td>
<td align="center">
Expand All @@ -1072,15 +1079,15 @@ Thanks to these amazing people who have contributed to the **Algo** project:
<sub><b>LNischala</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/krishpathak">
<img src="https://avatars.githubusercontent.com/u/142569867?v=4" width="100;" alt="krishpathak"/>
<br />
<sub><b>Krish Pathak</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/jayanththalla">
<img src="https://avatars.githubusercontent.com/u/121346142?v=4" width="100;" alt="jayanththalla"/>
Expand Down Expand Up @@ -1116,21 +1123,14 @@ Thanks to these amazing people who have contributed to the **Algo** project:
<sub><b>Archan Dhrangadharia</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/AnushkaChouhan25">
<img src="https://avatars.githubusercontent.com/u/157525924?v=4" width="100;" alt="AnushkaChouhan25"/>
<br />
<sub><b>Anushka Chouhan</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Ananya-vastare">
<img src="https://avatars.githubusercontent.com/u/116643029?v=4" width="100;" alt="Ananya-vastare"/>
<br />
<sub><b>Ananya Ravikiran Vastare</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/AnanteshG">
Expand Down
38 changes: 38 additions & 0 deletions docs/Hashing/Tigerhashing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Tiger Hashing Algorithm

## Overview
The **Tiger Hashing Algorithm** is a cryptographic hash function developed by Ross Anderson and Eli Biham in 1995. It is optimized for 64-bit platforms and is known for its fast performance and security. Tiger is often used in applications where both speed and security are critical, such as file integrity checking, digital signatures, and password hashing.

## Features
- **Block size**: 512 bits
- **Digest size**: 192 bits (can also produce 160 or 128-bit digests through truncation)
- **Optimized for**: 64-bit platforms
- **Security**: Resistant to most cryptographic attacks like collision and pre-image attacks (as of its time of development)
- **Speed**: Fast hash function compared to others like MD5 or SHA-1, especially on 64-bit systems

## Algorithm Overview
The Tiger Hash function takes an input message and processes it in blocks of 512 bits to produce a 192-bit hash value. It uses three 64-bit state variables (A, B, C) and operates in three main steps:

1. **Message Padding**:
- The input message is padded so that its length is congruent to 448 modulo 512. Padding consists of a '1' bit followed by '0' bits, and the last 64 bits represent the length of the original message.

2. **Processing Block-by-Block**:
- The message is divided into 512-bit blocks, and each block is processed through a series of operations that update the internal state (A, B, C).
- The core of the algorithm uses a combination of XOR, bitwise shifts, and additions with a set of S-boxes (lookup tables) to mix and diffuse the input data across the state variables.

3. **Final Transformation**:
- After processing all blocks, the final hash value is derived from the three state variables and concatenated to form the final 192-bit (or truncated) output.

## Pseudocode

```plaintext
Input: Message M
Output: 192-bit Hash Value
```

1. Pad the message M to make its length a multiple of 512 bits.
2. Initialize three 64-bit variables: A, B, and C with predefined values.
3. For each 512-bit block of the padded message:
a. Perform a series of transformations on A, B, and C using the block and S-boxes.
b. Update A, B, and C after processing each block.
4. After processing all blocks, concatenate A, B, and C to produce the final 192-bit hash.

0 comments on commit 8f8daa8

Please sign in to comment.