getSBox static method
Implementation
static List<int> getSBox(String sBoxName) {
var sBox = sBoxes[sBoxName.toUpperCase()];
if (sBox == null) {
throw Exception(
"Unknown S-Box - possible types: \"Default\", \"E_Test\", \"E_A\", \"E_B\", \"E_C\", \"E_D\", \"D_Test\", \"D_A\".",
);
}
var copy = List.filled(sBox.length, 0);
_arraycopy(sBox, 0, copy, 0, copy.length);
return copy;
}