serialize Integer

9 views
Skip to first unread message

Ahlem

unread,
May 25, 2019, 6:30:11 AM5/25/19
to Crypto++ Users
Hi
I need help please
i use class integer (Cryptopp) and i want to serialize this type
please help

Jeffrey Walton

unread,
May 25, 2019, 6:34:21 AM5/25/19
to Ahlem, Crypto++ Users
> i use class integer (Cryptopp) and i want to serialize this type
> please help

// Random integer
Integer i(prng, Integer::One(), Integer::Power2(64));

std::ostringstream oss;
oss << i;

std::string s = oss.str();
std::cout << s << std::endl;
Reply all
Reply to author
Forward
0 new messages