add ecc encrypt secure message exchange, hide ecEncCtx

This commit is contained in:
toddouska
2013-11-13 17:53:11 -08:00
parent 2e9e372875
commit cf4230b073
5 changed files with 361 additions and 69 deletions

View File

@@ -323,6 +323,14 @@ void CTaoCryptErrorString(int error, char* buffer)
XSTRNCPY(buffer, "ASN OCSP sig error, confirm failure", max);
break;
case BAD_ENC_STATE_E:
XSTRNCPY(buffer, "Bad ecc encrypt state operation", max);
break;
case BAD_PADDING_E:
XSTRNCPY(buffer, "Bad padding, message wrong length", max);
break;
default:
XSTRNCPY(buffer, "unknown error number", max);