Question: #include #include int main ( ) { SHA 2 5 6 _ CTX c; unsigned char buffer [ SHA 2 5 6 _ DIGEST _
#include
#include
int main
SHACTX c;
unsigned char bufferSHADIGESTLENGTH;
int i;
SHAInit&c;
SHAUpdate&c
"secretkey:Launch a missile towards Target A
xxxxxxxxxxxx
xxxxxxxx
"Launch a missile towards the headquarter.",
;
SHAFinalbuffer &c;
for i;i;i
printfx bufferi;
printf
;
return ;
seed@VM: ~Share$ sudo gcc shapadding.c lcrypto
seed@VM: ~Share$ aout
adeaadcdbddeceadfcafdef
The hash value shown in the last line above is the hash of K:MPT
What is
K:
M:
P:
T:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
