To what length is the LANMAN hash padded?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

To what length is the LANMAN hash padded?

Explanation:
The LM (LANMAN) hash is 16 bytes long, but to generate the LM response Windows uses three DES keys. Each DES key comes from a 7-byte block, so you need three 7-byte blocks, i.e., 21 bytes in total. To get from the 16-byte hash to three 7-byte blocks, five zero bytes are appended, making the total 21 bytes. Those 21 bytes are then split into three 7-byte pieces and turned into DES keys to produce the final 24-byte LM response. So the padding length is five zero bytes, giving a total length of 21 bytes.

The LM (LANMAN) hash is 16 bytes long, but to generate the LM response Windows uses three DES keys. Each DES key comes from a 7-byte block, so you need three 7-byte blocks, i.e., 21 bytes in total. To get from the 16-byte hash to three 7-byte blocks, five zero bytes are appended, making the total 21 bytes. Those 21 bytes are then split into three 7-byte pieces and turned into DES keys to produce the final 24-byte LM response. So the padding length is five zero bytes, giving a total length of 21 bytes.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy