prepareBuffAESIVBytes static method

void prepareBuffAESIVBytes(
  1. Uint8List buff,
  2. int nonce
)

Implementation

static void prepareBuffAESIVBytes(Uint8List buff, int nonce) {
  buff[0] = nonce & 0xFF;
  buff[1] = (nonce >> 8) & 0xFF;
  buff[2] = (nonce >> 16) & 0xFF;
  buff[3] = (nonce >> 24) & 0xFF;

  for (int i = 4; i <= 15; ++i) {
    buff[i] = 0;
  }
}