Hash function is very widely used because these are used for to provide **Integrity**.

A hash function takes a message of variable length and produces a fixed-length hash value. Hash values, also referred to as message digests, are calculated using the original message. If the receiver calculates a hash value that is the same, then the original message is intact. If the receiver calculates a hash value that is different, then the original message has been altered.

Even changing a comma in a 100 page document will produce an entirely new hash.

There is one more Hashing algorithm i.e. **RIPEMD-160** – Although several variations of the RIPEMD hash function exist. RIPEMD160 produces a 160-bit hash value after performing 160 rounds of computations on 512-bit blocks. It is **secure and collision free** hash function.

So** why do we need HMAC?** – If an attacker intercepts a message that contains a hash value, the attacker can alter the original message to create a second invalid message with a new hash value. If the attacker then sends the second invalid message to the intended recipient, the intended recipient will have no way of knowing that he received an incorrect message. When the receiver performs a hash value calculation, the invalid message will look valid because the invalid message was appended with the attacker’s new hash value, not the original message’s hash value. To prevent this from occurring, the sender should use message authentication code (MAC).

*QUIZ TIME * –** Practicing questions along with Concepts is Best way to Maintain Interest in Study. Hence, Please take some time for a small Quiz on **Hash Functions**? – Please click on below image for quiz to start. *

#### Digital Signature

I am sure you must be thinking “What is the purpose of having Digital Signature?” – How do you verify if the message was truly received from the claimed sender? – Well, the answer is “Digital Signatures”

Digitally signed messages assure the recipient that the message truly came from the claimed sender. They enforce **non-repudiation** & assure the recipient that the message was not altered while in transit between the sender and recipient.

*QUIZ TIME * –** Practicing questions along with Concepts is Best way to Maintain Interest in Study. Hence, Please take some time for a small Quiz on Digital Signature? – Please click on below image for quiz to start. *

* The questions in these practice tests are listed to help you study information and concepts that are likely to be tested on CISSP certification and do not represent questions from any actual test. Your score on these practice tests is not meant to and will not correlate to any particular score on any test.

#### Hashing Transcript

- Message Digest
- By comparing message digest – Changes in messages cannot be calculated
- Used in Digital Signature
- 128 bit or larger
- longer the message digest – most reliable on Integrity

- Property of hash functions
- Input any length
- Output must be fixed length
- Easy to compute for any kind of input
- Must be a one-way function
- Collision free – two messages must not produce same hash value

- SHA
- Promoted by NiST
- SHA-1
- Input any length
- 160-bit message digest
- Process message in 512-bits block

- SHA-2
- SHA-256 – 256-bit message digest using a 512-bit block size. SHA-224 uses a truncated version of the SHA-256 hash – 224-bit message digest using a 512-bit block size. SHA-512 – 512-bit message digest using a 1,024-bit block size. SHA-384 uses a truncated version of the SHA-512 hash – 384-bit message digest using a 1,024-bit block size.
- Never Broken

- MD2
- Developed for 8 bit processor
- Length must be multiple of 16-byte & compute 16 byte checksum -> append to message -> 128 bit message digest
- Not a One-way

- MD4
- Developed for 32 bit processor
- first pads the message to ensure that the message length is 64 bits smaller than a multiple of 512 bits
- Next processes 512-bit blocks of the message in three rounds of computation. The final output is a 128-bit message digest.
- Not secure – Collision are found
- Faster than MD2

- MD5
- MD5 has the same padding requirements as MD4.
- Not secure – Collision are found
- must not be used for SSL and Digital Signature

- Commercial usage, many software vendors

- HAVAL
- Hash of Variable Length is a modification of MD5. It uses 1,024-bit blocks and produces hash values of 128, 160, 192, 224, and 256 bits.
- Collision issues have been discovered if producing a 128-bit hash value with three rounds of computations.

- HMAC – Hash MAC (Message Authentication code)
- Provides data integrity and authentication
- HMAC Strength dependent upon the strength of the hash function, including the hash value size, and the key size.
- Can reduce collision rate of a hash function
- The sender joins the symmetric key to the message.
- CBC-MAC
- Cipher Block Chaining MAC

- CMAC
- Cipher-Based MAC
- Better than CBC-MAC
- Addresses security issue with CBC-MAC
- Approved to work with AES & 3DES

- Keyed MAC
- Encrypting the hash function with a symmetric key algorithm

- Salting
- To protect password from being stolen against Lookup tables and rainbow tables

#### Digital Signature Transcript

- No Confidentiality by default.
- Provides “non-repudiation, and integrity”
- Does not provide privacy/encryption of “Plaintext”
- Uses Hash Function in its process – A hash value encrypted with the sender’s private key
- Digital Signature Standard
- Hashing must use SHA-2
- Approved encryption
- DSA (Digital security algorithm)
- Slower than RSA
- Only provide Digital Signature

- RSA
- ECDSA

- DSA (Digital security algorithm)

What did you use to draw diagrams ?

LikeLiked by 1 person

I am using Mindjet Mindmanager!

LikeLike

Hi do you have all of your mind maps in pdf format please inform to download link ?

LikeLike

Hi Waheed, Unfortunately not :(. But definitely you can refer to all my post. I kept of updating most of them if i come across new concept. Very soon I will be consolidating the practice questions on topic basis.

LikeLike

Pingback: Domain 3: Security Architecture and Engineering – mrcissp

CBC-MAC

CMAC

Keyed MAC

Why these are classified under HMAC?

LikeLike

Sorry for being late in responding. Actually, HMAC, CBC-MAC, CMAC and Keyed MAC are different MAC technique. Ideally heading should be MAC and their respective category. Thank you for highlighting. I will rectify the post in few hours.

LikeLike