ChaCha20Key.fromBigInt constructor
ChaCha20Key.fromBigInt(
- BigInt bigInt
takes 256 bit from the BigInt
Implementation
ChaCha20Key.fromBigInt(BigInt bigInt) {
data = Uint32List.fromList(bigInt
.toRadixString(32)
.runes
.map((rune) => int.parse(String.fromCharCode(rune), radix: 32))
.toList()
.sublist(0, 8));
}