   return d[0] & 1
 }
 
-func unpack25519(_ o:inout [Int64], _ n:[Int]) {	
-	for i in 0..<16 {
-		o[i] = Int64( n[2*i] + (n[2*i+1] << 8) )
-	}
-	o[15] = o[15] & 0x7fff
+func unpack25519(_ o:inout [Int64], _ n:[Int]) {    
+    for i in 0..<16 {
+        o[i] = Int64( n[2*i] + (n[2*i+1] << 8) )
+    }
+    o[15] = o[15] & 0x7fff
 }
 
 func A(_ o:inout [Int64], _ a:[Int64], _ b:[Int64]) {
-	for i in 0..<16 {
-		o[i] = a[i] + b[i]
-	}
+    for i in 0..<16 {
+        o[i] = a[i] + b[i]
+    }
 }
 
 func Z(_ o:inout [Int64], _ a:[Int64], _ b:[Int64]) {
-	for i in 0..<16 {
-		o[i] = a[i] - b[i]
-	}
+    for i in 0..<16 {
+        o[i] = a[i] - b[i]
+    }
 }
 
 // optimized by Miguel

}

func set25519(_ r:inout [Int64], _ a:[Int64]) {
	for i in 0..<16 {
		r[i] = a[i] | 0
	}
}

func car25519(_ o:inout [Int64]) {

  }
  
  for j in 0..<32 {
    x[j] -= carry * L[j]
  }
    
  for i in 0..<32 {
    x[i+1] += x[i] >> 8
    r[i] = x[i] & 255
