cfbRC5Dec getRC5Dec(byte*, const unsigned int, byte*);
void encryptRC5(byte*, const unsigned int, byte*, cfbRC5Enc);
void decryptRC5(byte*, const unsigned int, byte*, cfbRC5Dec);
-
// asymmetric key generation
esignPriv esignPrivKey(char*);
depend:
$(RM) .depend
- makedepend -f- -- $(CFLAGS) -- $(SRCS) > .depend 2>/dev/null
\ No newline at end of file
+ makedepend -f- -- $(CFLAGS) -- $(SRCS) > .depend 2>/dev/null
byte hexArray[2*SHA1DIGESTSIZE];
memset(hexArray, 0x00, sizeof(hexArray));
toHex(c.val, hexArray, SHA1DIGESTSIZE, 2*SHA1DIGESTSIZE);
- out << string((const char*)hexArray);
+ out << string((const char*)hexArray, sizeof(hexArray));
return out;
}
sha1(msg,digest,strlen((const char*)msg));
toHex(digest, digestHex, SHA1DIGESTSIZE, 2*SHA1DIGESTSIZE);
cout << "SHA-1 of " << msg << " is " << string((const char*)digestHex,2*SHA1DIGESTSIZE) << endl;
-
+
// sha-256
byte digest256[SHA256DIGESTSIZE];
byte hex256[2*SHA256DIGESTSIZE];