You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/argon2/src/lib.rs
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ use argon2::{
13
13
use rand_core::OsRng;
14
14
15
15
#[napi]
16
+
#[derive(Clone,Copy)]
16
17
pubenumAlgorithm{
17
18
/// Optimizes against GPU cracking attacks but vulnerable to side-channels.
18
19
/// Accesses the memory array in a password dependent order, reducing the possibility of time–memory tradeoff (TMTO) attacks.
@@ -40,6 +41,7 @@ impl Algorithm {
40
41
}
41
42
42
43
#[napi]
44
+
#[derive(Clone,Copy)]
43
45
pubenumVersion{
44
46
/// Version 16 (0x10 in hex)
45
47
V0x10,
@@ -59,7 +61,7 @@ impl Version {
59
61
}
60
62
}
61
63
62
-
#[napi(object)]
64
+
#[napi(object, object_to_js = false)]
63
65
#[derive(Default)]
64
66
pubstructOptions{
65
67
/// The amount of memory to be used by the hash function, in kilobytes. Each thread will have a memory pool of this size. Note that large values for highly concurrent usage will cause starvation and thrashing if your system memory gets full.
0 commit comments