lib/crypto: Introduce XOR cipher management classes