예제 #1
0
 public SwitchCipherDecryptTranform(int totalPairsCount, KeyedHashAlgorithm oMAC, IAONT oAONT, IRandomSwap oRandOrd)
 {
     moMAC             = oMAC;
     moAONT            = oAONT;
     moRandOrd         = oRandOrd;
     miTotalPairsCount = totalPairsCount;
 }
예제 #2
0
 public SwitchOAEP(KeyedHashAlgorithm oMAC, IAONT oAONT, IRandomSwap oRandOrd)
 {
     moMAC           = oMAC;
     moAONT          = oAONT;
     moAONT.seedSize = miTotalPairsCount / 8;   // The seed size needn't be longer than the complexity due to swapping parts
     moRandOrd       = oRandOrd;
 }