Information processing apparatus, method for controlling information processing apparatus, and program
By pre-calculating hash values for assertions at strategic times, the processing time for digital signature verification is reduced, improving the performance of imaging devices by minimizing computational load during image capture.
Patent Information
- Application Number
- JP2023043431
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-10-01
AI Technical Summary
The processing time for digital signature verification in imaging devices, particularly those using C2PA data, is prolonged, leading to decreased continuous shooting performance and increased computational load, especially in devices with limited resources.
The solution involves pre-calculating hash values for certain assertions at specific timings before the digital signature process, such as device startup or mode changes, to reduce the computational burden during image capture.
This approach speeds up the C2PA data generation process, enhancing the continuous shooting performance and reducing the computational load on imaging devices by performing time-consuming calculations ahead of time.
Smart Images

Figure 2024132596000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing device, a control method for an information processing device, and a program. [Background technology]
[0002] In recent years, it has become a social problem that digital content such as images and videos are tampered with to create fake images and then intentionally spread on the Internet, causing damage to individuals and companies due to false information. To solve this problem, measures have been taken to ensure the authenticity of digital content (that it has not been tampered with), and this can be done using a well-known technology called digital signatures. Digital signatures are a mechanism that uses encryption technology to add a digital signature to digital content and verify the authenticity of the content by verifying the digital signature. Companies and news organizations that handle digital content are very interested in mechanisms for ensuring authenticity, and major companies and news organizations have established the Coalition for Content Provenance and Authenticity (C2PA). C2PA standardizes mechanisms that make it possible to ensure the authenticity and history of digital content. By incorporating data for ensuring authenticity defined in the C2PA standard into digital content as metadata, verifiability of the authenticity and history of digital content has been established. In the following, the data for ensuring authenticity defined by C2PA will also be referred to as C2PA data.
[0003] The generation and verification of C2PA data involves the calculation of hash values and digital signature processing, and various methods have been proposed for generating data to which such processing has been applied. Patent Document 1 discloses a technology that calculates hash values for multiple data and generates a digital signature from those hash values. In this technology, program data is divided into pages and a hash value is calculated for each page. A hash value is then calculated again based on all those hash values, and a digital signature is applied to the calculated hash value, making it possible to verify the authenticity of the program data. Furthermore, Patent Document 2 discloses a technique for reducing the time required for digital signature calculation by pre-calculating computable data when calculating a digital signature. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 4373442 [Patent Document 2] Patent No. 5393594 Summary of the Invention [Problem to be solved by the invention]
[0005] On the other hand, when image data is applied as a target for guaranteeing authenticity by C2PA data, for example, a situation may be assumed in which a digital signature process is executed each time an image is captured by an imaging device. Under such circumstances, the execution of the digital signature process increases the processing time until the generation of image data based on the imaging result is completed. The effect of such an increase in processing time per image may manifest itself as an event such as a decrease in the continuous shooting performance of the imaging device, which may affect usability. In particular, in devices with limited computational resources such as imaging devices called digital cameras, the amount of data that can be processed is limited, so a situation in which the processing time increases further may be assumed. In addition, in the case of C2PA data, the calculation process of the hash value may be executed multiple times, so the effect of the increase in processing time as described above tends to be more likely to manifest.
[0006] In view of the above problems, an object of the present invention is to realize digital signature processing for electronic data in a more suitable manner. [Means for solving the problem]
[0007] The information processing device of the present invention is characterized in having a determination means for determining the timing to calculate a code used to verify the authenticity of each of multiple partial data included in electronic data to be subjected to digital signature processing, and a first calculation means for pre-calculating the code, which is determined to be able to be pre-calculated at a timing before the start of the digital signature processing based on the result of the determination of the timing by the determination means, at the same timing. Effect of the Invention
[0008] According to the present invention, it is possible to realize digital signature processing for electronic data in a more suitable manner. [Brief description of the drawings]
[0009] [Figure 1] FIG. 2 is a diagram showing an example of the configuration of C2PA data. [Diagram 2] FIG. 1 illustrates an example of a C2PA assertion. [Diagram 3] FIG. 1 shows an example of a C2PA claim. [Figure 4] 11 is a flowchart showing an example of a process related to generation of C2PA data. [Diagram 5] FIG. 2 is a diagram illustrating an example of a hardware configuration of an imaging apparatus. [Figure 6] FIG. 2 is a functional block diagram showing an example of a functional configuration of the imaging device. [Figure 7] FIG. 13 is a diagram showing an example of an assertion list. [Figure 8] FIG. 13 illustrates an example of an assertion parameter list. [Figure 9]10 is a flowchart showing an example of processing performed by the imaging device. [Figure 10] 10 is a flowchart showing an example of processing performed by the imaging device. [Figure 11] FIG. 2 is a functional block diagram showing an example of a functional configuration of the imaging device. [Figure 12] FIG. 13 is a diagram showing an example of an assertion parameter pre-calculation list. [Figure 13] FIG. 11 is a diagram showing an example of a pre-calculation flag list for each imaging mode. [Figure 14] FIG. 13 is a diagram showing an example of an update result of the list. [Figure 15] 10 is a flowchart showing an example of processing performed by the imaging device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are denoted by the same reference numerals, and redundant description will be omitted.
[0011] <C2PAデータ> In order to more clearly understand the features of the technology according to each embodiment of the present disclosure, a description will be given of C2PA data to which the technology can be applied.
[0012] For example, Fig. 1(A) is a diagram showing an example of the configuration of C2PA data. The C2PA data is composed of a manifest 100. Fig. 1(B) is a diagram showing an example of digital content including C2PA data. Digital content 111 includes an image data area 112 and a metadata area 113. Furthermore, metadata area 113 is provided with a C2PA data area 114, and the C2PA data composed of manifest 100 is stored in said C2PA data area 114.
[0013] The manifest 100 holds an assertion store 101, claims 104, and claim signatures 105.
[0014] Assertions, which are data including information related to the authenticity of images and metadata, are stored in the assertion store 101, such as assertions 102 and 103. Assertions are data for implementing a mechanism for describing conditions that should be satisfied when a certain code is executed and checking the conditions at execution time, for example. An example of an assertion is the Data Hash Assertion shown in Figure 2(A). A Data Hash Assertion is an assertion that holds a hash value calculated from data including still images, video images, or metadata, and C2PA data always includes at least one Data Hash Assertion. A Data Hash Assertion includes parameters such as "alg", "pad", "hash", and "exclusions". "alg" is a parameter that indicates the algorithm used for hash calculation. "pad" is a parameter that indicates the byte sequence used for padding. "hash" is a parameter that indicates the hash value of the digital content. "exclusions" is a parameter that indicates information about the range for calculating the hash value. As of C2PA1.0, in addition to Data Hash Assertion, assertions such as those shown in Figure 2(B) are listed as standard assertions.
[0015] The claim 104 stores information such as the storage location of the assertion, its hash value, the creator of the claim, and the storage location of the digital signature of the claim. For example, FIG. 3 shows an example of a claim. The claim includes parameters such as "alg", "claim_generator", "claim_generator_info", "signature", "dc:format", and "assertions". "alg" is a parameter indicating the algorithm used to calculate the hash value of the assertion. "claim_generator" is a parameter indicating the entity that generates the claim. "claim_generator_info" is a parameter indicating supplementary information for "claim_generator". "signature" is a parameter indicating the location information of the digital signature of the claim. "dc:format" is a parameter indicating attribute information of the digital content. "assertions" is a parameter indicating the location information of the assertion and its hash value.
[0016] The claim signature 105 stores the digital signature value of the claim 104 . Note that the above configuration is merely an example of C2PA data, and C2PA data may include other data defined in the C2PA standard.
[0017] An example of a process for generating C2PA data will be described with reference to FIG. In S401, an information processing device that is a subject of C2PA data generation starts a C2PA data generation process when digital content such as capturing an image is generated. In S402, the information processing device generates assertions such as assertions 102 and 103 for images and metadata, and calculates a hash value for each assertion. The generated assertions are registered in the assertion store 101. In S403, the information processing device generates a claim 104 using the storage location of the generated assertion and the hash value of the assertion. In S404 , the information processing device generates a claim signature 105 by applying a digital signature to the claim 104 . In S405, the information processing device generates a manifest 100 in which the assertion store 101, the claims 104, and the claim signature 105 are stored, and stores the manifest 100 in a metadata area for images, etc. In this manner, C2PA data is added to digital content to guarantee its authenticity.
[0018] An example of a process for verifying C2PA data will be described with reference to FIG. In S411, the information processing device that is the subject of verifying the C2PA data refers to the manifest 100 of the digital content that holds the C2PA data. In S412 , the information processing device refers to the claims 104 stored in the manifest 100 . In S413 , the information processing device verifies the claim 104 using the claim signature 105 . After verifying the claim 104, in S414, the information processing device verifies the assertion registered in the assertion store 101 using the hash value of the assertion held in the claim 104. After verifying the assertion, in S415, the information processing device verifies the digital content, such as an image, using the data in the assertion. By executing the series of processes exemplified above, it becomes possible to verify the authenticity of the target digital content.
[0019] Note that the above-mentioned processes for generating and verifying C2PA data are merely examples, and any process for generating and verifying may be executed in accordance with the rules set forth in the C2PA standard.
[0020] In light of the above, this disclosure describes an example of a technology that enables the speed-up of processing related to the generation of C2PA data by pre-calculating the hash value of an assertion at a timing when the hash value can be calculated in the generation of C2PA data. Note that this disclosure describes an example of a configuration and processing with a focus on a case where an image capture device such as a digital camera is applied as an example of an information processing device, but this does not necessarily limit the application of the technology according to this disclosure. In other words, the technology according to this disclosure can be applied to information processing devices other than image capture devices.
[0021] <First embodiment> (Hardware configuration) An example of a hardware configuration of an imaging device according to an embodiment of the present disclosure will be described with reference to FIG. The imaging device 500 has an operation unit 501, an optical system 502, a driving unit 503, an I / F (Interface) 504, and an imaging unit 509. The imaging device 500 also has a CPU (Central Processing Unit) 508, a ROM (Read Only Memory) 505, a storage memory 506, and a working memory 507. The above-mentioned components of the imaging device 500 are connected via a bus 510 so as to be able to transmit and receive information to and from each other.
[0022] An operation unit 501 provides an operation function for the imaging device, and receives instructions from a user regarding imaging for the imaging device, instructions regarding changes to settings during imaging, and instructions regarding changes to other settings of the imaging device. The optical system 502 includes an optical sensor such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS). The optical system 502 may also include an optical member such as a lens that guides a subject image to the optical sensor. When an image capture instruction is received via the operation unit 501, the optical system 502 captures an image of the subject, processes electrical signals, and processes digital signals. The driving unit 503 performs various mechanical operations for realizing imaging of a subject, such as adjusting the positions of optical members such as lenses that constitute the optical system 502 . The I / F 504 is an interface with external devices such as a memory card, a mobile terminal, and a communication device, and is used, for example, when transmitting image data to these external devices.
[0023] The ROM 505 is a read-only memory, and stores the operation program of the imaging device 500 and the like. The storage memory 506 is a storage area used to store various data and programs, and is capable of storing, for example, processed image data and the like. The working memory 507 is a storage area used to temporarily hold various data. By using the working memory 507, for example, it is possible to temporarily store image data in the working memory 507 and then compress the image data and perform various arithmetic operations on the working memory 507. The CPU 508 controls various operations of the imaging device 500 and performs various calculations. For example, when an instruction related to imaging is given via the operation unit 501, the CPU 508 may execute various calculation processes such as compression processing of image data in accordance with a program stored in the ROM 505.
[0024] The imaging unit 509 generates image data and metadata using the results of processing related to imaging of a subject by the optical system 502, the results of calculations by the CPU 508, etc. Furthermore, the imaging unit 509 may generate C2PA data for the generated image data.
[0025] 5 is merely an example, and as long as it is possible to realize the functional configuration and processing described separately below, the hardware configuration of the imaging device 500 is not particularly limited. As a specific example, components other than the series of components described above may be added depending on the functions realized by the imaging device 500.
[0026] (Functional configuration) 6, an example of the functional configuration of the imaging device 500 according to this embodiment will be described, focusing in particular on the functional configuration realized by software executed in the imaging unit 509. The imaging unit 509 includes an image data generation unit 601 and a metadata generation unit 602. The imaging unit 509 also includes a C2PA data generation unit 611, an assertion generation unit 612, an assertion hash calculation unit 613, a claim generation unit 614, a claim signature generation unit 615, a manifest generation unit 616, and a C2PA data writing unit 617. The imaging unit 509 also includes an assertion pre-generation unit 621, a setting value change detection unit 622, a target assertion identification unit 623, and an assertion pre-computation determination unit 624.
[0027] The image data generating unit 601 generates image data according to an instruction from the imaging unit 509. Examples of the format of the generated image data include JPEG (Joint Photographic Experts Group) and PNG (Portable Network Graphics). Of course, the above is merely an example, and a format other than JPEG or PNG may be applied as the format of the image data. The metadata generating unit 602 generates metadata to be attached to the image data generated by the image data generating unit 601. Examples of metadata formats include EXIF (Exchangeable image file format) and IPTC (International Press Telecommunications Council). Of course, the above is merely an example, and a format other than EXIF or IPTC may be applied as the metadata format as long as it is possible to hold information about the image data and the photographer in a predetermined format. Examples of information held in the metadata include imaging conditions such as shutter speed, F value, and ISO sensitivity, image file format and size, and photographer information. The metadata generated by the metadata generating unit 602 is written into a metadata area of the image data generated by the image data generating unit 601.
[0028] After the image data generating unit 601 and the metadata generating unit 602 generate image data and metadata, the C2PA data generating unit 611 starts generating C2PA data. The assertion generation unit 612 starts the generation process of an assertion upon receiving an instruction from the C2PA data generation unit 611, and registers the generated assertion in the assertion store. The assertion generation unit 612 generates an assertion such as the one shown in Fig. 2(B) based on image data and metadata. The assertion generated by the assertion generation unit 612 is determined based on the assertion list 701 shown in Fig. 7.
[0029] The assertion list 701 lists assertions generated by the assertion generation unit 612. A pre-computation flag and a pre-computation completion flag are set for each assertion. The pre-computation flag indicates whether each assertion can be pre-computed before the start of the generation process of C2PA data (in other words, before the start of the digital signature process). As a specific example, when the pre-computation flag is "0", it means that pre-computation is difficult, and indicates that the assertion needs to be generated after the generation process of C2PA data starts. Also, when the pre-computation flag is "1", it indicates that assertion generation and hash value calculation can be performed in advance.
[0030] The assertion generation unit 612 executes processing related to assertion generation by referring to the pre-computation flag and the pre-computation completion flag. As a specific example, for an assertion whose pre-computation flag is "0", the assertion generation unit 612 generates the assertion and calculates a hash value after the start of C2PA data generation. Also, when the pre-computation flag is "1" and the pre-computation completion flag is "0", it indicates a state in which pre-computation is possible but not yet completed. Therefore, in this case, the assertion generation unit 612 generates the assertion and calculates a hash value. When the pre-computation flag is "1" and the pre-computation completion flag is "1", it indicates that pre-computation of the assertion has been completed by the assertion pre-generation unit 621 described later. Therefore, in this case, the assertion generation unit 612 reads out the assertion stored in the storage memory 506 and its hash value. Note that the value of the pre-computation completion flag is reset to “0” when the imaging device is powered off. Here, the assertions generated by the imaging device are exemplified by the assertions listed in the assertion list 701, but other assertions defined in the C2PA standard or arbitrary assertions may be included. Moreover, the assertion generation unit 612 corresponds to an example of a "second calculation means."
[0031] When an assertion is generated, in addition to the character string information defined in the C2PA standard, information about the camera's unique settings and data generated within the camera are used. When the camera-specific data described above is referenced, the assertion parameter list 801 shown in Figure 8 is used. The assertion parameter list 801 lists the settings and data in the imaging device required by each assertion. For example, when a Data Hash Assertion is generated, a hash value of image data is calculated, so image data is registered as the required data. As another example, when an Action Assertion is generated, which indicates the process when C2PA data is generated, only information that C2PA data has been generated is stored, and data such as settings in the imaging device is not required, so nothing is listed.
[0032] The assertion generation unit 612 generates an assertion based on the character string data defined in the C2PA standard as well as the data referenced in the assertion parameter list 801. The generated and read assertion is registered in the assertion store. Note that, although the data listed in the assertion parameter list 801 is exemplified here as the data required to generate an assertion, other data may also be included.
[0033] The assertion hash calculation unit 613 calculates a hash value of a target assertion upon receiving instructions from the assertion generation unit 612 and an assertion pre-generation unit 621 (described later). For the calculation of the hash value, for example, the CPU 508 may be used, or dedicated hardware for performing encryption processing may be used.
[0034] The claim generation unit 614 starts a claim generation process after the assertion generation unit 612 generates a series of assertions listed in the assertion list 701 and calculates a hash value. The claim generation unit 614 stores, in the claim, URI information indicating the location in the assertion store where the assertion is stored and the hash value of the assertion. The claim also includes information specified in the C2PA standard, such as information indicating the entity that generated the claim, information indicating the location of the claim signature, and the format of image data.
[0035] After the claim generation unit 614 completes the claim generation process, the claim signature generation unit 615 generates a claim signature, which is a digital signature for the claim. For example, a digital signature algorithm specified by C2PA is used to generate the claim signature. At the time of C2PA1.0, it is specified that algorithms such as RSASSA-PSS (RSA Probabilistic Signature Scheme), ECDSA (Elliptic Curve Digital Signature Algorithm), and EdDSA (Edwards-curve Digital Signature Algorithm) should be used. For digital signature processing, for example, the CPU 508 may be used, or dedicated hardware for performing encryption processing may be used.
[0036] The manifest generator 616 generates a manifest that stores the assertion store, claims, and claim signature data. The C2PA data writing unit 617 forms data defined by the C2PA standard, including the manifest data generated by the manifest generation unit 616, into C2PA data and writes it into the metadata area of the image data. Note that the position where the C2PA data is written and the method of writing the C2PA data follow the format specified in the C2PA standard.
[0037] The assertion pre-generation unit 621 generates an assertion and calculates a hash value based on a predetermined trigger at a timing other than when the C2PA data generation unit 611 performs the C2PA data generation process. As a specific example, the assertion pre-generation unit 621 may generate an assertion and calculate a hash value when the imaging device is started up (e.g., when the power is turned on) or when an instruction is received from the assertion pre-computation determination unit 624 described later. The assertion pre-generation unit 621 refers to the pre-calculation flag in the assertion list 701 to identify the assertion to be pre-calculated. For example, an assertion in the assertion list 701 with a pre-calculation flag of "1" indicates that the assertion and its hash value can be calculated at a timing other than the timing when the C2PA data generation process is executed. Therefore, the assertion pre-generation unit 621 generates an assertion with a pre-calculation flag of "1" and calculates a hash value. For example, for IPTC Photo Metadata, an assertion is generated based on IPTC data input by the user, so the parameters applied at the time of image capture do not change. Therefore, an assertion targeted at such metadata can be pre-calculated. Note that the assertion parameter list 801 is referred to for data specific to the image capture device used in assertion generation. The generated assertion and its hash value are stored in the storage memory 506. After generating an assertion, the assertion pre-generation unit 621 rewrites the pre-computation completion flag corresponding to the generated assertion to “1” in the assertion list 701. The assertion generation unit 612 is used to generate the assertion, and the assertion hash calculation unit 613 is used to calculate the hash value of the assertion. In the above example, the assertion pre-generation unit 621 refers to the assertion list 701 to determine the assertions to be generated in advance, but there are also cases where an assertion specified by the assertion pre-computation determination unit 624 is to be the target of pre-computation. In this embodiment, the hash value corresponds to an example of a "code" used to verify the authenticity of target data (e.g., an assertion). The assertion corresponds to an example of "partial data" that is included in electronic data that is the target of digital signature processing and that is the target of hash value calculation. The assertion pre-generation unit 621 corresponds to an example of a "first calculation means."
[0038] The set value change detection unit 622 detects a change in a set value of the imaging device. As a specific example, the values of settings related to imaging conditions such as shutter speed, F value, ISO sensitivity, and IPTC data may change due to a user's operation. Therefore, the set value change detection unit 622 may detect a change in the set value when the set value is changed due to a user's operation. In addition, the set value change detection unit 622 may also detect a change in a set value other than the above examples when a change occurs in the set value or data due to a user's operation. For a parameter for which a change in the set value has been detected, the set value change detection unit 622 transmits the type of the parameter to the target assertion identification unit 623.
[0039] The target assertion identifying unit 623 identifies an assertion to be generated by determining whether the parameter about which information has been acquired from the setting value change detection unit 622 is a parameter required for generating an assertion. The assertion parameter list 801 is used to identify the assertion. For example, it is assumed that shutter speed is specified as the parameter for which the setting value change detection unit 622 has detected a change. In this case, the target assertion identifying unit 623 refers to the assertion parameter list 801 and identifies that the Exif Information is an associated assertion. The target assertion identifying unit 623 transmits the identification result of the assertion to be generated to the assertion pre-computation determination unit 624.
[0040] The assertion pre-computation determination unit 624 determines whether or not the assertion transmitted from the target assertion identification unit 623 can be pre-computed. Whether or not the target assertion can be pre-computed is determined by referring to the pre-computation flag in the assertion list 701. If the assertion pre-computation determination unit 624 determines that the assertion can be pre-computed, it transmits the assertion to the assertion pre-generation unit 621 and causes the assertion pre-generation unit 621 to start the process of pre-computing the assertion. For example, if the assertion to be determined is IPTC Photo Metadata, the pre-computation flag in the assertion list 701 is "1". Therefore, in this case, the assertion pre-computation determination unit 624 determines that the target assertion can be pre-computed, and transmits the assertion to the assertion pre-generation unit 621 as a target for pre-computation. As another example, if the assertion to be determined is Exif Information, the pre-computation flag in the assertion list 701 is "0". Therefore, in this case, the assertion pre-computation determination unit 624 determines that the target assertion is not a target for pre-computation, and ends the process. In this way, the assertion pre-computation determining unit 624 determines the timing for performing various calculations (for example, calculation of a hash value) on the assertion transmitted from the target assertion identifying unit 623.
[0041] (process) An example of processing of the imaging device according to this embodiment will be described with reference to FIGS. 9 and 10, focusing in particular on processing for speeding up C2PA data generation processing by pre-calculating assertions.
[0042] First, an example of a process for generating C2PA data when an image is captured by an image capture device will be described with reference to FIG. When the imaging device captures an image based on an instruction from a user, in S901, the image data generating unit 601 generates image data corresponding to the imaging result. In S902, the metadata generating unit 602 generates metadata for the image data generated in S901, and incorporates the metadata into the image data. In S903, the C2PA data generation unit 611 starts the C2PA data generation process for the image data generated in S901 and the metadata generated in S902.
[0043] In S904, the assertion generation unit 612 receives an instruction from the C2PA data generation unit 611 and starts the process of generating the assertions listed in the assertion list 701. In S905, the assertion generation unit 612 refers to the pre-computation flag in the assertion list 701 to determine whether the target assertion can be pre-computed. If the assertion generation unit 612 determines in S905 that the target assertion can be calculated in advance, the process proceeds to S908. On the other hand, if the assertion generation unit 612 determines in S905 that the target assertion cannot be calculated in advance, the process proceeds to S906.
[0044] In S908, the assertion generation unit 612 refers to the pre-computation completion flag of the assertion list 701 to determine whether or not the pre-computation of the target assertion has been completed. If the assertion generation unit 612 determines in S908 that the pre-computation of the target assertion has been completed, the assertion generation unit 612 advances the process to S909. On the other hand, if the assertion generation unit 612 determines in S908 that the pre-computation of the target assertion has not been completed, the assertion generation unit 612 advances the process to S906.
[0045] In S906, the assertion generating unit 612 generates a target assertion. In S907, the assertion hash calculation unit 613 calculates a hash value for the assertion generated in S906.
[0046] On the other hand, in S909, the assertion generation unit 612 reads out the generated assertion and its hash value stored in the storage memory 506.
[0047] In this manner, the assertion generation unit 612 and the assertion hash calculation unit 613 repeatedly execute the processes of S905 to S909 until they complete the generation of a series of assertions listed in the assertion list 701. Then, when the assertion generation unit 612 completes the generation of a series of assertions listed in the assertion list 701, the assertion generation unit 612 advances the process to S910.
[0048] In S910, the claim generation unit 614 generates a claim based on the results of generating a series of assertions in S904 to S909. When the generation of the claim is completed, in S911, the claim signature generating unit 615 generates a claim signature for the claim generated in S910. In S912, the manifest generation unit 616 generates a manifest based on the result of generating the claims in S910 and the result of generating the claim signature in S911. When the C2PA data is completed in this manner, in S913, the C2PA data writing unit 617 writes the C2PA data into the metadata area of the target image data (the image data generated in S901).
[0049] Now, with reference to FIG. 10, an example of assertion pre-computation processing will be described. When the imaging device is powered on, in S1001, the assertion pre-generation unit 621 refers to the assertion list 701 and pre-calculates assertions. In S1002, the setting value change detection unit 622 starts monitoring the setting values of the imaging device. The setting value change detection unit 622 continues to monitor the setting values of the imaging device while the imaging device is powered on. When the set value change detection unit 622 detects a change in the set value, it conveys the changed parameter to the target assertion identification unit 623 in S1003.
[0050] In S1004, the target assertion identifying unit 623 determines whether or not the parameter transmitted from the setting value change detecting unit 622 in S1003 is a parameter related to an assertion. If the target assertion identifying unit 623 determines in S1004 that the target parameter is a parameter related to an assertion, it advances the process to S1005. On the other hand, if the target assertion identification unit 623 determines in S1004 that the target parameter is not a parameter related to an assertion, it ends the processing for the parameter. In this case, the processing of S1005 and S1006 is skipped, and the processing from S1003 onwards is executed again.
[0051] In S1005, the assertion pre-computation determination unit 624 determines whether the target assertion can be pre-computed. If the assertion pre-computation determination unit 624 determines in S1005 that the target assertion can be pre-computed, it advances the process to S1006. On the other hand, if the assertion pre-computation determination unit 624 determines in S1005 that the target assertion cannot be pre-computed, the process for that assertion ends. In this case, the process of S1006 is skipped, and the processes from S1003 onwards are executed again.
[0052] In S1006, the assertion pre-generation unit 621 generates a target assertion and its hash value, and changes the pre-computation completion flag of the generated assertion to "1". In this manner, while the power supply of the imaging device is ON, the series of processes from S1003 to S1006 is repeatedly executed.
[0053] As described above, in this embodiment, the generation of at least some of the assertions in the C2PA data generation and the calculation of the hash value are performed in advance, thereby making it possible to speed up the C2PA data generation process. Note that for assertions that are not subject to pre-calculation, the generation of the assertions and the calculation of the hash value are performed after the start of the C2PA data generation process (in other words, the digital signature process).
[0054] (Variation 1) In the above embodiment, an example of a case where pre-calculation of assertions is performed when a setting value is changed by a user operation is described. In contrast, in this modified example, an example of a case where pre-calculation of assertions is performed with the passage of time as a trigger is described.
[0055] Specifically, in the above-described embodiment, it is assumed that the assertion precalculation is performed mainly when data is updated. In this case, the assertion precalculation process may be performed every time the user changes the settings, so power consumption may be greater depending on the frequency of the setting changes. In consideration of such a situation, the imaging device according to this modified example performs the assertion precalculation process using the passage of time as a trigger. As a specific example, the imaging device may perform a process of regenerating a series of assertions that can be precalculated every time a predetermined period (e.g., one minute) passes. The frequency at which the assertion precalculation is performed in response to the passage of time may be appropriately changed depending on the use case. As a specific example, a period that triggers the assertion precalculation may be set in advance, or the period may be changed based on an instruction from the user.
[0056] (Variation 2) In the above-described embodiment, an example of a case where pre-calculation of assertions is performed when the imaging device is turned on has been described. In contrast, in this modified example, an example of a case where pre-calculation of assertions is performed when the imaging device returns from sleep mode will be described.
[0057] Specifically, when a so-called sleep function is provided in the imaging device, the imaging device can turn off some functions while retaining data, etc. (transition to a so-called sleep state). When transitioning to this sleep state, assertions precalculated at power-on may be retained, but a situation in which some settings are changed by operating a physical button or dial during sleep may also be assumed. In consideration of such a situation, the imaging device according to this modified example performs precalculation of assertions when returning from the sleep state. By applying such control, for example, even if some settings have been changed in the sleep state, precalculation of assertions is performed again when returning from the sleep state, making it possible to retain assertions that match the latest state.
[0058] (Variation 3) In the above embodiment, an example of a case where pre-calculation of assertions is performed when a setting value is changed by a user operation is described. In this modified example, an example of a case where pre-calculation of assertions is performed when data is updated due to data transmission from the outside is described.
[0059] Specifically, GPS (Global Positioning System) data is an example of data referenced by an assertion. The GPS data is used to identify the location information of a target based on data transmitted from a satellite. Therefore, the GPS data is updated at the timing when data is received from a satellite. In view of this situation, the imaging device according to this modification executes pre-calculation of assertions when data is updated in association with data transmission from the outside. By applying such control, even if some data is updated in association with data transmission from the outside, pre-calculation of assertions is performed when the data is updated, making it possible to hold assertions that match the latest state.
[0060] <Second embodiment> A second embodiment of the present disclosure will be described below. In this embodiment, components substantially similar to those in the first embodiment are denoted by the same reference numerals as those in the first embodiment. In this embodiment, the description will focus on the parts different from the first embodiment described above, and detailed descriptions of the parts substantially similar to those in the first embodiment will be omitted.
[0061] In the first embodiment described above, the assertions to be pre-calculated and the parameters included in the assertions were determined based on the pre-stored assertion list 701 and assertion parameter list 801. In the present embodiment, an example will be described in which the assertions to be pre-calculated and the parameters included in the assertions are changed when the imaging mode of the imaging device is changed.
[0062] Some imaging devices, such as so-called digital cameras, have a function of changing an operation mode (imaging mode) related to imaging when imaging a subject. In such imaging devices, for example, by changing the imaging mode, it is determined whether the parameters related to imaging are changed based on user input or by control of the program of the imaging device. In such cases, the timing at which the parameters are determined may change depending on the imaging mode. In view of such a situation, the imaging device according to this modification changes the assertions to be pre-calculated and the parameters included in the assertions depending on the imaging mode.
[0063] (Functional configuration) 11, an example of the functional configuration of the imaging device 500 according to this embodiment will be described, focusing particularly on the functional configuration realized by software executed in the imaging unit 509. The imaging unit 509 according to this embodiment includes an imaging mode change detection unit 1101, an assertion update unit 1102, an assertion parameter pre-calculation confirmation unit 1103, an assertion parameter pre-calculation comparison unit 1104, and an assertion division unit 1105. The imaging unit 509 according to this embodiment differs from the imaging unit 509 according to the first embodiment in that it includes these components.
[0064] The imaging mode change detection unit 1101 detects a change in the imaging mode of the imaging device. When the imaging mode change detection unit 1101 detects a change in the imaging mode, the imaging mode change detection unit 1101 transmits information on the changed imaging mode to the assertion update unit 1102. When the change in the imaging mode is transmitted, the assertion update unit 1102 starts the process of updating the assertion list 701 and the assertion parameter list 801 according to the changed imaging mode. The update process by the assertion update unit 1102 is performed for each assertion listed in the assertion list 701. The assertion parameter pre-computation checking unit 1103 checks the current pre-computation flag for each parameter by referring to the assertion list 701 and the assertion parameter list 801 .
[0065] An example of the assertion parameter pre-calculation list 1201 will be described with reference to Fig. 12. The assertion parameter pre-calculation list 1201 shows pre-calculation flags of parameters referenced in Exif information in auto mode. Therefore, by referring to the assertion list 701 and the assertion parameter list 801, it is possible to check the pre-calculation flags of each parameter required for assertion generation. As a specific example, the pre-calculation flag of the Exif information is set to "0" in the assertion list 701. Therefore, the parameters of the Exif information described in the assertion parameter list 801, such as the image capture time, the shutter speed, the F-number, the ISO sensitivity, and the pre-calculation flag of the data, are set to "0".
[0066] The assertion parameter pre-calculation comparison unit 1104 compares whether or not the current assertion parameters match the pre-calculation flags of the assertion parameters for each imaging mode. As a specific example, when making the comparison, the assertion parameter pre-calculation comparison unit 1104 refers to an assertion parameter pre-calculation list 1201 shown in Fig. 12 and a pre-calculation flag list 1301 for each imaging mode shown in Fig. 13. The pre-calculation flag list 1301 for each imaging mode describes whether or not a parameter specific to the imaging device for each imaging mode can be pre-calculated.
[0067] For example, the imaging mode may be an auto mode or a manual mode. In the auto mode, parameters related to imaging conditions such as shutter speed, F-number, and ISO sensitivity are controlled by a program of the imaging device, and the target parameters are determined at the time of imaging. On the other hand, in the manual mode, the parameters related to the imaging conditions change due to an operation by the user, and the target parameters are determined at the time of input by the user. Therefore, in the pre-calculation flag list 1301 by imaging mode, the pre-calculation target flag of parameters such as shutter speed, F-number, and ISO sensitivity is set to "1" as a value that can be pre-calculated in the manual mode. On the other hand, in the auto mode, the pre-calculation target flag of the above parameters is set to "0" as a value that is determined at the time of imaging. On the other hand, even if the imaging mode such as the imaging time is changed, the pre-calculation target flag of parameters that are not subject to pre-calculation remains "0". In the above, the auto mode and the manual mode are exemplified as the imaging modes, but other imaging modes may be included. In addition, in the above, the parameters related to the imaging conditions are exemplified as the parameters that change depending on the imaging mode, but other parameters related to imaging may be included.
[0068] The assertion parameter pre-calculation comparison unit 1104 compares a series of pre-calculation flags between the assertion parameter pre-calculation list 1201 and information corresponding to the currently set imaging mode described in the imaging mode-specific pre-calculation flag list 1301. If the series of pre-calculation flags to be compared do not match, the assertion parameter pre-calculation comparison unit 1104 causes the assertion division unit 1105, which will be described later, to perform an update process of the assertion parameters. As a specific example, in the case of Exif information in manual mode, the pre-calculation flags for the shutter speed, F-number, ISO sensitivity, and GPS data do not match the assertion parameter pre-calculation list 1201. Therefore, in this case, the assertion parameter is subject to update processing.
[0069] The assertion division unit 1105 divides and registers assertions based on the precalculation flags by referring to the precalculation flag list by imaging mode 1301. As a specific example, in the precalculation flag list by imaging mode 1301 for Exif information shown in Fig. 13, precalculation flags of "0" and "1" are mixed. The assertion division unit 1105 divides the assertions based on the precalculation flags. As a result, the assertion division unit 1105 generates an "Exif information" assertion with a precalculation flag of "0" and an "Exif information 2" assertion with a precalculation flag of "1". With this division of the assertions, the assertion list 701 and the assertion parameter list 801 are updated.
[0070] 14(A) and 14(B) show examples of an updated assertion list 1401 and assertion parameter list 1402. As described above, the "Exif information" assertion and the "Exif information 2" assertion are registered in each of the assertion lists 1401. In addition, parameters are also assigned to the assertion parameter list 1402 according to the pre-calculation flag.
[0071] (process) An example of processing of the imaging device according to this embodiment will be described with reference to FIG. 15, focusing in particular on assertion update processing accompanying a change in imaging mode by the imaging unit 509. In S1501, the image capture mode change detection unit 1101 detects a change in the image capture mode of the image capture device. In S1502, the assertion update unit 1102 receives the change in the imaging mode and starts an update process for a series of assertions. In S1503, the assertion parameter pre-calculation checking unit 1103 checks whether the parameters referred to by the assertion in the imaging mode before the change can be pre-calculated.
[0072] In S1504, the assertion parameter pre-calculation comparison unit 1104 determines whether or not the pre-calculation flags of the series of parameters between the assertions corresponding to before and after the change in the imaging mode all match. If the assertion parameter pre-calculation comparison unit 1104 determines in S1504 that the pre-calculation flags for each of the series of parameters all match, it executes the processes from S1503 onwards again with the next assertion as the confirmation target. On the other hand, if it is determined that at least some of the pre-computation flags of the series of parameters between the assertions corresponding to before and after the change of the imaging mode do not match, the process proceeds to S1505.
[0073] In S1505, the assertion dividing unit 1105 divides the target assertion based on the pre-computation flags of each of a series of parameters referenced by the assertion. In S1506, the assertion division unit 1105 updates the assertion list to be generated based on the result of the assertion division in S1505.
[0074] In this manner, the imaging unit 509 executes the processes of S1503 to S1506 for each of the series of assertions to be generated. Then, when the imaging unit 509 completes the processes of S1503 to S1506 for each of the series of assertions to be generated, it ends the series of processes shown in FIG. By applying the above-described control, a process of changing assertions that can be pre-computed and parameters included in the assertions according to the imaging mode is realized.
[0075] <Other embodiments> The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0076] Furthermore, various modifications may be applied within the scope of the basic technical concept of the invention according to the present disclosure described above in each embodiment. For example, in the first and second embodiments described above, a plurality of assertions that are difficult to pre-calculate are generated before the start of digital signature processing, but these parameters that are difficult to pre-calculate may be grouped together to generate an assertion. As a specific example, parameters other than the parameters that are determined to be pre-calculatable may be grouped together into parameters whose hash values are calculated at the time of image capture (i.e., other parameters that are difficult to pre-calculate), and then an assertion may be generated. As another example, when calculating a hash value, encryption hardware may be used, and overhead may occur due to access to the hardware. In order to reduce such overhead, a mechanism for reducing the number of hash value calculations may be applied. As a specific example, a parameter that is difficult to precalculate may be included in Data hash Assertion and calculated, thereby reducing the number of precalculations. Data hash assertion stores a hash value calculated for data including image data itself, and includes information on the range in which the hash value is calculated. For example, in the manual mode flag of the precalculation flag list 1301 by image capture mode illustrated in FIG. 13, only the image capture time cannot be precalculated among the parameters included in Exif Information. By including this image capture time in Data hash assertion, it becomes possible to precalculate all the parameters included in Exif Information. By applying the above-mentioned control, it is expected to have the effect of reducing the number of hash value calculations.
[0077] In addition, in each of the above-mentioned embodiments, the technology according to the present disclosure has been described by focusing mainly on the process related to the calculation of assertions for C2PA data, but the application of the technology is not limited to this. That is, when a digital signature is applied to the target data, the technology according to the present disclosure described above can be applied under a situation in which a predetermined calculation such as a calculation of a hash value is performed individually for multiple partial data (e.g., assertions). In addition, as is clear from the above-mentioned characteristics, the technology according to the present disclosure has a high affinity with a use case in which a situation in which data that can be pre-calculated may be included in at least a part of multiple partial data included in the data to be processed is assumed. In addition, in each of the above-mentioned embodiments, an example of a case where a hash value is used as a code used to verify the authenticity of data has been described, but as long as the verification can be realized, the code used for the verification is not limited to only a hash value. In particular, in a situation where a code that tends to require a longer calculation time is used, the technology disclosed herein can be applied to improve the speed of digital signature processing associated with pre-calculation of the code.
[0078] The disclosure of the present embodiment also includes the following configurations, methods, and programs. (Configuration 1) An information processing device characterized by having a determination means for determining the timing of calculating a code used to verify the authenticity of each of multiple partial data included in electronic data to be subject to digital signature processing, and a first calculation means for pre-calculating the code, which is determined to be able to be pre-calculated at a timing before the start of the digital signature processing based on the result of the determination of the timing by the determination means, at the same timing. (Configuration 2) The information processing device according to configuration 1, wherein the determination means determines the timing for calculating the code for the partial data when at least a portion of the information contained in the partial data changes due to input from a user. (Configuration 3) The information processing device according to configuration 1 or 2, characterized in that the determination means determines the timing for calculating the code for the partial data when at least a portion of the information contained in the partial data changes due to data transmission from the outside. (Configuration 4) The information processing device according to any one of configurations 1 to 3, characterized in that the determination means determines the timing for calculating the code for the partial data contained in the electronic data when the information processing device is powered on. (Configuration 5) The information processing device described in any one of configurations 1 to 4, characterized in that the determination means determines the timing to calculate the code for the partial data contained in the electronic data when the information processing device returns from a sleep state. (Configuration 6) The information processing device according to any one of configurations 1 to 5, characterized in that the determination means determines the timing for calculating the code for the partial data contained in the electronic data every time a predetermined period of time elapses. (Configuration 7) An information processing device as described in any one of configurations 1 to 6, characterized in that the digital signature processing is performed on a second code used to verify the authenticity of the data, which is generated for data including a first code calculated by the first calculation means for the partial data. (Configuration 8) An information processing device according to any one of configurations 1 to 7, characterized in that it has a second calculation means for calculating, based on the result of the determination of the timing by the determination means, a code other than the code determined to be capable of being pre-calculated at a timing before the start of the digital signature processing, at a timing after the start of the digital signature processing. (Configuration 9) An information processing device according to configuration 8, characterized in that it has a splitting means for splitting the partial data into first partial data including information for which the code can be pre-calculated from a series of information included in the partial data when the operating mode of the information processing device is changed, and second partial data including information other than the first partial data. (Configuration 10) The information processing device described in configuration 9, characterized in that the second calculation means combines information other than the information that allows pre-calculation of the code among a series of information contained in each of the multiple partial data into one partial data, and calculates the code using the partial data as the target. (Configuration 11) The information processing device according to any one of configurations 1 to 10, wherein the partial data is at least one of image data, metadata of the image data, and data relating to image capturing conditions. (Configuration 12) The information processing device according to configuration 11, wherein the information processing device is an imaging device that generates the image data in accordance with an imaging result. (Configuration 13) The information processing device according to any one of configurations 1 to 11, characterized in that a hash value is applied as the code. (Method 1) A method for controlling an information processing device, comprising: a determination step for determining the timing for calculating a code used to verify the authenticity of each of a plurality of partial data included in electronic data to be subject to digital signature processing, and a first calculation step for pre-calculating, at the timing before the start of the digital signature processing, the code that is determined to be able to be pre-calculated based on the result of the determination of the timing in the determination step. (Program 1) A program for causing a computer to function as an information processing device, comprising: a determination means for determining the timing for calculating a code used to verify the authenticity of each of a plurality of partial data contained in electronic data to be subjected to digital signature processing, and a first calculation means for pre-calculating, at the timing determined to be possible to pre-calculate at a timing before the start of the digital signature processing based on the result of the determination of the timing by the determination means. [Explanation of symbols]
[0079] 500 Imaging device 612 Assertion Generation Unit 613 Assertion Hash Calculation Unit 621 Assertion Pre-Generation Unit 624 Assertion Pre-computation Judgment Unit
Claims
1. a determination means for determining a timing for calculating a code used to verify the authenticity of each of a plurality of partial data included in the electronic data to be subjected to digital signature processing; a first calculation means for pre-calculating, at a timing before the start of the digital signature processing, the code that is determined to be pre-calculatable at the timing based on a result of the determination of the timing by the determination means; An information processing device comprising:
2. 2 . The information processing apparatus according to claim 1 , wherein the determining means determines the timing for calculating the code for the partial data when at least a part of information included in the partial data has changed due to an input from a user.
3. 2 . The information processing device according to claim 1 , wherein the determination means determines the timing for calculating the code for the partial data when at least a part of information included in the partial data changes due to data transmission from an external source.
4. 2. The information processing apparatus according to claim 1, wherein said determination means determines the timing for calculating said code for said partial data included in said electronic data when said information processing apparatus is powered on.
5. The information processing apparatus according to claim 1 , wherein the determining means determines the timing for calculating the code for the partial data included in the electronic data when the information processing apparatus returns from a sleep state.
6. The information processing apparatus according to claim 1 , wherein the determining means determines the timing for calculating the code for the partial data included in the electronic data every time a predetermined period of time elapses.
7. 2. The information processing device according to claim 1, wherein the digital signature processing is performed on a second code used to verify authenticity of the data, the second code being generated for data including a first code calculated by the first calculation means for the partial data.
8. 2. The information processing device according to claim 1, further comprising a second calculation means for calculating, based on a result of the determination of the timing by said determination means, a code other than the code determined to be capable of being pre-calculated at a timing before the start of the digital signature processing, at a timing after the start of the digital signature processing.
9. 9. The information processing device according to claim 8, further comprising a division means for dividing the partial data into first partial data including information for which the code can be pre-calculated among a series of information included in the partial data, and second partial data including information other than the first partial data, when the operating mode of the information processing device is changed.
10. 10. The information processing device according to claim 9, wherein the second calculation means combines information other than information for which the code can be pre-calculated, among a series of information contained in each of the plurality of partial data, into one partial data, and calculates the code using the partial data as a target.
11. The information processing apparatus according to claim 1 , wherein the partial data is at least one of image data, metadata of the image data, and data relating to image capturing conditions.
12. The information processing device according to claim 11, wherein the information processing device is an imaging device that generates the image data in accordance with an imaging result.
13. The information processing device according to claim 1 , wherein a hash value is applied as the code.
14. A method for controlling an information processing device, comprising: a determining step of determining a timing for calculating a code used to verify the authenticity of each of a plurality of partial data included in the electronic data to be subjected to digital signature processing; a first calculation step of pre-calculating, at a timing before the start of the digital signature processing, the code that is determined to be pre-calculatable at the timing based on a result of the determination of the timing in the determination step; 2. A method for controlling an information processing device, comprising:
15. Computer, a determination means for determining a timing for calculating a code used to verify the authenticity of each of a plurality of partial data included in the electronic data to be subjected to digital signature processing; a first calculation means for pre-calculating, at a timing before the start of the digital signature processing, the code that is determined to be pre-calculatable at the timing based on a result of the determination of the timing by the determination means; A program for causing an information processing device to function, comprising:
Citation Information
Patent Citations
Methods to reduce the latency of generating ECDSA signatures using pre-computation
CN104753678B
Apparatus and method for generating key
CN105281898A
A fast method for generating digital signatures using SM2 public-key cryptography
CN109660351B
Compiler
JP1990039241A
Information processor
JP1997091139A
Cited By
Imaging device, method for controlling same, program, and storage medium
WO2026094456A1
