# US 2023/0412388 A1 · Electronic device for performing hash authentication on neural network, and operating method therefor

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

- Number: US 2023/0412388 A1
- Document ID: US20230412388A1
- Status: Published application
- Kind: A1
- Application number: 18/460,034
- Filed: 2023-09-01
- Published: 2023-12-21
- Earliest claimed: 2021-03-23
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Jongin LEE; Minjung KIM
- Web page: https://patentgrep.com/patent/US20230412388A1

## CPC

- H04L 9/3236: {using cryptographic hash functions}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 21/51: at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
- G06F 21/62: Protecting access to data via a platform, e.g. using keys or access control rules
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06N 3/04: Architecture, e.g. interconnection topology
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An electronic device for performing hash authentication on a neural network, and an operating method therefor are disclosed. The disclosed electronic device comprises: a processor and a memory having at least one instruction executable by the processor. If at least one instruction is executed by the processor, the processor can be configured to: generate a hash value on the basis of parameters of a neural network used for an application to be executed, determine whether the generated hash value matches the pre-stored reference hash value in the security area of the processor, and approve the loading of the neural network in response to whether the generated hash value matches the reference hash value in the general area of the processor.

## Claims

### Claim 1

An electronic device comprising:
a processor; and
a memory configured to store at least one instruction executable by the processor,
wherein, in response to the at least one instruction being executed by the processor, the processor is configured to:
generate a hash value based on parameters of a neural network used for an application to be executed;
determine whether the generated hash value matches a pre-stored reference hash value in a secure area of the processor; and
approve loading of the neural network in response to the generated hash value matching the reference hash value in a general area of the processor.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to serialize parameters extracted from the neural network and generate the hash value from the serialized parameters in the normal portion.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the parameters of the neural network comprise one or more weights and biases applied to the neural network.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the generated hash value is comprised in a hypervisor call (HVC) or a secure monitor call (SMC) and the processor is configured to transmit the generated hash value from the general area to the secure area of the processor.

### Claim 5 (depends on 1)

The electronic device of claim 1, wherein whether the generated hash value matches the reference hash value is determined at a level inaccessible to a level at which the application is executed.

### Claim 6 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to determine whether the generated hash value matches the reference hash value in one of a hypervisor mode and a secure mode of the processor.

### Claim 7 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to:
generate the reference hash value based on parameters of a reference neural network and stored in a secure area of the processor, wherein the reference neural network is stored in the memory at a binary build time point of the electronic device.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to:
update the reference hash value based on parameters of an updated reference neural network, which is stored in the memory at a binary update time point of the electronic device, and
store the updated reference hash value in a secure area of the processor.

### Claim 9 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to:
load and execute the neural network, which is approved for loading by the processor, on at least one of an accelerator and the processor of the electronic device, and
execute the application based on an execution result of the neural network.

### Claim 10 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to deny loading of the neural network in response to the generated hash value mismatching the reference hash value.

### Claim 11 (depends on 1)

The electronic device of claim 1, wherein the electronic device includes a user terminal configured to execute the application using the neural network or a server configured to receive, from the user terminal, inference target data input into the neural network.

### Claim 12

A method of operating an electronic device, the method comprising:
generating a hash value based on parameters of a neural network used for an application to be executed;
determining whether the generated hash value matches a pre-stored reference hash value in a secure area of a processor of the electronic device;
approving loading of the neural network in response to the generated hash value matching the reference hash value in a general area of the processor; and
denying the loading of the neural network in response to the generated hash value mismatching the reference hash value.

### Claim 13 (depends on 12)

The method of claim 12, wherein the generating of the hash value comprises serializing parameters extracted from the neural network and generating the hash value from the serialized parameters in the general area.

### Claim 14 (depends on 12)

The method of claim 12, wherein the parameters of the neural network comprise one or more weights and biases applied to the neural network.

### Claim 15 (depends on 12)

The method of claim 12, wherein the generated hash value is comprised in a hypervisor call (HVC) or a secure monitor call (SMC) and transmitted from the general area to the secure area.
