slight naming convention change

master
Matt 2014-04-21 13:43:41 -06:00
parent d098617474
commit cf57a3fb7b
3 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ void groestl_hash(const char* input, char* output, uint32_t len)
memcpy(output, &hash2, 32); memcpy(output, &hash2, 32);
} }
void groestl_myriad_hash(const char* input, char* output, uint32_t len) void groestlmyriad_hash(const char* input, char* output, uint32_t len)
{ {
char temp[64]; char temp[64];

View File

@ -8,7 +8,7 @@ extern "C" {
#include <stdint.h> #include <stdint.h>
void groestl_hash(const char* input, char* output, uint32_t len); void groestl_hash(const char* input, char* output, uint32_t len);
void groestl_myriad_hash(const char* input, char* output, uint32_t len); void groestlmyriad_hash(const char* input, char* output, uint32_t len);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -247,7 +247,7 @@ Handle<Value> groestl(const Arguments& args) {
} }
Handle<Value> groestl_myriad(const Arguments& args) { Handle<Value> groestlmyriad(const Arguments& args) {
HandleScope scope; HandleScope scope;
if (args.Length() < 1) if (args.Length() < 1)
@ -263,7 +263,7 @@ Handle<Value> groestl_myriad(const Arguments& args) {
uint32_t input_len = Buffer::Length(target); uint32_t input_len = Buffer::Length(target);
groestl_myriad_hash(input, output, input_len); groestlmyriad_hash(input, output, input_len);
Buffer* buff = Buffer::New(output, 32); Buffer* buff = Buffer::New(output, 32);
return scope.Close(buff->handle_); return scope.Close(buff->handle_);
@ -394,7 +394,7 @@ void init(Handle<Object> exports) {
exports->Set(String::NewSymbol("bcrypt"), FunctionTemplate::New(bcrypt)->GetFunction()); exports->Set(String::NewSymbol("bcrypt"), FunctionTemplate::New(bcrypt)->GetFunction());
exports->Set(String::NewSymbol("skein"), FunctionTemplate::New(skein)->GetFunction()); exports->Set(String::NewSymbol("skein"), FunctionTemplate::New(skein)->GetFunction());
exports->Set(String::NewSymbol("groestl"), FunctionTemplate::New(groestl)->GetFunction()); exports->Set(String::NewSymbol("groestl"), FunctionTemplate::New(groestl)->GetFunction());
exports->Set(String::NewSymbol("groestl_myriad"), FunctionTemplate::New(groestl_myriad)->GetFunction()); exports->Set(String::NewSymbol("groestlmyriad"), FunctionTemplate::New(groestlmyriad)->GetFunction());
exports->Set(String::NewSymbol("blake"), FunctionTemplate::New(blake)->GetFunction()); exports->Set(String::NewSymbol("blake"), FunctionTemplate::New(blake)->GetFunction());
exports->Set(String::NewSymbol("fugue"), FunctionTemplate::New(fugue)->GetFunction()); exports->Set(String::NewSymbol("fugue"), FunctionTemplate::New(fugue)->GetFunction());
exports->Set(String::NewSymbol("qubit"), FunctionTemplate::New(qubit)->GetFunction()); exports->Set(String::NewSymbol("qubit"), FunctionTemplate::New(qubit)->GetFunction());