OSDN Git Service

Hulk did something
[bytom/vapor.git] / crypto / scrypt / smix.go
diff --git a/crypto/scrypt/smix.go b/crypto/scrypt/smix.go
new file mode 100644 (file)
index 0000000..5376d89
--- /dev/null
@@ -0,0 +1,8 @@
+package scrypt
+
+// Smix create tensority cache
+// Some value is fixed: r = 1, N = 1024.
+func Smix(b []byte, v []uint32) {
+       xy := make([]uint32, 64)
+       smix(b, 1, 1024, v, xy)
+}