This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation, either version 3 of the
-License, or (at your option) any later version.
+the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
- B(sha256.New(), passwd, salt, int(s)%16+1, int(t)%16+1)
+ B(sha512.New(), passwd, salt, uint64(s)%16+1, uint64(t)%16+1)
- H(sha256.New, passwd, salt, int(s)%16+1, int(t)%16+1, int(p)%8+1)
+ H(sha512.New, passwd, salt, int(s)%16+1, int(t)%16+1, int(p)%8+1)
- B(sha256.New(), passwd, salt, 1<<10/sha256.New().Size(), 4)
+ B(h, passwd, salt, sCost, 4)
- H(sha256.New, passwd, salt, 1<<10/sha256.New().Size(), 4, 4)
+ H(sha512.New, passwd, salt, sCost, 4, 4)