Patent ID: 7328339

Claim:
A method of testing a device comprising: providing a first data string; providing a second data string in a memory structure; encrypting the first data string using an encryption algorithm, to provide an encrypted data string; and comparing a characteristic of the encrypted data string with a characteristic of the second data string, wherein the step of comparing a characteristic of the encrypted data string with a characteristic of the second data string comprises comparing the bit length of the encrypted data string with the bit length of the second data string, further comprising, if a match is found between the bit length of the encrypted data string and the bit length of the second data string in the memory structure, comparing an initialization vector associated the encrypted data string with an initialization vector applied in encrypting the first data string, further comprising, if a match is found between the initialization vector associated with the encrypted data string and the initialization vector applied in encrypting the first data string: extracting the initialization vector associated with the encrypted data string; applying the encryption algorithm to the second data string, using the extracted initialization vector, to provide an additional encrypted data string; comparing contents of the additional encrypted data string with contents of the previously generated encrypted data string.