2010-03-25, 01:49
I wasn't sure how to build openssl for the xbox due to lots of os dependencies and so on, and so i used instead crypto++ http://www.cryptopp.com/ instead that had a few easy defines and a Visual Studio project file also. Then for the handshake I did (based on some older librtmp code)
there is a diff against the xbox version here
http://malus.exotica.org.uk/~buzz/xbmc/i...ck.diff.gz
(its basically the patch from http://code.google.com/p/xbmc-boxee-iview/ which uses code from your library). its also a hack as its a hardcoded hash etc so using your newer library would be much better)
crypto++ is c++ though so I'm not sure it will be useful to you ?
Code:
HMACsha256(const char *message, size_t messageLen, const char *key,
size_t keylen, char *digest)
{
CryptoPP::HMAC<CryptoPP::SHA256>((unsigned char *) key, keylen)
.CalculateDigest((unsigned char *) digest, (unsigned char *) message, essageLen);
}
there is a diff against the xbox version here
http://malus.exotica.org.uk/~buzz/xbmc/i...ck.diff.gz
(its basically the patch from http://code.google.com/p/xbmc-boxee-iview/ which uses code from your library). its also a hack as its a hardcoded hash etc so using your newer library would be much better)
crypto++ is c++ though so I'm not sure it will be useful to you ?