Method for distributing hierarchical structure keys, key distribution server, program, and cryptographic communication system
The key distribution method for hierarchical structures addresses inefficiencies in sharing large-capacity keys by using URL-associated tickets to securely share keys without storing the structures or tickets, reducing data overhead and enhancing security.
Patent Information
- Application Number
- JP2026214190
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2026-09-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-09-29
AI Technical Summary
Existing cryptographic systems face inefficiencies in sharing and managing large-capacity keys configured as hierarchical structures, as they require bundling with encrypted data or pre-sharing, which increases communication overhead and storage demands, and centralized storage concentrates security risks.
A key distribution method that configures keys as hierarchical structures, associating them with a URL and using tickets containing structural determination information to reproduce the same key without storing the hierarchical structures or tickets, ensuring secure sharing between encryption and decryption sides.
This method reduces the data volume added to encrypted data, prevents key structure inference, and secures key distribution by varying structural elements each access, minimizing storage and security risks while maintaining key synchronization.
Smart Images

Figure 0007955550000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention belongs to the technical field related to the distribution of keys used in cryptographic processing, and more particularly, to a key distribution method in which a key is configured as a hierarchical structure in which a plurality of structural elements are arranged hierarchically, and the key is distributed to an encryption side and a decryption side using a key URL for identifying the hierarchical structure and a ticket including structure determination information for determining the values of the structural elements of the hierarchical structure.
[0002] Furthermore, the present invention uses a network structure of URL access and responses thereto as a key distribution mechanism, and relates to a key distribution technology that allows a key configured as a large-capacity hierarchical structure to be shared without being included in encrypted data and without requiring pre-sharing between the encryption side and the decryption side. [Background Art]
[0003] In conventional cryptosystems, it is assumed that keys used for encryption and decryption are held as fixed-length numerical strings, and that the keys are safely delivered and managed as secret information. The data amount of a key in a common key cryptosystem is about several tens of bytes, and the data amount of a key in a public key cryptosystem that has been widely used conventionally is generally about several kilobytes or less. Although some cryptosystems, such as code-based cryptosystems, use public keys that reach several hundred kilobytes, even in these cryptosystems, the key is held as a fixed value determined as a value, and the key shared between the encryption side and the decryption side through key delivery is a fixed-length numerical string.
[0004] For this reason, key delivery has required mechanisms that rely on mathematical security, such as public key cryptosystems, key exchange protocols, and session key generation methods. All of these assume that the key is a small fixed value and can be kept secret.
[0005] On the other hand, Patent Document 1 discloses an outer layer cryptographic processing method that takes ciphertext generated by an existing cryptographic scheme as input and operates in the outer processing layer without referring to the internal specifications of the cryptographic scheme. This method maintains an outer layer key state S dedicated to outer layer processing, derives boundary information b_i based on the outer layer key state S to divide the input data sequence into variable-length segments seg_i, constructs an outer layer packet by applying a reversible transformation based on the outer layer key state S, and updates the outer layer key state S with an outer layer code s_i derived from the segments seg_i.
[0006] In the method described in Patent Document 1, the encryption side and the decryption side share the same initial outer layer key state S0, and through deterministic regeneration starting from the initial outer layer key state S0, the decryption side reproduces the same boundary information b_i and internal structure as the encryption side, even though the output data sequence does not contain information to identify the length, delimiter position, and internal structure of the outer layer packet. In this specification, such an encryption method is referred to as an outer layer packet structure concealment type encryption method, and its definition will be described later.
[0007] The inventor of the present application has separately filed a patent application for the implementation of an encryption processing method that conceals the outer layer packet structure (Japanese Patent Application No. 2026-193111, which has the same applicant and inventor as the present application, and which had not been published or included in a patent gazette at the time of filing of the present application). In this implementation, the initial outer layer key state S0 is configured as composite key data including an initial sequence of boundary information, a group of candidate bijective maps used for reversible transformations, an initial sequence of information specifying the internal structure of the outer layer packet, and exclusion conditions and lower bounds of input values used for updating the outer layer key state S.
[0008] According to the inventor's research, such key data can be configured not as a single numerical sequence, but as a structure that hierarchically holds multiple sequences and conditional information. The contents of Japanese Patent Application No. 2026-193111 described in the previous paragraph and the results of the inventor's research described in this paragraph are presented to explain the problem of this application and do not constitute publicly known technology at the time of filing.
[0009] Furthermore, Patent Document 1 only describes a process in which the outer layer key state S is stored as a fixed-length or variable-length information sequence, boundary information b_i is derived based on this, the data is divided into variable-length segments, and a reversible transformation is applied and the outer layer key state S is updated. It does not describe including the candidate group of bijective maps, exclusion conditions, and lower bounds of input values in the initial outer layer key state S0, configuring the initial outer layer key state S0 as a hierarchical structure in which multiple structural elements are arranged hierarchically, or the amount of data in the said structure.
[0010] On the other hand, in recent years, internet communications have commonly involved URL access, responses thereto, delivery via content delivery networks (CDNs), and the exchange of structured data in JSON and other hierarchical data formats as defined in Non-Patent Document 1. However, there is no technology that utilizes these network structures to deliver large-capacity keys configured as hierarchical structures with multiple structural elements arranged hierarchically, and that, while returning some of the values of the structural elements of the hierarchical structure differently each time it is delivered, reproduces the same key only when necessary from the common part of the hierarchical structure held in advance by the key delivery server and information that identifies those some values, which is smaller in data size than the key itself.
[0011] Furthermore, Patent Document 2 discloses a technology related to authentication management, and Patent Document 3 discloses a technology for encrypting a binary sequence by dividing it into variable-length segments using a key and converting it. However, neither of these documents discloses a configuration in which the key is configured as a hierarchical structure in which multiple structural elements are arranged hierarchically, and a different hierarchical structure is returned for each access to a key URL that identifies the hierarchical structure, and a ticket containing structure determination information for identifying the values of the structural elements is issued, and the same hierarchical structure is reproduced only for access accompanied by such a ticket.
[0012] Furthermore, these documents do not disclose a configuration in which the key distribution server does not retain any issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them, but instead reproduces the same hierarchical structure from the structure determination information contained in the ticket and the underlying structure of the hierarchical structure associated with the key URL.
[0013] Furthermore, there is a known method, such as the session ticket specified in Non-Patent Document 2, in which the server encrypts key and other state information using a private key it holds, and has the requester hold it as a ticket, and the server restores the state information from the ticket without maintaining the state itself. However, in this method, what is restored from the ticket is the information itself that is encrypted and stored in the ticket, and the ticket itself holds the entire key, although it requires decryption with the server's private key.
[0014] Therefore, the tickets of this method do not contain structural determination information as defined herein, that is, information that constitutes a hierarchical structure on its own, and does not contain information that determines the values of all structural elements of the hierarchical structure only when combined with the underlying structure held by the key distribution server. Furthermore, the data volume of the tickets of this method is determined according to the total amount of information in the key, even after processing such as compression, and is not determined solely according to the portion of the key that is determined to have a different value for each access.
[0015] This method involves the key distribution server maintaining the underlying structure that forms the majority of the key, associating it with the key URL. It then issues structure determination information, which identifies only the values of the structural elements determined to be different for each access, in a ticket with a data volume smaller than the data volume of the hierarchical structure. However, it does not reproduce the same hierarchical structure from the structure determination information and the underlying structure. [Prior art documents] [Patent Documents]
[0016] [Patent Document 1] Patent No. 7923614 [Patent Document 2] Japanese Patent Publication No. 2020-24603 [Patent Document 3] U.S. Patent Application Publication No. 2004 / 0052367 [Non-patent literature]
[0017] [Non-Patent Document 1] RFC8259 (The JavaScript Object Notation (JSON) Data Interchange Format) [Non-Patent Document 2] RFC5077 (Transport Layer Security (TLS) Session Resumption without Server-Side State) [Overview of the Initiative] [Problems that the invention aims to solve]
[0018] Traditional encryption methods assumed that the keys used for encryption and decryption were treated as fixed-length numerical sequences, and that these keys were securely delivered as confidential information. This assumption was based on the fact that the small size of the keys made secrecy and prior sharing practical.
[0019] In contrast, in cryptographic schemes where the key is configured as a hierarchical structure, as considered by the inventors of this application, including the case where the initial outer layer key state S0 is configured as a hierarchical structure as described above, the amount of data is significantly larger compared to conventional fixed-length keys because the key contains multiple sequences, candidate mapping groups, and conditional information. While the amount of data for a key in conventional symmetric-key cryptography is around several tens of bytes, the amount of data for a key configured as a hierarchical structure reaches several tens of kilobytes.
[0020] For this reason, it is not practical in terms of communication efficiency to transmit the key by bundling it with the encrypted data. The size of the encrypted data is dominated by the data volume of the key, and when a short plaintext is encrypted, most of the encrypted data will be occupied by the key. In addition, it is also impractical to share and manage the key in advance between the encryption side and the decryption side, since distribution and storage of several tens of kilobytes are required each time the key is updated.
[0021] That is, there has been a problem that there is no means for synchronizing a large-capacity key configured as a hierarchical structure between the encryption side and the decryption side without bundling the key with the encrypted data and without requiring pre-sharing.
[0022] To address this problem, a configuration can be considered in which the key is held in a distribution server, and only an identifier indicating the key is included in the encrypted data. However, with this configuration, the key distribution server needs to continue to hold the issued keys. Since the data volume of a key is several tens of kilobytes, the held volume increases in proportion to the number of issues, and if the key distribution server is compromised, all held keys are leaked at once. Centralized storage of keys in one place does not solve the key distribution problem, but only concentrates the risks.
[0023] Furthermore, since the key is placed on the distribution server and can be acquired from the outside, it is desirable that the location and identity of the key are not known to a third party. The conventional technology does not have a viewpoint of preventing a third party from determining that the distributed key is a key.
[0024] The present invention aims to enable the sharing of the same key between the encrypting and decrypting sides without including the key with encrypted data and without sharing the key in advance, by configuring the key as a hierarchical structure in which multiple structural elements are arranged hierarchically, associating the hierarchical structure with a key URL, and using a ticket that includes structural determination information that determines the values of the structural elements of the hierarchical structure. Furthermore, in a preferred embodiment, the present invention aims to achieve this sharing without the key distribution server having to retain any of the issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them.
[0025] Furthermore, when a key is structured as a hierarchical structure, the format of the information used to identify the values of its structural elements can be determined in various ways by combinations of encoding schemes, redundancy schemes, arithmetic schemes, masking schemes, digit selection schemes, and digit ignoring schemes. In other words, information pointing to the same structural element's value can take on multiple different forms. However, conventional technologies do not utilize this diversity to prevent third parties from uniquely estimating the identity of the distributed key.
[0026] Furthermore, if the information pointing to a key is limited to a single, fixed format, it would give a third party who knows that format a clue to access the location and content of the key. Conventional key distribution systems do not have a configuration in which the information pointing to the values of the structural elements of the same key can take multiple different formats, nor a configuration in which the format differs for each key.
[0027] In addition to the above-mentioned objectives, the present invention also aims to provide, in a preferred embodiment, a key distribution method in which a third party cannot determine the location and identity of the distributed key.
[0028] In other words, the aim is to prevent third parties from reaching the location of the key, and even if they obtain such a response, they will not be able to determine that it is a key, by placing the key URL under a setting that prevents it from being enumerated from the outside, and by returning the response to access to the key URL in the same data format as data used for purposes other than keys. [Means for solving the problem]
[0029] According to the present invention, a key distribution server configures a key as a hierarchical structure in which multiple structural elements are arranged hierarchically, and associates it with a key URL that identifies the hierarchical structure. In this specification, this step is referred to as the configuration step.
[0030] When the key distribution server receives an access request to the key URL, it determines whether or not the access is accompanied by a ticket. In this specification, this step is referred to as the determination step. The following processing branches according to the result of this determination.
[0031] For access to the key URL without a ticket, the key distribution server returns a hierarchical structure in which at least some of the structural elements are determined to be different values for each access, and issues a ticket containing structural determination information to identify the determined values, and returns it to the requester of the access. In this specification, this step is referred to as the first step.
[0032] For access to the key URL associated with the ticket, the key distribution server determines the values of the structural elements based on the structural determination information contained in the ticket, thereby reconstructing and returning the same hierarchical structure as the one returned when the ticket was issued. In this specification, this step is referred to as the second step.
[0033] In this second step, the structural elements whose values are determined based on the structural determination information refer to the structural elements whose values are determined to be different for each access in the first step, i.e., the fluctuating elements described later. The values of other structural elements are those that the key distribution server has in advance as not changing with each access, or are uniquely derived from the key URL itself, and are not determined solely by the structural determination information.
[0034] The encrypted data generated using the hierarchical structure includes the ticket, but does not include the hierarchical structure itself or any information for identifying the values of the structural elements, except for the information contained in the ticket.
[0035] In other words, the key information that can be obtained from the encrypted data is limited to the information contained in the ticket, and the structural determination information contained in the ticket does not constitute a hierarchical structure on its own, but only when combined with the underlying structure of the hierarchical structure held by the key distribution server, or with structural elements uniquely derived from that underlying structure and the key URL itself, does it determine the values of all structural elements of the hierarchical structure. The amount of data in the ticket is smaller than the amount of data in the hierarchical structure.
[0036] The decryption side extracts the ticket from the encrypted data and, by accessing the key URL with the ticket, obtains the same hierarchical structure as during encryption and performs decryption.
[0037] As a result, the key, which is configured as a large-capacity hierarchical structure, is shared between the encrypting and decrypting sides without being bundled with the encrypted data or shared in advance. Furthermore, according to the preferred embodiment described above, this sharing is achieved without the key distribution server having to retain any of the issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them.
[0038] In a preferred embodiment, the structure determination information is information for replacing at least some of the values of the structural elements included in the hierarchical structure with values specified by the structure determination information.
[0039] In a preferred embodiment, the structure determination information is generated based on a combination of multiple structure values included in the hierarchical structure.
[0040] In a preferred embodiment, the structure determination information is a value consisting of multiple digits, and the possible values for each digit are defined by a set of valid and invalid values included in the hierarchical structure.
[0041] In a more preferred embodiment, the structure determination information is included in the ticket, so that the key distribution server does not retain or refer to the returned hierarchical structure, the issued ticket, or any of the auxiliary information stored to reproduce them, and instead reproduces the hierarchical structure based on the structure determination information included in the ticket and the underlying structure of the hierarchical structure associated with the key URL.
[0042] In a more preferred embodiment, the key distribution server, upon access accompanied by a ticket, determines whether the values contained in the ticket conform to the conditions defined by the hierarchical structure, and if they do not conform, it does not reproduce the hierarchical structure.
[0043] In a more preferred embodiment, the hierarchical structure is returned in the same data format as data used for purposes other than keys, as a response to access to the key URL, and the response does not include information indicating that the hierarchical structure is a key used for cryptographic processing.
[0044] In a preferred embodiment, the structural element includes information that defines the division points of the data to be encrypted, information that defines the bit arrangement of the data to be encrypted, information that defines the reversible transformation applied during encryption, and information that defines the progress of the reversible transformation.
[0045] In a preferred embodiment, the hierarchical structure is represented in one of the data formats JSON, HTML, XML, YAML, or TOML, or in another data format that can similarly represent the hierarchical relationships of structural elements, and the key URL is an identifier specified using one of the URL schemes HTTP, HTTPS, FTP, FTPS, or SFTP, or in another URL scheme that can be configured to prevent external retrieval of a list of directories or namespaces containing the key URL.
[0046] In a preferred embodiment, the ticket includes as structural elements a ticket identifier that identifies the ticket, a reference that indicates the key URL, information indicating the time of issuance of the ticket, the structure determination information, information indicating the progress of the cryptographic process, and a flag indicating that the ticket is embedded in the encrypted data, wherein the structure determination information is a value generated based on the internal structure values of the hierarchical structure and is not a signature value generated by the private key.
[0047] In a preferred embodiment, the ticket is embedded within the encrypted data, and the key URL is configured to prevent external retrieval of a list of directories or namespaces containing the key URL.
[0048] In a more preferred embodiment, the cryptographic process is a method in which the decryption side reproduces the same division position and internal structure as at the time of encryption, even though the encrypted data does not contain information for identifying the division position and internal structure of the encrypted data, by deterministic regeneration starting from the same initial key state shared by the encryption side and the decryption side, and the hierarchical structure is used as the initial key state. In this embodiment, the structure determination information defines the initial value of the initial key state by determining the value of the structural element that holds the progress state included in the hierarchical structure.
[0049] Furthermore, the present invention provides a key distribution server that implements the above-described key distribution method. The key distribution server comprises: a key configuration unit that configures a key as a hierarchical structure in which a plurality of structural elements are arranged hierarchically and associates this with a key URL that identifies the hierarchical structure; an access determination unit that determines whether or not access to the key URL is accompanied by a ticket; a first return unit that, for access without a ticket, returns a hierarchical structure in which at least some of the values of the structural elements are determined to be different values for each access; a ticket issuing unit that issues a ticket containing structure determination information for identifying the determined values and having a data amount smaller than the data amount of the hierarchical structure; and a second return unit that, for access with a ticket, determines the values of the structural elements based on the structure determination information contained in the ticket, thereby reproducing and returning the same hierarchical structure as the one returned when the ticket was issued.
[0050] Here, the structural elements whose values are determined by the second return unit based on the structural determination information are the structural elements whose values are determined to be different for each access in the first return unit, i.e., the fluctuating elements described later. The values of other structural elements are either held in advance by the key distribution server as not changing with each access, or are uniquely derived from the key URL itself.
[0051] In a preferred embodiment of the key distribution server, the responses returned by the first return unit and the second return unit are in the same data format as data used for purposes other than keys, and the responses do not contain any information indicating that the responses contain keys. In this embodiment, a third party who receives the response cannot determine whether it contains a key to be used for cryptographic processing or is merely structured data.
[0052] Furthermore, according to the present invention, a program is provided for causing a computer to execute the above-described key distribution method. The program causes the computer to execute the configuration step, the determination step, the first step, and the second step.
[0053] The program may cause the computer to perform one or more of the processes described above, namely, replacement with a value specified by the structure determination information, generation of structure determination information based on a combination of multiple structure values, definition of the value of each digit by a set of valid and invalid values, reproduction without retaining or referencing the returned hierarchical structure, the issued ticket, or any of the auxiliary information stored to reproduce them, determination of the conformity of the values contained in the ticket and termination of reproduction in the case of non-conformity, and return of a response in the same data format as the data used for purposes other than keys.
[0054] The program may also cause a computer to perform each of the above steps in such a way that it handles a hierarchical structure, a key URL, and a ticket relating to each of the above preferred embodiments, i.e., a hierarchical structure that includes as structural elements information that determines the division position, information that determines the bit arrangement, information that determines the reversible transformation, and information that determines the progress of the reversible transformation, a hierarchical structure expressed in a predetermined data format, a key URL specified by a predetermined URL scheme, a ticket containing predetermined structural elements, a ticket embedded within encrypted data, and a hierarchical structure used as the initial key state in an outer layer packet structure concealment type cryptographic processing scheme.
[0055] Furthermore, the program may be executed on a computer that constitutes the key distribution server, thereby causing that computer to function as the key configuration unit, the access determination unit, the first return unit, the ticket issuance unit, and the second return unit.
[0056] According to the present invention, an encrypted communication system is provided comprising the above-mentioned key distribution server, an encryption device, and a decryption device. In this encrypted communication system, the encryption device generates encrypted data using a hierarchical structure obtained by accessing the key URL without a ticket as a key, and embeds the ticket issued by the key distribution server for the access into the encrypted data and transmits it to the decryption device.
[0057] The decryption device extracts the ticket from the received encrypted data, accesses the key URL with the ticket, obtains the same hierarchical structure from the key distribution server as used during encryption, and uses the hierarchical structure as the key to decrypt the encrypted data. The encrypted data transmitted from the encryption device to the decryption device does not include the hierarchical structure. [Effects of the Invention]
[0058] According to the present invention, the following effects can be obtained.
[0059] (1) Even if the amount of key data reaches tens of kilobytes, the only thing added to the encrypted data as information about the key is a ticket containing structure determination information, so the increase in the amount of encrypted data does not depend on the amount of key data. Even when encrypting short plaintext, the encrypted data is not occupied by the key.
[0060] (2) Since the encrypted data, excluding the ticket, does not contain the hierarchical structure itself or any information to identify the values of the structural elements, analyzing the encrypted data does not provide any clues to infer the key structure. The structure determination information contained in the ticket only determines the values of the structural elements when combined with the underlying structure of the hierarchical structure held by the key distribution server, and these values are meaningless to a third party who is unaware of that structure.
[0061] (3) For access without a ticket, a hierarchical structure is returned with at least some of its structural elements having different values each time it is accessed. Therefore, even if a third party reaches the key URL, the hierarchical structure returned by that access will be different from the one returned for the previous access, and it will only coincide with the hierarchical structure used during encryption by chance. For example, if the value of the fluctuating element is determined with equal probability from among the possible values excluding the value determined in the previous access, using the value output by a random number generator, then when a third party repeatedly accesses the same, the probability that the same hierarchical structure used during encryption will be returned by chance will not exceed the reciprocal of the total number of possible values for the fluctuating element minus one for each access. Since this total number can be set to be sufficiently large depending on the number of elements in the set of valid values and the number of digits in the structural value, the possibility of obtaining the hierarchical structure is extremely small.
[0062] (4) The encryption and decryption sides can share the same key, without relying on the conventional assumption that keys are kept and distributed as confidential information. Key distribution is carried out solely through a network structure consisting of URL access and the corresponding response.
[0063] (5) In a preferred embodiment, the possible values for each digit of the structural determination information are defined by the set of valid and invalid values included in the hierarchical structure, and these sets of valid and invalid values differ for each hierarchical structure in the sense described later. Therefore, a third party who is unaware of the hierarchical structure cannot know which values are permissible for each digit. The probability that a digit sequence randomly constructed by the third party is formally compliant is the ratio of the number of permissible values for each digit subject to determination to the total number of values that could be placed in that digit if the restrictions imposed by the set of valid and invalid values were not considered, multiplied by the number of digits subject to determination, and this probability decreases as the number of digits subject to determination increases. As described later, the number of digits in the structural determination information can be arbitrarily chosen, so this probability can be set to be sufficiently small. Therefore, the third party is effectively unable to construct compliant structural determination information, and therefore is effectively unable to construct compliant tickets.
[0064] (6) In a preferred embodiment, since the ticket contains structural determination information, the key distribution server does not need to retain either the issued hierarchical structure or the ticket. The amount of data to be retained does not increase in proportion to the number of issuances, and even if the key distribution server is compromised, the issued keys will not leak from the server.
[0065] (7) In a preferred embodiment, the key distribution server determines the suitability of the ticket and does not attempt to recreate the hierarchical structure if it does not suit the ticket, thereby structurally eliminating the acquisition of keys using incompatible tickets. Furthermore, even if a person who knows the set of valid and invalid values presents a formally compatible ticket constructed without bias in which of the possible values of the fluctuating element it points to, the probability that the hierarchical structure used during encryption can be obtained with that ticket is the reciprocal of the total number of possible values of the fluctuating element, and this total number can be set to be sufficiently large depending on the number of elements in the set of valid values and the number of digits in the structure value, so the possibility of the hierarchical structure being obtained by chance is extremely small.
[0066] (8) In a preferred embodiment, the response to accessing the key URL is returned in the same data format as data used for purposes other than keys, and does not contain any information indicating that the response is a key, so that even if a third party obtains the response, they cannot determine that it is a key to be used for cryptographic processing.
[0067] (9) In a preferred embodiment, the encoding scheme, number of digits, type of digits, order of digits, and digit selection rules for the structure determination information can be arbitrarily determined insofar as the value of the structure element can be identified in light of the set of valid and invalid values of the hierarchical structure. Therefore, structure determination information pointing to the same value of a structure element can take on multiple different forms through combinations of redundancy, calculations, masking, digit selection, and digit ignoring. For this reason, a third party who obtains a ticket cannot assume that the ticket follows a single fixed format, and cannot uniquely infer the value of a structure element of the hierarchical structure from the ticket. Furthermore, since the set of valid and invalid values differs for each hierarchical structure, there is no clue to determine which encoding scheme is being used.
[0068] (10) Only the elements subject to fluctuation have their values determined by the structural determination information; the values of the remaining structural elements and the hierarchical relationships between them are determined by the underlying structure (and the part uniquely derived from the key URL itself) which does not change with each access. Furthermore, if an EncodeMap or projection function is included in the elements subject to fluctuation, the DecodeMap is also treated as an element subject to fluctuation, and these are determined as corresponding values. Thus, while maintaining the correspondences that should be determined between structural elements, such as the correspondence between EncodeMap and DecodeMap, it is possible to return different hierarchical structures with each access and reproduce the same hierarchical structure using tickets. [Brief explanation of the drawing]
[0069] [Figure 1] This diagram shows the overall structure of key distribution. [Figure 2] This diagram shows the internal structure of the key. [Figure 3] This diagram shows the internal structure of a ticket. [Figure 4] This diagram shows how the key distribution server operates depending on whether or not a ticket is present. [Figure 5] This diagram shows the flow of the encryption process. [Figure 6] This diagram shows the flow of the decryption process. [Modes for carrying out the invention]
[0070] Patent Document 1 (Patent No. 7923614), cited as prior art in this specification, relates to Japanese Patent Application No. 2026-146484, with the same applicant and inventor as the present application. Related applications with the same applicant and inventor as the present application include a patent application filed on the same day as the present application (title of invention: "Method for distributing a hierarchical structure key having an unlock time, key distribution server, program, and cryptographic communication system"), and Japanese Patent Application No. 2026-193111, relating to the implementation of the outer layer cryptographic processing method. None of these applications had been published or patent gazettes issued at the time of filing the present application. This specification does not presuppose matters described in these related applications, and is written in such a manner that the present invention can be implemented solely by the description in this specification. Unless otherwise specified, the terms used in this specification and the claims are defined as follows. In the following definitions, "in this specification" includes the claims, and the definitions define the meaning of the terms described in the claims.
[0071] [Definition of Terms] In this specification, a hierarchical structure refers to a data structure in which multiple structural elements are arranged hierarchically. A hierarchical structure can be represented in any of the following data formats: JSON, HTML, XML, YAML, or TOML, or in any other data format that can similarly represent the hierarchical relationships of structural elements. The format of representation of a hierarchical structure is not limited to a specific data format, as long as it can preserve the hierarchical relationships of the structural elements.
[0072] In this specification, key structure
[0140] refers to the hierarchical structure configured as a key used for cryptographic processing and associated with key URL
[0130] . Key structure
[0140] refers to the same object as the hierarchical structure referred to in the claims, and in the following description, the term key structure
[0140] is used when it is necessary to denote it with a reference numeral.
[0073] In this specification, an outer-layer packet structure concealment type cryptographic processing method refers to an cryptographic processing method in which, through deterministic regeneration starting from the same initial key state shared by the encrypting and decrypting sides, the decrypting side reproduces the same division position and internal structure as at the time of encryption, even though the encrypted data does not contain information for specifying the division position and internal structure of the encrypted data, i.e., information for specifying the length, delimiter position and internal structure of the outer-layer packets described later. The outer-layer cryptographic processing method described in Patent Document 1 falls under this category. The significance of the initial key state and outer-layer packets used in this method is as follows.
[0074] An outer layer packet refers to a unit constructed by applying a reversible transformation to a variable-length segment obtained by dividing an input data sequence. In this specification, the initial key state refers to the state of the key data that serves as the starting point for the deterministic regeneration, and the initial outer layer key state S0 in Patent Document 1 corresponds to this.
[0075] The sequence of key data states that are sequentially updated starting from the initial key state is called the key state sequence, and the sequence of outer layer key states S in Patent Document 1 is an example of this. In this specification and in the claims, the terms initial key state and key state sequence are defined as described above, and the initial outer layer key state S0 and the sequence of outer layer key states S in Patent Document 1 are examples of this. The initial key state is not limited to the specific configuration of the initial outer layer key state S0 described in Patent Document 1, and in embodiments in which the key structure
[0140] is used as the initial key state, the entire key structure
[0140] , including the significant digit set, DecodeMap, and other structural elements contained in the key structure
[0140] , constitutes the initial key state. The same applies when this initial key state is referred to as initial key state S0 in this specification.
[0076] In this specification, structural determination information refers to information for identifying or determining the values of at least some of the structural elements included in a hierarchical structure. Structural determination information may be information that directly specifies the values of the structural elements, or it may be information for deriving those values. However, even when structural determination information directly specifies the values of the structural elements, structural determination information itself does not constitute a hierarchical structure on its own. This is because the structural determination information determines the values of the elements subject to fluctuation, while the values of the remaining structural elements of the hierarchical structure are determined by the underlying structure (and the part uniquely derived from the key URL itself), as described later.
[0077] Which digit position in the sequence of digits constituting the structural determination information should be referenced, and whether the value of each referenced digit is an acceptable value at that digit position, can be determined by the set of valid values, the set of invalid values, the set of valid values definition information, and the set of invalid values definition information described below, which are held by the hierarchical structure. In this specification and the claims, a digit means each position in the sequence of symbols constituting the structural determination information, or the symbol at that position, and is not limited to numbers, but includes letters, symbols, bits, bytes, and other units that constitute one digit. A sequence of digits means a sequence of digits.
[0078] In this case, these structural elements are either included in the underlying structure of the hierarchical structure described later, or are uniquely derived from the key URL itself, and are either held in advance by the key distribution server or can be uniquely determined by the key distribution server. Furthermore, the rules for selecting digits, correspondence rules, operations, and other rules for determining the values of structural elements from the structure determination information may be incorporated into the key distribution server's program as rules or operations predetermined by the key distribution server. In either case, the structure determination information is combined with these rules to determine the values of the structural elements, and does not constitute a hierarchical structure on its own.
[0079] In this sense, structural determination information determines the values of all structural elements of a hierarchical structure only when combined with the underlying structure of the hierarchical structure, or with structural elements uniquely derived from the underlying structure and the key URL itself. In this specification, when structural determination information determines the values of structural elements only when combined with the underlying structure, it means that the entire hierarchical structure is determined only when the structural determination information is combined with the underlying structure, and does not exclude the possibility that the values of digits or items included in the structural determination information directly represent the values of the target element. In a preferred embodiment, structural determination information functions as information for replacing the value of the structural element with the value specified by the structural determination information.
[0080] In this specification, a structural value is a value that represents the value of a structural element included in a hierarchical structure, which identifies the value of the fluctuation target element described later and serves as the basis for generating structural determination information. Structural values are represented as digit-by-digit values. In methods where a combination of structural values is used directly as a digit sequence for structural determination information, as well as in methods involving redundancy, digit selection, and digit ignoring, the values that each digit of the structural value can take are values belonging to the set of valid values described later, or values belonging to the set of invalid values described later that are permitted to be used at that digit position according to the invalid value set definition information described later.
[0081] In contrast, as will be described later, in methods that apply calculations or masking to structural values or methods that use modulo operations, it is necessary that the values are acceptable to be the digits of the structural determination information that are the result of the calculation, masking, or modulo operation, and it is not necessary that the individual digits of the structural value itself correspond to these values. In any of the methods used, one or more structural values are determined for each structural element that constitutes the fluctuating element, and the value of each structural element is determined by the determination of the total of these structural values.
[0082] In other words, when the element subject to fluctuation consists of a single structural element, the value of that structural element is represented by one or more structural values, and the value of that structural element is determined by the determination of these structural values. When the element subject to fluctuation consists of two or more structural elements, one or more structural values are determined for each of those structural elements, and the value of each of those structural elements is determined by the determination of the sum of these structural values.
[0083] In any case, the value of the fluctuating element is determined by determining the total of the structural values defined for the fluctuating element. When two or more structural values are defined for the fluctuating element, the value of the fluctuating element is determined by determining the combination of these structural values, and the aforementioned preferred embodiment, in which structural determination information is generated based on a combination of multiple structural values, falls under this case.
[0084] When the element subject to fluctuation consists of two or more structural elements, the structural determination information is a sequence of digits generated based on the total combination of the structural values, and the effective value set definition information described later shows not only the digit selection rules that determine which digit position in the sequence should be referenced, but also the correspondence rules that determine which structural value each referenced digit represents.
[0085] In contrast, when the element subject to fluctuation consists of a single structural element, all of the referenced digits are determined to represent the structural value corresponding to that structural element. Therefore, it is not necessary to specifically define the corresponding rule, and the significant value set definition information described later only needs to indicate the selection rule for that digit.
[0086] When the element to be fluctuated consists of two or more structural elements, the key distribution server extracts the digits to be referenced from the digit sequence according to the digit selection rule, extracts the structural value corresponding to each structural element by dividing each extracted digit according to the correspondence rule, determines the value of the structural element from the extracted structural value, and places it at the position of the structural element in the basic structure described later. When the element to be fluctuated consists of a single structural element, the key distribution server extracts the digits to be referenced from the digit sequence according to the digit selection rule, extracts the structural value corresponding to the structural element from all of the extracted digits, determines the value of the structural element from the extracted structural value, and places it at the position of the structural element in the basic structure described later.
[0087] Therefore, the procedure for generating structural determination information and reconstructing the hierarchical structure is the same whether the element subject to fluctuation is a single structural element or two or more structural elements, differing only in the number of structural elements involved. In the embodiment described later, the second embodiment, which also uses values based on key URLs, the value of the element subject to fluctuation is determined by combining the structural values with the values based on the key URLs.
[0088] The structural determination information is a sequence of digits generated based on the combination of structural values, and may be the combination as is as a sequence of digits, or it may be made redundant by adding digits to it, or it may be subjected to a predetermined operation or masking process, or it may be placed at a part of a longer sequence of digits, or it may be a combination of two or more of these.
[0089] The key distribution server extracts the digits from the sequence of digits that constitute the structure determination information, according to the digit selection rules defined in the valid value set definition information described later. From the values of each extracted digit, it obtains a combination of structure values using a method corresponding to the method used to generate the structure determination information. If a method is used in which this combination is used as the digit sequence, the combination of values of each extracted digit becomes the combination of structure values.
[0090] Furthermore, the information that defines the range of values that each digit of the structure determination information can take, namely the set of valid values, the set of invalid values, the definition information for the set of valid values, and the definition information for the set of invalid values, are not the structure values themselves, but rather structural elements that define the rules for representing and retrieving the structure values.
[0091] In this specification, when it is stated that a key distribution server does not retain or refer to any issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them, it means that the key distribution server does not store any issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them, and does not refer to any of these retained by the key distribution server when reproducing them.
[0092] Using structural determination information, issuance time information, and other information contained in the ticket presented by the requester when accessing with a ticket does not constitute referring to an issued ticket held by the key distribution server. This is because the ticket is not held by the key distribution server, but is presented by the requester in connection with the access.
[0093] Here, auxiliary information refers to all information stored by the key distribution server in order to subsequently reproduce or identify issued hierarchical structures or issued tickets, and includes the history of values of the fluctuating elements, issuance records, and correspondence tables between structure determination information and the corresponding hierarchical structures. However, the underlying structure of the hierarchical structure associated with a key URL is not stored in accordance with each individual access and each individual ticket, but is maintained in advance prior to access and does not change with each access, and therefore does not fall under the category of auxiliary information.
[0094] Even if the key distribution server maintains the underlying structure across multiple generations, the underlying structure for each generation is the underlying structure associated with the key URL in that generation, and is not stored in accordance with each individual issuance; therefore, it similarly does not constitute auxiliary information. Furthermore, when determining the value of a variable element, if only one comparison value or one count value that is updated with each access is temporarily maintained for each key URL in order to obtain a value different from the value determined in the previous access, and this is overwritten with each access, then such comparison value or count value also does not constitute auxiliary information.
[0095] Here, the value used for comparison is not the value of the fluctuating element itself determined in the previous access, but rather a value that cannot be restored to that value, such as the output value of a hash function or other one-way function that takes that value as input. Furthermore, the count value is used only to determine a portion of the value of the fluctuating element, and the remaining portion is determined using values output by a random number generator or other unpredictable values, and the entire value of the fluctuating element cannot be determined solely from the count value.
[0096] Therefore, even if the key distribution server holds a comparison value or count value, the key distribution server does not hold the value of the fluctuating element of the hierarchical structure returned in the previous access, and it is not possible to reconstruct the hierarchical structure from the comparison value or count value and the underlying structure. In this specification, when the key distribution server holds, references, or shares a value determined in the previous access between devices, it means holding, references, or shares the comparison value or count value, unless otherwise specified.
[0097] The aforementioned comparison values or count values temporarily stored for each key URL do not constitute auxiliary information because they are not stored in association with issued tickets, are not referenced in the reconstruction of the hierarchical structure, and, even when combined with the underlying structure, cannot be used to reconstruct an issued hierarchical structure. Therefore, they are not information stored for the purpose of retrospectively reconstructing or identifying an issued hierarchical structure or issued ticket.
[0098] If the key distribution server does not retain or reference any of the issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them, the reproduction of the hierarchical structure will be based on the structure determination information contained in the ticket and the underlying structure of the hierarchical structure associated with the key URL, as described below.
[0099] In this specification and the claims, performing a second step for access accompanied by a ticket means that, in response to access accompanied by a ticket issued by the key distribution server, the same hierarchical structure as the one returned at the time of ticket issuance is reproduced and returned. The conditions for performing the second step include determining whether the values included in the ticket conform to the conditions defined by the hierarchical structure, and other conditions, and the mode in which reproduction is not performed for access accompanied by a ticket that does not satisfy these conditions is also included in performing a second step for access accompanied by a ticket. The same applies when the second return unit reproduces and returns the hierarchical structure for access accompanied by a ticket.
[0100] In this specification, the structure that forms the basis of a hierarchical structure refers to the portion of the hierarchical structure associated with the key URL that consists of the hierarchical relationships of structural elements and the values of structural elements whose values are determined by the structure determination information, i.e., structural elements other than the fluctuation target elements described later, which are held in advance by the key distribution server and do not change with each access. However, as in the third example of the fourth embodiment described later, if a portion of the values of structural elements other than the fluctuation target elements is uniquely derived from the key URL itself, the derived portion is not included in the basis structure, and the basis structure refers to the portion excluding this derived portion.
[0101] In this case, the derived portion is always obtained as the same value for the same key URL, and therefore, like the underlying structure, it does not change with each access and can be determined at the time the key distribution server receives access accompanied by a ticket. In this case, the reconstruction of the hierarchical structure is performed based on the underlying structure, the derived portion, and the structure determination information contained in the ticket. The following matters apply regardless of whether or not the above exceptions apply. That is, the values of structural elements whose values are determined by structure determination information are not included in the underlying structure in any case, and a hierarchical structure is formed by placing the values determined based on structure determination information into the underlying structure.
[0102] Therefore, the fact that the key distribution server maintains the underlying structure does not mean that it maintains the issued hierarchical structure. This does not prevent the use of values contained in the key URL itself, which is the access destination, during the reproduction process. Furthermore, if the key distribution server maintains the underlying structure across multiple generations, this does not prevent the selection of which generation of the underlying structure to use based on the issuance time information contained in the ticket.
[0103] This selection merely identifies the underlying structure to be used; the reconstruction of the hierarchical structure itself is based on the selected underlying structure and the structure determination information contained in the ticket. The information indicating the issuance time is included in the ticket and is not information that the key distribution server stores each time a key is issued.
[0104] In this specification, "fluctuation" refers to the property in which the value of a structural element included in a hierarchical structure is determined to be a different value each time a key URL is accessed without a ticket, and the structural element that is subject to fluctuation is called the "fluctuation target element." Here, "the value is determined to be a different value each time a ticket is accessed" means that for consecutive accesses to the same key URL without a ticket, a value different from the value determined in at least the most recent access is determined.
[0105] If there are two or more fluctuating elements, it is sufficient that the set of values for the fluctuating elements is determined to be different from the set of values determined in the previous access; it is not necessary for the values of each individual fluctuating element to be different from the values in the previous access. The same applies when, as in this specification and the claims, at least some of the values of the structural elements are determined to be different for each access. Therefore, for consecutive accesses to the same key URL without a ticket, a different hierarchical structure will be returned each time than the one returned for the previous access.
[0106] On the other hand, while it is not prevented that the same value may be determined between non-consecutive accesses, as will be discussed later, the total number of possible values for the fluctuating element can be set to be sufficiently large. For example, if the value of the fluctuating element is determined with equal probability from among the possible values excluding the value determined in the immediately preceding access, using the value output by a random number generator, the probability of the same value being determined between non-consecutive accesses will not exceed the reciprocal of the total number minus one.
[0107] The elements subject to fluctuation may be all or some of the structural elements. However, structural elements that define the possible values for each digit of the structural determination information and that are used to extract structural values from the structural determination information, i.e., structural elements that hold the set of valid values, the set of invalid values, the definition information for the set of valid values, and the definition information for the set of invalid values, are excluded from the elements subject to fluctuation.
[0108] These structural elements are used by the key distribution server to determine the suitability of the structural determination information contained in the ticket and to extract structural values from the structural determination information when the key distribution server receives access accompanied by a ticket. Therefore, the values of these structural elements must not change with each access and must be included in the aforementioned underlying structure that the key distribution server has in advance, or be uniquely derived from the key URL itself, as in the third example of the fourth embodiment described later.
[0109] In any case, the values of these structural elements can be determined by the key distribution server at the time of access accompanied by a ticket, and are not determined solely by the structural determination information. Therefore, when we say that the elements subject to fluctuation are all of the structural elements, we mean all structural elements excluding these specific structural elements.
[0110] In this specification, the encryption processing system
[0180] refers to a device that generates encrypted data
[0160] using the key structure
[0140] as a key and embeds the ticket
[0150] into the encrypted data
[0160] . In this specification, the encryption device refers to a device that has both the function of accessing the key URL
[0130] to obtain the key structure
[0140] and the ticket
[0150] , and the function of generating encrypted data
[0160] using the key structure
[0140] as a key and embedding the ticket
[0150] into the encrypted data
[0160] . When the encryption processing system
[0180] itself accesses the key URL
[0130] to obtain the key structure
[0140] and the ticket
[0150] , the encryption processing system
[0180] constitutes the encryption device itself, and in this specification, this is referred to as an integrated configuration.
[0111] When client
[0110] accesses key URL
[0130] and hands over the obtained key structure
[0140] and ticket
[0150] to encryption processing system
[0180] , client
[0110] and encryption processing system
[0180] together constitute a single encryption device, which in this specification is referred to as a separate device configuration.
[0112] In this specification, when "encryption processing system (encryption device)
[0180] " is used, it refers to the encryption device itself in the case of an integrated configuration, and to the part of the encryption device that performs encryption processing in the case of a separate device configuration. In either case, the encryption device generates encrypted data
[0160] using the key structure
[0140] obtained by accessing the key URL
[0130] as the key.
[0113] In the case of a separate device configuration, the client
[0110] constitutes part of the encryption device, and access to the key URL
[0130] by the client
[0110] is included in the encryption device's access to the key URL
[0130] . The decryption processing system
[0170] is a device that extracts the ticket
[0150] from the encrypted data
[0160] and decrypts the encrypted data
[0160] using the key structure
[0140] obtained by accessing the key URL
[0130] associated with the ticket
[0150] as the key; this is called the decryption device. The key distribution server
[0120] , the encryption device, and the decryption device together constitute a single encrypted communication system.
[0114] In this encrypted communication system, the encrypted data
[0160] transmitted from the encryption device to the decryption device does not include the key structure
[0140] .
[0115] [Overall structure of key distribution] Figure 1 is a diagram showing the overall configuration of the key distribution method according to the present invention, and consists of the following elements. (A) Client
[0110] (B) Key distribution server
[0120] (C) Key URL
[0130] (D) Key structure
[0140] (E) Ticket
[0150] (F) Encrypted data
[0160] (G) Decryption processing system (decryption device)
[0170] (H) Encryption processing system (encryption device)
[0180]
[0116] Client
[0110] acts as the starting point for the encryption process and requests the key distribution server
[0120] to retrieve the key structure
[0140] by accessing the key URL
[0130] .
[0117] Here, the client
[0110] may be configured integrally with the encryption processing system (encryption device)
[0180] , and the encryption processing system (encryption device)
[0180] may also perform the functions of the client
[0110] , or it may be configured as a separate device from the encryption processing system (encryption device)
[0180] , and it may hand over the acquired key structure
[0140] and ticket
[0150] to the encryption processing system (encryption device)
[0180] . The former is the case of an integrated configuration as defined in the above terms, and the latter is the case of a separate device configuration.
[0118] In an integrated configuration, access to the key URL
[0130] and acquisition of the key structure
[0140] are performed by the encryption processing system (encryption device)
[0180] itself. Even in a separate device configuration, since the client
[0110] constitutes part of the encryption device, access to the key URL
[0130] and acquisition of the key structure
[0140] by the client
[0110] are included in the access to the key URL
[0130] and acquisition of the key structure
[0140] by the encryption device. Therefore, in both the integrated and separate device configurations, the encryption device generates encrypted data
[0160] using the key structure
[0140] obtained by accessing the key URL
[0130] as the key.
[0119] The key URL
[0130] is an identifier that identifies the key structure
[0140] configured as a hierarchical structure, and it is sufficient that it functions as an external reference that can be commonly referenced by both the encrypting and decrypting sides. In this specification and the claims, a key URL means an identifier in the form of a scheme name followed by a part indicating location or name, regardless of the type of URL scheme.
[0120] Therefore, the key URL
[0130] includes an HTTP, HTTPS, FTP, FTPS, or SFTP URL, an identifier determined based on the content (e.g., CID in IPFS) expressed with a scheme name, a scheme identifier for specifying a proprietary communication procedure or a resource within the device, and a scheme identifier for specifying a resource on a distributed ledger. In a preferred embodiment, the key URL
[0130] is specified using one of the URL schemes: HTTP, HTTPS, FTP, FTPS, or SFTP. Also in a preferred embodiment, the key URL
[0130] is configured so that a list of directories or namespaces containing the key URL
[0130] cannot be obtained from the outside.
[0121] According to these embodiments, as will be described later, a third party cannot enumerate the key URL
[0130] , and if a random string as described later is used in combination, the probability that a third party can reach the key URL
[0130] by guesswork is also sufficiently small. However, this setting is not essential for implementing the present invention, and as long as the key URL
[0130] can be commonly referenced by both the encrypting and decrypting sides, a key URL
[0130] not under this setting may be used, and a key URL
[0130] specified using a URL scheme other than the examples above may also be used.
[0122] Note that the URL schemes that can be used for key URL
[0130] are not limited to the examples above. In a preferred embodiment that applies a setting that does not allow the external acquisition of a list of directories or namespaces containing key URL
[0130] , a URL scheme that can apply such a setting is used. In an embodiment that does not apply such a setting, any URL scheme that provides an identifier that can be commonly referenced by both the encrypting and decrypting sides is sufficient.
[0123] The key distribution server
[0120] configures the key structure
[0140] as a hierarchical structure in which multiple structural elements are arranged hierarchically, and associates it with the key URL
[0130] . The key structure
[0140] is shared by the encryption side and the decryption side as the key used for cryptographic processing. In a preferred embodiment, the key structure
[0140] is used as the initial key state in an outer layer packet structure concealment type cryptographic processing scheme.
[0124] However, the cryptographic processing method using the key structure
[0140] is not limited to the outer layer packet structure concealment type; any cryptographic processing method that uses a hierarchical structure in which multiple structural elements are arranged hierarchically as a key is sufficient. The data size of the key structure
[0140] is approximately 20 to 50 kilobytes in the embodiment, and may be approximately 100 kilobytes or more depending on the number of structural elements and the length of the sequence held by each structural element.
[0125] In either case, the amount of data is significantly larger than the keys of several tens of bytes in symmetric-key cryptography and the keys of several kilobytes or less in conventionally widely used public-key cryptography, making it impractical to include it in the encrypted data
[0160] or to share it in advance. In this specification, when the amount of data in the key structure
[0140] is referred to as several tens of kilobytes, this level is what is being referred to.
[0126] The key distribution server
[0120] determines whether access to the key URL
[0130] is accompanied by a ticket
[0150] . If it is not accompanied by a ticket, it determines that at least some of the structural elements of the key structure
[0140] will have different values for each access and returns them. This determination is made by selecting a value to apply to the access from the range of values that the variable element can take, as shown in the ticket issuance procedure described later, and a value different from the value determined in the previous access is selected.
[0127] Furthermore, as will be described later, the total number of possible values for a variable element is determined by the number of digits in the structural value that identifies the value and the number of values allowed in each digit by the set of valid and invalid values, and this total can be set to a sufficiently large number. For this reason, for consecutive accesses to the same key URL
[0130] without ticket
[0150] , a different key structure
[0140] than the one returned for the previous access will be returned each time, and even between non-consecutive accesses, the possibility of the same key structure
[0140] being returned is small.
[0128] Simultaneously with the return of the key structure
[0140] , the key distribution server
[0120] issues a ticket
[0150] containing structure determination information to identify the determined value and returns it to the requester of the access. The data size of the ticket
[0150] is smaller than that of the key structure
[0140] , ranging from several tens to several hundred bytes in this embodiment. The amount of data occupied by the structure determination information is determined according to its number of digits, as will be described later, ranging from several bytes to several tens of bytes. In any case, the data size of the ticket
[0150] is significantly smaller than that of the key structure
[0140] , which can reach several tens of kilobytes.
[0129] In the encryption processing system (encryption device)
[0180] , the ticket
[0150] is embedded in the encrypted data
[0160] . The encrypted data
[0160] does not contain the key structure
[0140] itself, nor any information to identify the values of the structural elements of the key structure
[0140] , except for the information contained in the ticket
[0150] .
[0130] Here, the fact that the encrypted data
[0160] has the aforementioned properties, that is, that the encrypted data
[0160] includes the ticket
[0150] and does not include the key structure
[0140] itself or any information for identifying the values of its structural elements, except for the information contained in the ticket
[0150] , is a matter that specifies the target to which the key distribution method according to the present invention applies. This matter specifies the structure of the encrypted data
[0160] in which the key structure
[0140] returned by the key distribution server
[0120] and the ticket
[0150] issued are used, and does not require the key distribution server
[0120] itself to generate the encrypted data
[0160] or to inspect its contents.
[0131] In other words, the key distribution method according to the present invention is used for encrypted communication in which the key structure
[0140] is not bundled with encrypted data
[0160] and is not shared in advance. The key distribution server
[0120] issues a ticket
[0150] with a data size smaller than the data size of the key structure
[0140] to suit this application.
[0132] Here, the key distribution server
[0120] returns to the requester of access to the key URL
[0130] without the ticket
[0150] the key structure
[0140] itself and the ticket
[0150] , and of these, only the ticket
[0150] is attached to the encrypted data
[0160] and transported to the decryption side. Therefore, the information about the key structure
[0140] that can be obtained via the encrypted data
[0160] is limited to the information contained in the ticket
[0150] , and the key distribution server
[0120] does not provide the requester with any information other than the ticket
[0150] to attach to the encrypted data
[0160] to specify the values of the structural elements of the key structure
[0140] .
[0133] Therefore, if the encrypted data
[0160] contains information for identifying the key structure
[0140] itself or the values of its structural elements, separately from the ticket
[0150] , the encrypted data
[0160] is not subject to the key distribution method according to the present invention. Hereinafter, in this specification and in the claims, information for identifying the values of structural elements means information that can identify the values of the structural elements of the key structure
[0140] by itself or by itself and other information contained in the encrypted data
[0160] , without accessing the key distribution server
[0120] . This definition clarifies the meaning of "information for identifying the values of the structural elements" as described in the claims, excluding encrypted data.
[0134] In the claims, "structural determination information for specifying the determined value" means that the structural determination information determines the value by being combined with the underlying structure, a value uniquely derived from the key URL
[0130] itself, or a predetermined rule or calculation in the key distribution server
[0120] . This does not require that the value of the structural element be identifiable without accessing the key distribution server
[0120] , as defined herein.
[0135] Information identical to the information contained in ticket
[0150] , or information derived from the information contained in ticket
[0150] , is considered information contained in ticket
[0150] , even if it is duplicated or separated in parts of encrypted data
[0160] other than ticket
[0150] . Furthermore, information such as the identifier of the encryption method, initialization vector, value for integrity verification, information indicating the embedding location of ticket
[0150] , and other information whose structural element values cannot be identified without the underlying structure held by the key distribution server
[0120] is not considered information for identifying structural element values.
[0136] The decryption processing system (decryption device)
[0170] extracts the ticket
[0150] from the encrypted data
[0160] and accesses the key URL
[0130] indicated by the key URL referencer contained in the ticket
[0150] , along with the ticket
[0150] . The key distribution server
[0120] determines the values of the structural elements of the key structure
[0140] based on the structure determination information contained in the ticket
[0150] , thereby reconstructing and returning the same key structure
[0140] that was returned during encryption.
[0137] With the above configuration, the encryption side and the decryption side can share the same key structure
[0140] without including the key structure
[0140] of several tens of kilobytes with the encrypted data
[0160] or sharing it in advance. The only key-related information attached to the encrypted data
[0160] is a ticket
[0150] of several tens to several hundred bytes.
[0138] [Internal structure of the key structure] Figure 2 shows the internal structure of the key structure
[0140] according to the present invention. The key structure
[0140] is configured as a hierarchical structure including the following structural elements. The names and descriptions of the structural elements shown below are examples of cases in which the key structure
[0140] is used as the initial key state in an outer layer packet structure concealment type cryptographic processing scheme.
[0139] Of these, keyPosition corresponds to information that defines the division position of the data to be encrypted, bitMap corresponds to information that defines the bit arrangement of the data to be encrypted, EncodeMap and projection function correspond to information that defines the reversible transformation applied during encryption, and CycleState corresponds to information that defines the progress state of the said reversible transformation. DecodeMap is a structural element that pre-stores the inverse mapping corresponding to the reversible transformation determined by EncodeMap and projection function, and in addition to the four types of information mentioned above, it contains a key structure.
[0140] It is included in [the category].
[0140] Furthermore, the ValidDigitSet is a structural element that holds a set of valid and invalid values that define the possible values for each digit of the structure determination information, as well as definition information for these, and also holds exclusion conditions and lower limit input values used for updating the key state, and is included in the key structure
[0140] separately from the four types of information mentioned above.
[0141] When the key structure
[0140] is used in another cryptographic processing scheme, the structural elements of the key structure
[0140] only need to be configured with names and contents corresponding to the information used as a key by the cryptographic processing scheme, and it is not necessary to have structural elements corresponding to the four types of information mentioned above. As for the significant digit set, it is sufficient to have structural elements that can define the values that each digit of the structure determination information can take.
[0142] (1) keyPosition (key position information) `keyPosition` is information that defines the partitioning position of the data to be encrypted, and provides the initial sequence of boundary information in outer layer cryptography. The encrypting and decrypting sides reproduce the same partitioning position based on the same `keyPosition`.
[0143] (2) bitMap (bit arrangement map) A bitMap is information that defines the bit arrangement of the data to be encrypted, and specifies the order in which bits are arranged in the outer layer packet.
[0144] (3) EncodeMap The EncodeMap contains information that defines the reversible transformations applied during encryption, specifying the type, number of stages, and application order of the reversible transformations applied to the segment.
[0145] (4) DecodeMap The DecodeMap contains information that defines the transformation rules applied during decryption, and it pre-stores the inverse mapping corresponding to the reversible transformation specified by the EncodeMap as a structural element of the key structure
[0140] . In other words, the decryption side does not calculate the inverse mapping from the reversible transformation specified by the EncodeMap, but rather refers to the inverse mapping stored in the DecodeMap. Since the EncodeMap and DecodeMap are referenced based on the same progress state, as long as the progress state is the same, the inverse mapping corresponding to the reversible transformation selected by the EncodeMap is uniquely selected by the DecodeMap. Therefore, the encryption and decryption processes do not need to be designed as operations in opposite directions, and the decryption side does not need to perform the inverse operation of the encryption process.
[0146] (5) Projection function The projection function is a group of candidate bijective maps to be used for the invertible transformation, and which candidate to apply is selected each cycle based on the CycleState described later.
[0147] (6) Significant Digit Set (ValidDigitSet) ValidDigitSet is a structural element that defines a set of values that can be used for cryptographic processing and constructing structure determination information. It includes a valid value set, which is the set of values that can be used in each digit; an invalid value set, which is the set of values that are not normally permitted to be used; valid value set definition information; and invalid value set definition information. Here, valid value set definition information refers to information that indicates the rules for constructing the valid value set, the rules for selecting digits that determine which digit position in the sequence of digits constituting the structure determination information should be referenced, and the correspondence rules that, when the element to be fluctuated consists of two or more structural elements, determine which structural element each referenced digit represents. When the element to be fluctuated is a single structural element, the correspondence rules do not need to be specifically defined, as all referenced digits are determined to represent the structural value corresponding to that structural element. Invalid value set definition information refers to the rules for constructing the invalid value set and the information that determines the digit positions in which the use of values belonging to the invalid value set is permitted.
[0148] These definitions determine the possible values for each digit of the structure determination information, the reference digits used to extract the structure value from the structure determination information, and the correspondence between each referenced digit and each structure element that is subject to fluctuation. Furthermore, ValidDigitSet includes exclusion conditions for excluding certain digits or bits of the value used in updating the key state, and a lower limit of the input value that the value used in the update cannot fall below.
[0149] (7) Progression state of the cyclic structure (CycleState) CycleState is a structural element that functions as information defining the progress of a reversible transformation, holding the progress position of the reversible transformation in cryptographic processing and providing the starting point of the key state sequence. Here, the progress position held by CycleState provides the starting point of the key state sequence as a structural element of the key structure
[0140] , and is related to the ticket described later.
[0150] The information held by cycleState, a structural element of the key structure, which indicates the progress of the cryptographic process, is separate from the relative amount of progress made from the start to the end of encryption. In an embodiment in which the key structure
[0140] is used as the initial key state in an outer layer packet structure concealment type cryptographic processing scheme, the key structure
[0140] as a whole constitutes the initial key state S0, and CycleState constitutes the part of the initial key state S0 that holds the progress position.
[0150] In other words, the key structure
[0140] is used as the initial key state S0, and the starting point of the sequence of key states progressing from the initial key state S0 to S1, S2, etc., is given by the progress position held by CycleState. Because CycleState is included in the key structure
[0140] , the decryption side does not need to separately hold the initial key state S0 as secret information. If the key structure
[0140] is used in other cryptographic processing methods and includes a structural element equivalent to CycleState, CycleState only needs to function as information that defines the progress state of the reversible transformation in that cryptographic processing method, and does not need to have significance as the initial key state.
[0151] Furthermore, CycleState can be one of the elements subject to fluctuation, and in an embodiment in which the key structure
[0140] is used as the initial key state in an outer layer packet structure-secreting cryptographic processing scheme, CycleState is included as an element subject to fluctuation. In this case, the structure determination information contained in ticket
[0150] determines the value of the element subject to fluctuation, including CycleState.
[0152] If the only element subject to fluctuation is CycleState, the value of CycleState is determined; if the element subject to fluctuation includes other structural elements of CycleState, the values of these structural elements are determined together. In either case, the values are placed in the underlying structure, and the entire key structure
[0140] , i.e., the initial key state S0, is uniquely determined.
[0153] In this specification, the initial value of the initial key state (initial value of the initial key state S0) refers to the progress position of the initial key state S0 held by the structural element (CycleState in this embodiment) that determines the progress state of the reversible transformation, and which gives the starting point of the key state sequence. In this embodiment, since CycleState is included in the elements subject to fluctuation, the progress position is determined as the value of CycleState determined based on the structural determination information. Therefore, this structural determination information defines the initial value of the initial key state S0.
[0154] The structural elements included in the key structure
[0140] are not limited to the examples above. In embodiments in which the key structure
[0140] is used as the initial key state in an outer layer packet structure concealment type cryptographic processing scheme, other structural elements may be added or some of the above structural elements may be integrated, as long as it includes information that defines the division position of the data to be encrypted, information that defines the bit arrangement of the data to be encrypted, information that defines the reversible transformation applied during encryption, and information that defines the progress of the reversible transformation. In embodiments in which it is used in other cryptographic processing schemes, it is sufficient to configure it with structural elements appropriate to the cryptographic processing scheme as described above.
[0155] [Internal structure of the ticket] Figure 3 shows the internal structure of ticket
[0150] according to the present invention. In configurations for obtaining keys from a key-holding device, the key identification number (hereinafter referred to as the conventional key number) commonly used only identifies which key to obtain and does not determine the content of the key. In contrast, ticket
[0150] differs from the conventional key number in that it holds information that determines the value of the fluctuation target element of the key structure
[0140] . Ticket
[0150] includes the following structural elements.
[0156] (A) ticketID (ticket identifier) The ticketID is a value used to identify the ticket
[0150] itself, indicating that the ticket
[0150] embedded in the encrypted data
[0160] corresponds to a specific key structure
[0140] .
[0157] (B) keyURL (key URL referencer) The keyURL is a reference that points to the key URL
[0130] to which the key structure
[0140] is associated, and is used to retrieve the key structure
[0140] during decryption. The keyURL does not hold the actual key structure
[0140] , but merely indicates its location.
[0158] (C)issuedAt(issue time) `issuedAt` is a structural element that records the time when ticket
[0150] was issued.
[0159] (D) Signature (structural determination information) The signature is structural determination information for determining the value of the element to be fluctuated in the key structure
[0140] . When the key distribution server
[0120] receives access accompanied by ticket
[0150] , it determines the value of the element to be fluctuated based on the signature, thereby reproducing the same key structure
[0140] that was returned when ticket
[0150] was issued. The signature is not a signature value generated by a private key as in conventional methods, but a value generated based on the internal structural value of the key structure
[0140] .
[0160] In this specification and the claims, the signature value generated by the private key means a value generated using the private key with the contents of a ticket or other data as input, and used to verify whether the contents have been tampered with. The structure determination information is not used in itself to verify whether the contents have been tampered with, but is used in combination with the underlying structure to determine the values of the elements to be fluctuated. Even if the structure determination information is changed, the key distribution server
[0120] does not use the structure determination information itself to detect the change, but rather determines the values of the elements to be fluctuated based on the changed structure determination information, as long as each digit consists of acceptable values, and as a result only a key structure
[0140] different from the one issued is determined.
[0161] Furthermore, in a manner in which the key distribution server
[0120] holds the key structure
[0140] returned or the issued ticket
[0150] , it is not prevented from rejecting the response by matching it with the held information, and even in this case, the structure determination information does not correspond to the signature value generated by the private key. The name "signature" is merely a convenient name for referring to the structural element that holds the structure determination information in the ticket
[0150] .
[0162] (E)cycleState(progress state) cycleState is a structural element that holds the progress of the encryption process in the encryption processing system (encryption device)
[0180] , that is, the number of cycles completed from the start to the end of encryption, and functions as information indicating the progress of the encryption process contained in ticket
[0150] . Here, cycleState exists as a structural element of ticket
[0150] from the time the key distribution server
[0120] issues ticket
[0150] , and at the time of issuance, its value is left unset.
[0163] In other words, the progress amount is only determined upon completion of encryption; therefore, its value is set by the encryption processing system (encryption device)
[0180] at the time the encryption is completed, and the ticket
[0150] is embedded in the encrypted data
[0160] while holding this value. The reproduction of the progress state in the decryption processing system (decryption device)
[0170] is performed starting from the CycleState contained in the reproduced key structure
[0140] , as described later. The cycleState is used to confirm that the progress state advanced from that starting point is consistent with the progress amount at the time of encryption, or to determine the end of the decryption process.
[0164] The value held by cycleState here is a relative progress amount based on the progress position at the start of encryption, and does not represent the progress position itself held by CycleState of key structure
[0140] , i.e., the initial value of the initial key state S0. This initial value is determined only when the structure determination information contained in ticket
[0150] and the underlying structure of key structure
[0140] held by key distribution server
[0120] are combined, and cannot be known from the value of cycleState. Therefore, cycleState does not correspond to information for identifying the values of the structural elements of key structure
[0140] .
[0165] (F)embedFlag(embed flag) embedFlag is a structural element that indicates that ticket
[0150] has been embedded in encrypted data
[0160] . embedFlag exists as a structural element of ticket
[0150] from the time the key distribution server
[0120] issues ticket
[0150] , and at the time of issuance, its value is left unset. That is, when the key distribution server
[0120] issues ticket
[0150] and returns it to the requester, embedFlag exists as a structural element and its value is unset, and when the encryption processing system (encryption device)
[0180] embeds ticket
[0150] into encrypted data
[0160] , it is set to a value that indicates that embedding has occurred. Therefore, ticket
[0150] embedded in encrypted data
[0160] has embedFlag set.
[0166] The decryption processing system (decryption device)
[0170] identifies the embedding location in the encrypted data
[0160] according to the embedding rules that are shared in advance between the encryption side and the decryption side, and extracts the ticket
[0150] from that location. The embedFlag is referenced as an indicator that the extracted ticket
[0150] was embedded in the encrypted data
[0160] , and is used to confirm the success or failure of the extraction.
[0167] The above ticketID, keyURL, issuedAt, signature, cycleState, and embedFlag are examples of names for structural elements included in ticket
[0150] . The structural elements included in ticket
[0150] are not limited to the above examples, and other structural elements may be added or some of the above structural elements omitted, as long as they include structural determination information, and the names of each structural element are not limited to the above examples. The reference indicating the key URL
[0130] is included in ticket
[0150] in a preferred manner, but it may be omitted if the decryption side can learn the key URL
[0130] by receiving separate notification from the sender of the encrypted data
[0160] . cycleState, embedFlag, and other structural elements that are set or changed after issuance are not used to reproduce the hierarchical structure.
[0168] Therefore, even if these are configured or modified tickets
[0150] , as long as all of the following conditions are met, they will be treated as tickets issued by the key distribution server
[0120] in this specification and in the claims, and for access associated with such ticket
[0150] , the same key structure
[0140] returned at the time of issuance of the ticket
[0150] will be reproduced.
[0169] Firstly, the structure determination information is the same as that at the time of issuance. Secondly, if ticket
[0150] includes a keyURL, the keyURL indicates the same key URL
[0130] as at the time of issuance (in embodiments where the keyURL is omitted, access with ticket
[0150] is performed to the same key URL
[0130] as at the time of issuance). Thirdly, in embodiments where the underlying structure is maintained across multiple generations and information indicating the issuance time is used to select the generation, issuedAt causes the same generation as at the time of issuance to be selected. Ticket
[0150] embedded in encrypted data
[0160] , that is, ticket
[0150] with cycleState and embedFlag set, is a ticket included in the encrypted data as referred to in the claims and corresponds to a ticket issued by the key distribution server
[0120] .
[0170] In contrast, a ticket whose keyURL has been rewritten to indicate a different key URL than the one used at the time of issuance will use the underlying structure associated with the rewritten keyURL. If this underlying structure differs from the underlying structure used at the time of issuance, the same key structure
[0140] as at the time of encryption will not be reproduced by the ticket.
[0171] Furthermore, when using a combination with a value based on the key URL
[0130] according to the second embodiment described later, even if the underlying structure is the same as the underlying structure at the time of issuance, different values for the fluctuation target elements are determined as described later, so the same key structure
[0140] as at the time of encryption cannot be reproduced. Moreover, a ticket whose issuedAt has been rewritten to select a different generation than at the time of issuance will use an underlying structure of a different generation, so the same key structure
[0140] as at the time of encryption cannot be reproduced by such a ticket.
[0172] [Generating structural determination information] Structure determination information is generated based on a combination of multiple structure values contained in the key structure
[0140] . The structure determination information is represented as a value consisting of multiple digits, and the possible values for each digit are defined by the set of valid and invalid values held by the key structure
[0140] .
[0173] The following description will primarily focus on the configuration in which the key structure
[0140] holds the set of valid values, the set of invalid values, the definition information of the set of valid values, and the definition information of the set of invalid values. However, as stated in the definition of terms above, even in the configuration in which the selection rules for digits, correspondence rules, calculations, and other rules for determining the values of structural elements from the structure determination information are incorporated into the program of the key distribution server
[0120] , the procedure for generating the structure determination information and reproducing the hierarchical structure is the same. In this case, the description below that the set of valid values, etc., differs for each key structure
[0140] is not essential to this configuration.
[0174] In this embodiment, the key structure
[0140] defines the possible values for each digit of the structure determination information and holds the following four structural elements for extracting the structure value from the structure determination information.
[0175] In other words, a set of valid values, which is the set of values that can be used in each digit, is stored as sharedKeyCRC64Valid, and a set of invalid values, which is the set of values that are not normally allowed to be used, is stored as sharedKeyCRC64Unvalid. SharedKeyCRC64ValidDefine is stored which defines the valid value set, which digit position in the sequence of digits constituting the structure determination information should be referenced, and which digit position corresponds to which structural value when the fluctuating element consists of two or more structural elements. SharedKeyCRC64UnvalidDefine is stored which defines the invalid value set, which digit position in the set of invalid values is allowed to be used, and shares KeyCRC64UnvalidDefine.
[0176] These four structural elements are structural elements included in the aforementioned set of significant figures (ValidDigitSet), and sharedKeyCRC64Valid, sharedKeyCRC64Unvalid, sharedKeyCRC64ValidDefine, and sharedKeyCRC64UnvalidDefine are examples of names for the set of valid values, set of invalid values, definition information for the set of valid values, and definition information for the set of invalid values in the set of significant figures, respectively, and are not limited to these names.
[0177] Each digit of the structure determination information is selected from the values belonging to the set of valid values. However, values belonging to the set of invalid values that are permitted to be used only in specific positions may be selected only in those positions. For example, if the set of valid values consists of values from 1 to 9 and the set of invalid values includes 0, and the use of 0 is permitted only in the first digit, then a four-digit value such as 0457 may be generated as structure determination information.
[0178] The total number of possible values for structural determination information is determined by the product of the number of allowed values for each digit. If the set of significant values is defined as a common set regardless of digit position, and only values belonging to the set of significant values are allowed for all digits, then the total number is m to the power of n, where m is the number of elements in the set of significant values and n is the number of digits. If there are values belonging to the set of invalid values that are allowed only for specific digit positions, the number of allowed values for those digit positions increases by that amount, and therefore the total number exceeds m to the power of n.
[0179] In cases where the set of significant values is defined as a different set for each digit position, as in the second example of the fourth embodiment described later, the total number is the value obtained by multiplying the number of elements in the set of significant values defined for each digit position by the number of invalid values belonging to the set of invalid values that are permitted to be used at that digit position, over all digits.
[0180] In other words, when the set of valid values is defined as a common set regardless of digit position, m to the power of n gives a lower limit to the total number of possible values for the structure determination information. Furthermore, as described in (2) of the ticket issuance procedure described later, there is a one-to-one correspondence between the combination of structure values and the value of the element subject to fluctuation. Therefore, when using a method in which the combination of structure values is used directly as the digit sequence of the structure determination information, or a method involving redundancy, digit selection, or digit ignoring, the total number of possible values for the element subject to fluctuation is determined by the number of values allowed by the set of valid and invalid values for each digit of the structure value that specifies that value, multiplied sequentially over the number of digits of that structure value.
[0181] In contrast, when using a method that applies calculations or masking to structural values, or when using modulo operations, as described later, the determination of the values of the elements subject to fluctuation is performed from within a range where the digit values of the structural determination information resulting from the calculation, masking, or modulo operation are all acceptable values. Therefore, the total number may be less than the value obtained by sequential multiplication mentioned above.
[0182] When using the aforementioned method of using the combination of structural values as the digit sequence of structural determination information, or a method involving redundancy, digit selection, or digit omission, if the set of significant values is defined as a common set regardless of digit position, and only values belonging to the set of significant values are permitted in all digits of the structural value, then if the number of elements in the set of significant values is m and the number of digits of the structural value is k, the total number will be m to the power of k. If there are values belonging to the set of invalid values that are permitted to be used only in specific digit positions, the number of values permitted in those digit positions will increase by that amount, and the total number will exceed m to the power of k.
[0183] Therefore, m raised to the power of k gives a lower limit to the total number of possible values for the element subject to fluctuation in that case. In this case, when a method involving redundancy, digit selection, or digit neglect is used, the number of digits in the structural determination information exceeds the number of digits in the structural value, so the total number of possible values for the structural determination information exceeds the total number of possible values for the element subject to fluctuation.
[0184] In contrast, when a method that causes some of the input value information to be lost is used for encoding, such as the configuration using an operation in the third example of the first embodiment described later, in which the original value is not uniquely determined from the result of the operation, the fifth example of the same embodiment, or the configuration using a masking process that causes some of the input value information to be lost, as described in conjunction with the third example of the same embodiment, the combination of structure values and the digit sequence of the structure determination information do not correspond one-to-one, and the same digit sequence can be generated from different combinations of structure values. In this case, the determination of the value of the fluctuating element is performed from within the range in which the value can be uniquely determined from the obtained digit sequence, as described in (3) of the ticket issuance procedure described later. Therefore, the total number of possible values for the fluctuating element is determined by the number of different digit sequences that can be generated by this method, and is less than the total number of combinations of structure values.
[0185] In either case, when a person who knows the set of valid and invalid values constructs formally fitting structure determination information without bias in which of the possible values of the fluctuating element it points to, the probability that this structure determination information reproduces the key structure
[0140] used during encryption is the reciprocal of the total number of possible values of the fluctuating element. For a person who does not know the set of valid and invalid values, this probability is even smaller because, as will be discussed later, the probability that a randomly constructed sequence of digits will formally fit is small.
[0186] Here, when there is a one-to-one correspondence between a combination of structural values and the value of a referenced digit in the sequence of digits of the structural determination information, the size of the search space required is directly determined by the number of digits k of the structural value that identifies the value of the element to be fluctuated. In contrast, when a method that causes some of the input value information to be lost is used for encoding, as described above, the size of the search space is determined by the number of different sequences of digits that can be generated by that method.
[0187] Furthermore, the number of digits n of the structure determination information is determined according to the encoding method adopted. When using a method that uses the combination of structure values as a digit sequence, it is equal to k. When using a method that involves redundancy, digit selection, or digit ignoring, it exceeds k. When using a method that reduces the number of digits of the input value, such as the third example of the first embodiment described later, which divides the digit sequence of structure values into pairs of two digits and performs operations on each pair, or the fifth example of the same embodiment, which uses modulo operations, it may be less than k.
[0188] The number of digits k for the structure value and the number of digits n for the structure determination information are determined as appropriate according to the required size of the search space, the number of structure elements, the coding scheme to be adopted, and the design policy for the fluctuations of the key structure
[0140] . For example, they can be 4, 8, 16, or 32 digits, respectively. The number of digits is not limited to the above examples, and any number of digits can be adopted.
[0189] The set of valid values and the set of invalid values differ for each key structure
[0140] . Here, the set of valid values and the set of invalid values differ for each key structure
[0140] means that they are defined as different for each underlying structure associated with the key URL
[0130] (or for each key URL
[0130] if the set of valid values and the set of invalid values are derived from the key URL
[0130] , as in the third example of the fourth embodiment described later). Among key structures
[0140] that are constructed by arranging the same underlying structure with only the values of the elements subject to fluctuation differing, the set of valid values and the set of invalid values are the same. This is because the structural elements that hold the set of valid values and the set of invalid values are excluded from the elements subject to fluctuation, as described in the definition of the terms above.
[0190] Therefore, a third party who is unaware of the key structure
[0140] cannot know which values are permissible in each digit. The probability that a digit sequence randomly constructed by the third party is formally compatible is the ratio of the number of permissible values in each digit subject to determination to the total number of values that can be placed in that digit if the restrictions imposed by the set of valid and invalid values are not considered, multiplied by the number of digits subject to determination. This probability decreases as the number of digits subject to determination increases. As mentioned above, the number of digits k of the structure value and the number of digits n of the structure determination information can be arbitrarily chosen, and the number of digits subject to determination can be set to a large number accordingly, so this probability can be set to a sufficiently small value.
[0191] Therefore, the third party is practically unable to construct the appropriate structural determination information. The structural determination information is a value that can only be reliably constructed by someone who knows the internal structure of the key structure
[0140] , and in this respect, it is fundamentally different from conventional key numbers that are assigned independently of the content of the key.
[0192] The structural values used to generate structural determination information are not limited to the example shown in the first embodiment described later, but are sufficient as long as they are values of structural elements included in the key structure
[0140] that can uniquely identify the value of the element to be fluctuated.
[0193] Furthermore, it is sufficient that the structural element for defining the range of values that each digit of the structural determination information can take, and for extracting the structural value from the structural determination information, be able to define the range of values and the digit position to be referenced. If the variable target element consists of two or more structural elements, it is sufficient that, in addition to these, it is able to define which structural element each referenced digit represents the corresponding structural value. Therefore, the structural element is not limited to the examples of sharedKeyCRC64Valid, sharedKeyCRC64Unvalid, sharedKeyCRC64ValidDefine, and sharedKeyCRC64UnvalidDefine mentioned above.
[0194] [Ticket Issuance Procedure] When the key distribution server
[0120] receives access to a key URL
[0130] without a ticket
[0150] , it constructs and returns a key structure
[0140] and issues a ticket
[0150] according to the following steps (1) to (4). The following steps constitute the reverse procedure of the reproduction procedure shown in the third embodiment described later.
[0195] (1) Determination of the value of the element subject to fluctuation The key distribution server
[0120] determines the value to apply to the access from within the range of possible values for the fluctuating element. This determination is made using the value output by the random number generator. A count value or a value indicating the time of access, which is updated each time an access occurs, may also be used. However, even in this case, at least a portion of the value of the fluctuating element is determined using the value output by the random number generator or other unpredictable values, so that the entire value of the fluctuating element is not determined solely from the count value or the value indicating the time.
[0196] The key distribution server
[0120] , in making the determination, obtains a comparison value, which is the output of a hash function or other one-way function that takes the determined value as input, and compares it with the comparison value from the previous access, which is temporarily held for each key URL
[0130] . If the two match, the determination is redone; if they do not match, the held comparison value is overwritten with the newly obtained comparison value. Since different comparison values mean different original values, the determined value of the fluctuating element will always be different from the value determined in the previous access, and a different key structure
[0140] will be returned each time for consecutive accesses to the same key URL
[0130] without a ticket
[0150] . The key distribution server
[0120] does not retain the determined value of the fluctuating element itself.
[0197] However, if the determination method itself ensures that a value different from the value determined in the previous access is obtained, such as using a count value that is updated with each access to determine a portion of the value of the fluctuating element, and setting such that the portion of the value is injective with respect to the count value, then it is not necessary to perform the comparison and re-do using the comparison value mentioned above. Even in this case, the remaining portion of the value of the fluctuating element is determined using a value output by a random number generator or other unpredictable value, and the entire value of the fluctuating element is not determined solely from the count value. The comparison value or count value held here is one for each key URL
[0130] held by the key distribution server
[0120] , and is overwritten or updated with each access.
[0198] The aforementioned comparison values or count values are not stored in association with the issued ticket
[0150] , nor are they referenced in the reconstruction of the key structure
[0140] for access associated with ticket
[0150] , nor can they be combined with the underlying structure to reconstruct the issued key structure
[0140] . Therefore, since the comparison values or count values are not information stored for the purpose of subsequently reconstructing or identifying the issued key structure
[0140] or the issued ticket
[0150] , they do not fall under the category of auxiliary information as defined above.
[0199] (2) Derivation of structural values The key distribution server
[0120] derives a combination of structural values that identifies the value determined in (1). When using a combination with a value based on the key URL
[0130] according to the second embodiment described later, the key distribution server
[0120] obtains a value that digitizes the key URL
[0130] in a predetermined way, and derives a combination of structural values by applying an operation to the value determined in (1) that removes the contribution of the digitized value. This operation is the inverse operation of the operation in (4) of the third embodiment described later that combines the value obtained in (2) of the same embodiment with the structural value obtained in (3) of the same embodiment.
[0200] The operations used in this combination are such that, given the numerical value of the key URL
[0130] , there is a one-to-one correspondence between the combination of structural values and the value of the variable element. Addition, subtraction, and exclusive OR are applicable, and when these are used, subtraction, addition, and exclusive OR are the inverse operations of the above, respectively. If this combination is not used, the value determined in (1) is used as the combination of structural values.
[0201] In either case, the determination of the value of the fluctuation target element in (1) is performed from within the range in which the values of the digits referenced by the digit selection rules defined by the effective value set definition information in the sequence of digits of the structure determination information obtained in (3) are all values that are permitted by the effective value set and the invalid value set at that digit position. Here, in the method of using the combination of structure values as the digit sequence, and in the method involving redundancy, digit selection, and digit ignoring, the referenced digit values are the values of each digit in the combination of structure values obtained in this process, so the range is determined as the range in which each digit in the combination of structure values is an permitted value.
[0202] In contrast, in methods that apply calculations or masking to structural values, or methods that use modulo operations, the value of the referenced digit is the result of the calculation, masking, or modulo operation, so the range is determined as the range in which each digit of the result is an acceptable value. Furthermore, when these combinations are used in combination, the range is determined in addition to these, according to the numerical value of the key URL
[0130] and the calculation used in the combination. The key distribution server
[0120] makes the decision in (1) after predetermining the range based on the encoding method to be adopted and the calculation used in the combination.
[0203] Furthermore, the limitation described in (3) below, which limits the range within which the value can be uniquely determined from the obtained digit sequence, is applied in conjunction with the limitation described above, which limits the range within which the values of the referenced digits are all acceptable values at that digit position. The determination in (1) is made from a range that satisfies both of these conditions. As a result, the encoding in (3) is successful, and the ticket
[0150] issued by the key distribution server
[0120] is determined to always be compatible when accessing with ticket
[0150] .
[0204] (3) Encoding of structural determination information The key distribution server
[0120] encodes the combination of structure values obtained in (2) into a digit sequence according to the set of valid values, set of invalid values, set of valid values definition information, and set of invalid values definition information held by the key structure
[0140] , and uses the digit sequence as structure determination information. The encoding method is one of the first to fifth examples shown in the first embodiment described later, or a combination of two or more of these. When using a method involving redundancy, digit selection, or digit ignoring, the value of the digit that is not referenced is arbitrarily determined from the values allowed by the set of valid values and the set of invalid values at that digit position.
[0205] Furthermore, when a method that causes some of the input value information to be lost is used for encoding, such as the configuration in the third example of the first embodiment described later which uses an operation in which the original value is not uniquely determined from the result of the operation, the fifth example of the same embodiment, or the configuration that causes some of the input value information to be lost among the mask processing described together with the third example of the same embodiment, the determination of the value of the fluctuation target element in (1) is performed from within the range in which the value can be uniquely determined from the digit sequence obtained in this step.
[0206] When a combination with a value based on the key URL
[0130] according to the second embodiment described later is used, the range is such that the value is uniquely determined from both the digit sequence obtained in this step and the value based on the key URL
[0130] . In this case, the key distribution server
[0120] determines the range in advance based on the encoding method and the operation used in the combination, and then makes the determination in (1), thereby determining the same value of the fluctuation target element as at the time of issuance for access accompanied by ticket
[0150] .
[0207] (4) Composition and return of ticket
[0150] The key distribution server
[0120] holds the structure determination information obtained in (3) as a signature, and also constructs a ticket
[0150] that holds the ticketID, keyURL indicating the key URL
[0130] , issuedAt indicating the issuance time, and cycleState and embedFlag, which are both unset, as structural elements, and returns it to the requester of the access along with the key structure
[0140] constructed by placing the values determined in (1) into the basic structure.
[0208] Here, cycleState and embedFlag both exist as structural elements of ticket
[0150] from the time the key distribution server
[0120] issues ticket
[0150] , and at the time of issuance, their values are left unset. The value of cycleState is set by the encryption processing system (encryption device)
[0180] when the amount of encryption processing progress in the encryption processing system (encryption device)
[0180] is determined, and the value of embedFlag is set to a value indicating that embedding has occurred when ticket
[0150] is embedded in the encrypted data
[0160] .
[0209] In a preferred embodiment, the key distribution server
[0120] does not store either the returned key structure
[0140] or the issued ticket
[0150] after the completion of the response.
[0210] However, this embodiment is not essential for the implementation of the present invention and does not preclude an embodiment in which the key structure
[0140] returned by the key distribution server
[0120] or the issued ticket
[0150] is stored. With respect to the value determined in (1), in order to be used for determination in the next access, only a comparison value obtained from the value by a one-way function, or a count value that is updated each time an access is made, may be temporarily stored for each key URL
[0130] , rather than the value itself. However, this comparison value or count value is overwritten or updated each time an access is made, is not stored in association with the issued ticket
[0150] , is not referenced in the reproduction of the key structure
[0140] , and is not possible to reproduce the issued key structure
[0140] even when combined with the underlying structure. Therefore, in any embodiment, this comparison value or count value does not fall under the definition of auxiliary information as defined above.
[0211] [Key distribution server operation depending on ticket availability] Figure 4 shows the operation of the key distribution server
[0120] depending on whether or not ticket
[0150] is present. When the key distribution server
[0120] receives an access to the key URL
[0130] , it first determines whether or not the access is accompanied by ticket
[0150] .
[0212] In the case of access without ticket
[0150] , the key distribution server
[0120] determines a different value for the fluctuation target element of the key structure
[0140] for each access, and returns the key structure
[0140] composed of that value. At the same time, it issues ticket
[0150] containing structure determination information to identify the determined value and returns it to the requester of the access.
[0213] In the case of access accompanied by ticket
[0150] , the key distribution server
[0120] first determines whether the values contained in the ticket
[0150] conform to the conditions defined by the key structure
[0140] . That is, it determines whether the values of each digit of the structure determination information are permissible values according to the set of valid and invalid values of the key structure
[0140] .
[0214] If the key structure does not match, the key distribution server
[0120] will not attempt to recreate the key structure
[0140] . This eliminates the possibility of obtaining the key structure
[0140] using an incompatible ticket
[0150] . Furthermore, even if a ticket
[0150] is presented that coincidentally contains formally matching structure determination information, only the key structure
[0140] corresponding to that structure determination information will be recreated, and the probability of obtaining the key structure
[0140] used during encryption is, as described above, the reciprocal of the total number of possible values for the fluctuating element.
[0215] If a match is found, the key distribution server
[0120] determines the value of the fluctuating element based on the structure determination information, thereby reproducing the same key structure
[0140] as the key structure
[0140] returned when the ticket
[0150] was issued, and returns it.
[0216] In a preferred embodiment, the key distribution server
[0120] does not retain or refer to the key structure
[0140] returned for access without a ticket
[0150] , the ticket
[0150] issued for such access, or any auxiliary information stored for the purpose of reproducing them. In this embodiment, reproduction is performed based on the structure determination information contained in the ticket
[0150] and the underlying structure of the key structure
[0140] associated with the key URL
[0130] .
[0217] In other words, the key distribution server
[0120] only holds the underlying structure for the purpose of reproduction, and does not need to store the individual key structures
[0140] that are generated each time they are issued. As described in the ticket issuance procedure above, the key distribution server
[0120] may temporarily hold only one value for each key URL
[0130] to be used to determine the value of the element to be affected by fluctuation, but this value is overwritten each time it is accessed and is not referenced in the reproduction of the key structure
[0140] .
[0218] However, this embodiment is not essential for implementing the present invention and does not preclude an embodiment in which the key distribution server
[0120] holds the returned key structure
[0140] or the issued ticket
[0150] . Even if this embodiment is not followed, the basic configuration and effect of the present invention, which involves sharing a key configured as a large-capacity hierarchical structure between the encryption side and the decryption side without either bundling it with the encrypted data
[0160] or sharing it in advance, remains unchanged.
[0219] This configuration prevents the amount of data held by the key distribution server
[0120] from increasing proportionally to the number of issuances. Furthermore, even if the key distribution server
[0120] is compromised, none of the issued key structures
[0140] will be present on that server, so they will not be leaked all at once.
[0220] [Key distribution server configuration] The key distribution server
[0120] shown in Figure 1 functionally comprises the following parts: a key configuration unit that configures a key structure
[0140] as a hierarchical structure in which multiple structural elements are arranged hierarchically and associates this key structure
[0140] with a key URL
[0130] that identifies the key structure
[0140] ; an access determination unit that determines whether or not access to the key URL
[0130] is accompanied by a ticket
[0150] ; a first return unit that, for access without a ticket
[0150] , returns a key structure
[0140] in which at least some of the values of the structural elements of the key structure
[0140] are determined to be different values for each access; and a key structure
[01] that includes structure determination information for identifying the determined values. The system includes a ticket issuing unit that issues a ticket
[0150] having a data volume smaller than the data volume of
[40] , and a second return unit that, in response to an access accompanied by a ticket
[0150] , determines the values of at least some of the structural elements of the key structure
[0140] that are determined to have different values for each access without a ticket
[0150] by the first return unit, i.e., the values of the fluctuating elements, thereby reproducing and returning the same key structure
[0140] that was returned when the ticket
[0150] was issued.
[0221] The responses returned by the first and second return units may be in the same data format as data used for purposes other than keys, and in this case, the responses shall not include any information indicating that the responses contain keys.
[0222] Each of the aforementioned parts may be implemented as an independent circuit or program module, or multiple parts may be implemented as a single unit. The key distribution server
[0120] may be configured as a single device, or it may be configured as a distributed system using multiple devices.
[0223] [Configuration that does not conceal the key] The key distribution method according to the present invention does not depend on the premise of conventional cryptographic methods, which is to keep the cryptographic key confidential. In a preferred embodiment, the key structure
[0140] is returned in the same data format as data used for purposes other than the key, as a response to access to the key URL
[0130] .
[0224] In this specification, "data format identical to data used for purposes other than keys" means data format identical to data format exchanged over a network for purposes other than the exchange of keys used for cryptographic processing. As described above, this includes any of JSON, HTML, XML, YAML, or TOML that can represent a hierarchical structure, or any other data format that can similarly represent the hierarchical relationships of structural elements and is also used for purposes other than the exchange of keys. A response returned in such format cannot be distinguished from the format itself as containing a key used for cryptographic processing or as structured data used for purposes other than keys.
[0225] In other words, if the key structure
[0140] is represented in JSON format, the response to accessing the key URL
[0130] will have the same format as ordinary JSON content exchanged over the network. This response will not contain any information indicating that it is a key used for cryptographic processing.
[0226] No information suggesting that the response contains a key, such as the type of key, the purpose of the key, or the name of the encryption scheme, is added. In this embodiment, the names of the structural elements included in the response (such as member names in JSON) are also chosen so as not to suggest that they are used for keys or cryptographic processing.
[0227] The names of the structural elements of the key structure
[0140] , such as keyPosition, EncodeMap, DecodeMap, sharedKeyCRC64Valid, and the names of the structural elements of the ticket
[0150] , such as keyURL, signature, and others, are examples of names used to describe each structural element. In this embodiment, these names may be replaced with names commonly used in structured data used for purposes other than keys, or other names that do not suggest that they are keys.
[0228] The same applies when returning ticket
[0150] along with the response. The correspondence between the name and each structural element only needs to be predetermined between the key distribution server
[0120] , the encryption device, and the decryption device, similar to the embedding rules described above, and the information defining this correspondence does not need to be distributed and stored each time the key structure
[0140] is updated.
[0229] Therefore, even if a third party obtains the response, they cannot determine whether it is a key to be used for cryptographic processing or simply structured data. A vast amount of structured data exists on the network, and the key structure
[0140] is placed within it without distinction.
[0230] Furthermore, in the aforementioned preferred embodiment, the key URL
[0130] is not configured in a way that allows a third party to comprehensively enumerate its locations. That is, when using HTTP or HTTPS, the key URL
[0130] is configured to not allow directory listing, and no means is provided from the outside to obtain a set of URLs present at that location.
[0231] In a more preferred embodiment, the location-indicating portion of the key URL
[0130] (path name, file name, etc.) includes a sufficiently long string (hereinafter referred to as a random string) generated based on a value output by a random number generator. While the setting that does not allow list acquisition prevents exhaustive enumeration, the random string significantly reduces the probability that a third party can deduce the location of the key URL
[0130] by guessing, by increasing the total number of possible values for the location-indicating portion.
[0232] Even when using FTP, FTPS, or SFTP, the system is placed under permission settings that do not allow the retrieval of a list of directories to which the key URL
[0130] belongs. Therefore, in all cases, a third party cannot enumerate the existence of the key URL
[0130] , and if the aforementioned random string is included in the location-indicating part, the probability that a third party could reach the key URL
[0130] through guesswork becomes sufficiently small.
[0233] Therefore, even if the key structure
[0140] is placed in a publicly accessible format, a third party will not, firstly, be able to virtually know the location of the key URL
[0130] , and secondly, even if they were to obtain such a response, they would not be able to determine that it is a key.
[0234] [Safety Dependencies] In a preferred embodiment of the present invention, the key structure
[0140] can be arranged in a publicly accessible format. The security in this case depends on the following three points. All three points are ensured by the configurations relating to each of the preferred embodiments described above and are not essential for implementing the present invention. Even in an embodiment in which the key structure
[0140] is not arranged in a publicly accessible format and access to the key URL
[0130] is separately restricted, the basic configuration and effects of the present invention remain unchanged, as it allows sharing of a key configured as a large-capacity hierarchical structure without either bundling it with the encrypted data
[0160] or pre-sharing it.
[0235] Firstly, it is virtually impossible for a third party to know the key URL
[0130] . This is ensured by the aforementioned unenumerative and undeterminative properties, as well as the random string included in the part indicating the location of the key URL
[0130] . However, when using a URL scheme that does not encrypt the communication channel, such as HTTP or FTP, access to the key URL
[0130] and the response thereto can be observed over the communication channel. In this case, the first point is also ensured by using a URL scheme that encrypts the communication channel, such as HTTPS, FTPS, or SFTP, or by using it in an environment where the communication channel cannot be observed by a third party.
[0236] Secondly, a third party cannot extract the ticket
[0150] from the encrypted data
[0160] . The embedding location of the ticket
[0150] is determined by an embedding rule shared in advance by the encryption and decryption sides, and the decryption processing system (decryption device)
[0170] extracts the ticket
[0150] according to the said embedding rule before obtaining the key structure
[0140] . Therefore, whether or not the ticket
[0150] can be extracted is determined first by whether or not the said embedding rule is known. Furthermore, in a preferred embodiment in which the encrypted data
[0160] is generated by an encryption processing method that conceals the outer layer packet structure, the encrypted data
[0160] does not contain information to identify the length, delimiter position, and internal structure of the outer layer packet, so a third party cannot estimate the embedding location of the ticket
[0150] using the internal structure of the encrypted data
[0160] as a clue. Only a legitimate decryption processing system (decryption device)
[0170] that shares the said embedding rule can extract the ticket
[0150] .
[0237] Thirdly, it is virtually impossible for a third party to construct structure determination information that can reproduce the key structure
[0140] used during encryption. The possible values for each digit of the structure determination information are determined by the set of valid and invalid values of the key structure
[0140] , and these sets differ for each key structure
[0140] . Therefore, a third party who cannot reach the key URL
[0130] and obtain the key structure
[0140] due to the first point mentioned above cannot know which values are permissible for each digit, and as described above, the probability that a randomly constructed sequence of digits will formally match can be set to be sufficiently small, so it is virtually impossible for them to construct matching structure determination information.
[0238] Furthermore, even if a third party were to reach the key URL
[0130] and obtain the key structure
[0140] through access without the ticket
[0150] , thereby learning the set of valid and invalid values, the third party would only be able to construct formally compliant structure determination information and would not be able to reliably obtain structure determination information that reproduces the key structure
[0140] used during encryption. The probability of constructing such structure determination information by chance is, as mentioned above, the reciprocal of the total number of possible values for the fluctuating element, and this total number can be set sufficiently large depending on the number of elements in the set of valid values and the number of digits in the structure value.
[0239] Furthermore, the second point mentioned above assumes that the encrypted data
[0160] is generated by an encryption processing method that conceals the outer layer packet structure. In embodiments other than this one, the concealment of the embedding location of the ticket
[0150] is ensured solely by embedding rules shared in advance by the encrypting and decrypting sides.
[0240] Furthermore, the prior sharing of the embedding rules between the encrypting and decrypting sides does not negate the effect of the present invention, which is that the key structure
[0140] itself does not need to be shared in advance. This is because the embedding rules are rule information of at most a few bytes, and unlike the key structure
[0140] , which can reach tens of kilobytes, they do not need to be distributed and stored each time the key structure
[0140] is updated.
[0241] For the three reasons stated above, in the preferred embodiment, even though the key structure
[0140] is arranged in a publicly accessible format and the ticket
[0150] is embedded in the encrypted data
[0160] , decryption by a third party is virtually impossible. In other words, it is impossible, or occurs with an extremely low probability, for a third party to know the location of the key URL
[0130] , to extract the ticket
[0150] from the encrypted data
[0160] , and to obtain structural determination information that would allow them to reconstruct the key structure
[0140] used during encryption.
[0242] Regardless of the above configuration, if the key structure
[0140] is not provided in a publicly accessible format, access to the key URL
[0130] can be separately restricted to similarly prevent third parties from obtaining and decrypting the key structure
[0140] .
[0243] [Encryption Processing Flow] Figure 5 shows the flow of the encryption process according to the present invention. Of this flow, (A) is executed by the client
[0110] , (B) and (C) are executed by the key distribution server
[0120] , and (D) to (F) are executed by the encryption processing system (encryption device)
[0180] . The content of the encryption process in (D) shown below is an example of a preferred embodiment in which the key structure
[0140] is used as the initial key state in an encryption processing method that conceals the outer layer packet structure, and as stated above, the encryption processing method in which the key structure
[0140] is used is not limited to this.
[0244] In an embodiment in which the key structure
[0140] is used in another cryptographic processing method, (D) is an encryption process in which the acquired key structure
[0140] is used as the key in the cryptographic processing method, and steps (A) to (C), as well as (E) and (F), remain unchanged regardless of which cryptographic processing method is used.
[0245] Here, since the client
[0110] constitutes part of the encryption device, (A) is also executed by the encryption device. That is, in the case of the integrated configuration described above, (A) is executed by the encryption processing system (encryption device)
[0180] itself, and in the case of the separate device configuration described above, the execution of (A) by the client
[0110] is included in the execution by the encryption device.
[0246] In either case, the encryption device generates encrypted data
[0160] using the key structure
[0140] obtained by accessing the key URL
[0130] as the key.
[0247] (A) Client
[0110] accesses key URL
[0130] . This access is not accompanied by ticket
[0150] .
[0248] (B) The key distribution server
[0120] determines that the value of the fluctuation target element of the key structure
[0140] is a different value for each access, and returns the key structure
[0140] to the client
[0110] .
[0249] (C) The key distribution server
[0120] issues a ticket
[0150] containing structural determination information to identify the determined value and returns it to the client
[0110] .
[0250] (D) The encryption processing system (encryption device)
[0180] uses the acquired key structure
[0140] as the initial key state and encrypts the plaintext while advancing the progress state based on the CycleState contained in the key structure
[0140] . The encryption process is performed by dividing the plaintext according to the division position determined by the keyPosition contained in the key structure
[0140] , applying the bit arrangement determined by the bitMap, and applying the reversible transformation determined by the EncodeMap and projection function.
[0251] (E) The encryption processing system (encryption device)
[0180] sets the amount of encryption processing progress determined by the encryption in (D) to the cycleState of ticket
[0150] , embeds the ticket
[0150] into the encrypted data
[0160] , and sets a value indicating that embedding has been performed to embedFlag. The encrypted data
[0160] does not contain the key structure
[0140] itself, nor any information to identify the values of the structural elements of the key structure
[0140] , except for the information contained in the ticket
[0150] .
[0252] (F) Encrypted data
[0160] is generated. The size of the encrypted data
[0160] is determined by the sum of the size of the data generated by the encryption process in (D) and the size of the ticket
[0150] , and does not depend on the size of the key structure
[0140] . The size of the data generated by the encryption process in (D) is determined by the size of the plaintext and the size of any information that may be added depending on the encryption method used (excluding the key structure
[0140] itself and the information for identifying the values of the structural elements of the key structure
[0140] ), and is not determined by the size of the key structure
[0140] .
[0253] [Decryption process flow] Figure 6 is a diagram showing the flow of the decryption process according to the present invention. Of this flow, (A) to (D), as well as (G) and (H), are executed by the decryption processing system (decryption device)
[0170] , and (E) and (F) are executed by the key distribution server
[0120] . The content of the decryption process in (G) shown below is an example of a preferred embodiment in which the key structure
[0140] is used as the initial key state in an outer layer packet structure concealment type cryptographic processing method, and as stated above, the cryptographic processing method in which the key structure
[0140] is used is not limited to this. In embodiments in which the key structure
[0140] is used in other cryptographic processing methods, (G) becomes a decryption process in which the reconstructed key structure
[0140] is used as the key in the cryptographic processing method, and each step from (A) to (F) and (H) remains the same regardless of which cryptographic processing method is used.
[0254] (A) The decryption processing system (decryption device)
[0170] receives encrypted data
[0160] as input.
[0255] (B) The decryption processing system (decryption device)
[0170] identifies the embedding location according to the embedding rules shared in advance by the encryption side and the decryption side, and extracts the ticket
[0150] from the encrypted data
[0160] . The embedFlag of the extracted ticket
[0150] confirms that the ticket
[0150] was embedded in the encrypted data
[0160] .
[0256] (C) The decryption processing system (decryption device)
[0170] obtains the key URL
[0130] by referring to the key URL contained in the ticket
[0150] .
[0257] (D) The decryption processing system (decryption device)
[0170] accesses the key URL
[0130] with the ticket
[0150] .
[0258] (E) The key distribution server
[0120] determines whether the value contained in the ticket
[0150] conforms to the conditions defined by the key structure
[0140] . If it does not conform, the key structure
[0140] is not reproduced.
[0259] (F) If it is compatible, the key distribution server
[0120] determines the value of the element to be destabilized based on the structure determination information contained in the ticket
[0150] , thereby reconstructing the same key structure
[0140] as at the time of encryption, and returns it to the decryption processing system (decryption device)
[0170] .
[0260] (G) The decryption processing system (decryption device)
[0170] uses the reconstructed key structure
[0140] as the initial key state and performs decryption processing while reconstructing the same progress state as during encryption based on the CycleState contained in the key structure
[0140] . Since the DecodeMap is referenced based on the same progress state as the EncodeMap, there is no need to perform the reverse operation of the encryption process.
[0261] (H) Plaintext data is obtained as a result of decoding.
[0262] [Differences from public-key cryptography] In conventionally widely used public-key cryptography, the key is a fixed value based on mathematical difficulty, and its data size is generally a few kilobytes or less. While some systems, such as code-based cryptography, have public keys reaching several hundred kilobytes, even in these systems, the key remains a fixed value based on mathematical difficulty. Because the key is a fixed value, it can be kept secret or its legitimacy can be proven through mathematical relationships. The legitimacy of key distribution is guaranteed by the mathematical relationship between the public and private keys and the certificate system.
[0263] In contrast, in this invention, the key is a hierarchical structure in which multiple structural elements are arranged hierarchically, and its data volume reaches tens of kilobytes. Since the key is determined as a structure rather than a value, it is not practical to include it with encrypted data or to share it in advance. This invention solves this constraint by referencing via a key URL and reproducing it using a ticket that includes structure determination information.
[0264] Furthermore, in conventional methods, the ciphertext has a fixed block structure, and a third party can perform analysis based on that structure. In contrast, in the present invention, according to a preferred embodiment in which the cryptographic processing is an outer layer packet structure-secreting cryptographic processing method, the encrypted data
[0160] does not contain information for identifying the division position and internal structure, so a third party cannot assume the structure of the ciphertext.
[0265] It should be noted that, even in embodiments other than the aforementioned embodiment, the basic configuration and effects of the present invention remain unchanged: a key configured as a large-capacity hierarchical structure is shared between the encryption side and the decryption side, without being either bundled with the encrypted data
[0160] or pre-shared. Also, as described above, the key distribution server
[0120] not holding any of the issued key structure
[0140] , the issued ticket
[0150] , and auxiliary information stored to reproduce these is a configuration according to a preferred embodiment of the present invention, and is not an essential configuration for implementing the present invention.
[0266] Further, in conventional methods, encryption and decryption are designed as operations in opposite directions to each other. In contrast, in the present invention, according to a preferred embodiment in which the cryptographic processing is of the outer-layer packet structure concealing type, the encryption side and the decryption side reproduce the same structure through deterministic regeneration starting from the same initial key state, so that an inverse operation is not required. Also, in this embodiment, since the key structure
[0140] holds an inverse mapping in advance as a DecodeMap, the decryption side does not need to derive an inverse operation from the encryption processing. In embodiments other than this embodiment, the relationship between encryption and decryption is determined according to the adopted cryptographic processing method.
[0267] [First Embodiment: Encoding of Structure Determination Information] The present embodiment relates to an encoding method for structure determination information held by the ticket
[0150] . The structure determination information can be encoded by various methods as long as it can specify the value of the fluctuation target element of the key structure
[0140] .
[0268] The first to fifth examples shown below are specific examples of the encoding method, redundancy method, arithmetic method, masking method, digit selection method, and digit ignoring method described in the aforementioned problem section. The first example corresponds to an encoding method that uses structure values as they are, the second example corresponds to a redundancy method that adds digits based on a valid value set, the third and fifth examples correspond to an arithmetic method that performs operations on structure values, the configuration for masking each digit described in conjunction with the third example corresponds to a masking method, and the fourth example corresponds to a digit selection method that determines digit positions to be referred to and a digit ignoring method that provides digits not to be referred to, respectively.
[0269] These methods may be used independently, or two or more of them may be used in combination. As the number of combined methods increases or the number of redundant digits increases, the format of the structure determination information indicating the value of the same fluctuation target element becomes more diverse, making it difficult for a third party to identify the format.
[0270] As a first example, when the combination of structure values that specify the value of the fluctuation target element is "0479", a configuration may be mentioned in which the value is directly included as a digit string in the ticket
[0150] .
[0271] As a second example, a configuration may be mentioned in which digits based on an effective value set are added to the structure value to make it redundant. For example, the ticket
[0150] includes a value "0479ABX888", where the leading "0479" represents a combination of structure values, and the subsequent "ABX888" are digits that reinforce the combination. In this case, the possible values of the subsequent digits are also defined by the effective value set and the invalid value set of the key structure
[0140] .
[0272] As described later, the type of digits is not limited to numerals and may include alphabetic characters. In addition, since the contents of the effective value set and the invalid value set differ for each key structure
[0140] , this example is based on the premise that the numerals "0", "4", "7", "8", "9" and the alphabetic characters "A", "B", "X" are all allowed at the digit position in the key structure
[0140] . This example is different from the example in which the effective value set is values from 1 to 9 and the invalid value set is 0, and from the example in the first example of the fourth embodiment described later in which the effective value set is {0,4,7,9}, in that different key structures
[0140] are assumed as the premise.
[0273] A third example is a configuration in which the result of performing an operation on a structure value is used as a sequence of digits. For example, one configuration may involve applying addition, subtraction, multiplication, division, or bitwise operations using predetermined values to each structure value and arranging the results in order. The operation used here allows the key distribution server
[0120] to uniquely determine the value of the fluctuating element that is the same as at the time of issuance from the result. If an operation is used in which the original value is not uniquely determined from the result, the value of the fluctuating element at the time of issuance is determined from within the range corresponding to the result, similar to the fifth example described later.
[0274] Alternatively, the structure value may be divided into pairs of two digits from the beginning, one of the above operations may be performed between the two digits in each pair, and the results may be arranged in order. Furthermore, a configuration may be used in which each digit is masked. In these configurations as well, the key distribution server
[0120] determines the value of the fluctuation target element when issuing the ticket
[0150] in such a way that it can uniquely determine the value of the fluctuation target element that is the same as that at the time of issuance from the result.
[0275] A fourth example is a configuration in which the structure value combination "0479" is encoded as a longer sequence of digits. In this case, the digit selection rule defined by the valid value set definition information of the key structure
[0140] specifies which digit position in the sequence is referenced, and it is determined whether the value of each referenced digit is an acceptable value in light of the valid value set and invalid value set of the key structure
[0140] .
[0276] For example, in a configuration that references only even-numbered digits, if the digit sequence is "10448729", the 2nd, 4th, 6th, and 8th digits will be 0, 4, 7, and 9 respectively, resulting in the structural value combination "0479". The values of the 1st, 3rd, 5th, and 7th digits, which are not referenced here, are 1, 4, 8, and 2. Therefore, this example assumes a key structure
[0140] in which the digits "0", "1", "2", "4", "7", "8", and "9" are all permitted at their respective digit positions by the set of valid or invalid values. This assumes a different key structure
[0140] from the example in which the set of valid values is from 1 to 9 and the set of invalid values is 0, and from the example in the first example of the fourth embodiment described later in which the set of valid values is {0,4,7,9}. The referenced digits are not limited to even-numbered digits; configurations that reference only odd-numbered digits or ignore specific digits are also acceptable. In any case, the values of the unreferenced digits do not affect the content of the structural determination information.
[0277] A fifth example is a configuration in which the result of applying a modulo operation by a predetermined value to a structural value is used as a digit sequence. In this case, when issuing a ticket
[0150] , the key distribution server
[0120] determines the value of the fluctuating element from within the range corresponding to the result of the modulo operation, so that the value of the fluctuating element is uniquely determined from the result of the modulo operation.
[0278] Therefore, when the key distribution server
[0120] attempts to reproduce an access accompanied by ticket
[0150] , it can determine the same value of the fluctuating element as at the time of issuance based on the result. On the other hand, since the modulo operation causes some of the input value information to be lost, it is difficult for a third party who does not know the value used in the modulo operation and the range of possible values for the fluctuating element to reverse-calculate the original structural value from the digit sequence.
[0279] In each example, the sequence of digits containing the structure determination information in ticket
[0150] only needs to be able to identify the value of the element to be fluctuated in light of the set of valid and invalid values of key structure
[0140] . The type of digit is not limited to numbers, but may be letters, symbols, or a combination thereof. For example, in a format where numbers and letters are mixed, such as "0XX4YY7ZZ9", the number part may represent the combination of structure values "0479", and the letter part may not be referenced. This example also assumes a key structure
[0140] in which the numbers "0", "4", "7", and "9" and the letters "X", "Y", and "Z" are all permitted in the set of valid or invalid values at the digit position, and assumes a key structure
[0140] different from the examples above.
[0280] Therefore, the encoding scheme, number of digits, type of digits, order of digits, and digit selection rules for the structure determination information are not limited to the above examples, as long as they allow the values of the fluctuating elements to be identified in light of the set of valid and invalid values of the key structure
[0140] .
[0281] [Second Embodiment: Combination with values based on key URL] This embodiment relates to a configuration in which, when determining the value of a fluctuation target element based on structural determination information, a value based on the key URL
[0130] is also used.
[0282] The key distribution server
[0120] derives a string, number, or hash value contained in the key URL
[0130] , or a value obtained by numerically converting the key URL
[0130] in a predetermined manner. The key distribution server
[0120] then obtains a combination of structure values from the structure determination information contained in the ticket
[0150] using the procedure shown in (3) of the third embodiment described later, and then combines the combination of structure values with the derived value using a predetermined calculation to determine the value of the fluctuation target element.
[0283] In other words, the value based on the key URL
[0130] is not combined with the structure determination information itself, but rather with a combination of structure values extracted from the structure determination information according to the digit selection rules.
[0284] The key URL
[0130] is obtained by the decryption side from the ticket
[0150] and used as the access destination; it is not information that the key distribution server
[0120] stores each time it is issued. Therefore, the configuration of this embodiment is compatible with the fact that the key distribution server
[0120] does not store or refer to any of the issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them, as described in the definition of the terms above.
[0285] According to this embodiment, since the value of the fluctuating element is determined according to the numerical value obtained by the key URL
[0130] , even if the same structure determination information is used for different key URLs
[0130] , as long as the numerical values obtained by each key URL
[0130] are different and the operation used for the combination is such that different numerical values result in different results, such as addition, subtraction, or exclusive OR, different values of the fluctuating element will be determined and the same key structure
[0140] will not be reproduced.
[0286] [Third Embodiment: Key Reconstruction Algorithm and Server-less Key Retention] This embodiment relates to a procedure by which the key distribution server
[0120] reproduces the key structure
[0140] . Of the following steps, (2) is a step that is performed when a combination with a value based on the key URL
[0130] according to the second embodiment is used, and if the combination is not used, (2) is omitted, and in (4), the value of the fluctuating element is determined based only on the structure value obtained in (3) or a value that replaces it. The key distribution server
[0120] reproduces the key structure
[0140] by the following procedure.
[0287] (1) Obtain the key URL
[0130] The key distribution server
[0120] retrieves the key URL
[0130] included in the access request.
[0288] (2) Digitization of the key URL
[0130] The key distribution server
[0120] digitizes the character string, numerical value, or hash value included in the key URL
[0130] using a predetermined method. Examples of digitization methods include per-digit conversion, overall hashing, partial string extraction, or masking processing.
[0289] (3) Analysis of the ticket
[0150] The key distribution server
[0120] analyzes the digit string of the structure determination information included in the ticket
[0150] , and determines whether the value of each digit is a value allowed by the key structure
[0140] at the position of that digit. That is, when the valid value set is defined as a common set regardless of digit position, any value belonging to the valid value set is allowed at any digit, and values belonging to the invalid value set are allowed only at digit positions where use of that value is permitted. On the other hand, as in the second example of the fourth embodiment described later, when the valid value set is defined as a different set for each digit position, the value of each digit is allowed only when it belongs to the valid value set defined for that digit position, and when use of a value belonging to the invalid value set for that digit position is permitted, that value is also allowed.
[0290] In any case, the target of determination is the digit referenced by the digit selection rule defined in the valid value set definition information of the key structure
[0140] , and the determination may not be performed for digits that are not referenced. If any of the digits subject to determination contains a value that is not allowed, the key distribution server
[0120] does not perform reproduction. If all digit values subject to determination are allowed values, the key distribution server
[0120] extracts the digits to be referenced from the digit string according to the digit selection rule, and obtains a combination of structure values from the values of each extracted digit using a method corresponding to the encoding method used to generate the structure determination information.
[0291] When a method is used in which the combination of structural values is used as the digit sequence, as in the first example of the first embodiment, the combination of values of each extracted digit becomes the combination of structural values. When a method is used in which calculations are performed on the structural values or masking is performed, as in the third example of the same embodiment, the key distribution server
[0120] obtains the combination of structural values by applying the method corresponding to the calculation or masking to the value of each extracted digit.
[0292] In this case, when the calculation or masking process causes the loss of some of the information in the input value, and when a modulo operation is used as in the fifth example of the embodiment, the key distribution server
[0120] does not need to restore the original structure value, but instead uses a value determined from the extracted values of each digit in place of the combination of structure values, and determines the value of the fluctuation target element from that value in (4) below.
[0293] The value of the variable element is determined to be uniquely determined from that value when issuing ticket
[0150] , so the same value as at the time of issuance will be obtained. Note that the values of redundant digits and digits that are not referenced do not affect this retrieval.
[0294] (4) Determination of the value of the element subject to fluctuation If (2) is performed, the key distribution server
[0120] determines the value of the fluctuating element by combining the value obtained in (2) and the structure value obtained in (3) through a predetermined calculation. If (2) is omitted without using a combination with the value based on the key URL
[0130] according to the second embodiment, the key distribution server
[0120] determines the combination of structure values obtained in (3) as the value of the fluctuating element.
[0295] In any case, if a value is obtained in place of the original structure value as a result of using an encoding method in (3) that causes some of the information to be lost, the key distribution server
[0120] uses this value in place of the structure value and determines the value of the fluctuating element using the same method. In any case, the value determined is the same as the value of the fluctuating element determined when issuing the ticket
[0150] .
[0296] (5) Reconstruction of the key structure
[0140] The key distribution server
[0120] places the determined value into the underlying structure of the key structure
[0140] associated with the key URL
[0130] , thereby reproducing the same key structure
[0140] as when the ticket
[0150] was issued. This placement is achieved when the key distribution server
[0120] assembles the key structure
[0140] from the underlying structure, by assigning the determined value to the position of the element subject to fluctuation.
[0297] In this embodiment, where the key distribution server
[0120] performs the assembly using a template that holds provisional values for the elements subject to fluctuation, the arrangement is performed by replacing the provisional values with values specified by the structure determination information. Here, the provisional values do not represent the values that the elements subject to fluctuation should take, but are merely formal values placed on the template to indicate the position of the elements subject to fluctuation.
[0298] Therefore, the provisional value does not correspond to the value of a structural element included in the underlying structure as defined in the above definition of terms, and is not inconsistent with the fact that the underlying structure does not include the value of the element subject to fluctuation. Furthermore, the provisional value is the same for all accesses and does not identify an issued key structure
[0140] or an issued ticket
[0150] , so it does not correspond to auxiliary information as defined in the above definition of terms. In the above preferred embodiment in which assembly is performed using a template that holds provisional values for the element subject to fluctuation, the structure determination information functions as information for replacing at least some of the values of the structural elements included in the key structure
[0140] with the value specified by the structure determination information.
[0299] In contrast, in the embodiment where assembly is performed by assigning determined values to the positions of the variable elements of the underlying structure without using a template, the structure determination information functions only as information for determining the values of the variable elements. In either embodiment, the same key structure
[0140] that was returned when ticket
[0150] was issued is reproduced.
[0300] In this embodiment, the key distribution server
[0120] does not retain any issued key structures
[0140] , issued tickets
[0150] , or auxiliary information stored to reproduce them. The key structure
[0140] is reproduced each time from the structure determination information contained in the ticket
[0150] and the underlying structure of the key structure
[0140] associated with the key URL
[0130] . In other words, the key distribution server
[0120] retains an underlying structure that does not change with each access, and does not retain individual key structures
[0140] that are generated each time they are issued.
[0301] Therefore, a third party who obtains the key URL
[0130] and ticket
[0150] cannot calculate the key structure
[0140] themselves unless they know the underlying structure held by the key distribution server
[0120] . This is because the structure determination information contained in ticket
[0150] only determines the value of the variable element when combined with the underlying structure.
[0302] On the other hand, the key distribution server
[0120] reproduces and returns the key structure
[0140] for access accompanied by a matching ticket
[0150] , and the legitimate decryption processing system (decryption device)
[0170] obtains the same key structure
[0140] as at the time of encryption through this operation. In the preferred embodiment described in the security dependency section above, it is ensured that a third party cannot obtain the same key structure by knowing the location of the key URL
[0130] and by identifying the position determined by the embedding rules from the encrypted data
[0160] and extracting the ticket
[0150] .
[0303] If the above configuration is not followed, it is sufficient to prevent third parties from reaching the key URL
[0130] by means of restricting access by authority, and even in this case, the configuration and effects of this embodiment remain unchanged, in which the key distribution server
[0120] does not retain any of the issued key structures
[0140] , issued tickets
[0150] , or auxiliary information stored to reproduce them.
[0304] Therefore, even if the key distribution server
[0120] is compromised, the issued key structure
[0140] will not be leaked from that server. The situation in which stored keys are leaked, which was assumed in conventional methods, will not occur.
[0305] [Fourth Embodiment: Construction of the Set of Valid Values] This embodiment relates to the configuration of a set of valid and invalid values held by a key structure
[0140] . The set of valid values is a set of values that can be used in the digits that constitute the structure determination information, and the set of invalid values is a set of values that are not normally permitted to be used in the digits, and whose use is permitted only in the digit positions specified by the invalid value set definition information. The value of the fluctuating element is identified based on a structure value extracted from the digit sequence of the structure determination information, which is composed of values permitted in the digit positions by these sets, according to the digit selection rules specified by the valid value set definition information. The set of valid and invalid values indirectly defines the range of values that the fluctuating element can take by defining the range of digit values that can represent the structure value.
[0306] As a first example, consider the case where the combination of structure values that identifies the value of the element subject to fluctuation is "0479", and the set of valid values is {0, 4, 7, 9}. Here, the set of valid values is not determined from the individual combination of structure values "0479", but is a set predetermined for each key structure
[0140] as the total number of possible values for each digit of the structure value, and each value of the digit of the structure value belongs to this set.
[0307] In this case, values that do not belong to the set of valid values (for example, 1, 2, 3, 5, 6, 8) are treated as invalid values and will not be used as digits in the structure determination information unless the invalid value set definition information specifies a digit position where the use of such values is permitted. If the invalid value set definition information permits the use of such values for a specific digit position, then those values may be used as digits in the structure determination information, but only for that digit position. Note that the contents of the set of valid values and the set of invalid values differ for each key structure
[0140] , and this example assumes a key structure
[0140] different from the above example in which the set of valid values consisted of values from 1 to 9 and the set of invalid values consisted of 0.
[0308] A second example is when the set of valid values is defined as a different set for each digit position. In this case, the set of valid values definition information defines the set of valid values for each digit position, as well as the selection rules for the digits to be referenced. For example, a configuration that references only even digits in the digit sequence of the structure determination information, a configuration that references only odd digits, or a configuration that ignores specific digit positions, in which the set of valid and invalid values is used to determine the value of the variable element only for the referenced digit positions, and the values of digits that are not referenced do not affect the identification of the value of the variable element.
[0309] A third example is when the set of valid values is determined based on the key URL
[0130] . For example, this could involve a configuration where a specific part of the key URL
[0130] is treated as the set of valid values, or a configuration where the result of applying a modulo operation to the numerical value obtained by converting the key URL
[0130] is treated as the set of valid values.
[0310] In this case, the key distribution server
[0120] places the set of valid and invalid values derived from the key URL
[0130] as structural elements constituting the set of significant digits (ValidDigitSet) of the key structure
[0140] , and uses them to determine the suitability of ticket
[0150] and to obtain structural values. Therefore, both the set of valid and invalid values are included in the key structure
[0140] . Here, the derivation is performed based solely on the key URL
[0130] , and the same set of valid and invalid values is always obtained for the same key URL
[0130] , so the sets do not change with each access. Furthermore, as stated in the definition of terms above, there is no preclude using the values included in the key URL
[0130] itself when reconstructing the hierarchical structure.
[0311] Therefore, this example is not inconsistent with the fact that the underlying structure does not change with each access, and is compatible with the fact that the key distribution server
[0120] does not retain or reference any issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them. This example differs from the first and second examples only in that the rules defining the set are based on the key URL
[0130] .
[0312] A fourth example is when the set of valid values is determined by applying an operation to the set of all possible values for each digit of the structure value, resulting in a redundant set with meaningless values inserted, or a set obtained by masking the set. Here, the set of valid values is not determined from the structure value determined in each access, but is predetermined for each key structure
[0140] based on the entire range of possible values for each digit of the structure value, and does not change with each access. Therefore, the set of valid values is the value of the structure element included in the underlying structure as defined above, and the key distribution server
[0120] holds the set of valid values when it receives an access accompanied by ticket
[0150] , and can determine the suitability of ticket
[0150] and obtain the structure value based on this set.
[0313] The key distribution server
[0120] determines whether the value of each digit of the structure determination information contained in the ticket
[0150] is a value that is permitted by the set of valid and invalid values at the position of that digit. If it is a permitted value, the key distribution server
[0120] determines the value of the fluctuating element based on the structure value determined from the value of each digit.
[0314] In other words, the set of valid and invalid values provides criteria for determining the compliance of ticket
[0150] , as well as criteria for identifying the values of the elements subject to fluctuation.
[0315] Therefore, the number of digits, type of digits, order of digits, and selection rules for the structural determination information can be varied, as long as the determination is valid and the value of the fluctuating element can be uniquely identified. For tickets
[0150] containing structural determination information for which the determination is not valid, the key distribution server
[0120] does not reproduce the key structure
[0140] .
[0316] The construction of the valid and invalid value sets is not limited to the examples above, and various methods can be employed as long as the values of the fluctuating elements can be uniquely identified. The more complex the encoding becomes, and the more redundant digits are added and used as the basis for determination, the more difficult it becomes for a third party to construct conforming structure determination information.
[0317] [Fifth Embodiment: Handling of Key URLs and Tickets] This embodiment relates to the concealment of key URL
[0130] and ticket
[0150] .
[0318] In conventional encryption methods, keys are generated as binary sequences based on random numbers, and these binary sequences must be encoded, stored, and reconstructed each time they are used. In contrast, in a preferred embodiment of the present invention, the key structure
[0140] is reconstructed from the structure determination information contained in the ticket
[0150] and the underlying structure of the key structure
[0140] associated with the key URL
[0130] , so there is no need to store the issued key structure
[0140] itself. In this embodiment, the key distribution server
[0120] holds an underlying structure that does not change with each access, not individual key structures
[0140] that have different values each time they are issued.
[0319] As stated above, this embodiment is not essential for implementing the present invention and does not preclude an embodiment in which the key distribution server
[0120] holds the returned key structure
[0140] or the issued ticket
[0150] . Even if this embodiment is not followed, the basic configuration and effect of the present invention, which involves sharing a key configured as a large-capacity hierarchical structure between the encryption side and the decryption side without either bundling it with the encrypted data
[0160] or sharing it in advance, remains unchanged.
[0320] The key URL
[0130] is referenced by both the encrypting and decrypting sides. In the preferred embodiment described above, namely the embodiment in which the key URL
[0130] is not placed under a structure that can be enumerated from the outside and does not contain information indicating that the response to access to the key URL
[0130] is a key, the key URL
[0130] is made unreachable to third parties, in conjunction with including the aforementioned random string in the part indicating the location of the key URL
[0130] . Unreachable here does not mean restricting access to the key URL
[0130] by authority, but rather means that a third party cannot actually reach the key URL
[0130] because they do not know either its location or its meaning.
[0321] Therefore, in this embodiment, the key URL
[0130] can be placed on a public network without requiring concealment through access restrictions. If this embodiment is not followed, it is sufficient to prevent third parties from reaching the key URL
[0130] by means of restricting access by authority, and even in this case, the basic configuration of the present invention, in which the key, which is configured as a large-capacity hierarchical structure, is shared between the encrypting and decrypting sides without either bundling it with the encrypted data
[0160] or sharing it in advance, remains unchanged.
[0322] Furthermore, the aforementioned preferred configuration, in which the key structure
[0140] is reconstructed from the structure determination information contained in the ticket
[0150] and the underlying structure of the key structure
[0140] associated with the key URL
[0130] , remains unchanged when access to the key URL
[0130] is restricted by permissions.
[0323] Ticket
[0150] is embedded within encrypted data
[0160] , and is therefore handed over to the legitimate decryption party that holds encrypted data
[0160] .
[0324] On the other hand, while the embedding location of ticket
[0150] is determined by the embedding rules, in a preferred embodiment where the encrypted data
[0160] is generated by an encryption processing method that conceals the outer layer packet structure, the encrypted data
[0160] does not contain information to identify its internal structure. Therefore, a third party cannot estimate the embedding location using the internal structure of the encrypted data
[0160] as a clue, and cannot extract ticket
[0150] unless they know the embedding rules.
[0325] In embodiments other than those described herein, the embedding location of ticket
[0150] is determined by embedding rules shared in advance by the encryption and decryption sides, and a third party unaware of these embedding rules cannot extract ticket
[0150] .
[0326] In other words, ticket
[0150] is transported together with encrypted data
[0160] , and is placed in a state where it can only be retrieved by a legitimate decryption party.
[0327] The key structure
[0140] placed in the key URL
[0130] may be newly generated, or it may be a modified version of a key structure
[0140] that has already been placed. In the preferred embodiment described above, where the key structure
[0140] is placed in the same data format as data used for purposes other than keys, and does not contain any information indicating that it is a key used for cryptographic processing, in either case, the origin of the key structure
[0140] cannot be determined from the outside.
[0328] However, if the underlying structure of an already placed key structure
[0140] is changed, it is not possible to reproduce the same key structure
[0140] as before the change using a ticket
[0150] issued based on the underlying structure before the change.
[0329] If it is to allow the decryption of encrypted data
[0160] generated before the change to continue after the change, the configuration will be as follows: the underlying structure after the change will be associated with a different key URL
[0130] , and the underlying structure before the change will be kept associated with the original key URL
[0130] and will coexist; or the key distribution server
[0120] will maintain the underlying structure for each generation and select the underlying structure for the corresponding generation based on the information indicating the issuance time contained in the ticket
[0150] .
[0330] In the former configuration, the keyURL of ticket
[0150] issued before the change still points to the original key URL
[0130] to which the underlying structure before the change is associated. Therefore, without rewriting ticket
[0150] , accessing the original key URL
[0130] associated with ticket
[0150] reproduces the same key structure
[0140] as when it was issued.
[0331] [Differentiation] The present invention is not limited to the embodiments and examples described above, and the following modifications are possible.
[0332] The data format used to represent the key structure
[0140] may be JSON, HTML, XML, YAML, or TOML, as well as other data formats capable of similarly representing the hierarchical relationships of structural elements. The data format only needs to be capable of representing the hierarchical structure and is not limited to the examples given above.
[0333] The URL scheme used for the key URL
[0130] may be HTTP, HTTPS, FTP, FTPS, or SFTP, or any other URL scheme. In a preferred embodiment where a setting is applied that prevents external acquisition of a list of directories or namespaces containing the key URL
[0130] , a URL scheme to which such a setting can be applied is used. In embodiments where such a setting is not applied, it is sufficient that the URL scheme provides an identifier that allows the encrypting and decrypting sides to commonly refer to the location of the key structure
[0140] , and the type of URL scheme is not limited.
[0334] The elements subject to fluctuation may be all or some of the structural elements contained in the key structure
[0140] . If only some are included, which structural elements are included can be determined according to the required size of the search space. However, if the EncodeMap or projection function is included as an element subject to fluctuation, the DecodeMap is also included as an element subject to fluctuation, and when the key distribution server
[0120] determines the values of these structural elements based on the structure determination information, it determines the DecodeMap as a corresponding value to each other so that it holds the inverse mapping corresponding to the reversible transformation determined by the determined EncodeMap and projection function. If neither the EncodeMap nor the projection function is included as an element subject to fluctuation, the DecodeMap is also not included as an element subject to fluctuation, and both are included in the underlying structure.
[0335] However, as stated in the definition of the terms above, the valid value set, invalid value set, valid value set definition information, and structural elements that hold the invalid value set definition information, i.e., the portion of the significant digit set (ValidDigitSet) that holds these, are excluded from the elements subject to fluctuation in any case. The values of these structural elements are included in the underlying structure of the key structure
[0140] that the key distribution server
[0120] holds in advance, or are uniquely derived from the key URL
[0130] itself, as in the third example of the fourth embodiment above, and in either case do not change with each access and can be determined at the time the key distribution server
[0120] receives access accompanied by the ticket
[0150] .
[0336] Therefore, even if all structural elements are designated as elements subject to fluctuation, all structural elements excluding these are also designated as elements subject to fluctuation. In this case as well, the key distribution server
[0120] determines that at least some of the values of the structural elements of the key structure
[0140] are different for each access to the key URL
[0130] that is not accompanied by a ticket
[0150] , thus satisfying the configuration of the key distribution method according to the present invention.
[0337] However, in the embodiment in which the key structure
[0140] is used as the initial key state in an outer layer packet structure concealment type cryptographic processing scheme, as described above, CycleState is included in the elements subject to fluctuation, and thereby the structure determination information defines the initial value of the initial key state S0.
[0338] The structural determination information may directly specify the value of the element subject to fluctuation, or it may be information for deriving that value.
[0339] The key distribution server
[0120] may consist of a single device or may be configured in a distributed manner using multiple devices. In the case of a distributed configuration using multiple devices, the value determined in the most recent access for the same key URL
[0130] is shared among the multiple devices, or access to the same key URL
[0130] is distributed to the same device, so that for consecutive accesses to the same key URL
[0130] without a ticket
[0150] , a value different from the value determined in the most recent access is determined.
[0340] Alternatively, the key structure
[0140] may be distributed via the content distribution network. In this case, the content distribution network is configured not to cache responses to access without a ticket
[0150] , or the distribution points of the content distribution network are configured to execute the aforementioned discrimination process, first process, and second process, so that a different key structure
[0140] is returned for each access, and the key structure
[0140] is reproduced for access with a ticket
[0150] . When each of these processes is executed at a distribution point, the distribution point constitutes part of the distributed key distribution server
[0120] described above.
[0341] Each step of the key distribution method according to the present invention can be implemented as a program to be executed by a computer.
[0342] The program is executed on a computer that constitutes the key distribution server
[0120] , causing the computer to execute the configuration step, the discrimination step, the first step, and the second step. The program may also cause the computer to function as the key configuration unit, the access discrimination unit, the first return unit, the ticket issuance unit, and the second return unit by executing these steps.
[0343] The program may be provided by recording it on a non-temporary computer-readable storage medium, or by providing it via a network. [Industrial applicability]
[0344] This invention can be used in cryptographic processing that utilizes a key configured as a hierarchical structure, specifically for distributing the key to both the encryption and decryption sides. Specifically, it can be used in content distribution services using content distribution networks, distribution of configuration information for industrial equipment, distribution of configuration information for IoT devices, and distribution of software license information. Three specific usage examples are given below.
[0345] One primary use case is a video distribution service using a content distribution network. The key structure
[0140] is distributed via the content distribution network, and the ticket
[0150] is embedded in the encrypted video data
[0160] being distributed, allowing the viewer to decrypt the video without having to hold the key structure
[0140] beforehand. In this case, the content distribution network is configured not to cache responses to access without the ticket
[0150] , as described in the modified example above, or the discrimination process, the first process, and the second process are performed at the distribution site. Since the key structure
[0140] is placed in the same format as other distributed content, it is not distinguished as a key on the distribution infrastructure.
[0346] A second application is the distribution of configuration information for industrial equipment, configuration information for IoT devices, and software license information. This information can be distributed as encrypted data
[0160] , and the key structure
[0140] used for encryption and decryption can be distributed using the key distribution method according to the present invention. The device only needs to hold a ticket
[0150] of several tens to several hundreds of bytes for the key, and does not need to store a key structure
[0140] of several tens of kilobytes within the device. This can be applied even to devices with strict memory capacity constraints.
[0347] A third use case is key updating. When updating the key structure
[0140] , the conventional method required redistributing a key of several tens of kilobytes to all related devices. In the present invention, it is sufficient to change the underlying structure of the key structure
[0140] associated with the key URL
[0130] at the key distribution server
[0120] , eliminating the need for redistribution to each device. However, a ticket
[0150] issued based on the underlying structure before the update cannot reproduce the same key structure
[0140] as before the update from the underlying structure after the update.
[0348] Therefore, in order to allow the decryption of encrypted data
[0160] generated before the update to continue after the update, the configuration will be such that the underlying structure after the update is associated with the new key URL
[0130] , and the underlying structure before the update is associated with the original key URL
[0130] and coexists with it, or the key distribution server
[0120] will maintain the underlying structure for each generation, and will select and reproduce the underlying structure of the corresponding generation based on the information indicating the issuance time contained in the ticket
[0150] .
[0349] In the former configuration, the ticket
[0150] issued before the update does not require rewriting; accessing the original key URL
[0130] reproduces the same key structure
[0140] as when it was issued, and the new key URL
[0130] is used for encryption after the update. In this case, only the new key URL
[0130] is notified to the encrypting side, and there is no need to redistribute the key structure
[0140] which is several tens of kilobytes in size.
[0350] In the latter configuration, the underlying structure for each generation is the underlying structure associated with the key URL
[0130] in that generation, and does not change with each access in that generation. Therefore, it falls under the definition of the underlying structure as defined above, and does not fall under auxiliary information. Furthermore, the selection of which generation's underlying structure to use is based on the information indicating the issuance time contained in the ticket
[0150] , and not on the information stored by the key distribution server
[0120] each time it is issued.
[0351] The reproduction of the key structure
[0140] after the selection is based on the selected underlying structure and the structure determination information contained in the ticket
[0150] . Therefore, this configuration is compatible with the fact that the key distribution server
[0120] does not retain or refer to any of the issued hierarchical structures, issued tickets, or auxiliary information stored to reproduce them, as defined in the above definition of terms.
[0352] In the preferred embodiment described above, where the key distribution server
[0120] does not retain any issued key structures
[0140] , issued tickets
[0150] , or auxiliary information stored to reproduce them, in any of the above configurations, the key distribution server
[0120] only retains the basic structure for reproduction and does not store issued key structures
[0140] , issued tickets
[0150] , or auxiliary information stored to reproduce them.
[0353] However, this embodiment is not essential for implementing the present invention and does not preclude an embodiment in which the key distribution server
[0120] holds the returned key structure
[0140] or the issued ticket
[0150] . Even if this embodiment is not followed, the aforementioned usage form, in which redistribution to each device is not required when updating the key structure
[0140] , remains unchanged.
[0354] As described above, the key distribution server
[0120] may temporarily hold only one value for each key URL
[0130] to use in determining the value of the fluctuating element, but this value is overwritten each time it is accessed and is not referenced in reproduction, nor does it increase in proportion to the number of times tickets
[0150] are issued. Furthermore, the number of underlying structures that are held is determined by the number of times the key structure
[0140] is updated, and does not increase in proportion to the number of times tickets
[0150] are issued. [Explanation of Symbols]
[0355] 110: Client 120: Key distribution server 130: Key URL 140:Key structure 150: Tickets 160: Encrypted data 170: Decryption processing system (decryption device) 180: Encryption processing system (encryption device)
[0356] [Note: Contact information] For inquiries regarding this application, please contact us at the address below. Email: gan3sys@outlook.jp
Claims
1. A key distribution method for distributing keys used in cryptographic processing, wherein the key distribution server, (a) The key is constructed as a hierarchical structure in which multiple structural elements are arranged hierarchically, Associate the key URL that identifies the hierarchical structure with the hierarchical structure Among these, the hierarchical relationship of the structural elements and the first step described later among the structural elements The values of structural elements other than those that are determined as different values for each access. This includes at least a portion of the hierarchy, and the part that does not change with each access. As the basic structure of the structure, it is stored in advance in association with the aforementioned key URL. The construction process, (b) A determination step to determine whether access to the key URL is accompanied by a ticket, (c) For access to the key URL without a ticket, of the structural elements At least some of the values were determined to be different for each access. The hierarchical structure is returned to the requester of the access, and the determined value is returned. Issue a ticket containing structural determination information for identification purposes and return it to the requesting party. The first step, (d) For access to the key URL associated with the ticket, the ticket Based on the structural determination information included, the structural elements in the first step For each access to the aforementioned key URL without a ticket, a different value will be assigned. The values of at least some of the structural elements to be determined are determined, and the determined values are By placing it in the basic structure, the ticket was returned at the time of issuance. Recreate the same hierarchical structure as the original and return it to the requester of the access request. The second step, Execute, The key distribution server receives the hierarchical structure returned in the first step, and in the first step The aforementioned tickets issued at the location, and the auxiliary information stored to reproduce them. Neither is kept on the key distribution server, and neither is kept on the key distribution server. Without referring to these, the reproduction of the hierarchical structure in the second step is as follows: The structure determination information contained in the ticket presented in connection with access to the aforementioned key URL This is done based on the underlying structure associated with the aforementioned key URL, The amount of data for the aforementioned ticket is smaller than the amount of data for the aforementioned hierarchical structure. A key distribution method characterized by the following features.
2. In the key distribution method described in claim 1, The structural determination information includes at least one of the structural elements included in the hierarchical structure. This information is intended to replace some values with values specified by the structure determination information. A key distribution method that is a distinguishing feature.
3. In the key distribution method described in claim 1, The structure determination information is based on a combination of multiple structure values included in the hierarchical structure. A key distribution method characterized by being a generated key.
4. In the key distribution method described in claim 3, The aforementioned structural determination information is a value consisting of multiple digits, and the possible values for each digit are, The set of valid values and the set of invalid values included in the hierarchical structure A key distribution method characterized by being defined as such.
5. In the key distribution method described in claim 1, When the aforementioned key distribution server accesses the key URL associated with the ticket, it accesses the ticket Determine whether the included values conform to the conditions defined by the hierarchical structure, If the match is found, the second step is executed; if the match is not found, the hierarchical structure is reproduced. A key distribution method characterized by not performing the following actions.
6. In the key distribution method described in claim 1, The aforementioned structural element is information that defines the division position of the data to be encrypted, and the data to be encrypted Information defining the bit arrangement, information defining the reversible transformation applied during encryption, A key distribution method characterized by including information that defines the progress of the reversible transformation.
7. In the key distribution method described in claim 1, The aforementioned hierarchical structure is in one of the following data formats: JSON, HTML, XML, YAML, or TOML. Or other data formats that can similarly represent the hierarchical relationships of structural elements A key distribution method characterized by being expressed in a specific way.
8. In the key distribution method described in claim 1, The aforementioned key URL, and one of the following URL schemes: HTTP, HTTPS, FTP, FTPS, or SFTP. Alternatively, obtain an external list of directories or namespaces containing the key URL. The identifier is specified using another URL scheme that may be subject to the setting that prohibits it. A key distribution method that is a distinguishing feature.
9. In the key distribution method described in claim 1, The aforementioned ticket includes a ticket identifier that identifies the ticket, and a reference that indicates the key URL, Information indicating the issuance time of the ticket, the structure determination information, and the progress status of the cryptographic processing. The information and a flag indicating that the ticket is embedded in the encrypted data generated using the hierarchical structure. Included as a structural element, The structure determination information is a value generated based on the internal structure values of the hierarchical structure, A key distribution method characterized by the fact that the signature value is not generated by the private key.
10. In the key distribution method described in claim 1, The aforementioned ticket is embedded within the encrypted data generated using the aforementioned hierarchical structure, The aforementioned key URL allows external access to a list of directories or namespaces containing the key URL. A key distribution method characterized by being set up in a way that prevents acquisition.
11. In the key distribution method described in claim 1, The aforementioned cryptographic process starts from the same initial key state shared by the encrypting and decrypting sides. Through definitive regeneration, the partition location and internal structure of the encrypted data are restored. Despite the lack of information to identify it, the decryption side was identical to the encryption side. This method reproduces the division points and internal structure. The aforementioned hierarchical structure is used as the initial key state, and the structure determination information A key distribution method characterized by defining the initial value of the initial key state.
12. In the key distribution method described in claim 1, The aforementioned hierarchical structure, in response to access to the key URL, is used for purposes other than the key. The data returned is in the same data format as the data provided, and the response is, Information indicating that the hierarchical structure is a key used for cryptographic processing. A key distribution method characterized by not including [the specified element].
13. A key distribution server that distributes keys used for cryptographic processing, The key is constructed as a hierarchical structure in which multiple structural elements are arranged hierarchically. Associate the key URL that identifies the hierarchical structure with the hierarchical structure, and among the hierarchical structures, The hierarchical relationship of the structural elements and the access of the first return section of the structural elements, which will be described later. This includes at least some of the values of structural elements other than those that are determined to be different values for each, The parts that do not change with each access are used as the underlying structure of the hierarchical structure. A key configuration unit that is pre-stored in association with the aforementioned key URL, An access determination unit that determines whether or not access to the aforementioned key URL is accompanied by a ticket, For access to the aforementioned key URL without a ticket, at least of the structural elements A hierarchical structure in which some values are determined to be different for each access is used for that access. The first return section, which is returned to the requesting party, The hierarchical structure includes structural determination information for identifying the determined value, Issue a ticket with a data volume smaller than the actual data volume, and send it to the source requesting the access. The ticket issuing department to which the ticket will be returned, For access to the key URL associated with the ticket, the structure determination information contained in the ticket Based on this, the first return section of the structural elements does not include a ticket for the key URL. Determine the values of at least some of the structural elements, which are determined to be different values for each access. By placing the determined value into the aforementioned basic structure, the value returned at the time of ticket issuance is A second return unit that reproduces the same hierarchical structure as the original hierarchical structure and returns it to the requester of the access, Equipped with, The returned hierarchical structure, the issued tickets, and in order to reproduce them None of the stored auxiliary information is retained on the key distribution server, and Without referring to these held in the key distribution server, the second return unit The reproduction of the aforementioned hierarchical structure is provided in the ticket presented in connection with access to the aforementioned key URL. The structure determination information included and the underlying structure associated with the key URL A key distribution server characterized by being based on [a certain principle].
14. In the key distribution server described in claim 13, The responses returned by the first return unit and the second return unit are used for purposes other than keys. The response must be in the same data format as the data and must indicate that it contains the key. A key distribution server characterized by not containing any information.
15. The key distribution method according to any one of claims 1 to 12 is used with a computer. A program to be executed.
16. The system comprises a key distribution server according to claim 13 or 14, an encryption device, and a decryption device. It is an encrypted communication system, The encryption device accesses the key URL without a ticket and obtains a hierarchical structure. It is used as a key to generate encrypted data, and the encrypted data is used for the access in question. The key distribution server embeds the ticket it issued and transmits it to the decryption device. The decryption device extracts the ticket from the received encrypted data, By accessing the aforementioned key URL with the ticket, the key distribution server will... Obtain the same hierarchical structure as used during encryption, and use that hierarchical structure as the key. This decrypts the aforementioned encrypted data. The encrypted data transmitted from the encryption device to the decryption device is This does not include the aforementioned hierarchical structure. An encrypted communication system characterized by the following features.
Citation Information
Patent Citations
Provision for electronic encryption key and decoding service for encrypted message
JP2002009755A
Authentication management device and authentication management system
JP2020024603A
Structure-independent meta-encryption scheme
JP7923614B1
Methods and apparatus for encrypting a binary string
US20040052367A1
Cryptographic system and methodology for creating and managing crypto policy on certificate servers
US6336186B1
