All-Optical EXOR for Cryptographic Application Based on Spatial Solitons

The purpose of this paper is to present an all-optical EXOR for cryptographic application based on spatial soliton beams. The device is based on the propagation and interactions properties of spatial soliton in a Kerr nonlinear material. The interaction force between parallel soliton beam is analyzed from the analytical point of view and an exact solution is presented.


Introduction
Spatial solitons are optical beams that propagate without changing their shape, thanks to the balance between nonlinear effect (self-focusing) and diffraction [1].This balance effect has demonstrated to be stable in two-dimensional waveguides.
Propagation and interaction properties of spatial solitons are extremely interesting and useful in order to allow and realize all-optical devices, thanks to their robustness to the external disturbs.A plenty of all-optical devices have been proposed, such as filter [2], multiplexer and demultiplexer, arithmetic and logical unit [3,4], high velocity router [5].
In this paper an all-optical EXOR for cryptographic application is proposed.The device is based on two peculiar properties of spatial soliton: swing effect [6,7] and interaction between parallel soliton beams.
Swing effect represents an oscillating behavior of soliton beams that propagate in a non-constant transversal refractive index [6].It has been demonstrated that soliton oscillations depends on the intensity of the soliton itself and on the shape of the transversal refractive index.
Another interesting property of spatial soliton is represented by the interaction force between two parallel propagating soliton due to the non-linear effects of the material.This force is an exponential function of the relative distance between solitons and a sinusoidal function of their relative phase [8,9].
Unfortunately, nothing can be said about the coefficients necessary to derive this force in an analytical way.
Nevertheless an empirical method has been recently proposed [9] to derive a proper equation that could quantify the interaction force necessary to design all-optical devices.
Thanks to the numerical solution of this empirical formula it has been possible to propose different all-optical devices [5,9,10] whose correct behavior has been confirmed by numerical simulations.In the present paper this empirical formula is used and a proper analytical solution has been found.
The proposed device can be used in cryptographic application since it represents a stream cipher that can be exploited either in ciphering or deciphering phase.The ciphered message is obtained by sending the message to be ciphered as a string of bits to the input to the device, together with the key string.The same key string can be used, on the same device in the receiving phase, together with the ciphered string, to obtain the original message (plaintext).Soliton beams represent the information medium and the processing activities (EXOR) is obtained thanks to the properties of soliton propagation and interaction.
The great advantage of the proposed device is repressented by the operative velocity that is limited, from the theoretical point of view, only by the response time of the used material.

Structure of the Device
The device is composed by two inputs and one output, since it has to execute a logical EXOR operation.The complete scheme is shown in Figure 1.
It is composed by two input waveguides, a main waveguide, two drain waveguides and two parabolic waveguides.The waveguides are characterized by different geometries and different transversal refractive index profiles: main waveguide is chosen to have a constant transversal refractive index profile whereas input waveguides and parabolic waveguides are characterized by a triangular transversal refractive index profile.
The two inputs are labeled with letters A and B. If the device must be integrated, two proper laser diodes can be used to generate input pulses whose intensity is capable of generating spatial solitons in the material.
Input A is used to send the bit related to the message to be ciphered whereas input B is used to send the bit related to the cryptographic key.For simplicity, the two input pulses are supposed to be characterized by the same phase, without any loss of generality.
In the following it is illustrated how the proposed device performs the EXOR logical operation.
Since we deal with a passive device, if the two inputs are equal to a logical zero (no input pulses are present), the output is equal to zero.If input A is equal to a logical 1 (a pulse is present) and input B is equal to a logical 0 (no pulse is present), the pulse A generates a soliton that propagates in the input waveguide 1 following an oscillating path due to inclination and to the triangular transversal refractive index profile of waveguide 1 [2].It enters the main waveguide with a certain transversal velocity (inclination) where it follows a linear trajectory, due to the absence of transversal refractive index profile, reaching the input of parabolic waveguide 2. Then it propagates inside this last waveguide, reaching the output of the device.The properties of input waveguides and parabolic waveguides are illustrated in the following.At the moment, it is sufficient to know that, if the geometry and the transversal refractive index profile are correctly designed, the soliton beam is capable of reaching the output, performing an EXOR operation.
If input A is equal to a logical 0 (no pulse is present) and input B is equal to a logical 1 (a pulse is present), pulse B generates a soliton that propagates in the input waveguide 2 following an oscillating path due to inclination and to the triangular transversal refractive index profile of waveguide 2. The situation is similar to the previ- ous one with the difference that the dissimilar inclination of waveguide 2, with respect to waveguide 1, induces a different phase variation on soliton B, with respect to soliton A, when it enters the main waveguide, This phase variations is properly controlled in the design phase, thanks to the different inclination of the input waveguides, to allow a controlled interaction when two soliton beams are present, at the same time, in the main waveguide.This controlled interaction is illustrated in the following and allows to reaching the desired goal.After propagation in input waveguide 2, the soliton enters the main waveguide with a certain transversal velocity (inclination) where it follows a linear trajectory, due to the absence of transversal refractive index profile, reaching the input of parabolic waveguide 1 where it propagates reaching, at the end of propagation, the output of the device.
The last situation verifies when both inputs are equal to a logical 1.In this case solitons A and B propagates inside the related input waveguides, reaching the main waveguide with a converging trajectory.When they start to approach, they can experience an interaction force, and therefore acceleration, that can be attractive or repulsive.It is well known [8,9] that they attract if their relative phase is variable between 0 and π/2 and they repulse if their relative phase is variable between 3π/2 and 2π.If the geometry of input waveguides is designed on purpose, the two solitons experience a proper repulsive behavior that pushes them towards the inputs of lateral drain waveguides, where they are expelled by the device, without reaching the output.In this case a logical 0 in present at the output.
In this way it has been shown, from the qualitative point of view, the EXOR performance of the proposed device.
It has been said that soliton A could reach the output with a different relative phase with respect to soliton B. Since a cryptographic device is considered, this different phase between the two solitons could be detected by an eavesdropper in order to acquire significant information about the ciphering device, breaking its security.For this reason properly designed parabolic waveguides are used.These waveguides are characterized by different lengths so that solitons that propagate inside them are characterized by the same phase when they reach their end, being undistinguishable when they approach the output.
It is now necessary to describe the device from the quantitative point of view.

Study of the Interaction Force between Solitons
To correctly design the device, it is necessary to know exactly what happens when two parallel and close soliton beam propagate, influencing each other as in the main waveguide of the device.It has already been said that they can experience a transversal attractive or repulsive force as a function of their relative phase.Until now it was not possible to have an analytical expression of this force.It is only possible to know that it is a cosinusoidal function of the relative phase and an exponential function of the relative distance [8,9].
In the present work an empirical formula [9] derived from Gordon theory and from numerical simulations is used to derive an analytical expression of the interaction force between parallel solitons.The derived formula allows to calculate the transversal acceleration as a function of the relative phase and of the relative distance between two parallel solitons.
Let's consider two soliton beams that propagate along Z direction.It is well known [11] that the expression of a fundamental soliton in a Kerr material is given by: where n 0 is the linear refractive index, n 2 the nonlinear refractive index, β the wavenumber of the guided mode, X the transversal coordinate, Z the longitudinal coordinate and a 0 a parameter that is a function of the transversal dimension of the beam.
and substitute in Equation (1) we obtain the normalized formula of the fundamental soliton, whose modulus is equal to: In Figure 2 the schematization of the considered situation of interaction between parallel solitons is shown.
Using this expression, the transversal acceleration between two parallel solitons, whose relative phase is equal to ϕ, is given by [9]: that is valid under the condition x ≥ 2x HHHW .The parameter x HHHW (half height half width) represents the distance from the center of the beam where the amplitude reduces to one half.It is possible to demonstrate that [9]: both HHHW Since a dynamic analysis is used, the second derivative of x with respect to z is considered as a transversal acceleration whereas the first derivative of x with respect to z is considered as a transversal velocity.time variable.Equation ( 3) has already been used to design all-optical device [9,10] even if from the numerical point of view.
In the present work, a proper analytical solution of Equation ( 3) is derived and the obtained solution is used to design part of the device whose correct behavior is demonstrated by the numerical simulations.
If we set 3) can be written as: Equation ( 5) represents a proper form of second order differential equation where the variable is represented by x.
This equation can be transformed in a first order differential equation since it is of the form . We can therefore write: where F(x) is a primitive function of f(x) and c 1 a proper constant that depends of initial conditions.In our situation  .Substituting in Equation ( 6) and separating the variables we have: that is an integrable expression whose solution is: the integration constants c 1 and c 2 depend on the initial conditions, represented by the relative velocity and relative distance of the two solitons.
In particular c 1 and c 2 represents the solution of the following system: It is evident that c 1 must be real positive.
The argument of logarithm is positive since we are interested in the situation where cos(ϕ) < 0 .
Let's analyze now Equation ( 8) to verify if it correctly represents the considered situation.Since we are interested at repulsive interaction π/2 < ϕ < 3π/2, two different situations can verify: 1) If the initial transversal velocity is equal to zero and if the initial distance is quite short, the two solitons start to detach under the effect of the repulsive force.The more they detach and the more the transversal acceleration decreases, as demonstrated by the exponential term of Equation (3), until reaching a limit value equal to zero.If we set in Equation ( 9) we obtain c 2 = 0 and Equation ( 9) can be solved giving: that is a real positive.
A graphical example is shown in Figure 3 where coherent values for C, k, x 0 e ϕ, without taking care of their physical meaning, have been used.The behavior of the obtained curve is coherent with what one could expect.
2) If the initial velocity is negative (that is the two solitons are characterized by a convergent trajectory, as in the situation considered in our device), the relative distance decreases until the exponential term of Equation ( 8) becomes significant.In this situation the repulsive force  (8) decreases the approaching velocity until reducing it to zero and inverting it until reaching a value that is opposite with respect to the initial value.
In this situation, it is necessary to impose that both velocity and initial position are different from zero: in this case the system represented by Equations ( 9) and ( 10) is not solvable in an analytical way.It is possible to demonstrate that the condition implies c 2 < 0. This is evident from Equation ( 9), since both C and c 1 must be real positive.

  0 0 x 
A graphical example is shown in Figure 4 where coherent values for C, k, x 0 e ϕ without taking care of their physical meaning have been used.The behavior of obtained curve is coherent with what one could expect.
The obtained analytical solution has been compared with the numerical result, confirming the correctness of the found theoretical solution found.

Choice of the Material and Normalization
After illustrating the theory necessary to understand the interaction of solitons in the main waveguide, it is possible to start to design and dimension the device.
We first design the device in normalized units and successively in real units.
In the design all the physical restrictions are considered.In this way the real device is immediately derivable from the normalized device.
The used normalization has already been shown previously.It is very useful since it allows to transform path difference of solitons directly into phase difference between the two solitons.
Given a certain material and a certain source characterized by a given wavelength, the minimum value of intensity necessary to generate a fundamental soliton is [11]: where d 0 is the spot size of the beam whereas all the other parameters have already been illustrated previously.
It is also well known that the minimum value of intensity   II s I necessary to generate a second order soliton is equal to twice   I s I [11].It is also possible to express the intensity of the soliton as a function of the normalized amplitude C [2]: We choose, as material, a Schott Glass B270, whose optical parameters, at a wavelength λ 0 = 620 nm, are n 0 = 1.53 and expressed in normalized amplitude that are C (I) = 0.017 e C (II) = 0.034: the normalized amplitude of the soliton beams used in the device must be variable between these two values to be sure to generate a fundamental soliton.
We chose, for our design, C = 0.03.
It is now possible, from Equation ( 4), to calculate the half height half maximum width, that is equal to: It is now necessary to define the maximum variation Δn 0 of the linear refractive index that characterizes the transversal index profile of input waveguides and parabolic waveguide.We choose, for our purpose, Δn 0 = 10 −2 .
For practical realization reasons, it is necessary both the input waveguides and parabolic waveguides to be characterized by the same value of Δn 0.

Design of Input Waveguides
The two inputs waveguides are directly interfaced with input laser sources.They represent two oblique waveguides, whose width is equal to 2b, characterized by different longitudinal inclinations and by a transversal triangular refractive index profile, as shown in Figure 5.
The input waveguides must be designed such that the solitons inside them exit: 1) with a relative phase equal to π; 2) equal and opposite transversal velocities directed towards the center of the main waveguide where they interact in a controlled way, repelling each other.
The propagation of a soliton beam in such waveguide has already been studied [2].It is possible to demonstrate that swing effect takes place inside the waveguide, so that the soliton propagates following an oscillating path, if a proper lock-in condition is respected: where v G represents the tangent of the inclination angle α between the longitudinal axes and waveguide axes, as shown in Figure 5.
Since C has already been defined, it imposes a restriction on v G .It is also necessary to remember that all the considered theory is valid under paraxial approximation that imposes a certain limit (8˚ -10˚) to the longitudinal propagation inclination of solitons.
Let x G be the position of the center of the waveguide.The local inclination of the waveguide with respect to z axes can be regarded as the relative transversal velocity between the waveguide itself and the soliton that propagates inside it: It has been demonstrated that a soliton that propagates in a waveguide characterized by a triangular refractive index profile experience a transversal acceleration equal to [5,12]: that remains constant until the soliton beam moves inside one of the lateral zone of the waveguide.At the beginning of propagation the soliton beam is positioned in the centre of the waveguide.Since the waveguide seems to move transversally with respect to the soliton, the soliton itself enters the constant acceleration zone of the waveguide where its velocity grows linearly with z.If the lock-in condition is respected, the soliton is capable of reaching the center of the waveguide, crossing it and reaching the other zone of the waveguide where the negative acceleration decreases its transversal velocity until stopping it, reversing again its trajectory.It is clear that, if the lock-in condition is respected, the soliton propagates inside the waveguide following an oscillating path.
Let's design now the waveguides.
If C = 0.003 then x HHHM = 43.8986.Equation ( 17) is valid only if HHHM .To respect this last condition we choose b = 200.Since have chosen Δn 0 = 10 −2 , from Equation ( 15) we can calculate the lock-in condition: If v G1 e v G2 are, respectively, the inclination of the first and of the second waveguide with respect to z direction, we choose v G1 = 0.0025 e v G2 = 0.005.This choice satisfies the paraxial approximation.As it is possible to see, we have chosen an inclination of the second waveguide equal to twice the inclination of the first waveguide: this greatly simplifies the design of the device, as it is shown in the following.
We want now to describe the motion of the soliton inside waveguide 1, where v G1 = 0.0025.
First of all, we want to calculate the longitudinal distance Z 01 that the soliton must propagate before reaching the center of the waveguide.To calculate Z 01 we have to impose that x B (z) = x G (z), that is: To reach a longitudinal distance Z 01 the soliton has propagated along a parabolic path whose it is necessary to calculate the distance.Considering the first derivative of x B (z) with respect to z, we have: and the elementary distance along the parabolic path with respect to x is equal to: It is clear that it is necessary to design together the input waveguides such that the path difference (and therefore the phase difference) of the two solitons that propagate inside them can reach the desired value which induces a repulsive action when the two solitons reach the center of the main waveguide.
In a similar way, we have for input waveguide 2: Let Z 0 = Z 02 = 2Z 01 .After this longitudinal distance the soliton inside input waveguide 1 has made a complete oscillation, reaching again the center of the waveguide while the soliton inside waveguide 2 has made half oscillation.
In Figure 6 the trajectory followed by a soliton in an oblique waveguide characterized by a triangular transversal refractive index profile is shown.
Due to the difference path followed, a relative phase difference Δ 0 has generated.This phase difference can be calculated by means of the difference of path, since the wavenumber β 0 has been assumed to be equal to one in the normalization operation.
We therefore have: Since a repulsive interaction in the center of the main waveguide is desired, the relative phase difference must be variable between π/2 e 3/2π.It is therefore necessary a longitudinal length of the two waveguides almost equal to twice Z 0 .Further, it is necessary the two solitons enter the main waveguide with opposite transversal velocities directed towards the center of the main waveguide.The choice made about the inclination of the two input waveguides (v G2 = 2v G1 ) allows to reach this goal if Z TOT = 5Z 01 = 277777.7 .
The trajectories followed by the solitons inside input waveguides are shown in Figure 7.
The obtained phase difference is equal to Δ = 2Δ 0 = 2.777 rad.
When the two solitons reach z = Z TOT they are characterized by the same opposite velocity equal, in modulus, to v G2 = 2v G1 = 0.005.This behavior is due to the choice of proper inclination (one twice the other) of the two input waveguides.
At the entrance of the main waveguide, soliton 1 is positioned in the center of waveguide whereas soliton 2 is shifted of a distance d with respect to the axes of the waveguide.
Due to the periodicity of motion, it is possible to calculate d as the transversal distance between the center of the waveguide and the beam at z = Z 01 since it is the same distance at z = 5Z 01 :

Design of the Main Waveguide
The design of the main waveguide is aimed at finding its width X G and the distances Z D and Z P where to position, respectively, the drain waveguides and the parabolic waveguides.
The width X G must be obviously greater than the width of the two input waveguides.For this reason, it has been chosen X G = 1138.889that guarantees a distance between the outputs of the two input waveguides (whose width is equal to 400 normalized units) equal to 200 normalized units plus a distance 138.889 d  necessary to make symmetric the path of the two solitons.This choice allows to position the left and the right drain and parabolic waveguides at the same longitudinal distance Z D e Z P respectively.It is now possible to calculate Z P .Both the solitons enter the main waveguide with an inclination with respect to the longitudinal distance equal to 0.005 and they must propagate along a distance equal to 938.889.Therefore we have: 938.889 187777.780.005 To calculate Z D it is necessary to study, from the analytical point of view, Equation (3) related to the interacttion force between two different solitons.We have de-monstrated that this equation is solvable and we found the transversal distance x as a function of the longitudinal coordinate z.Since we have already designed the two input waveguides, we know the initial distance x 0 and the relative velocity v 0 of the two solitons entering the main waveguide.
This allows to calculating the two constant c 1 e c 2 of Equation ( 8), solving the system composed by Equations ( 9) and (10).
Substituting the values x 0 = 738.889and v 0 = −0.01we have: The behavior of x G (z) is shown in Figure 8.
The obtained behavior is coherent with what one could expect.It is possible to see that the relative distance between the two solitons decreases linearly with z until the repulsive force becomes more intense due to the reduced relative distance.At this point they invert their motion and they start to detach with a velocity equal and opposite with respect to the initial velocity.Using Equation (3) we can solve the following (30) with respect to Z D : Thus we have the propagation distance Z D necessary to reach the side of mainwaveguide where it is possible to position the parabolic waveguides: For brevity, further details about drain waveguides are not given since they design is similar to the design of input waveguides.Their purpose is to take the single solitons away from the device, to avoid them to reach the output of the device, realizing the desired EXOR logical operation.

Design of Parabolic Waveguides
It is now necessary to design the parabolic waveguides.
It has been shown that the input waveguides generate a relative phase difference between solitons equal to Δ = 2.777 rad.This phase difference is necessary to generate a repulsive reciprocal action when both solitons propagate inside the main waveguide, pushing them towards the drain waveguide and generating a logical 0 when both inputs are equal to 1.
This phase difference is very critical when only single solitons propagate inside the main waveguide since it represents information about the input that generates the output which could be used by an eavesdropper to attack the device and discover the original enciphered message.
It is therefore necessary to use two different waveguides that compensate the relative phase difference induced by the two input waveguides to let the single solitons coming from the inputs to reach the output of the device with the same phase, becoming indistinguishable from the phase point of view.
To reach this scope, two parabolic waveguides are used that must be correctly designed.
A parabolic waveguide has been chosen since it represents the simpler curve that takes a soliton from an inclination that respects the paraxial approximation to an inclination with respect to the longitudinal axes equal to zero and vice versa.Further, parabolic trajectory is the one followed by a soliton that propagates inside a triangular refractive index profile waveguide.
The longitudinal parabolic waveguide has already been studied [13].In the following we report only the significant parameters necessary to design the parabolic waveguide of the considered device.
In a longitudinal parabolic waveguide the position x G (z) of the central part of the waveguide as a function of z coordinates is: where a is a real constant responsible for the curvature of the waveguide and d a real constant responsible for the position of the curve.In a similar way to the oblique waveguide, a lock-in condition exists.This lock-in value is [13]: where b represents the half width of the triangular transversal refractive index profile.It is possible to demonstrate that the length of the curve expressed by Equation (32) (that is half of the total length of the whole waveguide) is equal to: The paraxial condition must be respected also for this curve.Since the curvature reaches its maximum value at the begin, it is sufficient to check the respect of the par-axial condition only in this last point: It is also well known that in this kind of waveguide the half of its longitudinal length can be calculated from its parameters a and d: It is now possible to design both the parabolic waveguides.
Let L 1 and L 2 be the length of parabolic waveguides 1 and 2 respectively.If Δ is the relative phase difference (and therefore the path difference since we are working with normalized units), if a compensation of the phase difference between the two solitons is desired (relative phase difference equal to zero), it is necessary that: In our design process we decide to design the parabolic waveguide 1 in an independent way with respect to the parabolic waveguide 2, choosing realistic values of the parameters and respecting Equation (33) and Equation (35).After this choice it is possible to determine the length L 1 .Once determined L 1 we impose the same value Ẑ for waveguide 2 and we express the parameters a 2 and d 2 as a function of d 1 by means of a proper parameter k: At this point it is possible to calculate L 2 as a function of k and to solve the following equation: with respect to k.Once found the value k that satisfies Equation (40), it is possible to calculate the parameters a 2 and d 2 from Equations ( 38) and (39).Finally it is necessary to verify that lock-in condition and paraxial approximation are respected in the calculated waveguide 2.
The used process is heuristic and different attempts can be necessary before finding the optimal solution, since the respect of the paraxial condition can be verified only at the end of the calculation.It is anyway evident that if Ẑ increases (and therefore the parameters a of the waveguides increase), Equation (35) can be satisfied in an easier way.
Let's apply the proposed method to the design of the longitudinal parabolic waveguides.
A proper value is that allows to write: The width of the waveguides is equal to 2b * , being b * equal to one half the width of the triangular transversal refractive index profile.In this case it has been chosen b * = 150, that is a different value with respect to the relative value of input waveguides and drain waveguides.Since it must be 2b * < d 1 , we choose d 1 = 500, obtaining, from Equation (36), a 1 = 15652.47584.
The length of the first parabolic waveguide can be calculated from Equation (34) obtaining L 1 = 700000.952.Given this value, using Equations ( 37)-( 39) and the condition Δ = 2.77, it is possible to calculate the parameters of the second parabolic waveguide that are: Once calculated all the parameters, it is necessary to verify that the two parabolic waveguides respect the condition expressed by Equation (33) and Equation (35).Substituting the numerical values obtained for the two waveguides, with C = 0.03, Δn 0 = 0.01 and b * = 150, we have: which demonstrate that the lock-in condition is satisfied.We also have: which demonstrates that the paraxial approximation is satisfied.
To complete the design of the device it is necessary to calculate the distance from the end of the parabolic waveguides where it is necessary to position the output of the device itself.The two solitons, due to the feature of the parabolic waveguides, exit the waveguides themselves with the same entrance inclination equal to v = 0.005.Since they have to cross a transversal distance equal to X G /2 to reach the center of the main waveguide, the related longitudinal distance where to position the output of the device is equal to:

Numerical Simulations
from the developed theory.It has therefore been shown that all the numerical simulations confirm the developed theory.The slight variation obtained with respect to the theory is due to other effects, such as the interface refractive index variation between waveguides, and that have not been considered in this paper for brevity.
To verify the correctness of the designed device, the different operative conditions have been simulated using a FD-BPM algorithm and the results are compared with what one could expect from the developed theory.
In Figure 9 the numerical simulation when A = 1 and B = 0 is shown.It is possible to see that the soliton A, at the beginning remains confined into the input waveguide 1, where it propagates oscillating according to the theory.Once reached the exit of the input waveguide, the soliton enters the main waveguide.It propagates through it reaching the entrance of the parabolic waveguide where it propagates, changing its phase, until reaching again the main waveguide where it propagates reaching the output.The soliton experiences some slight refractive index profile variations when it leaves one waveguide and enter the next one, as it is possible to see in the numerical simulation.This refractive index variation has not been considered in the theory, for brevity, but they do not influence in a significant way the functionality of the device that behaves according to the theory.
The last simulation (A = 1, B = 1) is shown in Figure 11.
Numerical simulations were performed in normalized units.

Practical Considerations
To design the device from a physical point of view it is sufficient remember the normalization: βX = x, βZ = z.Inverting them properly and applying them to the values obtained in the normalized design phase, it is possible to have a real device.
Using the physical parameters related to the considered material (Schott Glass B270), it is possible, by means of Equation ( 13), to calculate the intensity of the laser beam necessary to induce a soliton in the device: In We want now to do some considerations about the op-   erative velocity of the device.The main parameter that characterizes the computing time of the device is represented by the response time of third order nonlinearities of the used material.The origin of these kinds of nonlinearities, at the atomic level, is not quite clear [14].In borosilicate glass, such as the considered Schott B270, the response time of Kerr effect is lesser than 10 ps [15].
This extremely low value shows that the temporal performances of the considered device are mainly limited by the repetition rate of the laser source.Due to the structure of the device, it is possible to operate on train of solitons, provided that their temporal distance is greater than the nonlinear response time of the material.Further consideration about the temporal behavior of the device are out of the scope of the paper.

Conclusions
An all-optical EXOR for cryptographic application has been studied.Its working principle is based on the propagation and interaction properties of spatial soliton beams.
The proposed device is composed by different kind of waveguides characterized by particular transversal refractive index profiles.The property of these waveguides was already known and they have been applied to our specific situation.
The novelty is represented by the study of interaction force between parallel propagating solitons where an analytical solution was found.This solution was applied to the interaction phase between two solitons in the main waveguide, allowing to correctly positioning the drain waveguides necessary to avoid the solitons to reaching the output of the device when both input are logical 1.
The proposed device can be used both in the ciphering and in dechipering phase.The computing time is limited, from the theoretical point of view, only by the response time of the third order nonlinearities of the material that, in our case is lesser that 10 ps.
The problem of the different relative phase of the two solitons that reach the output has been analyzed and solved, ensuring the two different solitons to reach the output with the same relative phase, becoming undistinguishable to an eventual eavesdropper and guaranteeing a high level of security of the device.

Figure 1 .
Figure 1.Scheme of the device.

x
and C are real positive.

Figure 2 .
Figure 2. Schematization of the considered situation of interaction between two parallel solitons.
Further, we choose a spot size of laser beam equal to 10 μm.Using Equation (12) it is possible to calculate the values   I s I e   II s I .Using Equation (13) it is possible to calculate the related values of   I s I e   II s I

Figure 5 .
Figure 5. Upper view of inclined input waveguides (a) and transversal view of the same waveguide together with a soliton beam, where position and transversal velocity of both waveguide and soliton are shown (b).

Figure 6 .
Figure 6.Trajectory followed by a soliton in an oblique waveguide characterized by a triangular transversal refractive index profile.

Figure 8 .
Figure 8. Behavior of relative distance between the two solitons in the main waveguide as a function of z.

Figure 10
the numerical simulation when A = 0 and B = 1 is shown.Also in this situation the numerical simulation confirms the correctness of the design theory.In this case both solitons are present.It is possible to see that they interact in a repulsive way when they meet at the center of the main waveguide, pushing each other towards the drain waveguides.In this situation the output of the device is equal to a logical 0 since the two solitons are not capable of reaching the output itself.Also this numerical simulation confirms what one could expect This value ensures the generation of a fundamental soliton that follows the trajectories imposed by the design phase since all the effects depended on the normalized amplitude C and therefore on its real intensity expressed by Equation (48).

Figure 9 .
Figure 9. Numerical simulation of the device when A = 1 and B = 0.

Figure 10 .
Figure 10.Numerical simulation of the device when A = 0 and B = 1.

Figure 11 .
Figure 11.Numerical simulation of the device when A = 1 and B = 1.