encrypt/decrypt same buffer