use of org.bouncycastle.crypto.engines.SEEDEngine in project rxlib by RockyLOMO.
the class SeedCrypt method getCipher.
@Override
protected StreamBlockCipher getCipher(boolean isEncrypted) throws InvalidAlgorithmParameterException {
SEEDEngine engine = new SEEDEngine();
StreamBlockCipher cipher;
if (_name.equals(CIPHER_SEED_CFB)) {
cipher = new CFBBlockCipher(engine, getIVLength() * 8);
} else {
throw new InvalidAlgorithmParameterException(_name);
}
return cipher;
}
Aggregations