I'm using
OpenSSL here;
When using
AES cryptographic, it generates a
Key and
IV with the type
unsigned char*.
It's easy to put into a
std::string doing
reinterpret_cast<char *> when generating.
But, why there's not those functions in Packet class?
Packet& Packet::operator >>(std::basic_string<unsigned char>& data)
Packet& Packet::operator <<(const std::basic_string<unsigned char>& data)
It's because they'll not be much used?
And I know, packing symmetric keys directly in mostly all cases is a bad idea.