@@ -103,12 +103,12 @@ func newPwxformCtx(version string) (ctx *PwxformCtx) {
103103}
104104
105105func Yespower (in []byte , N , r int , persToken string ) string {
106- fmt .Printf ("Input inside Yespower: %x\n " , in )
106+ // fmt.Printf("Input inside Yespower: %x\n", in)
107107 return yespower (YESPOWER_1_0 , in , N , r , persToken )
108108}
109109
110110func Yescrypt (in []byte , N , r int , persToken string ) string {
111- fmt .Printf ("Input inside Yescrypt: %x\n " , in )
111+ // fmt.Printf("Input inside Yescrypt: %x\n", in)
112112 return yespower (YESPOWER_0_5 , in , N , r , persToken )
113113}
114114
@@ -193,8 +193,8 @@ func yespower(version string, in []byte, N, r int, persToken string) string {
193193}
194194
195195func smix (B []uint32 , r , N int , V , X []uint32 , ctx * PwxformCtx ) {
196- nloop_all := ( N + 2 ) / 3
197- nloop_rw : = nloop_all
196+ var nloop_all uint32 = uint32 (( N + 2 ) / 3 )
197+ var nloop_rw uint32 = nloop_all
198198
199199 // Round up to even
200200 nloop_all ++
@@ -217,8 +217,8 @@ func smix(B []uint32, r, N int, V, X []uint32, ctx *PwxformCtx) {
217217 smix1 (B , 1 , ctx .sBytes / 128 , ctx .S , X , ctx , true )
218218 smix1 (B , r , N , V , X , ctx , false )
219219
220- smix2 (B , r , N , nloop_rw , V , X , ctx )
221- smix2 (B , r , N , nloop_all - nloop_rw , V , X , ctx )
220+ smix2 (B , r , N , int ( nloop_rw ) , V , X , ctx )
221+ smix2 (B , r , N , int ( nloop_all - nloop_rw ) , V , X , ctx )
222222}
223223
224224func smix1 (B []uint32 , r , N int , V , X []uint32 , ctx * PwxformCtx , init bool ) {
@@ -519,7 +519,7 @@ func salsaXOR(in, out []uint32, rounds int) {
519519}
520520
521521func YespowerHash (input []byte ) []byte {
522- fmt .Printf ("Input inside YespowerHash: %x\n " , input )
522+ // fmt.Printf("Input inside YespowerHash: %x\n", input)
523523 timeBytes := input [68 :72 ]
524524 time := binary .LittleEndian .Uint32 (timeBytes )
525525
0 commit comments