# DSA signature creation using hash oh the message

I am trying to understand how i can create DSA signature. the arithmetic uses H(M) and it is given a random nunber for the hashing result.( written- lets assume it is 121). Is the number really random or i must somehow calculate it before puting it in the formula to solve my problem?

• As as good as any signature scheme uses a hash over the input message, this question comes down to "explain DSA", which is rather too broad in my opinion. If the random is truly random or is a specific value depends on the assignment rather than any reason. Non-deterministic DSA certainly requires a random value as input. – Maarten Bodewes Dec 14 '18 at 2:31
• @MaartenBodewes i am tryinf to solve DSA simple problem- with p, q, a, b parameters yo find signature. There is a formula for one of signature components, which eecuires hash of the message, then i should add it to private key value. In different aamplea the hash is different and as i know there is no special hash calvulating need and formula here. But, anyway, in the book is written some value for hash and i wonder how. – Մարիամ Գրիգորյան Dec 14 '18 at 3:35
• A suggestion to help you get an answer: Include the notation for the scheme and use it to highlight which part of the algorithm you're having trouble with. – Ella Rose Dec 14 '18 at 18:14