Hi can you post annotations and comments line by line for this code I have had to make for decrypting? Thank you :) *Encrypt.c *Decrypt.c #define NBITS 256 void printBN(char*msg, BIGNUM *a) { char *number_str = BN_bn2hex(a); printf("%s %s \n", msg, number_str); OPENSSL_free(number_str); } int main() { BN_CTX *ctx = BN_CTX_new(); BIGNUM *e = BN_new(); BIGNUM *n = BN_new(); BIGNUM *M = BN_new(); BIGNUM *d = BN_new(); BIGNUM *C = BN_new(); BN_hex2bn(&n, "DCBFFE3E51F62E09CE7032E2677A78946A849DC4CDDE3A4DOCB81629242FB1A5"); BN_hex2bn (&d, "74D806F9F3A62BAE331FFE3FOA68AFE35B3D2E4794148AACBC26AA381CD7D30D"); BN_hex2bn(&e, "010001"); BN_hex2bn(&c, "8COF971DF2F3672B28811407E2DABBE1DAOFEBBBDFC7DCB67396567EA1E2493F"); BN_mod_exp(m,c,d,n,ctx); printBN("m= ",m);| BN_CTX_free(ctx); return 0; }
Hi can you post annotations and comments line by line for this code I have had to make for decrypting? Thank you :) *Encrypt.c *Decrypt.c #define NBITS 256 void printBN(char*msg, BIGNUM *a) { char *number_str = BN_bn2hex(a); printf("%s %s \n", msg, number_str); OPENSSL_free(number_str); } int main() { BN_CTX *ctx = BN_CTX_new(); BIGNUM *e = BN_new(); BIGNUM *n = BN_new(); BIGNUM *M = BN_new(); BIGNUM *d = BN_new(); BIGNUM *C = BN_new(); BN_hex2bn(&n, "DCBFFE3E51F62E09CE7032E2677A78946A849DC4CDDE3A4DOCB81629242FB1A5"); BN_hex2bn (&d, "74D806F9F3A62BAE331FFE3FOA68AFE35B3D2E4794148AACBC26AA381CD7D30D"); BN_hex2bn(&e, "010001"); BN_hex2bn(&c, "8COF971DF2F3672B28811407E2DABBE1DAOFEBBBDFC7DCB67396567EA1E2493F"); BN_mod_exp(m,c,d,n,ctx); printBN("m= ",m);| BN_CTX_free(ctx); return 0; }
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Topic Video
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education