METHOD FOR DETERMINING AUTHENTICITY OF RECORDING MEDIUM, AND RECORDING MEDIUM

The offline authentication system using SD cards with secure QR code verification addresses the vulnerability of offline devices by ensuring only legitimate media can be accessed, enhancing security against cyber threats.

JP7580061B2Active Publication Date: 2024-11-11PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023510253
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-03-31
Filing Date
2021-12-22
Publication Date
2024-11-11
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Existing authentication methods for devices operating offline, such as industrial equipment, are vulnerable to cyber threats as they rely on online communication networks, leaving them susceptible to unauthorized access and data theft.

Method used

An offline authentication system using removable recording media like SD cards with secure areas containing identification information and algorithms, enabling local authentication through QR codes to verify the authenticity of the media, ensuring secure data access and integrity.

Benefits of technology

The system effectively confirms the authenticity of recording media offline, preventing unauthorized access and data theft by ensuring only legitimate media can be accessed, thus enhancing security in devices disconnected from communication networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007580061000001
    Figure 0007580061000001
  • Figure 0007580061000002
    Figure 0007580061000002
  • Figure 0007580061000003
    Figure 0007580061000003
Patent Text Reader

Abstract

Provided is a method for determining the authenticity of a second recording medium attached to a second device by using a first device to which a first recording medium is attached. In this invention, a non-user region of the first recording medium records first identification information and first algorithm data. A controller of the first recording medium causes a first display device to display a first image pattern, and causes a first imaging device to image a second image pattern displayed on a second display device of the second device after display of the first image pattern. The controller decodes first code data from the second image pattern, and uses the first algorithm data to perform calculation using the first identification information and a first variable value. The controller determines that the second recording medium is authentic if the decoded first code data and the calculation result match each other.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a method for determining the authenticity of a recording medium and the recording medium. [Background technology]

[0002] With the spread of communication infrastructure for wired and wireless communication, it is becoming common to connect many devices to a communication network. By connecting to a communication network, each device can easily obtain the latest data and easily transmit the data it holds to a server on the communication network. Such devices are usually provided with cybersecurity. Cybersecurity means that measures necessary for the safe management of information and measures necessary for ensuring the safety and reliability of information systems and information and communication networks are taken and the state of these measures is maintained and managed. For example, Patent Document 1 discloses a technology for improving security regarding authentication for accessing devices using an authentication server. However, there is still a risk that a malicious third party may illegally access a device via a communication network and steal information. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-201716 A Summary of the Invention [Problem to be solved by the invention]

[0004] Considering the threat of cybersecurity, it is quite conceivable that important equipment or infrastructure such as industrial equipment may be used offline without being connected to a communication network. In such cases, online authentication technology that authenticates that a user is a legitimate user on the premise of communication cannot be used.

[0005] The present disclosure aims to provide an offline authentication technique for verifying the authenticity of an object even in a situation where the object is not connected to a communication network. [Means for solving the problem]

[0006] The method disclosed herein is a method for determining the authenticity of a second recording medium mounted on a second device using a first device mounted with a first recording medium. The first device has a first imaging device and a first display device, and the second device has a second imaging device and a second display device. Each of the first recording medium and the second recording medium has a flash memory having a user area in which a user can rewrite data and a non-user area in which a user cannot rewrite data, and a controller for controlling writing and / or reading of data to the flash memory. The non-user area of ​​the first recording medium has first identification information and first algorithm data defining a calculation method pre-recorded therein. The controller of the first recording medium causes the first display device to display a first image pattern in which a predetermined first variable value is coded in a one-dimensional or two-dimensional manner. Then, after displaying the first image pattern, the controller causes the first imaging device to capture the one-dimensional or two-dimensional second image pattern displayed on the second display device of the second device. The controller further decodes the first code data from the captured second image pattern, performs a calculation using the first identification information and the first variable value by utilizing the first algorithm data, and outputs first result data which is the result of the calculation. If the decoded first code data and the output first result data match, the controller determines that the second recording medium is genuine.

[0007] The recording medium of the present disclosure is a first recording medium, and is a recording medium including a controller that executes the above-mentioned determining method. Effect of the Invention

[0008] According to the present disclosure, it is possible to provide an offline authentication technique for verifying the authenticity of an object even in a situation where the object is not connected to a communication network. [Brief description of the drawings]

[0009] [Figure 1] Block diagram showing the hardware configuration of the offline authentication system [Diagram 2] Hardware configuration diagram of authentication terminal and management PC [Diagram 3] Control device hardware configuration diagram [Figure 4] Detailed configuration diagram of the I / F device and SD memory card [Diagram 5] SD memory card recording area configuration diagram [Figure 6] A diagram showing the procedure for updating a machine tool's control program using an SD memory card [Figure 7] Flowchart showing the procedure of authentication processing [Figure 8] Flowchart showing the procedure of two-way authentication processing [Figure 9] Flowchart showing the procedure of a process for setting a simplified authentication mode in a machine tool control system [Figure 10] A flowchart showing the procedure for generating simplified authentication data when the power is turned off. [Figure 11] Flowchart showing the procedure for simple authentication processing at power-on DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, the embodiments will be described in detail with reference to the drawings as appropriate. However, more detailed explanation than necessary may be omitted. For example, detailed explanation of already well-known matters or duplicate explanation of substantially the same configuration may be omitted. This is to avoid the following explanation becoming unnecessarily redundant and to facilitate understanding by those skilled in the art.

[0011] The inventor provides the accompanying drawings and the following description so that those skilled in the art can fully understand the present disclosure, and does not intend for them to limit the subject matter described in the claims.

[0012] [1. Offline authentication system configuration] FIG. 1 is a block diagram showing a hardware configuration of an offline authentication system 1. The offline authentication system 1 is used to authenticate devices that are normally used offline, such as factory devices, industrial machines, and infrastructure facilities installed in a factory 10. The reason for using the devices offline is to prevent a malicious third party from intruding from the outside via a communication network 80 and taking over the devices or stealing data from the devices. In other words, it is to protect the devices from cybersecurity threats. Hereinafter, devices that are normally used offline are referred to as "offline devices."

[0013] Even for offline devices, it is necessary to collect sensor data accumulated in the offline device and to upgrade the operating programs used in the offline device during maintenance and regular inspections. In such cases, it becomes necessary to collect sensor data from the offline device or to install software from outside into the offline device. In such cases, a removable recording medium such as an SD memory card can be used.

[0014] Since such devices are normally used offline to maintain high security, it is necessary to verify whether the recording media loaded into such devices are the recording media intended for use, i.e., to verify the validity or authenticity of the recording media. In the offline authentication system 1, the recording media themselves are provided with a mechanism for performing such authentication, making it possible to verify the authenticity of the recording media. Specifically, such a mechanism is as follows.

[0015] First, a plurality of removable recording media are prepared that are expected to be used in the factory 10. Each of these recording media is provided with a flash memory having a "user area" where the user can rewrite data, and a "non-user area" where the user cannot rewrite data. The non-user area has the same identification information and algorithm data that specifies the calculation method pre-recorded. In this embodiment, the identification information is called an "initial registration ID (IID)" and the algorithm data is called a "one-way function." Since it is necessary to pre-record necessary information, etc. in the non-user area, each recording medium is manufactured for the purpose of, for example, a certain business entity performing the authentication according to the present disclosure.

[0016] In the offline authentication system 1 according to this embodiment, an authentication terminal 2 equipped with an SD memory card A authenticates the authenticity of another SD memory card B by using an initial registration ID and a one-way function recorded on the SD memory card A. As described later, when an SD memory card is used, a controller, which is an arithmetic circuit provided in the SD memory card, performs the necessary processing and displays a QR code (registered trademark; the same applies below) on a display of the authentication terminal 2 or the like to perform authentication. A "QR code" is a matrix type two-dimensional code that expresses data of a predetermined data length or less by an image pattern. In this embodiment, an example using a QR code will be described, but the use of a QR code is not essential. For example, a barcode, which is a one-dimensional code, may be used.

[0017] Since the information and functions required to generate the QR code are stored in the non-user area (secure area) of the card, there is almost no need for the device to guarantee security or have special functions. The device that holds the SD memory card only needs to have the function to display and read the QR code based on the instructions and data from the controller, and no other special devices and / or functions are required. In other words, although a device is necessary to perform authentication, it can be said that SD memory card A actually authenticates SD memory card B. This allows the manager of the factory 10 to introduce the offline authentication system 1 at a relatively low cost. The offline authentication system 1 will be specifically described below.

[0018] In the offline authentication system 1, for example, in a factory 10, an authentication terminal 2 with an SD memory card A attached thereto is used to confirm the authenticity of an SD memory card B attached to a management system 4 or a machine tool control system 6. The authentication terminal 2 can be, for example, a mobile computer such as a smartphone, tablet PC, or notebook PC. In this case, the SD memory card and QR code are primarily used, and authentication is realized offline and within the factory 10 (local authentication).

[0019] It is assumed that the SD memory card B is initially attached to the control device 6a of the machine tool control system 6. The control device 6a is a computer system, such as a PC, that controls the machine tool 6b, and has an SD memory card slot (not shown) for attaching the SD memory card B. The machine tool 6b is provided with various sensors 7a and 7b. The sensor 7a is, for example, a camera having an image sensor, and the sensor 7b detects the rotation angle of a motor (not shown) of the machine tool 6b. angle The SD memory card B records sensor data from various sensors 7a and 7b collected in accordance with the operation of the machine tool 6b.

[0020] Such an SD memory card B is removed from the control device 6a, carried by a person, and inserted into a PC (hereinafter, referred to as "administration PC 4") of the management system 4. Once the SD memory card B is removed from the control device 6a, it is unclear to the administration PC 4 whether or not the SD memory card B is the SD memory card that is originally intended to be used, that is, the authenticity of the SD memory card B. Therefore, in this embodiment, the authenticity of the SD memory card B is confirmed by an authentication process using a QR code Qa displayed on the display of the authentication terminal 2. At this time, the SD memory card A of the authentication terminal 2 may be further authenticated using a QR code Qb displayed on the display of the administration PC 4. This makes it possible to perform more stringent authentication. The detailed procedure of the authentication process will be described later.

[0021] As the authenticity of SD memory card B has been confirmed, SD memory card A outputs a command to SD memory card B in management PC 4 via authentication terminal 2, notifying that access to SD memory card B is permitted. In response to receiving this command, the controller of SD memory card B permits reading of data from and / or writing of data to the flash memory in SD memory card B.

[0022] The management PC 4 is connected to a communication network 80 and can communicate with a cloud server 90. Since the authenticity of the SD memory card B is confirmed and access to the flash memory in the SD memory card B is permitted, the management PC 4 reads out the sensor data 70 recorded in the SD memory card B and transmits it to the cloud server 90 via the communication network 80. The cloud server 90 generates an operation program 72 that is more suitable for the machine tool control system 6 by analyzing the sensor data 70. The cloud server 90 transmits the operation program 72 to the management PC 4 via the communication network 80. Since access to the SD memory card B is permitted in the management PC 4, the operation program 72 is recorded in the SD memory card B. Thereafter, the SD memory card B is removed from the management PC 4 and attached again to the control device 6a of the machine tool control system 6. At this time, too, an authentication process using the QR code Qc is performed between the authentication terminal 2 and the control device 6a, and the authenticity of the SD memory card B is confirmed. When the authenticity of the SD memory card B is confirmed, the control device 6a can read out the operation program 72 and update the previous operation program.

[0023] Before describing the authentication process using a QR code, the configuration of the device and SD memory card used in the authentication process will be described.

[0024] Fig. 2 shows the hardware configuration common to the authentication terminal 2 and the management PC 4. Fig. 3 shows the hardware configuration of the control device 6a. The difference between Fig. 2 and Fig. 3 is that the communication circuit present in the configuration of Fig. 2 does not exist in the control device 6a of Fig. 3. The other configurations are the same. Refer to Fig. 2 below.

[0025] The authentication terminal 2 and the management PC 4 have a processing circuit 22, a communication circuit 24, an SD memory card interface device (SD-I / F device) 26, a display 28, a camera 30, and a memory 32. In the following, the SD-I / F device will be abbreviated to "I / F device."

[0026] The processing circuit 22 is a semiconductor integrated circuit known as a CPU (Central Processing Unit). The processing circuit 22 issues commands to the SD memory card A or B via the I / F device 26, and receives data from the SD memory card A or B. The processing circuit 22 can also communicate with other components. Note that while the diagram shows the processing circuit 22 as if it were directly connected to each component, it may be connected via an internal bus, for example.

[0027] The communication circuit 24 transmits and receives information by performing wired or wireless communication with the outside. Examples of wired communication include a wired LAN based on the Ethernet (registered trademark) standard, or a connection using an optical fiber cable. Examples of wireless communication include a wireless connection with an external device via a base station or a direct wireless connection with an external device. Examples of wireless connection with an external device via a base station or the like include a wireless LAN compatible with IEEE802.11 that wirelessly communicates with a Wi-Fi (registered trademark) router, a third generation mobile communication system (commonly known as 3G), a fourth generation mobile communication system (commonly known as 4G), a fifth generation mobile communication system (commonly known as 5G), WiMax (registered trademark) compatible with IEEE 802.16, or LPWA (Low Power Wide Area).

[0028] The I / F device 26 is an SD memory card slot into which the SD memory card A or B is inserted, a connection terminal inside the slot, and various circuits that communicate with the SD memory card A or B. The configuration of the I / F device 26 will be described in detail later with reference to FIG.

[0029] The display 28 is a display device that displays characters, images, etc. In this embodiment, the display 28 is used to display a QR code.

[0030] The camera 30 is a well-known imaging device capable of taking moving or still images. In this embodiment, the camera 30 is used to capture an image of a QR code displayed on the display of the other party's device.

[0031] The memory 32 stores a computer program to be executed by the processing circuitry 22. In this specification, the memory 32 encompasses RAM and ROM. The computer program stored in the ROM is read by the processing circuitry 22 and expanded in the RAM. This enables the processing circuitry 22 to execute the computer program.

[0032] Next, refer to Fig. 3. The control device 6a has a processing circuit 62, an interface device (SD-I / F device) 66 for an SD memory card, a display 68, a camera 70, and a memory 72. Hereinafter, the SD-I / F device will be abbreviated as "I / F device". The actual configuration of these components is the same as the components with the same names shown in Fig. 2. Therefore, the explanation of each component will be given by referring to the explanation of the components with the same names in Fig. 2, and specific explanations will be omitted.

[0033] 4 shows the detailed configuration of I / F devices 26 and 66 and SD memory cards A and B. In general, I / F devices 26 and 66 are called "host devices," and SD memory cards A and B are also called "slave devices." The following description will be given using I / F device 26 and SD memory card A as examples.

[0034] The I / F device 26 includes a controller 106, a host device I / F 105, a clock generator 201, a register 202, and a sampling clock generator 203. The host device I / F 105 includes a transmitting unit 105T that realizes a transmitting function, and a receiving unit 105R that realizes a receiving function.

[0035] The SD memory card A has a slave device I / F 124, a controller 125, a register 221, and a flash memory 222. The slave device I / F 124 also has a transmitter 124T that realizes a transmission function, and a receiver 124R that realizes a reception function.

[0036] The clock generator 201 of the I / F device 26 outputs a basic clock signal tclk onto the CLK line 111. For example, one period of the basic clock signal tclk is 2.8 nanoseconds, and the frequency is 208 MHz. The basic clock signal is transmitted to the SD memory card A via the host device I / F 105, and is used as a clock signal when the SD memory card A operates. The clock generator 201 also outputs the basic clock signal to the sampling clock generator 203. In FIG. 2, the basic clock signal received by the sampling clock generator 203 is denoted as "SDCLK" for convenience.

[0037] The sampling clock generator 203 receives the basic clock signal SDCLK ​​from the clock generator 201, and also receives a selection signal from the controller 106, and outputs a sampling clock signal. The sampling clock signal is a clock signal used when determining so-called punching timing.

[0038] Note that data transmission and reception between the host device 100 and the slave device 120 is performed using a transmitting unit 105T and a receiving unit 105R of the host device I / F 105, and a transmitting unit 124T and a receiving unit 124R of the slave device I / F 124, but this will not be specifically stated below. The following description will be given assuming that communication is performed simply between the controller 106 of the I / F device 26 and the controller 125 of the SD memory card A.

[0039] Next, the recording areas of the SD memory cards A and B, which are configured by the register 221 and the flash memory 222, will be described with reference to FIG.

[0040] 5 is a diagram for explaining the configuration of the recording areas of the SD memory cards A and B. The recording areas of the SD memory cards A and B have a normal area or user area 110 and a secure area or non-user area 120.

[0041] The user area 110 is an area in which the user can rewrite data. A random number generation program 110a, a QR code generation program 110b, and a QR code decode program 110c are pre-recorded in the user area 110. The random number generation program 110a is a program that generates random numbers using a known algorithm. The random number is an example of a predetermined variable value. The QR code generation program 110b is a program that generates a QR code indicating predetermined data from the data. The QR code decode program 110c is a program that decodes a QR code photographed using the camera 30 or 70 and extracts data. These programs are executed by the controllers 125 of the SD memory cards A and B. The methods of generating and decoding QR codes are known. Therefore, a description of the specific processing contents of the QR code generation program 110b and the QR code decode program 110c will be omitted. It is not necessary for the QR code generation program 110b and the QR code decode program 110c to be separate programs, and one program may perform both the generation and decoding of the QR code. The random number generation program 110 a , the QR code generation program 110 b , and the QR code decoding program 110 c may be recorded in the non-user area 120 .

[0042] The non-user area 120 is an area where the user cannot rewrite data. In the non-user area 120, identification information (IID) 120a and a one-way function 120b are recorded in advance. The identification information (IID) 120a is common to SD memory cards A and B, in other words, the same information. The one-way function 120b specifies a calculation method for calculating an output value from an input value. In this embodiment, an example of the one-way function 120b is SHA-256, which is a cryptographic hash function. SHA-256 is a hash function that generates a hash value (output value) having a hash length of 256 bits from an input value having a word length of 32 bits.

[0043] 5 also shows a "counter 120c." The counter 120c is used in a simple authentication mode, which will be described later. If the simple authentication mode is not used, it is not essential to provide the counter 120c.

[0044] In the following explanation, for the sake of convenience, it is assumed that a "one-way function F" is recorded on SD memory card A, and a "one-way function G" is recorded on SD memory card B. For authentication to be successful, one-way functions F and G must be the same, but when explaining the authentication process, it cannot be assumed that they are the same.

[0045] [2. Operations performed in offline authentication system 1] Next, a description will be given of the procedure of authentication processing in the offline authentication system 1. As briefly explained above with reference to Fig. 1, the following will explain an example of processing when updating the operation program of the machine tool control system 6 using the SD memory card B.

[0046] Fig. 6 is a diagram showing the procedure for updating the control program of a machine tool using an SD memory card B. Although Fig. 6 is formally a flow chart, it should be noted that it shows the procedure of operations performed by the entire offline authentication system 1, and is not processing executed by a specific CPU or the like. For ease of description, "SD memory card" is abbreviated to "SD card" in the drawing.

[0047] In step S1, QR code authentication is performed between the authentication terminal 2 having an SD memory card A and the management PC 4 having an SD memory card B. The QR code authentication is performed as either one-way authentication or two-way authentication.

[0048] If authentication is successful in step S2, then the controller 125 of the SD memory card B sets the SD memory card B to be accessible. "Access" includes both reading and writing data. However, if there are no restrictions on reading data from the SD memory card B, it is sufficient to set only writing to the SD memory card B to be accessible.

[0049] In step S3, the management PC 4 uploads the sensor data to the cloud server 90 and also requests an operation program.

[0050] The management PC 4 downloads the operation program from the cloud server 90 in step S4, and stores the operation program in the SD memory card B in step S5.

[0051] In step S6, the manager of the factory 10 removes the SD card B from the management system and inserts it into the machine tool control system 6. Thereafter, the above-mentioned one-way or two-way authentication is performed between the authentication terminal 2 and the machine tool control system 6 to verify the authenticity of the SD memory card B, and once the authenticity is verified, the machine tool control system 6 becomes able to read and execute the updated operating program. It is possible to tune the operating program based on the inherent sensor data of the machine tool 6b by using so-called artificial intelligence, etc., and generate an updating program.

[0052] Next, the authentication process will be described in detail. FIG. 7 is a flowchart showing the procedure of the authentication process. The left side of FIG. 7 shows the procedure of the process of the controller 125 of the SD memory card A that is, in principle, attached to the authentication terminal 2, and the right side shows the procedure of the process of the controller 125 of the SD memory card B that is, in principle, attached to the management PC 4 or the machine tool control system 6. Here, some of the processes on the left side of FIG. 7 may be processed by the CPU 22 of the management PC 4 or the machine tool control system 6, and some of the processes on the right side of FIG. 7 may be processed by the CPU 22 of the authentication terminal 2. FIG. 7 shows the procedure of the "one-way authentication" process in which the controller 125 of the SD memory card A confirms the authenticity of the SD memory card B that is attached to the management PC 4 or the machine tool control system 6. The procedure of the "two-way authentication" process in which the controller 125 of the SD memory card B additionally confirms the authenticity of the SD memory card A after the "one-way authentication" process is shown in FIG. 8 and will be described later.

[0053] In the following, a process for verifying the authenticity of the SD memory card B using the authentication terminal 2 and the management PC 4 will be described.

[0054] 7, the controller 125 of the SD memory card A executes the random number generation program 110a to generate a random number RN1. Then, in step S104, the controller 125 executes the QR code generation program 110b to convert the random number RN1 into a QR code. In step S106, the controller 125 transmits image pattern data of the QR code to the authentication terminal 2, and causes the QR code to be displayed on the display 28 of the authentication terminal 2. Hereinafter, the QR code displayed on the display 28 of the authentication terminal 2 will be referred to as "QR code 1."

[0055] With the QR code 1 displayed on the display 28, the user of the authentication terminal 2 points the display 28, on which the QR code 1 is displayed, toward the administration PC 4 so that it is within the field of view of the camera 30 provided in the administration PC 4. Then, processing by the controller 125 of the SD memory card B attached to the administration PC 4 is started.

[0056] In step S202, the controller 125 of the SD memory card B obtains the result of reading the QR code 1 using the camera 30 in the management PC 4. In step S204, the controller 125 decodes the QR code 1 using the QR code decoding program 110c and extracts the code data. The code data represents the random number RN1 generated by the controller 125 of the SD memory card A.

[0057] In step S206, the controller 125 combines the identification information IID stored in the non-user area 120 with the extracted RN1, and in step S208 substitutes this for a one-way function G to generate a value G(IID, RN1). Then, in step S210, the controller 125 converts the value G(IID, RN1) into a QR code using the QR code generation program 110b, and in step S210, transmits image pattern data of the QR code (hereinafter, "QR code 2") to the management PC 4. The management PC 4 causes the display 28 to display the QR code 2.

[0058] Next, processing is started again by the controller 125 of the SD memory card A which is inserted in the authentication terminal 2. From the viewpoint of the authentication terminal 2, after the QR code 1 is displayed on the display 28, processing is on hold until a new QR code 2 is displayed on the display 28 of the administration PC 4.

[0059] In step S108, the controller 125 of the SD memory card A acquires the result of reading the QR code 2 using the camera 30 in the authentication terminal 2. In step S110, the controller 125 decodes the QR code 2 to extract the code data. The code data represents the value G(IID, RN1).

[0060] Meanwhile, in step S112, the controller 125 combines the identification information IID stored in the non-user area 120 with the random number RN1 generated in step S102, and in step S114 substitutes this for a one-way function F to generate a value F(IID, RN1).

[0061] In step S116, the controller 125 judges whether G(IID,RN1)=F(IID,RN1). If G(IID,RN1)=F(IID,RN1) is not true, the controller 125 of the SD memory card A determines that the authentication has failed and ends the process. Since a one-way function is used in this embodiment, if the identification information IID and the random number value RN1 are different on the management PC4 side, or if the one-way function G is different from the one-way function F, the equation in step S116 does not hold. This allows the controller 125 of the SD memory card A to determine that the authenticity of the SD memory card B cannot be confirmed.

[0062] On the other hand, if the equation in step S116 is satisfied, the controller 125 determines that the authentication has been successful. Then, the process proceeds to step S118. Note that the process "A" shown in Fig. 7 is a process for two-way authentication, which will be described later.

[0063] In step S 118 , the controller 125 issues an access permission command and transmits it to the management PC 4 .

[0064] In response to receiving the access permission command, the controller 125 of the SD memory card B transitions to an accessible state for the flash memory 222 of the SD card B in step S214. As a result, the controller 125 of the SD memory card B becomes able to write data received from the authentication terminal 2, the server 90, etc., to the flash memory 222 (step S216). As described above, "access" may include not only writing but also reading.

[0065] Through the above process, the authenticity of SD memory card B can be confirmed even offline. Since SD memory card B can be accessed only when it is authenticated as a legitimate recording medium, data recorded on SD memory card B will not be stolen, and data will not be illegally written to SD memory card B by a malicious third party.

[0066] Fig. 8 is a flowchart showing the procedure of two-way authentication processing. The procedure in Fig. 8 is a continuation from "A" in the processing of the authentication terminal 2 in Fig. 7. The description of the processing procedures on the left and right are based on Fig. 7.

[0067] The process shown in FIG. 8 for two-way authentication corresponds to the process in which the controller 125 of the SD memory card A and the controller 125 of the SD memory card B in the one-way authentication in FIG. 7 are interchanged.

[0068] In step S120, the controller 125 of the SD memory card A attached to the authentication terminal 2 issues a command to start two-way authentication, and sends it to the administration PC 4.

[0069] In step S220, in response to receiving the command, the controller 125 of the SD memory card B generates a random number RN2 using the random number generation program 110a. Then, in step S222, the controller 125 executes the QR code generation program 110b to convert the random number RN1 into a QR code. In step S224, the controller 125 transmits image pattern data of the QR code to the management PC4, and causes the display 28 of the management PC4 to display the QR code ("QR Code 3").

[0070] The processes of steps S122 to S132 executed by the controller 125 of the SD memory card A after the QR code 3 is displayed on the display 28 of the administration PC 4 are similar to the processes of steps S202 to S212 in Fig. 7. Also, the processes of steps S226 to S234 executed by the controller 125 of the SD memory card B in the administration PC 4 after the QR code 4 is displayed on the display 28 of the authentication terminal 2 in step S132 are similar to the processes of steps S108 to S116 in Fig. 7. Therefore, the description of these processes is omitted. Note that steps S214 and S216 are common to Fig. 7 and Fig. 8. However, in the case of step S214 in Fig. 8, the controller 125 of the SD memory card A does not issue an access permission command, and the controller 125 of the SD memory card B transitions to a state in which it can access itself.

[0071] By performing two-way authentication, it is possible to confirm the authenticity of not only SD memory card B, but also SD memory card A. If the authenticity of both is not confirmed, SD memory card B will not transition to a state where it can be accessed, ensuring higher security. For example, even if information in SD memory card A is illegally stolen or tampered with and an access permission command is issued to an arbitrary SD memory card, it is possible to prevent access being granted to SD memory card B.

[0072] Next, a process for simplifying the authentication procedure will be described. When a new SD memory card is attached to the management PC 4, or when an SD memory card is attached when the management PC 4 or the machine tool control system 6 is powered on, the device cannot access the SD memory card without restriction. When the authenticity of the SD memory card is confirmed by the authentication process shown in Fig. 7 using the authentication terminal 2, the controller of the SD memory card in the authentication terminal 2 permits access to the SD memory card. Alternatively, only when the authenticity of the SD memory card is confirmed by the authentication process shown in Fig. 8 using the authentication terminal 2, the controller of the SD memory card attached to the management PC 4 or the like sets access permission to itself.

[0073] In the following, it is assumed that an SD memory card B is attached to the machine tool control system 6, and the control device 6a reads out the operating program in the SD memory card B to control the machine tool 6b. When the operation of the machine tool 6b is completed, the power to the machine tool control system 6 is turned off, and when the next operation is to be started, the power is turned on. Usually, after the power is turned on, the authenticity of the SD memory card B attached to the machine tool control system 6 is authenticated using the authentication terminal 2. It is assumed that the control device 6a can use the operating program to control the machine tool 6b for the first time after the authenticity has been confirmed.

[0074] Instead of performing such authentication processing every time, if certain conditions are met, the authenticity of the SD memory card is deemed to be guaranteed, and access permission to the SD memory card can be set without going through authentication processing using the authentication terminal 2. The introduction of such simplified authentication is particularly useful when, for example, there are many machine tool control systems 6 in the factory 10, since it is not necessary to perform authentication processing for each one. Note that the simplified authentication processing is not a required process in this disclosure, and the user can choose whether or not to adopt it.

[0075] 9 is a flowchart showing the procedure for setting the simple authentication mode in the machine tool control system. The use of the simple authentication mode is not set from the beginning. Therefore, the user is prompted to set the simple authentication mode as an indication of the user's intention to use the simple authentication mode.

[0076] In step S240, controller 125 of SD memory card B attached to control device 6a of machine tool control system 6 performs QR code authentication processing with authentication terminal 2, and confirms that authentication has been successful.

[0077] In step S242, the setting of setting / cancelling the simple authentication mode is accepted based on the user's operational input, which causes the simple authentication information to be saved during the unmount process in step S246.

[0078] In this embodiment, the "simple authentication information" is information expressed as the sum of a random number generated at the time when the simple authentication information is generated and the counter value of the counter 120c (FIG. 5) of the SD memory card at that time. Instead of the sum, the simple authentication information may be generated by various calculation methods such as subtraction, multiplication, and exclusive OR, or only the counter value. It is sufficient that at least the counter value is included. The counter 120c (FIG. 5) is managed in the non-user area 120 of the SD memory card, and the counter value increases when writing to the SD memory card occurs. This counter value only counts up, and is not counted down, cleared, or arbitrarily rewritten by the user from the outside. Note that counting up is just an example, and only counting down may be performed. In short, it is sufficient that a counter that counts in one direction is provided.

[0079] When the simple authentication mode has already been set and cancellation of the simple authentication mode is selected, the simple authentication information is deleted and is not saved until the simple authentication mode is set again.

[0080] In step S244, an unmount process of the SD memory card B is performed, for example, when the power supply of the machine tool control system 6 is turned off. The "unmount process" is a process for canceling the recognition of the SD memory card B that is attached to and recognized by the control device 6a, and is performed to prevent damage to the data in the SD memory card. At the time of the unmount process, simple authentication information is recorded. Once unmounted, the control device 6a will not write data to the SD memory card B until it is mounted again. The process when the power supply is turned off will be described with reference to FIG. 10.

[0081] Fig. 10 is a flow chart showing the procedure of processing for generating simplified authentication data when the power is off. The processing in Fig. 10 is an example assuming that it is performed between the control device 6a of the machine tool control system 6 and the SD memory card B inserted in the control device 6a. The left side shows the operation of the processing circuit 62 of the control device 6a, and the right side shows the operation of the controller 125 of the SD memory card B.

[0082] When the user turns off the power, in step S140, the processing circuit 62 of the control device 6a issues a simple authentication information record command and transmits it to the SD memory card B. The simple authentication information record command is a command that requests the generation and recording of simple authentication information in the SD memory card B. As will be described below, in response to this command, the controller 125 of the SD memory card B transmits the generated simple authentication information to the control device 6a.

[0083] In step S250, the controller 125 of the SD memory card B generates a random number RNX using the random number generation program 110a. In step S252, the controller 125 reads the counter value CX of the counter 120c from the non-user area 120. Then, in step S256, the controller 125 stores the generated random number RNX and counter value CX in the non-user area 120. In step S258, the controller 125 transmits the stored random number RNX and counter value CX to the control device 6a in response to the recording command.

[0084] In step S142, the processing circuit 62 of the control device 6a stores the received random number RNX and counter value CX in the memory 72, for example, as simplified authentication information.

[0085] According to the above process, at the point in time when the simplified authentication information is generated, the simplified authentication information stored in the SD memory card B matches the simplified authentication information stored in the memory 72 of the control device 6a.

[0086] Fig. 11 is a flowchart showing the procedure of the simplified authentication process at power-on. The process in Fig. 11 is also an example assuming that it is performed between the control device 6a of the machine tool control system 6 and the SD memory card B inserted in the control device 6a.

[0087] When the user turns on the power, in step S150, the processing circuit 62 applies power to the SD memory card B and turns on the power of the SD memory card B. When power is applied to the SD memory card B, in step S260, a power-on detection unit (not shown) provided in the SD memory card B detects that the power is on.

[0088] In step S152, the processing circuit 62 transmits a storage initialization instruction to the SD memory card B. At the same time, the processing circuit 62 transmits the simple authentication information A that it has retained, and further requests the transmission of a command requesting the result of the simple authentication.

[0089] In step S262, in response to receiving the command requesting the result of simple authentication, the controller 125 of the SD memory card B executes a process for simple authentication. Specifically, the controller 125 first reads the simple authentication information B stored in the storage.

[0090] In step S264, the controller 125 compares the simple authentication information A with the simple authentication information B. If the simple authentication information A and the simple authentication information B match, the controller 125 determines that the authentication has been successful. On the other hand, if the simple authentication information A and the simple authentication information B do not match, the controller 125 determines that the authentication has failed.

[0091] In step S266, the controller 125 notifies the control device 6a of the result of the simple authentication in response to the command requesting the result of the simple authentication. If the authentication is successful, in step S268, the controller 125 transitions the SD memory card B to a state in which data can be written.

[0092] In step S154, the processing circuit 62 of the control device 6a determines whether or not the simple authentication is successful based on the notification from the SD memory card B. If the authentication is successful, the process proceeds to step S156, and if it is unsuccessful, the process proceeds to step S158.

[0093] In step S156, the processing circuit 62 transmits a write command and data to the SD memory card B at a predetermined timing.

[0094] The controller 125 of the SD memory card B writes data to the SD memory card B in step S270, and increments the counter 120c in step S272.

[0095] If the authentication fails, in step S158, the processing circuit 62 of the control device 6a determines that the SD card cannot be accessed, and waits until the QR code authentication shown in FIG. 6 and other figures with the authentication terminal 2 is successful.

[0096] On the other hand, in step S274, the controller 125 of the SD memory card B maintains the access denial state until QR code authentication with the authentication terminal is successful.

[0097] According to the above simplified authentication process, it is possible to determine whether or not the SD memory card installed when the power is turned on is the SD memory card that was authenticated and used when the power was last turned off. If it is determined that the SD memory card installed when the power was turned off and on is the same, the SD memory card can be transitioned to an accessible state without going through authentication process using the authentication terminal 2. Therefore, the manager of the factory 10 can simplify the authentication process while checking the authenticity of the SD memory card.

[0098] It should be noted that the notification of the simple authentication result in steps S266 and S154 is not essential. For example, the processing circuit 62 of the control device 6a may transmit a command to write or read any data to or from the SD memory card B, after transmitting the simple authentication information A, and then may try it. If a notification is received from the SD memory card B in response to the command reporting that data has been written or read, it can be determined that the authentication has been successful.

[0099] Also, the above description is an example in which the simplified authentication process is performed between the control device 6a of the machine tool control system 6 and the SD memory card B inserted into the control device 6a. The simplified authentication process may also be performed between the administration PC 4 and the SD memory card B inserted into the administration PC 4.

[0100] The processes in Fig. 10 and Fig. 11 may be independent of the authentication process using the authentication terminal described in the present disclosure with reference to Figs. 1 to 9. Therefore, the processes in Figs. 10 and 11 can be used industrially even if they are cut out, and it is not necessary to combine them with Figs. 1 to 9. In short, the processes in Figs. 10 and 11 can be widely applied as a mechanism for verifying that the SD memory card that was attached to the device before the power was turned off is the same as the SD memory card that was attached when the device was turned on. That is, the present disclosure includes a determination method in which a counter that counts in one direction each time a data write process is executed is provided in a recording medium, a device that mounts the recording medium has a storage device, and at the timing when the recording medium is unmounted from the device, the recording medium stores at least simplified authentication information generated from the counter value in a non-user area of ​​the recording medium as first authentication information, transmits the simplified authentication information to the device as second authentication information, and the device stores the second authentication information in the storage device. The present disclosure also includes a determination method in which, when the recording medium is mounted on the device, the device transmits the second authentication information stored in the storage device to the recording medium, and a controller of the recording medium compares the first authentication information stored in the non-user area with the second authentication information received from the second device, and determines that the second recording medium is genuine if they match.

[0101] Above, exemplary embodiments of the present disclosure have been described. In the above description, the authenticity of the SD memory card B is confirmed using the authentication terminal 2 in the factory 10, but this is merely an example. In addition, for example, a business operator may use the process disclosed herein for the purpose of authenticating a user who has made a specific contract or paid a fee. More specifically, the business operator dispatches an SD memory card only to a user who has made a payment for a music concert. The random number generation program 110a, the QR code generation and decoding programs 110b and 110c, the identification information 120a, and the one-way function 120b shown in FIG. 5 are recorded in the SD memory card. Also, it is assumed that the non-user area 120 stores seat information indicating the seat position in the concert venue. The user inserts the SD memory card into his / her own terminal, for example, a smartphone, and heads to the concert venue. At the concert venue, a staff member having the authentication terminal 2 authenticates the authenticity of the SD memory card. Once the authenticity is confirmed, the user can access his / her own seat information from the SD memory card and display the position on the smartphone screen. In this way, by utilizing the possession of a legitimate SD memory card, the owner (user) can be authenticated and the user's unique information can be read, making it possible to present information only to specific users.

[0102] Although the present specification has been described with an SD memory card as an example, the above description is also applicable to removable recording media according to other standards. As recording media according to other standards, for example, flash memory devices such as CompactFlash (registered trademark) and Memory Stick (registered trademark) can be used. [Industrial Applicability]

[0103] The present disclosure can be applied to a system for verifying the authenticity of removable recording media, such as SD cards, offline. [Explanation of symbols]

[0104] 1. Offline Authentication System 2 Authentication terminal 4 Management system (management PC) 6 Machine tool control system 6a Control equipment 6b Machine tools 22, 62 Processing circuit (CPU) 24 Communication Circuits 26, 66 SD-Interface (I / F) Device 28, 68 Display 30, 70 Camera 32, 72 memory 110 User area 110a Random number generator 110b QR code generator 110c QR code decoding program 120 Non-user area 120a Identification information 120b One-way functions 120c Counter

Claims

1. A method for determining authenticity of a second recording medium mounted in a second device using a first device having a first recording medium mounted therein, comprising: the first device includes a first imaging device and a first display device; the second device includes a second imaging device and a second display device; Each of the first recording medium and the second recording medium is a flash memory having a user area in which a user can rewrite data and a non-user area in which a user cannot rewrite data; a controller for controlling writing and / or reading of data to the flash memory; and First identification information and first algorithm data defining a calculation method are recorded in advance in the non-user area of ​​the first recording medium, the first display device displays a first image pattern in which a predetermined first variable value is encoded one-dimensionally or two-dimensionally; After the first image pattern is displayed and the first imaging device captures a one-dimensional or two-dimensional second image pattern displayed on the second display device of the second device, The controller of the first recording medium (a) acquiring the imaged second image pattern; (b) decoding first code data from the second image pattern; (c) performing a calculation using the first identification information and the first variable value by using the first algorithm data, and outputting first result data which is a result of the calculation; (d) A determination method for determining that the second recording medium is genuine if the decrypted first code data and the output first result data match.

2. The second recording medium stores second identification information that is the same as the first identification information and second algorithm data that is the same as the first algorithm data, and a controller of the second recording medium, Decoding the first variable value from the first image pattern; performing a calculation using the second identification information and the first variable value by using the second algorithm data; When the second image pattern is generated from second result data which is a result of the calculation, In the step (d), the controller of the first recording medium controls the second recording medium. The method according to claim 1 , further comprising determining whether the document is genuine.

3. The method of claim 1 or 2, wherein in step (d), if the controller of the first recording medium determines that the second recording medium is genuine, the controller of the first recording medium sends a command to the second device via the first device to grant access to the second recording medium.

4. the access permission command includes at least a command for permission to write data to the second recording medium; The method according to claim 3 , wherein after receiving the write permission command, the controller of the second recording medium executes writing of data to the flash memory.

5. (e) in the step (d), the controller of the first recording medium that has determined that the second recording medium is genuine transmits a command to the second device via the first device to perform two-way authentication; second identification information and second algorithm data defining a calculation method are recorded in advance in the non-user area of ​​the second recording medium; The second display device displays a third image pattern in which a predetermined second variable value is coded one-dimensionally or two-dimensionally on the second display device; After the third image pattern is displayed and the second imaging device captures a one-dimensional or two-dimensional fourth image pattern displayed on the first display device of the first device, In response to receiving the command, the controller of the second recording medium (f) decoding second code data from the captured fourth image pattern; (g) performing a calculation using the second identification information and the second variable value by using the second algorithm data, and outputting second result data which is a result of the calculation; (h) determining that the first recording medium is genuine if the second code data decoded in step (f) matches the second result data output in step (g).

6. The method of claim 5, wherein in step (h), if the controller of the second recording medium determines that the first recording medium is genuine, the controller of the second recording medium transitions the second recording medium to a state in which it can be accessed.

7. The method of determining whether or not data can be written to and / or read from the flash memory, as described in Claim 6, wherein the accessible state is a state in which data can be written to and / or read from the flash memory.

8. the second recording medium is provided with a counter that counts in one direction every time a data write process is executed; the second device has a storage device; after it is determined that the second recording medium is genuine, at a timing when the second recording medium is unmounted from the second device, the second recording medium stores simplified authentication information generated from at least a counter value in the non-user area as first authentication information, and transmits the simplified authentication information to the second device as second authentication information; The method of claim 1 , wherein the second device stores the second authentication information in the storage device.

9. When the second recording medium is mounted on the second device, the second device transmits the second authentication information stored in the storage device to the second recording medium; The controller of the second recording medium The method of claim 8, further comprising: comparing the first authentication information stored in the non-user area with the second authentication information received from the second device; and determining that the second recording medium is genuine if they match.

10. the first device is a mobile computer; The method according to claim 1 , wherein the second device is a machine tool or a control device that controls the machine tool.

11. the first recording medium is a memory card removable from the first device, The method according to claim 1 , wherein the second recording medium is a memory card removable from the second device.

12. The method according to claim 11 , wherein the first recording medium and the second recording medium are SD memory cards.

13. the first variable value is a random number generated by a controller of the first recording medium; the first identification information is a fixed value recorded at the time of manufacturing or using the first recording medium, The method of claim 1 , wherein the first algorithm data is a one-way function.

14. the second variable value is a random number generated by a controller of the second recording medium; the second identification information is a fixed value recorded at the time of manufacturing or using the second recording medium, The method of claim 5 , wherein the second algorithm data is a one-way function.

15. A recording medium having a controller that executes the determination method described in claim 1.

Citation Information

Patent Citations

  • Information recording medium

    JP2005174514A

  • Two-dimensional code with watermark, authentication system, authentication method, and program

    JP2016035751A

  • Authentication system and authentication method

    JP2020201716A