# US 2014/0208125 A1 · Encryption and decryption device for portable storage device and encryption and decryption method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0208125 A1
- Document ID: US20140208125A1
- Status: Published application
- Kind: A1
- Application number: 14/154,194
- Filed: 2014-01-14
- Published: 2014-07-24
- Earliest claimed: 2013-01-22
- Assignees: ASMedia Technology Inc.
- Applicants: ASMedia Technology Inc.
- Inventors: Kuo-Chi CHANG; Hsin-Hsiung WANG
- Web page: https://patentgrep.com/patent/US20140208125A1

## CPC

- G06F 21/85: interconnection devices, e.g. bus-connected or in-line devices
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- G06F 2221/2107: File encryption
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An encryption and decryption device for a portable storage device and an encryption and decryption method thereof are provided. The encryption and decryption device includes a storage element, a control element and an encryption and decryption circuit. The control element receives a password, saves the password to the storage element and provides an encryption and decryption command. The encryption and decryption circuit is electrically connected to a portable storage device, receives the encryption and decryption command, reads the password stored in the storage element according to the encryption and decryption command, and encrypts or decrypts data stored in the portable storage device by utilizing the password according to whether the data have been encrypted. After the data are encrypted or decrypted, the encryption and decryption circuit clears the password in the storage element.

## Claims

### Claim 1

An encryption and decryption device for a portable storage device, comprising:
a storage element,
a control element receiving a password, storing the password in the storage element, and providing an encryption and decryption command; and
an encryption and decryption circuit electrically connected to the portable storage device, receiving the encryption and decryption command, reading the password stored in the storage element according to the encryption and decryption command, and encrypting or decrypting data stored in the portable storage device by utilizing the password according to whether the data are encrypted, wherein after the data are encrypted or decrypted, the encryption and decryption circuit clears the password in the storage element.

### Claim 2 (depends on 1)

The encryption and decryption device for the portable storage device according to claim 1, wherein when the data are encrypted, the encryption and decryption circuit decrypts a verification code of the portable storage device, and checks whether the password corresponds to the decrypted verification code to determine whether to decrypt the data.

### Claim 3 (depends on 2)

The encryption and decryption device for the portable storage device according to claim 2, wherein when the data are not encrypted, the encryption and decryption device generates the verification code corresponding to the password and stores the verification code to the portable storage device.

### Claim 4 (depends on 1)

The encryption and decryption device for the portable storage device according to claim 1, wherein when the data are encrypted, the encryption and decryption circuit generates an encryption tag and stores the encryption tag in the portable storage device, and the encryption and decryption circuit determines whether the data are encrypted according to the encryption tag.

### Claim 5 (depends on 1)

The encryption and decryption device for the portable storage device according to claim 1, wherein the encryption and decryption circuit stores an encryption and decryption state to the storage element, and the control element gets the encryption and decryption state by reading the storage element.

### Claim 6 (depends on 5)

The encryption and decryption device for the portable storage device according to claim 5, wherein before the password is stored in the storage element, the control element further provides a writing protection cancel signal to the storage element, and after the encryption and decryption circuit stores the encryption and decryption state to the storage element, the encryption and decryption circuit provides an encryption or decryption completion signal to the control element, and the control element provides a writing protection enabling signal to the storage element according to the encryption or decryption completion signal.

### Claim 7 (depends on 1)

The encryption and decryption device for the portable storage device according to claim 1, wherein the encryption and decryption circuit encrypts or decrypts the data according to an encryption and decryption algorithm.

### Claim 8 (depends on 1)

The encryption and decryption device for the portable storage device according to claim 1, wherein the control element further includes:
an interface circuit selectively connected to the storage element; and
a processor receiving the password, storing the password to the storage element via the interface circuit, and providing the encryption and decryption command via the interface circuit.

### Claim 9 (depends on 8)

The encryption and decryption device for the portable storage device according to claim 8, wherein the encryption and decryption device further includes a bus switch to selectively connect the interface circuit to the storage element, and before the password is stored in the storage element, the control element provides a bus connecting signal to the bus switch via the interface circuit to electrically connect the interface circuit to the storage element.

### Claim 10

An encryption and decryption method of the portable storage device applied to an encryption and decryption device, wherein the encryption and decryption device includes a storage element, a control element and an encryption and decryption circuit, the encryption and decryption method comprising:
receiving a password;
storing the password to the storage element;
providing an encryption and decryption command to the encryption and decryption circuit:
reading the password in the storage element by the encryption and decryption circuit according to the encryption and decryption command;
encrypting or decrypting data stored in the portable storage device by the encryption and decryption circuit according to whether the data are encrypted or decrypted; and
clearing the password in the storage element after the encryption and decryption circuit encrypts or decrypts the data.

### Claim 11 (depends on 10)

The encryption and decryption method of the portable storage device according to claim 10, wherein the step of encrypting or decrypting the data stored in the portable storage device according to whether the data are encrypted or decrypted further includes:
decrypting a verification code stored in the portable storage device by the encryption and decryption circuit if the data are encrypted;
checking whether the password corresponds to the decrypted verification code by the encryption and decryption circuit; and
decrypting the data by the encryption and decryption circuit when the password corresponds to the decrypted verification code.

### Claim 12 (depends on 10)

The encryption and decryption method of the portable storage device according to claim 10, wherein the step of encrypting or decrypting the data stored in the portable storage device according to whether the data are encrypted or decrypted further includes:
encrypting the data by the encryption and decryption circuit, generating a verification code corresponding to the password, and storing the verification code to the portable storage device if the data are not encrypted.

### Claim 13 (depends on 10)

The encryption and decryption method of the portable storage device according to claim 10, wherein the encryption and decryption method further includes:
generating an encryption tag and storing the encryption tag to the portable storage device by the encryption and decryption circuit when the data are encrypted; and
determining whether the data are encrypted according to the encryption tag.

### Claim 14 (depends on 10)

The encryption and decryption method of the portable storage device according to claim 10, wherein the encryption and decryption method further includes:
storing an encryption and decryption state in the storage element by the encryption and decryption circuit; and
reading the storage element to get the encryption and decryption state.

### Claim 15 (depends on 10)

The encryption and decryption method of the portable storage device according to claim 10, wherein the encryption and decryption method further includes:
providing a writing protection cancel signal to the storage element before the password is stored in the storage element;
providing an encryption or decryption completion signal by the encryption and decryption circuit after the encryption and decryption state is stored in the storage element; and
providing a writing protection enabling signal to the storage element according to the encryption or decryption completion signal.

### Claim 16 (depends on 10)

The encryption and decryption method of the portable storage device according to claim 10, wherein the step of encrypting or decrypting the data stored in the portable storage device according to whether the data are encrypted or decrypted further includes:
encrypting or decrypting the data by the encryption and decryption circuit according to an encryption and decryption algorithm.
