OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
crypto/scrypt/smix.go
@@ -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)
+}