crypto_box_beforenm static method

int crypto_box_beforenm(
  1. Uint8List k,
  2. Uint8List y,
  3. Uint8List x
)

Implementation

static int crypto_box_beforenm(Uint8List k, Uint8List y, Uint8List x) {
  Uint8List s = Uint8List(32);
  crypto_scalarmult(s, x, y);

/*String dbgt = "";
		for (int dbg = 0; dbg < s.length; dbg ++) dbgt += " "+s[dbg];
		Log.d(TAG, "crypto_box_beforenm -> "+dbgt);

	    dbgt = "";
		for (int dbg = 0; dbg < x.length; dbg ++) dbgt += " "+x[dbg];
		Log.d(TAG, "crypto_box_beforenm, x -> "+dbgt);
	    dbgt = "";
		for (int dbg = 0; dbg < y.length; dbg ++) dbgt += " "+y[dbg];
		Log.d(TAG, "crypto_box_beforenm, y -> "+dbgt);
		*/

  return crypto_core_hsalsa20(k, _0, s, _sigma);
}