A device and a method for performing a cryptographic
algorithm A method performed by a device, the device comprising a first processor and a
processing module, the method comprising: obtaining, by the first processor, first data, comprising a representation of
computer program code that embodies a cryptographic
algorithm; obtaining, by the first processor, second data; receiving, by the first processor, a request for a first mechanism to be performed, the request comprising: information identifying the first mechanism; information identifying the first data as corresponding to a program; and information identifying the second data as corresponding to an input; transmitting, by the first processor, to the
processing module, a second request for the first mechanism to be performed, the second request comprising: information identifying the first mechanism; information identifying the first data as corresponding to a program; and information identifying the second data as corresponding to an input; and executing, by the
processing module, the program represented in the first data taking the second data as the input.