1. Let P be a prime that has 1024 bits and let a be a primitive root of p.
Let h(x) - a ( mod p). We analyze if h is a good hash function.
a) Is h(x) preimage resistant? Say YES or NO and justify your claim.
b) Is h(x) weakly collision resistant? Say YES or NO and justify your claim.
2. In a family of five, what is the probability that no two people are born the same month?
Explain how you have computed the probability.
3. Bob is using the El Gamal signature scheme. His public key is (p, a, B) = (97,23,15) and
his secret key is a= 67.
a) Calculate Bob's signature for message m-17 with ephemeral random k-31.
b) You receive allegedly from Bob the signed messages (ml,rl, s1) = (22,37,33) and
(m2,r2,s2)=(82,13,65). Verify if these messages both originate from Bob.

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Q1)
a)
According the definition, the function h(x) is preimage resistant if given an output y it is infeasible to find the input, namely x such that αx= y. On the other hand, together with the fact that α is primitive root mod p, we obtain the definition of the discrete logarithm problem (which is known as NP-Hard problem for a prime p chosen with length 1024 bits). Hence the chosen hash function is preimage resistant....

This is only a preview of the solution. Please use the purchase button to see the entire solution

By purchasing this solution you'll be able to access the following files: Solution.docx.

Please let us know the date by which you need help from your tutor or the date and time you wish to have an online tutoring session.

Request Speed

Normal response time: Our most experienced, most successful tutors are provided for maximum expertise and reliability.

Fast response time: Used only for emergencies when speed is the single most important factor.

Why do we ask for this?

We require your email address so that we can send you an email alert when the tutor responds to your message.

We respect your privacy. Your email address will not be used for any other purpose.
You may read our privacy policy for more info.

Please use a personal email address

Please use an email address that does not end in .edu.

Homework Due Date

Please let us know the date by which you need help from your tutor or the date and time you wish to have an online tutoring session.

Request Speed

Normal response time: Our most experienced, most successful tutors are provided for maximum expertise and reliability.

Fast response time: Used only for emergencies when speed is the single most important factor.

Why do we ask for this?

We require your email address so that we can send you an email alert when the tutor responds to your message.

We respect your privacy. Your email address will not be used for any other purpose.
You may read our privacy policy for more info.

Homework Library

Warning: If you try using the HL in an unethical manner, expect to fail your class. All HL items are old, recycled materials and are therefore not original. We intend them to be used only for the purpose of studying and learning.