subject
Chemistry, 15.07.2021 23:20 billyeyelash

Let p1 and p2 be pointers to buffers formatted as described previously representing the first and second flows of the key negotiation. In the previous problem you assembled and hashed the concatenation of all of p1 followed by all of p2 up to and including X but excluding Auth_B. The data Auth_B purportedly contains Bobs RSA signature of this hash. Write a function int flow12_authb_verify(void *p1, void *p2) that returns 0 if the signature does not verify and non-zero if it does verify. To verify an RSA signature, you raise the signature to the public exponent (mod the modulus), which should evaluate to the thing that was signed. If the result is the same number as the hash, then the hash (and therefore the data) is verified. Bobs public key will be given in the C starter code in hex. You will have to call BN_hex2bn in order to convert it to a BIGNUM. To use BN_hex2bn you allocate a BIGNUM, which returns a pointer bn, and then you pass a pointer to this pointer: BN_hex2bn(&bn, hexstring). You will need to allocate and free your BIGNUMs in this problem. You will also need to allocate and free a BN_CTX.

ansver
Answers: 3

Another question on Chemistry

question
Chemistry, 20.06.2019 18:02
What are the negative and positive impacts to society of making and using plastic bags?
Answers: 1
question
Chemistry, 21.06.2019 19:00
In any energy conversion, some of the energy is lost to the environment as question 5 options: electrical energy potential energy sound energy thermal energy
Answers: 1
question
Chemistry, 22.06.2019 03:20
What is the ima of the 1 st class lever in the graphic given? 2 3 0.5
Answers: 1
question
Chemistry, 22.06.2019 06:00
Which of the following did jj thompson discover about atoms? a)an atom has an internal structure. b) atoms are tiny indivisible particles. c)electrons orbit the nucleus of an atom. d) the nucleus of an atom contains protons and neutrons.
Answers: 2
You know the right answer?
Let p1 and p2 be pointers to buffers formatted as described previously representing the first and se...
Questions
question
Social Studies, 26.06.2019 08:40
question
Chemistry, 26.06.2019 08:40
question
Social Studies, 26.06.2019 08:40
Questions on the website: 13722362