We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17ac08b + 9432279 commit e39c4aaCopy full SHA for e39c4aa
src/multihashing.cc
@@ -137,14 +137,16 @@ DECLARE_FUNC(neoscrypt) {
137
if(!Buffer::HasInstance(target))
138
RETURN_EXCEPT("Argument should be a buffer object.");
139
140
+ uint32_t profile = Nan::To<uint32_t>(info[1]).ToChecked();
141
+
142
char * input = Buffer::Data(target);
143
char output[32];
144
145
uint32_t input_len = Buffer::Length(target);
146
147
if (input_len < 80)
148
RETURN_EXCEPT("Argument must be longer than 80 bytes");
- neoscrypt(input, output, 0);
149
+ neoscrypt(input, output, profile);
150
151
SET_BUFFER_RETURN(output, 32);
152
}
0 commit comments