主权项 |
1. A method for secure processing of data in a portable data carrier, wherein the following steps are performed in the portable data carrier, which is a chip card having a processor:
receiving data to be stored in the portable data carrier from an external terminal; creating a cryptographic key including an encryption key and a decryption key, wherein the encryption key is identical to the decryption key or the encryption key is different from the decryption key; encrypting the data to be stored using the encryption key; temporarily storing the encrypted data and the cryptographic key in a temporary, non-volatile memory area of the portable data carrier; decrypting the temporarily stored encrypted data using the decryption key; and copying the decrypted data from the temporary memory area to a target memory area of the non-volatile memory;wherein:
in response to an interruption of the decrypting process and the decryption key being present in a non-volatile memory,
continuing the decrypting process of encrypted data, after the interruption has been removed, anddeleting the decryption key after the decrypting process has been entirely completed; in response to an interruption of processing of the temporarily storing the encrypted data into a non-volatile memory,
deleting the cryptographic key to secure the encrypted data; and in response to an interruption of processing by an interruption of a power supply of the portable data carrier and the decryption key being present in a volatile memory,
deleting the decryption key present in the volatile memory as a direct consequence of the interruption of the power supply, and in response to the decryption key being present in a non-volatile memory, deleting the decryption key after removal of the interruption. |