Remove redundant stringification for decrypt().

This commit is contained in:
John Hood
2016-03-24 00:21:08 -04:00
parent 6075209038
commit 7af87d85cc
3 changed files with 8 additions and 7 deletions
+4 -1
View File
@@ -151,7 +151,10 @@ namespace Crypto {
~Session();
const string encrypt( const Message & plaintext );
const Message decrypt( const string & ciphertext );
const Message decrypt( const char *str, size_t len );
const Message decrypt( const string & ciphertext ) {
return decrypt( ciphertext.data(), ciphertext.size() );
}
Session( const Session & );
Session & operator=( const Session & );