protected ECB ( byte input, byte output ) : void | ||
input | byte | |
output | byte | |
Résultat | void |
protected override void ECB (byte[] input, byte[] output)
{
if (encrypt) {
switch (Nb) {
case 4:
Encrypt128 (input, output, expandedKey);
return;
case 6:
Encrypt192 (input, output, expandedKey);
return;
case 8:
Encrypt256 (input, output, expandedKey);
return;
}
} else {
switch (Nb) {
case 4:
Decrypt128 (input, output, expandedKey);
return;
case 6:
Decrypt192 (input, output, expandedKey);
return;
case 8:
Decrypt256 (input, output, expandedKey);
return;
}
}
}