# Quiz 23

What is the purpose of adding the message length to the message block?

**Type all answers and select the correct one**

* [x] To ensure the message block is a multiple of 512 bits
* [ ] To add randomness to the hash
* [ ] To increase the security of the hash
* [ ] To reduce the size of the message block<br>

**Note to Learners**

"The final step in our message block(s) construction is to add the length of our input message using the last 64 bits or 8 bytes of our message block space to get our message block to a multiple of 512 bits or 64 bytes."

&#x20;

To learn more about it, you can follow the course [Walkthrough Implementation of SHA-256 in Golang](https://bsvblockchain.360learning.com/course/play/68bac07ee4056be2a5dd1108)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bitcoin-primitives-hash-functions/quiz-bitcoin-hash-functions/quiz-23.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
