Permalink
Browse files

merge

  • Loading branch information...
2 parents b3f10dd + 3c0b26f commit dafdc17161e83ce56ca8b21b3369279414bb96ca brainfucker committed Nov 16, 2011
Showing with 0 additions and 11 deletions.
  1. +0 −3 hashlib.cc
  2. +0 −8 test.js
View
@@ -174,7 +174,6 @@ Handle<Value>
hmac_md5(const Arguments& args)
{
HandleScope scope;
-
unsigned char *data, *key_input;
size_t data_length, keylen;
get_data(0, data, data_length);
@@ -183,7 +182,6 @@ hmac_md5(const Arguments& args)
unsigned char digest[16];
unsigned char hexdigest[32];
unsigned int i;
-
const void *key = (unsigned char*) key_input;
char ipad[64], opad[64];
@@ -303,7 +301,6 @@ Handle<Value>
md5(const Arguments& args)
{
HandleScope scope;
-
size_t length;
unsigned char *data;
get_data(0, data, length);
View
@@ -57,12 +57,6 @@ if (hashlib.sha256(new Buffer(COLL)) !==
console.log('test 11 PASSED');
}
-hashlib.md5_file('./test.file', function(value) {
- if (value=='bc8aeda5b02f054117bd9979908787dc')
- console.log('test 12 PASSED');
- else
- console.log('test 12 FAILS');
-// No "}" becouse it in the end
if (hashlib.hmac_sha1('what do ya want for nothing?', 'Jefe')=='effcdf6ae5eb2fa2d27416d5f184df9c259a7c79')
console.log('test 13 PASSED');
else
@@ -155,5 +149,3 @@ for(i=0;i<100000;i++) {
var m2=new Date().getTime();
var c=m2-m1;
console.log('C++ sha512 result is: '+(c));
-
-});

0 comments on commit dafdc17

Please sign in to comment.