Transferring and storing encrypted user data
SDFT and NUTS address the challenges of secure data management by organizing data operations through metamorphic principles, ensuring privacy, security, and convenience in data storage and transmission, enhancing data integrity and compatibility.
Patent Information
- Application Number
- JP2022077448
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2016-09-15
- Filing Date
- 2022-05-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2037-08-31
AI Technical Summary
Existing data-centric software designs face challenges in securing and managing user data during storage and transmission, particularly in ensuring privacy, security, and convenience, with complex interactions between layers of data manipulation operations leading to difficulties in clean segmentation.
The implementation of Structured Data Folding with Transmutations (SDFT) and Encrypted User Data Transit & Storage (NUTS) layers, which utilize metamorphic principles to organize data operations systematically, ensuring secure and efficient data management through layered approaches with reversible and irreversible transformations, including encryption and decryption methods.
SDFT and NUTS provide a framework for secure, efficient, and convenient data management, enabling privacy, security, and ease of use by redefining common data-oriented logical operations, ensuring data integrity and compatibility across various systems.
Smart Images

Figure 0007540749000092 
Figure 0007540749000084 
Figure 0007540749000007
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is based on and benefits from U.S. Provisional Patent Application No. 62 / 395,084, filed September 15, 2016, the entire contents of which are incorporated herein by reference. Summary of the Invention
[0002]
[0002] A data-centric model of computer software design is one in which user data may take precedence over applications. Data-centric software design may allow data to be secured during storage. Containerization of data may be an embodiment of data-centric design. To show how various concepts may be implemented within the present disclosure, a series of figures from different perspectives highlight the particular concepts being discussed, and a cohesive figure shows how some of these processes and structures may work together.
[0003]
[0003] Data containerization may be presented in a layered approach, with each layer building on or working with the previous layer, partially or entirely, if preferred. The concepts, methods, apparatus, embodiments and / or specifications described herein for the first layer may be collectively referred to as Structured Data Folding with Transmutations, or SDFT. The concepts, methods, apparatus, embodiments and / or specifications described herein for the second layer, which may include the first layer, may be collectively referred to as eNcrypted Userdata Transit & Storage, or NUTS. Any combination of layers may be deployed partially or entirely, and each layer may be deployed independently, partially or entirely, to build a container for data, called Nut. The interaction and / or interweaving of these two layers may be significant and / or complex, raising challenges for a clear demarcation of such layers. Thus, these layers are presented together herein. A Nut container may then be filled with various data-centric properties that may enable logical operations on the data contained within it. With respect to a unit of storage called Nut, various embodiments may be described to show how some common data-oriented logical operations may be redefined and restructured to provide privacy, security, convenience and / or capability to users.
[0004]
[0004] Various embodiments may be disclosed in the following detailed description and accompanying drawings. [Brief description of the drawings]
[0005] [Figure 1] FIG. 1 is a table showing the symbols used to represent different cipher key types. [Diagram 2]FIG. 1 shows a set of simplified flow charts illustrating data inputs, data outputs and logical operations that may generally be performed by different cipher methods. [Diagram 3] FIG. 1 is a diagram of a general network layout in which embodiments of the present disclosure may function. [Figure 4] FIG. 1 is a diagram of a computing device in which embodiments of the present disclosure may function. [Diagram 5] Diagram of transmutation in forward mode or normal operation. [Figure 6] FIG. 1 shows a table of common data operations and their variant classes. [Figure 7] Diagram of transformation in the reverse mode. [Figure 8] Diagram of irreversible transformation. [Figure 9] Diagram of conditional reversible transformation. [Figure 10] A diagram showing a table of common data operations and functions grouped by transformation type. [Figure 11] A table of codecs defined in Python v3. [Figure 12] A diagram showing a table listing additional metamorphic definitions. [Figure 13] A diagram showing a transformed invertible matrix. [Figure 14] FIG. 13 is a diagram showing a transformation mode action matrix. [Figure 15] A detailed example of the serialize transformation. [Figure 16] A diagram showing a detailed example of digest transformation. [Figure 17] A detailed example of digest transformation in reverse mode, also known as verification. [Figure 18] Diagram of scipher metamorphosis. [Figure 19] Diagram of salsa20(scipher) metamorphosis. [Figure 20] A diagram showing a detailed example of salsa20(scipher) metamorphosis. [Figure 21]A diagram showing a table of command specifications for the serialize and compress transforms, along with a set of sample transform commands showing their usage. [Figure 22] FIG. 13 shows a table of command specifications for the encode transform and a set of sample transform commands showing its usage. [Diagram 23] FIG. 13 shows a table of command specifications for digest transformation and a set of sample transformation commands showing their usage. [Figure 24] A diagram showing a table of command specifications for the acipher and dign transforms, along with a set of sample transform commands showing their usage. [Diagram 25] A diagram showing a table of command specifications for the derive transformation, along with a set of sample transformation commands showing their usage. [Figure 26] A table 2602 of command specifications for scipher transformations and a set of sample transformation commands 2604 showing their usage. [Figure 27] Diagram showing output structure format for scipher output string in a two step sequence where step 1 shows the input format and step 2 shows the output format. The "Header" is a variable length key value utf8 encoded parameter string of the scipher transformation for the output message. [Figure 28] 13 is a table showing parameter keywords and specifications for header strings in the output structure format of scipher transformation. [Figure 29] Diagram of recursive embedded message encapsulation for AEAD mode scipher transformation. [Diagram 30] A table 3002 of command specifications for lock transformations and a set of sample transformation commands 3010 showing their usage. [Diagram 31] A diagram showing the specification of various transformation structures in tabular format. [Diagram 32]A diagram showing a table of command specifications for mobius transform. Its usage is shown and the graphic shows the structural modifications it can perform on various structures. The matrix shows the structure type / mode valid operations that mobius transform can operate on. [Diagram 33] A table 3302 of command specifications for the press and clean transforms, and a table 3304 of command specifications for the key transform, along with a set 3310 of sample transform commands showing their usage. [Diagram 34] FIG. 1 illustrates a table for the Key Interchange Specification Structure, or KISS. [Diagram 35] A diagram showing table 3502 for the KISS mode of operation, table 3504 for a matrix showing key type / field occurrence mapping, and table 3506 for key type definitions. [Diagram 36] A diagram showing the structure of a TAR and an example of a TAR definition. [Figure 37] FIG. 1 shows a block diagram illustrating when metamorphic relationship attributes are persisted and a table listing the attribute types and locations. [Figure 38] Block diagram of the SDFT operations ravel and unravel (or inverse of Ravel). [Figure 39] Flowchart of SDFT Ravel calculation. [Diagram 40] Flowchart of SDFT unraveling operation. [Diagram 41] Diagram showing how TAR reversal is performed for general TAR. [Diagram 42] FIG. 1 shows an example of TAR reversal. [Diagram 43] FIG. 13 illustrates a table of transformations mapped to key type templates that may occur or be required during TAR processing. [Diagram 44] FIG. 1 shows example TARs and key templates generated from each. [Diagram 45]A diagram showing an example TAR, the key templates generated from each, and an expected list of KISS structures to be put or generated. The KISS list is also called a keystack. [Figure 46] A diagram showing the three modes of key stack operation within the SDFT TAR process: generation (gen), input (put) and injection (mixed). [Figure 47] A diagram of how key stacks can be generated and used in the lifecycle of a data and its TAR. [Figure 48] Diagram of operations that can be performed on the data stored in an NSstr structure. [Figure 49] Flow diagram of how SDFT is used to iteratively fold data. [Figure 50] 1 is a flow diagram of how SDFT is used to iteratively unfold data. [Figure 51] Diagram of the SDFT API / library and the various types of TAR definition files it may have access to. [Figure 52] FIG. 13 shows an example Python script for performing manual data folding. [Figure 53] A diagram showing a TAR-defined SDFT example and its usage in a Python script. [Figure 54] Block diagram of dynamic TAR switching within a single communication session. [Figure 55] 1 is a flow chart of an exemplary process for generating a Nut ID. [Figure 56] FIG. 1 is a block diagram showing when Nut IDs and Lock IDs can be used within Nut. [Figure 57] FIG. 1 illustrates an example relationship between Nut IDs, route names, and payload data. [Figure 58] FIG. 1 is a block diagram of an embodiment of a Nut or lock graph with logical sections, i.e., Nut locks and Nut parts. [Figure 59]FIG. 13 is a block diagram of an alternative embodiment of a Nut lock in a Nut with three keyhole lock nodes. [Figure 60] A block diagram of a lock node's internal data structure. [Figure 61] FIG. 61 is a block diagram of the internal data structure of the input section of the lock node shown in FIG. [Figure 62] A data flow diagram showing the relationship of the internal data structures of the primary keyhole of the input section shown in Figure 61 when a valid primary key can be inserted into the keyhole. [Figure 63] 13 is a flowchart of a key insertion process for any lock node and for any cipher key. [Figure 64] FIG. 1 shows an example in which three primary keys can be inserted into a primary keyway. [Figure 65] FIG. 65 is a data flow diagram of the Variable Lock decrypt operation continuing from the example shown in FIG. 64. [Figure 66] FIG. 65 is a data flow diagram of a variable lock encrypt operation continuing from the example shown in FIG. 64. [Figure 67] FIG. 13 shows a table of variable lock types and their properties available at any lock node. [Figure 68] Data flow diagram of the ORLOCK decryption operation. [Figure 69] Data flow diagram of ORLOCK encryption operation by Nut owner. [Figure 70] Data flow diagram of the MATLOCK decryption operation. [Figure 71] Data flow diagram of MATLOCK encryption calculation by Nut owner. [Figure 72] Data flow diagram of the XORLOCK decryption operation. [Figure 73] Data flow diagram of XORLOCK encryption operation by Nut owner. [Figure 74] Data flow diagram of HASHLOCK decryption operation. [Figure 75]Data flow diagram of the HASHLOCK encryption operation by the Nut owner. [Figure 76] Data flow diagram of SSLOCK decryption operation. [Figure 77] Data flow diagram of SSLOCK encryption calculation by Nut owner. [Figure 78] A block diagram of Nut highlighting the Stratum Key. [Figure 79] A flow chart of how hierarchical keys can be inserted within Nut. [Figure 80] Diagram showing a Key Based Permission table for two roles and four role players. [Figure 81] FIG. 13 shows a table listing various Nut parts in an example Nut, where each part can be represented by a lock node. [Figure 82] A diagram showing a table listing the key-based authorization access roles defined for Nut in general. [Figure 83] FIG. 1 is a block diagram of how an initial set of Nut access control access keys, called Access Attribute Key Set Unlock Keys (AAKSUK), can be inserted into the access keyway for each valid primary key. [Figure 84] Block diagram of propagation of NAC access attributes from an externally locked node to an internally locked node. [Figure 85] 13 is a block diagram of the propagation of NAC access attributes from an external lock node to an internal lock node and the insertion of an outgoing link key into the primary keyhole of the linked lock node. [Figure 86] 1 is a flow chart for inserting a key into an access lock. [Figure 87] FIG. 13 illustrates a table of key-based permissions for an alternative embodiment. [Figure 88] 13 is a data flow diagram of the internal decryption data flow of a lock node. [Figure 89]Flowchart for unlocking Nut. [Figure 90] FIG. 1 is a block diagram of an embodiment of a NUTS-based system and how documents stored in Nut can be unlocked. [Figure 91] A diagram of common usage in NUTS terminology to refer to a Nut payload by the Nut ID of the Nut that holds it, where a cipher key may be referenced by the Nut ID of the Nut that holds it. [Figure 92] FIG. 13 illustrates a simplified embodiment of a list of receiver locking models. [Figure 93] FIG. 1 illustrates a simplified embodiment of an ordered locking model. [Figure 94] FIG. 1 illustrates a simplified embodiment of an ordered locking model with a master key. [Figure 95] FIG. 1 illustrates a simplified embodiment of a master key locking model. [Figure 96] FIG. 1 illustrates a simplified embodiment of a master key locking model. [Figure 97] FIG. 1 illustrates a simplified embodiment of a safe deposit box locking model. [Figure 98] FIG. 1 illustrates a simplified embodiment of a secret shared locking model with a master key. [Figure 99] FIG. 1 illustrates a simplified embodiment of a “PrivaTegrity” type locking model. [Figure 100] FIG. 1 illustrates a simplified embodiment of a multi-Nut configuration in which multiple payloads can be stored within a single Nut. [Figure 101] FIG. 1 illustrates a simplified embodiment of a multi-Nut configuration in which multiple payloads can be stored within a single Nut. [Figure 102] FIG. 1 illustrates a simplified embodiment of a direct locking model with multiple payloads. [Figure 103]FIG. 1 illustrates a simplified embodiment of ordered message passing that exhibits a collusion resistant design. [Figure 104] Block diagram of typical building blocks for modular I / O. [Figure 105] Diagram of simple read and write operations using MIOR. [Figure 106] FIG. 2 illustrates the data conversions and transfers that may be involved in a typical MIO file read operation. [Figure 107] Diagram showing how backwards compatibility of file formats can be facilitated using modular I / O. [Figure 108] Diagram showing how forward compatibility of file formats can be facilitated using modular I / O. [Figure 109] FIG. 13 illustrates how modular displays can be facilitated using modular I / O. [Figure 110] Diagram showing how modular applications can be facilitated using modular I / O. [Figure 111] Diagram showing the incremental changes in Nut history through two edits and at three time points. [Figure 112] Diagram showing the progressive changes in the Nut log over the course of events from Figure 111. [Figure 113] 1 is a diagram showing how relationship-based keys may be represented in Alice's and Bob's contact cards. [Fig. 114] 1 is a flow chart of how spam can be detected using well-known email addresses and / or RBKs. [Figure 115] 1 is a flow chart of how spam may be detected using anonymous email addresses and / or RBK. [Fig. 116] 1 illustrates a Deterministic Context Based Status Matrix for the Alice-Bob RBK communication channel. [Fig. 117]A diagram showing a deterministic context-based status matrix for the Alice-Bender RBK communication channel. [Fig. 118] A diagram showing a deterministic context-based status matrix for the Bender-Alice RBK communication channel. [Figure 119] 13 is a diagram illustrating isolation of RBK relationships in a compromised system for Bob. [Figure 120] Block diagram of Prepackaged DataNut. [Figure 121] Diagram showing the sequence of events in the automated registration process using RBK. [Figure 122] FIG. 13 is a chart illustrating the sequence of events in an automated registration process using RBK and an anonymous email address. [Figure 123] Diagram showing a table listing NUTS core applications and their descriptions. [Figure 124] Block diagram of the NUTS core applications running on a computing device. [Fig. 125] Block diagram of a NUTserver running in a user device. [Fig. 126] A block diagram of the internal components that comprise the NUTserver and their functional connections to the environment of the user device. [Figure 127] FIG. 127 illustrates an alternative embodiment of the NUTserver shown in FIG. 126 that uses a NoSQL database as a caching mechanism. [Figure 128] Block diagram of the MIOR server network layout. [Figure 129] Block diagram of the MIOR server application layout. [Fig. 130] 13 is a flow chart for fetching an MIO module from a MIOR server. [Fig. 131] 1 is a block diagram showing the organization of a MIOR cache. [Fig. 132] 1 is a block diagram of the NUTbrowser application in a user device environment. [Fig. 133] 1 is a block diagram of the NUTbook application in a user device environment. [Fig. 134] Block diagram of the Nut processing application framework in a user device environment. [Fig. 135] FIG. 1 is a block diagram showing the internal components that comprise the NUTbook. [Fig. 136] A block diagram showing the internal organization of the NUTbook catalog cache from Figure 135. [Fig. 137] A diagram showing the organization of hierarchical passwords. [Figure 138] A diagram showing how the main password opens a personal document according to the hierarchical password of Figure 137. [Figure 139] A diagram showing how the master password opens personal documents according to the hierarchical password in FIG. 137 and the documents in FIG. 138. [Fig. 140] A diagram showing how the main password and the work password open a work document according to the hierarchical password of Figure 137. [Fig. 141] A diagram showing how the master password opens the working document according to the hierarchical password in FIG. 137 and the document in FIG. 140. [Fig. 142] A block diagram showing the internal organization of the NUTbook key cache from Figure 135. [Fig. 143] 1 is a flow chart of how NUTbook might browse a card catalog. [Fig. 144] A diagram showing a table of NUTS base services. [Fig. 145] Diagram of the network layout for NUTS-based services. [Fig. 146] Diagram of the network layout of the NUTmail server. [Fig. 147]Diagram charting the sequence of events during the automated registration process for anonymous email services, such as NUTmail, that use the RBK. [Fig. 148] A chart showing the sequence of events when adding a communication channel in a NUTmail server. [Figure 149] A chart showing the sequence of events when Alice and Bob send email to each other via NUTmail. [Fig. 150] Diagram of the network layout for a NUTchat server. [Fig. 151] Data flow diagram for three chat sessions hosted by a NUTchat server. [Fig. 152] Data flow diagram for chat history persistence and replication across NUTservers. [Fig. 153] Data flow diagram for three separate chat sessions using different chat IDs or chat services. [Fig. 154] Data flow diagram for a path agnostic dialog managed by a NUTchat client using the three different chat paths from Figure 153. [Fig. 155] Diagram of the network layout of a NUTcloud server. [Fig. 156] Diagram of the network layout for a NUTnet server. [Fig. 157] Diagram of the network layout of the NUThub servers for the Internet of NUTS (IoN). [Fig. 158] Diagram of the direct IoN network topology. [Fig. 159] Diagram of indirect IoN network topology. [Fig. 160] Diagram of the NUTserver hub and its connection to the NUThub and IoN devices from Figure 159. [Fig. 161]Block diagram of the NUThub / IoN interface in the NUTserver hub from Figure 160. [Fig. 162] Block diagram of the NUThub / NUTserver / IoT interface in the IoN device from Figure 160. [Fig. 163] Flowchart of the registration and configuration process for IoN / IoT devices. [Fig. 164] 163 is a flow chart of how the remote control interface may process the command Nut from FIGS. 161 and 162. [Fig. 165] Diagram of the network layout of the NUTS certification server. [Fig. 166] A block diagram highlighting the functionality of the NUTS certification server from Figure 165. [Fig. 167] Diagram of the network layout for a NUTS-based WiFi / Ethernet router. [Fig. 168] A flowchart of how messages may be processed in the NUTS-based WiFi / Ethernet router from FIG. 167. [Fig. 169] Diagram showing a device category table for NUTS-based WiFi / Ethernet routers. [Fig. 170] FIG. 1 illustrates a table of example device category attributes for a NUTS-based WiFi / Ethernet router. [Fig. 171] A block diagram of how Application Wrapping enables automatic device backup and replication. [Fig. 172] Block diagram of the Event Processing Service (EPS) in the two devices. [Fig. 173] FIG. 1 is a block diagram of a typical vendor network setup that may use tracking cookies and session history stored in a big data server. [Fig. 174]Block diagram of a vendor network setup that may use the app Nut to record a copy of the session history stored locally as well as in the big data server from FIG. 173. [Fig. 175] Block diagram of context calculation that can be performed locally using the app Nut from Figures 173 and 174. [Fig. 176] Diagram of a personal home network topology with IoT devices and service providers. [Fig. 177] Diagram of a personal home network with two IoN devices in an indirect IoN network topology and their respective service providers for controlling the flow of data towards a vendor. [Fig. 178] A block diagram of how a context analysis app can automatically filter outgoing IoN messages to protect user privacy in the NUTserver from Figure 177. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0006] table of contents ● Symbols and abbreviations Cipher and one-way hash Network diagram ● Device diagram ● Metamorphosis ● Metamorphic type ● Metamorphic structure ● Transmutation Audit Record (TAR) Structured Data Folding with Transformation (SDFT) Nut ID Lock graph and lock node Keyhole Variable lock 〇 Hierarchy Nut Access Control (NAC) Lock Node Traversal Modular I / O Read and write 〇 Backward compatibility 〇 Forward compatibility Display 〇 Application ● Nut History ● Nut Log Relationship-Based Keys (RBK) ● Anonymous Relationship ● NUTS Core Applications 〇 NUTserver 〇 MIOR server NUTbrowser / NUTshell 〇 NUTbook ● NUTS-based services 〇 NUTmail 〇 NUTchat 〇 NUTcloud 〇 NUTnet 〇 NUThub ○ NUTS certification server ● NUTS-based WiFi / Ethernet router ● Application wrapping Event processing service ● Context calculation ● Conclusion and Philosophy
[0007] Symbols and Abbreviations The following symbols and abbreviations may be used throughout the description and drawings. Those marked with (*) may be NUTS specific. ● AAKS *Access Attribute Key Set ● AAKSUK *Access attribute key set unlock key ● AAPK *Access Attribute Propagation Key ● acipher AEAD: Authenticated Encryption with Associated Data ● AES Advanced Encryption Standard, also known as Rijndael ● API Application Programming Interface ● AKS *Access Key Set ● ARK *Access Role Key ● BIOS Basic Input / Output System bz2 bzip2, Burrows-Wheeler compression algorithm ● CA Certificate Authority CAC Cryptographic Access Control ● ChaCha20 Bernstein's symmetric key-based stream cipher ● CLI Command line interface ● CMAC Cipher-based Message Authentication Code ● CODEC Coder / decoder, a coding method for character data ● COM Component Object Model ● COR *Class of Readers, or Leaders ● CORBA Common Object Request Broker Architecture ● COW *Writer class, or Writer ● CPU Central Processing Unit ● CRC Cyclic Redundancy Check * dign * (noun) a digital signature generated using an asymmetric private key ● dign *(verb) To create a digital signature using an asymmetric private key. ● DK * Derived Key ● DRM Digital Rights Management ● DVD Digital Video Disc ● DSA Digital Signature Algorithm ECC Elliptic Curve Cryptography eDK *Encrypted Derived Key ● EPS*Event Processing Service ● FIPS Federal Information Processing Standards ● HMAC Hash-based Message Authentication Code ● GPS Global Positioning System ● GPU Graphics Processing Unit ● GUI Graphical User Interface ● GUID Globally Unique Identifier gzip GNU zip compression ● HKDF HMAC-based key derivation function ● ikm Initial key material ● IMEI International Mobile Equipment Identity ● IoN *Internet of Nuts ● IoT Internet of Things IPC Inter-Process Communication ● IPv4 Internet Protocol Version 4 ● IPv6 Internet Protocol version 6 ● I / O Input / Output ● ima *KISS field name which is an abbreviation of "I am a" or "I'm a": Determines the KISS mode ● iv Initialization Vector: A random number for cryptographic use. ● JSON Java Script Object Notation ● KBP *Key-Based Authorization Keccak SHA3 hash family ● KISS* key exchange specification structure ● LAN Local Area Network * lock * Implementation of variable lock as a transformation class ● lzma Lempel-Ziv-Markov chain algorithm (Lempel-Ziv-Markov chain Algorithm) MAC (Ethernet) Media Access Control ● MAC Message Authentication Code MD5 Rivest Message Digest #5 ● MIO* Modular I / O ● MIOR* Modular I / O Repository ● MMS Multimedia Messaging Service ● NAC *Nut Access Control * NCS *NUTS Certificate Server ● NFC Near Field Communication ● NIST National Institute of Standards and Technology NoSQL Non Standard Query Language, also known as non-relational standard query language ● Nonce: A random number used once for encryption. ● NTFS New Technology File System (Microsoft) ● NUTS *Encrypted user data transfer and storage ● OAEP Optimal Asymmetric Encryption Padding by Bellare and Rogaway ● OS Operating system ● PBKDF2 RSA Password-Based Key Derivation Function #2 (PKCS) ● PGP Pretty Good Privacy ● PIM Personal Information Manager ● PKCS Public Key Cryptography Standard by RSA Laboratories - PKCS1_V1.5 PKCS#1 version 1.5 ● PKI Public Key Infrastructure ● PSS Probabilistic Signature Scheme ● PUID Practically Unique ID ● QA Quality Assurance QUOPRI Quoted-Printable or QP encoding ● RAM Random Access Memory ● RAT *Root Access Tier, Nut Owner / Creator, RAT Writer, Owner ● RBAC Role-Based Access Control ● RBCAC Role-Based Cryptographic Access Control ● RBK *Relationship-Based Key ● ROM Read-only memory ● RSA Rivest-Shamir-Adleman public key cryptosystem ● SAC * Hierarchical Access Control Salsa20 Bernstein's symmetric key-based stream cipher Salt: A random number for cryptographic purposes. ● scipher Symmetric cipher ● SCP *Structured Cryptographic Programming ● Password-Based Key Derivation Function by SCRYPT Percival ● SDF *Structured Data Folding ● Structured Data Folding using SDFT* transformation ● SHA Secure Hash Algorithm - Keccak hash variant Shake Keccak hash variant ● SMS Short Message Service ● SOAP Simple Object Access Protocol SPAM (unsolicited bulk email, also known as junk email) ● SSD Solid State Drive ● SSID Service Set Identifier ● SSO Single Sign-On tar Tape Archive: A Unix command for storing data on tape or disk. * TAR* Alteration Audit Record ● TOP *Transmutations Organizing Principle tine *Shamir's Secret Sharing share, like the tines of a fork ● TMX *Transmutation ● TOP *Metamorphic formation principle ● URL Uniform Resource Locator ● UTF Unicode Transformation Format ● UTI (Uniform Type Identifier) ● UUID Universally Unique Identifier ● VPN Virtual Private Network ● WAN Wide Area Network ● WiFi WLAN Protocol ● WLAN Wireless LAN ● XML Extensible Markup Language ● Zlib zlib compression algorithm
[0008]
[0006] Figure 1 shows a table of cipher key types and their respective symbols that may be used throughout the description and figures of this disclosure. A variable length text-based password or passphrase may be represented by symbol 102. Symbol 104 represents a key for a symmetric cipher with AES-256 or an alternative cipher. Symbol 106 represents a key pair for an asymmetric cipher with RSA-2048 or an alternative cipher. The public portion of the asymmetric key pair 106 may be shown as symbol 108 and the private portion may be shown as symbol 110. Those skilled in the art may readily recognize that these ciphers may be well-known and well-tested algorithms and that other suitable methods may be used instead when standard modifications or substitutions may be desired where other suitable methods may be specified in this disclosure.
[0009] Ciphers and One-Way Hashes
[0007] Figure 2 shows basic operations that may be performed by various types of ciphers. A symmetric cipher 208 in an encryption mode may accept a symmetric key 202 and data 204 to generate encrypted data 206 or ciphertext. A symmetric cipher 208 in a decryption mode may accept the same symmetric key 202 and ciphertext 206 to generate the original data 204. In a symmetric cipher implementation, the encryption method and the decryption method may be two separately named function calls or may be a singular call with a mode parameter as part of the input. A property of a symmetric cipher may be that both the encryption and decryption processes may utilize the same secret key 202.
[0010]
[0008] In the encryption mode, the asymmetric cipher 214 may accept the public part 210 of the asymmetric key pair and the data 204 to generate the encrypted data 212 or cipher text. In the decryption mode, the asymmetric cipher 214 may accept the private part 216 of the asymmetric key and the cipher text 212 to generate the original data 204. In an implementation of an asymmetric cipher, the encryption method and the decryption method may be two separately named function calls or may be a singular call with a mode parameter as part of the input. A property of an asymmetric cipher may be that the encryption process and the decryption process may utilize different parts of a key pair. In an implementation such as RSA-2048, the public key may be derived from the private key using a mathematical relationship, and thus the RSA-2048 private key may be synonymous with the key pair, and the public key may be extracted from the RSA-2048 private key.
[0011]
[0009] A digital signature method 222 in signing mode may accept the private part 216 of the asymmetric key pair and the ciphertext 218 to generate a digital signature 220. A digital signature method 222 in authentication mode may accept the public part 210 of the asymmetric key pair, the digital signature 220, and the ciphertext 218 to authenticate 224 whether the digital signature was created using the ciphertext 218 and the private part 216 of the asymmetric key pair. In an implementation of the digital signature method, the signing method and the authentication method may be two separately named function calls, or may be a singular call with a mode parameter as part of the input. A property of the digital signature method may be that the signing process and the authentication process may utilize different parts of the key pair. In implementations such as digital signature methods based on RSA-2048 key pairs, a public key may be derived from a private key using a mathematical relationship, and thus an RSA-2048 private key may be synonymous with a key pair, and a public key may be extracted from an RSA-2048 private key. For brevity and clarity, this specification may interchangeably refer to a digital signature as a dig, the act of digitally signing a piece of data may be interchangeably referred to as digning, and having digitally signed a piece of data may be interchangeably referred to as digned.
[0012]
[0010] A digital signature method may be a type of message authentication code or MAC. A MAC may be created using a one-way hash algorithm on the data. A hash method such as SHA-512 may accept data content to generate a message digest of the data content, which may be up to 512 bits in length. Authentication of a MAC using a method such as SHA-512 involves recomputing the MAC on the piece of data and comparing the given MAC with the computed MAC for equality. A technique known as a keyed-hash message authentication code or HMAC may take an additional input of a cryptographic key along with the data content to generate an HMAC value.
[0013]
[0011] Digital signature methods and / or hashing methods may be used in various parts of this disclosure to generate message digests that may represent the respective data.
[0014] Network Diagram
[0012] FIG. 3 represents a simplified network diagram in which various embodiments of the present disclosure may be applied in part or in whole. A wide area network WAN 302 may be represented as a network cloud that may comprise many servers, routers and switching systems in various telecommunication centers that work together to provide a simplified network cloud view to a user or company. A cloud service 304 may also be simplified diagrammatically as a cloud representing various commercial systems that may provide network services such as cloud storage and cloud processing, which may be implemented to their own specifications, but may comprise many instances of server farms, storage arrays and routers. A personal router 306 may be connected to the WAN 302 that may provide access to the Internet to a personal user among multiple network-connectable devices 308-318 that the user may have. The user may not be limited to the devices shown in the figure and may use any device that may utilize a router to access other devices on the same network or across the Internet. The router 306 may be a dedicated routing device of an Internet service provider, or it may be a combination device that provides routing and / or LAN and / or WLAN capabilities, and may be called a gateway. An enterprise router 320 may be connected to a WAN 302 that may provide access to the Internet for organizational users among multiple network-enabled devices 322-330 that the company may have. The company may use any device that may utilize a router, which may not be limited to the devices shown in the figure, to access other devices on the same network or across the Internet. The router 320 may be an Internet service provider's dedicated routing device, or it may be a set of interconnected and managed routers that provide routing and / or LAN and / or WLAN capabilities, and may be referred to as a gateway and / or intranet. The systems and methods described herein in various embodiments may be used and applied to any or all parts of this network diagram.
[0015] Device Diagram A typical computing device 400 is shown in FIG. 4. A processing unit 404 may be connected to a system bus 402 that may facilitate some or all of the internal communication and data transfer within the device. There may be several different types of system buses available, but for simplicity, they may be collectively referred to as the system bus 402. The processing unit may represent a single or multi-core processor as well as an array of processors, such as those found in various specialized processing boards such as GPU boards and blade servers. Other components serviced by the system bus may be a network adapter 412, an I / O interface 410, a display interface 414, a read-only memory ROM 406 that may store a BIOS program 408, a volatile memory RAM 416 that may store a running operating system 418, running applications 420 and / or application data 422 for a short period of time, and a non-volatile memory 424 such as a hard drive, SSD and flash drive 426 that may collectively store an installed operating system 428, applications 430 and / or data files 432 for a permanent period of time.
[0016]
[0014] Not all components of the illustrated computing device are necessary for some or all embodiments of the present disclosure to be applicable and functional. For example, the device may not have any physical display or I / O interfaces such as those found on some IoT devices, and routers and gateways may have little in the way of physical hard disks. A necessary requirement for NUTS support and compatibility may be the ability to run NUTS-compatible software, which may include a processing unit, some form of storage, and a system bus.
[0017] Transmute
[0015] Transformations may be a preferred way of organizing many known data manipulation operations found in computer programming. NUTS may specify this as the Transformation Organizing Principle, or TOP. Furthermore, any systematic data manipulation operation may be analyzed using TOP and classified as a type of transformation. Transformations may then be categorized, normalized, structured, integrated, and / or adapted to work cooperatively within the framework of TOP, sometimes referred to as Structured Data Folding with Transformations, or SDFT. An insightful view of operating on data with TOP and / or SDFT may enable better and / or complex data designs to be conceptually more simply and / or programmatically efficiently implemented. TOP and SDFT may be preferred lower-level implementation mechanisms for NUTS components.
[0018]
[0016] Analysis, methods and / or structures based on data transformation can show how layering such concepts and designing their associated methods can define an implementable set of integrated data structures and algorithmic methods that can enable easy and systematic transformation of data in a modular, portable, storable and / or self-describing manner. Due to the layered and intertwined nature of such analysis, the description of the transformation can have forward and backward references and require the reader to refer to different sections to gain a better understanding of some properties. Structured Data Folding with Transformation (SDFT) builds on transformation using data structures and methodologies and can help enable storability, transmissibility, modularity, portability, encapsulability and / or time compatibility of the transformed data.
[0019] Within the NUTS design, SDFT is a set of low-level operations and may be considered a fundamental building block for constructing Nut more easily. However, SDFT may be used independently, in part or in whole, to simplify some tedious and / or repetitive data transformations within an application. SDFT may enable computer communication protocols to dynamically switch transformation sequences and / or transformation parametric distributions within the same session between two different applications. Currently, such single-session dynamic switching may be a significant programmatic exercise. While using SDFT to build Nut may not be a necessary requirement, its features may help to build Nut more expediently, clearly and flexibly. SDFT may be further described as a data state transition methodology that allows infinite variations of transition events with well-defined behavior regarding the reversibility of state transition sequences, and may provide iterative encapsulation techniques for persisting necessary attributes and data in a simple context-sensitive manner. SDFT may accept and embrace the chaos of everyday programming problems, and present a practical set of organizational principles where theoretical proofs may be subordinated to empirical proofs.
[0020]
[0018] Figure 5 shows how the transformation organization principle can view data operations as data transformations 510, which can require input data sources 502 and attributes 504, and output transformed data 512 and associated attributes 514. Any well-defined manipulation, operation, conversion, and / or transformation of data can be classified as a type of transformation 510. TOP can make it possible to systematically build a consistent set of ways to transform data in a modular, portable, and / or self-describing manner.
[0021]
[0019] The table in Figure 6 shows a sample set of common data operations and how they can be categorized using TOP. Transformations can encompass classes of basic data operations that may traditionally be separated in perception and in practice. Such may be the case when programmers describe encryption and data compression, and these two classes of data operations can generally be thought of as two very separate and distinct operations on data. Beyond the algorithmic differences of each operation, through the perspective of TOP, these operations can be viewed as a type of ciphering and compression transformation. In the table, a "JSON serialization" can be categorized as a "serialize" transformation with an operation of "json", and thus the executable transformation command can be stated as "serialize json". An AES symmetric cipher encryption call on a piece of data can be categorized as a "scipher" transformation with an operation of "aes", and thus the executable transformation command can be stated as "scipher aes". One of ordinary skill in the art can readily recognize all the other types of data operations listed in the table and follow the organizational pattern of the variable classes and operation category groupings.
[0022]
[0020] Figure 7 shows a diagram of transformation in reverse mode or inverse operation. This diagram is equivalent to Figure 5, except for the data flow arrows flowing in the opposite direction. Transformation 510 may have a well-defined reversible algorithm, indicated by block 710. Reversible transformation 710 may require as input a transformed data source 712 and attributes 714, and may output the original data 702 and associated attributes 704. There may be a field of computation called reversible computation that may exhibit a similar concept to reversible transformation. There may be some differences in the goals of each organizational principle. Reversible computation may theorize the existence of a generalized reversible computation language, whose operations may be implemented down to the silicon layer for the possible energy efficiency of general computation. Reversible transformations may be aimed at specific implementations of TOP for benefits including, but not limited to, minimizing code written, minimizing programmatic errors, convenient key management, simplifying key generation, structuring portable self-describing data, normalizing data manipulation concepts, introducing a programming language independent way of performing transformations, and / or simplifying the construction of complex cryptographic data structures.
[0023]
[0021] Figure 8 shows a graphical representation of an irreversible transformation. A transformation in forward mode 810 may perform a transformation on data 802 and attributes 804, which may produce transformed data 812 and attributes 814, but these outputs may be of an irreversible nature, along with the type of operations the transformation may perform on the input. Such irreversible transformations may be exemplified by hashes, MACs, lossy data compression, and other one-way functions or data manipulations. TOP may introduce analytical techniques that may augment the properties of such irreversible transformations around and generate operations that may define their reverse transformation properties.
[0024]
[0022] Figure 9 shows a block diagram of a conditional invertible transformation. Such a transformation 910 may have a well-defined invertible algorithm, but may require additional inputs and / or attributes 914 for the inversion operation to succeed. A conditional invertible transformation 910 may require a transformed data source 912 and / or attributes 914 as input, and may output the original data 902 and / or associated attributes 904 if and when a required condition 916 is met, otherwise it may fail with an error condition 920. Ciphers that may require a key may be classified as conditional invertible transformations, since the absence of the correct key (attributes) may prevent the decryption of the cipher text.
[0025] FIG. 10 is a table listing common data operations and functions and their respective variants. Those skilled in the art may recognize some or all of the data operations and / or functions listed in the table. For illustrative purposes, the material presented herein may refer to a programming language called Python version 3.6 and its syntax, concepts, functions and / or methods. Many of the cryptographic functions referenced in this disclosure may be found in the Python standard, pyCryptodome, secretsharing and / or pyCrypto libraries. Those skilled in the art may find equivalent syntax, concepts, functions and / or methods in most modern programming languages and their respective libraries. Note that "dign" is a variant for digital signature, and other mnemonics may be listed in the symbols and abbreviations section of this specification. A more detailed description of each variant may be found in the table in FIG. 12.
[0026] FIG. 11 is a table of codecs defined in Python v3.6. This list may not be complete due to the large number of codecs in existence, the proliferation of new codecs, and / or limitations of what is defined in Python v3.6. A "codec" is short for code / decode and a mapping for a character set in computation. Characters are assigned arbitrary but unique binary values within a single codec, so a complete set of characters may define a single codec. Not all characters within a given codec are human readable or printable. A common use of codecs is for the proper representation of different character sets of different languages. The "encode" transform may be capable of performing any of these codec encoding operations on a given string of data. Codecs with names beginning with "utf_" may specify those that conform to the Unicode Transformation Format (UTF), which may be the basis for the organization of international character sets for many Internet-based standards.
[0027] FIG. 12 is a table listing the transformations described so far along with their detailed description. Additional transformations can be defined within the framework using TOP, as illustrated by the last six transformations in the table, namely, key, clean, TAR group, press, lock, and mobius. Some of these additional transformations may be specific to the Structured Data Folding with Transformations (SDFT) library, some may be language specific, and / or some may be NUTS-related operations. This may indicate the flexible nature of TOP by allowing new transformation types to be defined and classified to expand its repertoire. This flexible extension feature is by design such that the SDFT library can accommodate new transformation operations in the future. The extension feature may also allow older versions of transformation operations to be added retroactively for backward compatibility. The benefit of such flexibility may be the ability of SDFT-processed data to obtain better time compatibility properties. Time compatibility of data may be defined as those characteristics that may allow the stored data to be easily processed by the same or a different application at some future time. Time incompatibility may arise from, but is not limited to, differences in application file format versions, different character encodings, obsolete application file formats, differences in data computation methods, differences in data computation ordering, and / or data computation inherent parametric variances.
[0028] FIG. 13 illustrates a transformation invertibility matrix. Each transformation may be designated as being invertible, irreversible, and / or conditionally invertible. The criteria for making such a designation may be based on the ideal intent of the transformation, rather than on the implemented and / or theoretical deficiencies of the actual transformation. In other cases, the designation may be arbitrary. This may be illustrated by a digest operation called MD4, which may generate a 128-bit long hash of the source data. The MD4 hash may be considered a significantly weaker hashing algorithm compared to hashing operations such as the 512-bit SHA2 due to its susceptibility to collisions, which may be an undesirable feature in hashing algorithms. A TOP perspective may be to recognize one of the original intents of MD4 as an irreversible unique hash and categorize it as such. Such categorization may not exclude this type of transformation from acquiring a well-defined and planned reversibility property through additional TOP analysis as shown in a later section. The compress transformation may fall under both the lossless and lossy designations based on the particular compression operation performed. Many image and / or audio compression techniques may exhibit lossy nature due to their sampling nature; a 12MB digital image may be compressed down to 360KB for efficient transmission via a chat application, but due to the nature of human visual perception, the general impression of the image may be adequately conveyed despite the permanent data loss. Such compressed images may be irreversibly modified due to significant amounts of the original data that may have been discarded during the conversion.
[0029]
[0027] Lossless compression transformation may be exemplified by gzip compression, which may operate on the principle of identifying and reducing repeating bit patterns in binary data, while maintaining enough information to reverse the process and recreate the original data in its entirety. Conditional reversible transformation may be exemplified by the AES symmetric cipher, which may operate on the principle of taking cleartext and a symmetric key and producing ciphertext. The decryption process may take the key and ciphertext to produce the original cleartext. Thus, presentation of the correct symmetric key for the ciphertext may be a necessary condition that must be met to decrypt the ciphertext or reverse the encryption process.
[0030]
[0028] TOP may define a transformation mode, which may indicate the direction of a given transformation operation, as either forward or reverse. A forward mode of transformation may perform its normal process and / or its planned forward process. A reverse mode of transformation may perform its inherent reverse process and / or its planned reverse process. The table in FIG. 14 shows a matrix indicating the types of operations that a transformation may perform internally based on its transformation mode. For reference, the table lists commonly known operation names, such as "serialize" and "deserialize", or "encrypt" and "decrypt". Note the planned reverse processes of digest and dig, namely "digest" and "verification", "sign" and "authentication". In a "clean" transformation, where the "clean" transformation may delete various internal data associated with its transformed data structure, it may be impossible to restore such deleted data without appropriate additional data and / or re-running the forward transformation process on the original data to recreate the deleted transient data. A "key" transformation may perform key generation and / or management operations related to performing the transformation. Thus, due to the inherent random nature of key generation, it may be impossible to theoretically and / or algorithmically reverse such a process in a deterministic manner in finite time. The key management aspect of the "key" transformation will be described in detail in a later section when addressing how the transformation may work within the context of Structured Data Folding (SDF), and the key management aspect of the key transformation may be difficult to project a reversible counterpart due to its nature of setting up the appropriate key structure for successful processing in an SDF context.
[0031] FIG. 15 shows a series of three diagrams, each of which further details an example serialize transformation 1504 that may specify a reversible transformation. In computer programming, serialization and / or marshalling techniques may take a complex language-specific internal data structure and systematically decompose and / or linearly organize its contents to generate an equivalent data string or set of data strings (hereafter referred to as data strings). The data string format may be more suitable for persistent storage, data transmission and / or further transformation. Serialization by definition may require that it be logically fully reversible to reconstruct the original content or its equivalent in the source language. A Python structure 1512 may be transformed using JSON operations 1514 to generate an equivalent JSON string 1516, and the reverse process may be possible as indicated by the bidirectional process flow arrows. A simple tree data structure that may exemplify a complex Python data structure is shown in 1522. A serialize transformation 1524 may generate an equivalent string 1526 from 1522. This output string 1526 may then be stored, transmitted and / or transformed as the program progresses.
[0032]
[0030] Figure 16 shows a series of three diagrams, each of which further details an example digest transform 1606 that may be specified as an irreversible transform. This example shows a SHA2 hash operation 1616 as a digest transform that may require as input data 1612 and a digest length 1614 as an attribute 1604. The SHA2 hash digest transform 1616 may produce a hash 1618 of a specified length. A Python data string 1622 and a desired digest length 1624 of 256 bits may be input to the SHA2 hash transform 1626 to produce a 256-bit long hash string 1628.
[0033]
[0031] Figure 17 shows a detailed example of a digest transformation in reverse mode, also known as verification. In TOP, this is sometimes referred to as a scheduled reversal of the transformation. A digest transformation 1710 may accept as inputs the data D1 1702 and the attributes A1 1704 to perform a forward mode digest transformation 1710 that may produce as output 1708 a digest string DG1 1712. A reverse mode 1720 of this transformation may accept as inputs the data D1 1722, the attributes A1 1724, and the digest string DG1 1728 to perform a reverse mode digest transformation 1720 that may produce as output 1738 a flag and / or value indicating whether the digest string DG1 1728 was verified 1732 or failed verification 1734. The verification process 1740 may generate a digest string DG2 1722 by performing a forward mode digest transformation 1720 on the input D1 1722 and the input A1 1724. The output digest string DG2 1722 may then be compared 1730 for equality against the input digest string DG1 1728. The results 1738 of the comparison may be presented in some form to indicate whether the reverse digest transformation was successful or not. In this way, planning this digest reversal may require the forward mode of transformation to be reprocessed and the outputs to be compared rather than relying on the workaround of finding the logical reversibility of such operations, which may be difficult, time consuming and / or unattainable.
[0034]
[0032] Figures 18, 19 and 20 show detailed examples of scipher transformations in forward and reverse modes, also known as symmetric ciphers. A scipher transformation in forward mode 1806 may accept as input clear text 1802 and attributes 1804 to generate as output cipher text 1810 and / or attributes 1812. A scipher transformation in reverse mode 1826 may accept as input cipher text 1830 and attributes 1832 to generate as output clear text 1822 and / or attributes 1824. Figure 19 shows how a salsa20 symmetric cipher may operate as a scipher transformation. A scipher salsa20 transformation in forward mode 1906 may accept as input clear text 1902 and attributes 1904 to generate as output cipher text 1910. The attributes for this particular cipher in forward mode may comprise a binary symmetric key, a key length and / or a salt value. This salsa20 forward (encrypt) implementation may be a streaming cipher and no additional output attributes may be generated during the encryption process, except for any hidden attributes the function may embed within its own output string. The scipher salsa20 transform 1926 in reverse mode may accept as input the cipher text 1930 and attributes 1932 to produce clear text 1922 as output. The attributes for this particular cipher in reverse mode may comprise a binary symmetric key, a key length and / or a salt value. This salsa20 reverse implementation (decrypt) may be a streaming cipher and no additional output attributes may be generated during the decryption process. Figure 20 shows how the salsa20 symmetric cipher may operate as a transform on sample data as it may be expressed within Python v3.6 and PyCryptodome library functions. The scipher salsa20 transformer 2006 in forward mode may accept as input a data string 2002 and attributes 2004 comprising a 256-bit symmetric private key and a nonce (as a salt) to produce a ciphertext 2010 as output.In Python, the symmetric key may be represented as a "byte" data type string, and therefore the key length attribute may be easily derived by the len() function on the key byte string. The scipher salsa20 transformation in reverse mode 2026 may accept as input the ciphertext 2030 and an attribute 2032 comprising a 256-bit symmetric private key and a nonce to produce the cleartext 2022 as output. In Python, the symmetric key may be represented as a "byte" data type string, and therefore the key length attribute may be easily derived by the len() function on the key byte string. The attribute 2032 may be required to be equal to the attribute 2004 such that this conditional reversible transformation properly processes the ciphertext 2030 in reverse mode (decryption) to recover the original cleartext 2002.
[0035] Metamorphosis Type In the following tables and examples presented in Figures 21-35, each transformation may not be limited to the operations specified in the tables, and any suitable operations may be analyzed through TOP and then integrated into the framework to extend the computational capabilities of a particular transformation. Python v3.6 syntax and constructs may be used to illustrate the examples in more detail. Equivalent data types, structures, syntax and / or methods may be found in different programming languages by those skilled in the art and used instead. In some cases, key / value options may not be relevant to a particular language or library, and may be ignored or modified as necessary as long as the processing can produce equivalent results.
[0036] serialize / compress transformation FIG. 21 shows a table 2102 of command specifications for the serialize and compress transforms, and a set of sample transform commands 2104 illustrating their usage. Table 2102 lists the transform name and acceptable operation types for each transform. A column header with a trailing "=" indicates that the value presented below it may be presented in key / value format in a command syntax construct. The "Input" and "Output" columns may specify the expected data type / structure for the transform / operation within the context of Python v3.6. For example, the command "serialize json sortkeys=t" may perform the following data manipulation sequence: take a Python data structure as input, perform json.dumps() on it with the "sort_keys" flag set to true, and then output a Python string with a serialized version of the data. The reverse mode of this command may expect a JSON formatted Python string as input, perform json.loads() on it, and then output a Python data structure. The "sort_keys" flag informs the json.dumps() function to process the keys of a Python dictionary structure in ascending order. Python v3.6 may not guarantee a consistent processing order for dictionary structures when processing by key, and thus the resulting JSON string may be inconsistent between multiple runs of this transformation on the same data structure. Sorting the keys in a specific order within the serialization transformation may provide consistency of the processing sequence that results in equivalent JSON strings as output between multiple runs on the same data structure. This may be crucial for the purpose of determining whether two JSON strings are equivalent, and therefore may represent two equivalent pre-serialized data structures.
[0037] The compress transformation in table 2102 shows several different lossless or lossless compression operations. Lossy or lossy compression operations may extend the compression transformation repertoire, but for the purposes of describing lossless transformations, it may not be interesting or constructive to describe one-way functions that provide little cryptographic purpose beyond data size reduction. From a TOP perspective, lossy compression may be analyzed and treated similarly to the digest transformation described in a later section. In the example in 2104, the command "compress bz2" may perform bz2 compression on a binary string input, producing a binary string output that may or may not be smaller in size than the input string. Some data is no longer compressible using a particular compression scheme; one example of this may be when a bz2 compressed string may be processed again and no further data size reduction may be achieved.
[0038] Encode FIG. 22 shows a table 2202 of command specifications for the encode transform and a set of sample transform commands 2204 illustrating its usage. There may be many encodings in computer science, and the references in this table do not necessarily represent all known encodings. The encodings listed under the "encoding=" column may be found in Python v3.6 and its associated standard library. Those skilled in the art may recognize the utility of having access to all these types of encodings toward solving problems related to applications that may manipulate data. "Codecs(98)" refers to the list of supported codecs in Python v3.6 at the time of this writing, and previously listed in the table in FIG. 11. The transform command "encode strbin utf_8" may take a Python string as input, perform utf_8 Unicode encoding on it, and output the result as a Python byte string. The transform command "encode utf utf_16" may take a Python string as input, perform utf_16 Unicode encoding on it, and output the result as a Python string. The transform command "encode binascii hex" may take a Python byte string as input, perform hex encoding on it, and output the result as a Python string. The transform command "encode base 64" may take a Python byte string as input, perform base64 binary encoding on it, and output the result as a Python string. The transform command "encode utf_8" is equivalent to "encode utf utf_8". These descriptions may show the consistency and types of permutations allowed in the encode transform command syntax.
[0039] Digest Metamorphosis FIG. 23 shows a table 2302 of command specifications for digest transform and a set of sample transform commands 2304 illustrating its usage. The digest transform shown in table 2302 defines three types of operations, namely, but not limited to, hash, hmac, and / or cmac. The transform command "digest hash md5 128" may take a source data string as input and perform an MD5 hash function on it to generate an output digest byte string that is 128 bits in length. Note that the input source data string may not be modified or overwritten during the digest transform call, and the output digest byte string may be additional data generated from the digest transform call and may be provided with a separate memory space. The transform command "digest hash sha2 512" may take a source data string as input and perform a SHA2 hash function on it to generate an output digest byte string that is 512 bits in length. The mutate command "digest hash shake256 digestlen=332" may take as input a source data string and perform a SHAKE256 hash function on it to produce an output digest byte string that is 332 bits in length. The mutate command "digest hmac sha2 256" may take as input a source data string and perform an HMAC function on it using a SHA2 hash to produce an output digest byte string that is 256 bits in length. The mutate command "digest cmac aes 256" may take as input a source data string and a 256-bit symmetric key and perform a CMAC function on it using an AES256 cipher to produce an output digest byte string that is 128 bits in length.All of these digest transformation example operations and types may be found in the standard Python library and / or the PyCryptodome library, and do not necessarily represent all the variety of operations, types, digest lengths, key lengths, and / or other parameters that may exist in a theoretical and / or implemented sense outside of these example libraries. Additional transformations may be analyzed and integrated into the transformation expressions as appropriate through TOP. Such integration into the transformation expressions may require refactoring and retesting of existing transformation operations.
[0040] acipher / dign transmutation
[0038] Figure 24 shows a table 2402 of command specifications for the acipher transform and tables 2404, 2406 of command specifications for the dign transform, along with a set of sample transform commands 2410 illustrating their usage. The transform command "acipher pkcs1_oaep 2048" may take as input a byte string and a 2048-bit long RSA asymmetric public key, and perform an RSA PKCS#1 OAEP cipher operation on it using a 512-bit SHA2 hash, producing as output a ciphered byte string that is 2048 bits long. The transform command "acipher pkcs1_v1_5 3072" may take as input a byte string and a 3072-bit long RSA asymmetric public key, and perform an RSA PKCS#1 v1.5 cipher operation on it, producing as output a ciphered byte string that is 3072 bits long. The reverse mode of these acipher transformations may require as input the ciphertext as a byte string and the private part of an appropriate RSA key to produce the original cleartext.
[0041] The mutate command "dign pkcs1_v1_5 2048" may take as input a byte source string and a 2048-bit long RSA asymmetric private key, perform an RSA PKCS#1 v1.5 digital signature operation on it using a 512-bit SHA2 hash, and produce as output a digest byte string that is 2048 bits in length. Note that the term "digest byte string" may be used interchangeably with "digital signature byte string" since TOP may consider these outputs to provide similar functionality and may therefore store such byte strings under the "digest" variable name. The mutate command "dign dss 1024 hashtyp=sha2" may take as input a byte source string and a 1024-bit long DSA asymmetric private key, and perform a DSS digital signature operation on it in FIPS-186-3 mode using a 512-bit SHA2 hash, producing as output a digest byte string that is 1024 bits long. The mutate command "dign dss 256" may take as input a byte source string and a 256-bit long ECC asymmetric private key, and perform a DSS digital signature operation on it in FIPS-186-3 mode using a 512-bit SHA2 hash, producing as output a digest byte string that is 256 bits long. The reverse modes of these dign mutates may require as input the digest byte string (digital signature), the source byte string, and the public portion of the appropriate asymmetric key in order to authenticate it.
[0042] deriveTransformation
[0040] Figure 25 shows tables 2502, 2504, 2506 of command specifications for the derive transform and a set of sample transform commands 2510 illustrating its usage. The sample operations pbkdf2, hkdf and scrypt may also be known as key derivation functions and / or key stretching functions. The basic function of the derive transform may be to derive one or more symmetric keys of a desired length from a binary or character data string that may be known to a user, and a common use of a key derivation function may be to derive a properly formed symmetric encryption key(s) from a password or passphrase. The morph command "derive pbkdf2 keylen=256 iterations=100000" may take as input a character data string (a password or passphrase) and perform a PBKDF2 operation on it using a SHA2 512-bit hash function, a randomly generated 512-bit initialization vector as a salt, and an iteration count parameter set to 100,000 to generate a corresponding symmetric key that is a 256-bit long byte data string. The morph command "derive hkdf keylen=256 numkeys=4" may take as input a byte data string and perform an HKDF operation on it using a SHA2 512-bit hash function, a randomly generated 512-bit initialization vector as a salt, and generate a corresponding set of four related symmetric keys, each of which is a 256-bit long byte data string. The transform command "derive scrypt keylen=128 mode=login" may take a data string as input and perform a login mode SCRYPT operation on it using a randomly generated 512-bit initialization vector as the salt to generate a corresponding symmetric key, which may be a 256-bit long byte data string. The login mode of the derive scrypt transform may be shorthand for setting the three parameters n, r and p to the values shown in Table 2506. These parameter values may be the suggested settings of the author of the SCRYPT algorithm.
[0043]
[0041] The TOP approach of the derive transformation may suggest a bimodal operation. Data mode: if the transformation may only involve a type of data source string, not any key stack (to be explained in detail in a later section), it may transform this input data source string and replace it with the output of the transformation, which may be in the form of a symmetric key(s). Key mode: if the transformation may involve a key stack and a type of data source, it may transform the corresponding key source material present in the key stack and replace that key source material, thereby deriving cryptographically usable symmetric key(s) and placing it in the key stack. These statements may be made clearer in later sections when key stacks and key management are explained within the context of transformation audit records or TAR and dependent transformations.
[0044] scipher transmutation
[0042] Using TOP, symmetric cipher operations can be classified as scipher transformations and as groups, and these transformations can present sets of associated attributes that can be extensive in both number and / or variety. The next three figures show how TOP can systematically normalize each scipher transformation with all its attributes and encapsulate them into the same output string. This type of attribute embedding technique can be found in a variety of functions and libraries for many types of operations. However, widely accepted standards for such embedding techniques can be few and far between. TOP can propose a consistent methodology that can be applied to all scipher transformations for different purposes that supports a feature called Structured Data Folding with Transformations or SDFT. Whether such a methodology can become a widely used standard may be outside the scope of this specification, but the reader may recognize the possible benefits of its usage within the TOP framework, especially as we later describe the TAR and SDFT constructs and methods.
[0045] FIG. 26 shows a table 2602 of command specifications for scipher transformation and a set of sample transformation commands 2604 showing its usage. The table shows three types of scipher operations: aes, chacha20, and salsa20. This is not an exhaustive list of known symmetric ciphers, but it may present their associated diversity to show how TOP may organize them and suggest their usage. Symmetric ciphers may have the following attributes more or less associated with them: key length (keylen), operation mode (mode), salt type (salttyp), salt length (saltlen), block size (block), cipher operation type (type), and / or padding (pad). Key length may specify the length of the secret symmetric key that may be used in the cipher to generate cipher text from clear text. For AES ciphers, they may have at least 10 different operation modes as shown in the table. Most symmetric ciphers may require input of a salt (random value) of a particular type (iv or nonce) and a particular salt length, whose use may promote better semantic security. Symmetric ciphers may provide at least three different operation types: block ciphers, stream ciphers and / or AEAD ciphers. Newer modes may be proposed and integrated using TOP as an additional transformation variant. Block mode ciphers may require additional attributes comprising padding methodology, pad positioning, pad type and / or pad length.
[0046]
[0044] In the example in section 2604, the transform command "scipher aes 256 mode=ofb" may take as input a byte data string and a 256-bit symmetric key, encrypt the input data string using an AES-256 OFB mode streaming cipher with the provided key and a randomly generated 128-bit initialization vector, and generate an output string that may consist of the cipher text and all associated attributes involved in the process embedded in the header of the output byte string formatted in a consistent key / value format as specified in Figure 27 (which will be described in a later section). The mutate command "scipher aes 128 mode=gcm" may take as input a byte data string and a 128-bit symmetric key, encrypt the input string using an AES-256 GCM mode AEAD streaming cipher with the provided key and a 128-bit nonce, and generate an output byte string that may consist of the cipher text and all associated attributes involved in the process embedded in the header of the output string formatted in a consistent key / value format as specified in Figure 27. AEAD is an acronym for authenticated encryption with associated data, and may be a standardized or well-known way of embedding authentication functionality along with the cipher capabilities of a symmetric cipher in a single function call. The transform command "scipher chacha20 256" may take as input a byte data string and a 256-bit symmetric key, encrypt the input string using the CHACHA20 streaming cipher with the provided key and a 64-bit nonce, and generate an output string that may consist of the cipher text and all associated attributes involved in the process embedded in the header of the output string formatted in a consistent key / value format as specified in FIG. 27.The mutate command "scipher salsa20 128" may take as input a byte data string and a 128-bit symmetric key, encrypt the input string using the SALSA20 streaming cipher with the provided key and a 64-bit nonce, and generate an output byte string that may consist of the cipher text and all associated attributes involved in the process embedded in the header of the output byte string formatted in a consistent key / value format as specified in FIG. 27.
[0047] FIG. 27 shows the output structure format for a scipher output string in a two-step sequence, where step 1 shows the input format and step 2 shows the output format. The "header" is a variable-length key value utf8 encoded parameter string of the scipher transformation for the output message. In step 1, the scipher may accept as input a variable-length message byte string "message", with optional padding of pad length typically placed at the end of the message if necessary. The message may be prepended with a salt value as may be recommended by the selected cipher. Padding may be a necessary requirement of block mode symmetric ciphers. If a particular padding methodology is not specified by the programmer, a default padding methodology may be used and appended to the end of the message. This message and padding may be referred to as plaintext. The selected cipher may then process the input plaintext as shown in step 2, producing an output that may be referred to as an encrypted message. The chosen scipher transformer may then prepare the embedded header as a printable key / value pair in character string format, where the keys may represent the parameter types and the values represent their respective settings. The details of the keys / values are explained in the next section. Once the header string has been generated, the transformer may calculate the length of this header string, called the header size, and may be formatted as a 2-byte long unsigned big-endian integer. The 2 bytes may range from 0 to 2.16(65,536), which may be sufficient to describe all attributes for a symmetric cipher for the foreseeable future in this particular format. Step 2 may then proceed to create a packed message comprising the header size, the header, and the encrypted message. This packed message may be the actual output string from the scipher transformation, and therefore it may be considered to have successfully encapsulated and embedded all attributes associated with the transformed data. The data flow of the reverse scipher transformation may follow this process in the reverse direction, i.e., the transformation command may specify the exact scipher transformation to perform, and the matching symmetric key and packed message may be given as input. The scipher transformation may then unpack the packed message, read and store all attributes found in the header, and then prepare to decipher the encrypted message. Symmetric ciphers may not have a deterministic method for communicating successful decryption. Overlapping verification methods may be used to determine such results. An example of a rudimentary method may be to extract the prepended salt value from the decrypted message and compare it to the stored salt value from the header. A matching salt value may indicate a successful decryption, but may not guarantee it. AEAD-mode symmetric ciphers may address this problem somewhat well by embedding a MAC (CMAC, HASH or HMAC) of the data string in the encrypted message (before or after encryption) and performing a comparison. A more sophisticated method may require authentication of some form of digitally signed hash of the message using a different key. As will be shown in a later section, the use of SDFT and TAR may enable such sophistication in a procedurally simple and logical manner. In all of these hash-based methodologies, it may not be possible to deterministically state the conditions of a decryption attempt sufficiently, due to the weakness inherent in hashing schemes to universally uniquely identify data.One deterministic method would be to compare the decrypted message with the original message for equality, but there may be an efficiency tradeoff for lengthy messages.
[0048] FIG. 28 shows a table of parameter keywords and specifications for the header string in the output structure format of a scipher transformation. The keywords chosen for this attribute table may be sufficiently self-descriptive and / or self-explanatory to one of ordinary skill in the art. Example attribute values are shown in the right column. The first attribute listed, header size, may be the only attribute that may be presented as a 16-bit binary unsigned big-endian integer value and may be the first field present in the header. This header size may indicate the number of subsequent bytes that may describe the attributes of this particular scipher transformation in a printable format. The attribute format may have been chosen to be printable to allow for variability in the range and length of the attribute values. All attribute values that may naturally exist as binary strings in a running program, including the salt value (salt_val) and the MAC string (mac_val), may be encoded to base64 to satisfy the preference for printable characters.
[0049]
[0047] In this manner, the output string of the scipher transformation may comprise one or more encapsulation layers of attributes depending on the elaboration of the selected scipher. Figure 29 shows a diagram of recursive embedded message encapsulation for AEAD mode scipher transformation. An AEAD mode AES cipher may output the listed subsequent layers from inner layer to outer layer. A message preparation layer 2910 may comprise a cleartext message to be ciphered 2914 combined with an appropriate salt value 2912. This prepared message 2910 may be encrypted with a selected AEAD cipher, which may then additionally generate a MAC value and additional data 2922 as part of the cipher process, and this combined message may be referred to as an AEAD cipher output 2920. This AEAD cipher output 2920 may also be referred to as an encrypted message 2934. The encrypted message 2934 may have associated attributes from the scipher process, which may be parameterized using the keyword / value header method from FIG. 28 to generate the header 2932; this combination may be referred to as a scipher packed message 2930. This scipher packed message 2930 may be the output of a selected scipher transformation, which may be stored in an obj pointer or variable 2944 of an NSstr structure 2940 that may be associated with the TAR that called the scipher transformation. The structure of an NSstr is described more fully in a later section. Other attributes 2942 may also be stored in this data storage unit, called an NSstr structure, which may include the TAR, a key stack, a digest, and / or status flags. The obj pointer or variable 2944 in the NSstr structure 2940 may have been the starting point of the clear text message 2914, and therefore an iterative path 2950 may be possible, and there may be as many nested encapsulations of the object 2944 as required by the TAR it may be processing, which itself may be stored in an attribute 2942 of the NSstr structure 2940.
[0050] In the header 2932 of the scipher packed message 2930, the parameters comprising the description of the symmetric cipher, its mode and attribute values used may be completely and precisely described by the keywords listed in FIG. 28. In this regard, the TOP approach may not rely on obfuscating and hiding non-cryptographic processes and procedures to secure data, but rather may rely only on the theoretical and implemented security of the cipher being used as a transformation. While this may not appear significant on initial observation, it may be shown later that such clarity of the relevant details of the data transformation, embedded in the output of the transformation itself, may ultimately lend itself to novel methodologies and designs that may rely more on self-describing data than hard-wired programs to properly process it. This approach may help to formulate one of the fundamental primitives in data-centric design and data-centric models that operate on data at some of the lowest layers of data storage science. NUTS may rely heavily on data-centric designs and models, as may be shown in later sections.
[0051] FIG. 30 shows a table 3002 of command specifications for the lock transformation and a set of sample transformation commands 3010 illustrating its usage. The lock transformation is one of the additional transformations listed in the table in FIG. 12, which may be an embodiment of the variable lock from NUTS as described in detail in FIG. 65-77. The variable lock may present several different ways of cryptographically locking a secret message, including sslock, orlock, matlock, xorlock, and hashlock. A feature of the variable lock may be the ability to input and use several cryptographic keys in the process of ciphering a secret message in a normalized, systematic, and coherent manner. The TOP approach may allow a concise way of implementing such locking techniques in a simple and convenient manner. In the example of section 3010, the mutate command "lock orlock 128 numkeys=10 scipherkeylen=128" may take as input a byte data string and up to ten 128-bit equivalent symmetric keys, encrypt the input string using the "scipher aes 128 mode=eax" mutate command, and generate an output string with ciphertext and associated embedded attributes. The mutate command "lock matlock 256 numkeys=5" may take as input a byte data string and five 256-bit symmetric keys, iteratively encrypt the input string using the "scipher aes 256 mode=eax" mutate command for each key, and generate an output string with ciphertext and associated embedded attributes. The transformation command "lock sslock 256 numkeys=4 threshold=2" may take as input a byte data string and at least two 256-bit teenes256 secret shared keys, encrypt the input string using an implementation of Shamir's secret sharing method with the supplied secret shares, and produce an output string with cipher text and associated embedded attributes.The mutate command "lock sslock_b 256 numkeys=6 threshold=3" may take as input a byte data string and at least three 256-bit teensidx128 secret shared keys, encrypt the input string using an implementation of Shamir's secret sharing method with supplied secret shares, and generate an output string with cipher text and associated embedded attributes. The mutate command "lock xorlock 128 numkeys=6" may take as input a byte data string and six 128-bit symmetric keys, derive a calculated key by repeatedly performing XOR operations on the supplied keys, and encrypt the input string using the "scipher aes 128 mode=eax" mutate command, and generate an output string with cipher text and associated embedded attributes. The mutate command "lock hashlock 192 numkeys=7" may take as input a byte data string and seven 192-bit symmetric keys, derive a calculated key by performing a hash on an ordered concatenation of the supplied keys, and encrypt the input string using the "scipher aes 192 mode=eax" mutate command to produce an output string with ciphertext and associated embedded attributes.
[0052]
[0050] A description of each variable lock type and mode of operation can be found in the later section on variable locks, beginning with Figure 60. The TOP analysis and method can allow complex iterative locking variations potentially utilizing multiple encryption keys to be performed in a concise and logical manner, allowing for easy extension to different types of locking algorithms in the future. It can also be shown later that the key management aspects of SDFT can allow programmers to conveniently generate and manage such multiple encryption keys with relative ease.
[0053]
[0051] As presented in Figures 12, 13 and 14, the TOP analysis and method may enable one skilled in the art to take a given data manipulation function and determine its suitability for transformational operations and normalization to types. The table in Figure 12 may show a sampling of very well-known data manipulations and may very well be considered sufficient for use by a wide audience of developers. However, in cases where a data manipulation function may not be found in this table, it may be possible to analyze the function and tailor it to operate within the SDFT framework using functions such as the TOP method, lossy compression, bit scattering, message dispersal, erasure coding (ECC) and message-level RAID encoding and structuring. In most cases of such transformational extensions, it may not be necessary to recode or rewrite the actual data manipulation function. In fact, doing so in most situations may be counterproductive and procedurally weak. Libraries containing data manipulation functions can be accessed by the transformation library, and the TOP method can enable developers to provide normalized wrapper functions around specific data manipulation functions to behave well within the SDFT framework.
[0054] Metamorphic Structures, Metamorphic Audit Records (TAR) and Structured Data Folding with Metamorphism (SDFT) FIG. 31 shows the specification of various mutating structures in a table format. The structure definition relies on a nested key-based approach similar to how structures are defined in Javascript, which may be an intentional design choice as its representation may be easily replicated in a wide variety of programming languages and may not rely on specific language idiosyncrasies. For example, Python v3.6 allows classes to be defined, but some languages such as Javascript may not allow that, and thus the mutating data structure may not rely on classes to define it for broader applicability. The mutating structure may provide a well-defined working memory area whereby the inputs and outputs of the mutating may be prepared, processed, and / or stored. The main data storage unit or structure that may be used in most, if not all, mutating operations is called the NSstr structure 3108. There may be at least one instance of NSstr associated with a mutating call. Every mutating structure may have a "typ" or structure type field that specifies what structure it represents. The NSstr structure may further define a "state" field that specifies the state of the structure and / or its data. The "obj" or object field may either hold a single value or it may be a pointer that references another region of memory. The obj field may be where the input data to most transforms can be found, and the obj field may be where the output data of most transforms can be found. The "digest" field, if present, may store a digest of the data stored or referenced by the obj field. The manner in which the digest may be generated may depend on the particular dig or digest transform, as well as the parameters and / or attributes supplied to the transform command. The "key stack", if present, may be a single instance of a KISS (Key Exchange Specification Structure, to be described in a later section) structure, or it may be a list of KISS structures in a predefined order that corresponds to its operation TAR.The key stack essentially holds various types of private key(s) that may be required by several transformations. The “tar” field may point to an instance of an NStar structure 3106.
[0055]
[0053] The NStar structure 3106 may specify a particular transformation audit record (TAR) that may be applied to the input data stored in the obj field of the NSstr structure. A TAR may be a collection of transformation commands in a logical order that may be intelligently ordered to process the data in the NSstr in a coherent and well-behaved manner to produce a single "fold" of the NSstr data. This process of performing TAR on an NSstr data structure may be referred to as a "ravel" function call. Conversely, an "unravel" function call may "unfold" a single folded data in an NSstr structure using the same TAR relying on the inherent properties of reversible transformations. Thus, reversibility of transformations may be a central feature in Structured Data Folding with Transformations (SDFT). The SDFT methodology may use TAR on an NSstr structure to iteratively transform objects in a similar assembly-line operation on the data. Analysis may be performed for the reversible behavior of each transformation command in TAR, so that TAR may be sought in reverse mode or unravel function calls. This topic may be explained in more depth as additional necessary components that may enable such behavior may be presented in the following sections.
[0056]
[0054] The NSbin structure 3102 may service certain functions that may or may not be related only to Python v3.6. In Python v3.6, a distinction may be made in the manner in which a string of data may be stored internally. It may be stored as a "byte" string or a character string. A byte string data type may indicate that the information held in the variable may be a series of binary byte data. A character string may indicate that the information held in the variable may be a series of bits representing characters encoded in some type of encoding scheme. Python v3.6 may employ sophisticated internal management schemes to best determine how a particular character string should be stored, since different encodings may require different storage requirements per "character". An example may be that UTF-8 may use 8-bit long code units to represent each character, and UTF-16 may use 16-bit long code units to represent each character; these variations may be necessary to convey different international character sets, where the number of characters in a language may be quite different from the English alphabet and therefore may not fit into an 8-bit transposition of the data. The preferred internal serialization method for transform, TAR and SDFT may be JSON, which may not have native support for mapping the Python "bytes" data type to one of its own. If a conversion is attempted, the JSON function call may fail abruptly with some indication that the particular data type may not be supported. An NSbin structure may be specially designed for this type of situation and may be replaced with a "bytes" data string, thus making the Python variable JSON compatible. The "bytes" string may be encoded into a base64 character string and stored within the "b64" field of the NSbin structure. The byte string variable may then be made to point to this NSbin structure, overwriting the original byte data. Although these may represent equivalent data, they may be in different encodings and structures.However, the end result may be that NSbin structures may be fully JSON compatible and may then be safely serialized using JSON functions without errors due to incompatible data types.
[0057]
[0055] In the TOP technique, this conversion and substitution from "bytes" data to NSbin structures may be referred to as the "press" transform from Figures 12 and 33. In Python v3.6, the press transform listed in Table 3302 may take any valid Python structure or variable and iteratively transform any byte string into an equivalent NSbin structure that may result in a Python structure lacking the byte data type. Those skilled in the art may customize appropriate press transforms and their JSON function calls for languages other than Python v3.6 to eliminate such sources of data serialization errors. The reverse mode of "press" may be referred to as "depress" and may iteratively undo the conversion and substitution so that a data structure containing its original data type may be restored.
[0058]
[0056] The NSjson structure 3104 may serve a particularly useful function of holding only data that can be fully JSON compatible. A glance at the fields defined for NSstr 3108 may alert to a potential problem if the structure were submitted directly for JSON serialization, with its digest field potentially holding the digest value of the source obj in binary string form or byte data string in Python v3.6. Referring again to FIG. 12, we reintroduce the "mobius" transform for this particular problem. Note that a reasonable definition of the mobius transform prior to this point in this description may not be entirely obvious to the reader due to the intertwining nature of the transform and TOP techniques. The mobius transform in FIG. 32 may transform a given structure from one form to another, circularly, but with a slight twist as in the case of a Möbius strip. The mobius transform may be a key enabler of structured data folding with transform by systematically converting NSstr structures into JSON serializable structures such as NSjson, and the process of conversion may embed the operation TAR for NSstr as a whole with the transformed data, thereby resulting in the self-describing properties of the resulting storable objects. The mobius transform may be one embodiment that implements the essence of structured data folding in the SDFT library in an advantageous manner. While a developer may choose to implement the SDF manually using a logical combination of transform commands other than the mobius command, the mobius command adds at least one extra logical step that may require the developer to implement that step outside of the SDFT library, namely the ability to serialize the NSstr data structure that the mobius command is operating on and from into another structure such as NSjson. The mobius transform may be the last transform command in the TAR. Because of its functionality, this may be the only logical place where the mobius transform may be placed.When a mobius transform is processed, it may take the NSstr structure that it may be operating from and on, and transform it into an NSjson structure. The TAR embedded in the NSstr structure may no longer exist in a useful or accessible form, and thus the mobius transform may be the last transform command for a given TAR to be processed. The mobius transform may simply press the NSstr structure, JSON serialize it, and then store it into an NSjson structure, which may be stored, transmitted, JSON serialized, folded, or any other valid data operation that may be performed on such a structure. While there may be a reverse mode for the mobius transform, another way to look at this transform may be to state that it is a circular transform, and whether in forward or reverse mode, it performs certain data transformations depending on the input data structure type. Table 3204 shows the NSx structures of which NSjson may be a variant. If the need for additional transform structures other than those defined in Figure 31 arises in the future and they may need to be accommodated in the mobius transform, this table shows how the mobius transform may behave for transform structures other than NSstr. Although it may not be entirely obvious without actually programming with SDFT, the mobius transform may logically imply that there may be no TAR processing possible from the restored NSjson structure unless the mobius transform is operated on the restored NSjson structure to convert it to its original NSstr structure that may hold the TAR that may have folded it. To start this mobius spin cycle with the NSjson structure, mobius(reverse) may be kickstarted with a mobius function call from the SDFT library to generate an NSstr structure, access the embedded TAR, and process the embedded TAR in the reverse direction.This may further imply that the mobius transform command in TAR, which by definition is the first command to be processed in reverse mode, may be safely ignored during processing since it may have already been performed by a kickstart function call, thereby not performing the mobius function more than once during such a reversal. In this ordering, failure to ignore mobius transforms in reverse mode may potentially generate infinite oscillations of mobius calls that continuously convert from NSstr to NSjson and vice versa. Although it may seem to be a roundabout way of expressing such operations, it may generate a fairly compact bidirectional TAR that may be systematically embedded in the output transformed data, thereby providing a self-describing property to the folded data. This property may be novel in that it may be acted upon for similar interpreted scripts, but in both forward or reverse modes, to perform operations on data in a consistent and reproducible manner across any language and / or operating system that may support an implementation of the SDFT library.
[0059] FIG. 33 shows a table 3302 of command specifications for the press and clean transforms, and a table 3304 of command specifications for the key transform, along with a set of sample transform commands 3310 illustrating its usage. The clean transform may be a housekeeping function that removes transient or temporary fields from within the NSstr structure. Some transforms may have a need for additional temporary fields during processing, and may create additional fields within the NSstr structure to store and access them. The creation and use of such transient fields within an NSstr may be done in a judicious manner, after analyzing its coexistence within the TOP methodology and minimizing its interference with the proper functioning of other transforms. Due to the functioning of the clean transform, there may be no inversion mode for the clean transform, and therefore it may be safely ignored. This inversion implication may be taken into account when proposing a new transient field within the NSstr structure, which may not be present in the inversion mode processing of the transform, and therefore the transform in the reverse direction may not depend on the presence of the field to function properly. An important function of the clean transformation may be to delete the internal copy of the complete key stack used in the TAR process, or it may delete only the private key in the key stack and convert the KISS structure to a keyhole. This may be the single most important transformation in the SDFT TAR process, since failure to properly clean NSstr before preparing it for storage may result in the storage of any and all encryption keys that may have been used in a particular TAR process, which may be inadvertently stored in clear text with the folded data. This situation may reveal the private key and compromise some or all of the ciphered data in the folded data, which may not be the intended purpose of ciphering the data.
[0060] In table 3304, the key transformation is shown along with some of its operations. This transformation may be part of the key management function of SDFT and may operate mainly on the key stack field by referencing the tar field of the NSstr structure. The key check transformation may check the stored TAR and generate a list of key templates. If a key stack is input, it may be compared to such key templates to determine whether the correct key types in the proper sequence were provided in the input key stack. For example, if TAR requires two different 256-bit symmetric keys for two key transformations that may require keys, it may generate two key templates of "symmetric 256" in the list and indicate that TAR expects the key stack to contain such keys if it may exist. Table 3504 lists some of the various key types. An empty key stack or a partially filled input key stack may also be handled appropriately. It may indicate the "key generate" transformation when a key stack may not be input when TAR requires some keys. SDFT may engage in a key generation mode whereby the appropriate type of key according to the derived key template may be created and constructed in the key stack for submission to the computation NSstr structure prior to TAR processing on the data stored in the obj field. A partial "key generation" mode may be engaged when a partially filled key stack may be input. The key check and key generate transformations may collaboratively determine whether the partially provided keys in the key stack are of the appropriate type and in the proper sequence. It may then proceed to generate appropriate keys for the missing keys. This process may be referred to as the "missing tooth" scenario of SDFT key stack management.Examples of TAR with key transformation commands may be few, if any, since it may be considered so fundamental to the proper operation of the SDFT library on NSstr structures using TAR, and therefore it may be implemented implicitly by default in every call to a Ravel / Unravel operation, rather than forcing the programmer to place it in every TAR. However, it may be seen that having the possibility to process a TAR that may require a cryptographic key may be sufficient cause to implicitly, consistently and / or automatically check for proper key stack management. The TAR reversal process may process the key stack in reverse order accordingly. A peculiarity of the derive transformation in key stack mode may cause complications, which are explained in a later section on how SDFT handles such situations, called TAR grouping for dependency transformations.
[0061]
[0059] Figure 34 shows a table for the Key Exchange Specification structure or KISS. This structure may have at least two modes of operation: key or keyhole. Key attributes may be specified by some or all of the fields defined in the table, and additional fields may be added as necessary to extend the structure to support other key attributes. A TOP approach to cryptographic operations may be to assert a view of that transformation to request a matching keyhole that specifies the exact type of key required for each cryptographic transformation. Attributes may include, but are not limited to, a virtually unique ID for the key itself, a question or hint about a passphrase or password, a description of the key, etc. If a key value may be present in a KISS structure, it may simply be referred to as a key. If a key value may be missing in a KISS structure, it may be referred to as a keyhole. This may be indicated by the value in the "ima" field. The field name may be a contraction of "I'm a" key / keyhole and may be read as such for clarity. The column entitled "In" may indicate required values for inserting a key into a blank KISS structure in order to create a blank KISS structure and place the key into the input key stack of the NSstr structure. The column entitled "Gen" may indicate fields that may be automatically created and filled during key generate transformations from within the SDFT library. Throughout the SDFT description involving TAR, all key references may be synonymous with a KISS structure of the appropriate type. It may be clear that the key stack may correspond exactly to the characteristics of the TAR being processed, and that this method of stacking transformation commands and stacking the required cryptographic keys in a particular format and sequence may allow the input data to be iteratively processed through an infinite number of transformation transformations, parametric distribution of transformations, and / or successive data folding. At this point in the description of TOP, one may begin to understand the intertwined nature of the various components of SDFT, and that a complete understanding of a particular part may not be fully exposed in a linear manner.
[0062] FIG. 35 shows a table 3502 for KISS operation mode, a table 3504 for a matrix showing key type / field occurrence mapping, and a table 3506 for key type definition. Table 3506 lists some types of keys recognized by SDFT, which may not be limited to these, as new key types may be added and integrated as needed. At least three key types may require some explanation, as they may be specially structured for the SDFT library using well-known base key types. The key type "symmetriclist" may be an array or list of symmetric keys and may be stored as key values in a single KISS structure. This key type may support transformations such as, but not limited to, lock and derive. The secret sharing lock transformations, called sslock and sslock_b, may represent two different implementations of Shamir's secret sharing algorithm, respectively. The lock sslock transformation may expect secret shares in a specific format with an internal index number and key shares in a 256-bit long key. This is sometimes referred to as the "tines256" key type within the SDFT library. The lock sslock_b variant may expect secret shares in a specific format that comprises an internal index number and key shares in a 256-bit long key. This is sometimes referred to as the "tinesidx256" key type within the SDFT library.
[0063]
[0061] Table 3502 is a matrix showing what properties may be applied to the KISS structure in the two modes in which it can exist: key (or transformation) or keyhole. In transformation (key) mode, the KISS structure may be expected to store the actual encryption key to generate a version of the ciphertext that may include a keyed digest and / or dign. Thus, its storage may be used informationally, but in order to store it persistently in a secure manner, it needs to be further embedded using a cryptographic function. In keyhole mode, the KISS structure may be expected to have enough details to accept as its value the appropriate encryption key to generate a version of the ciphertext that may include a keyed digest, dign and / or derived keys. Thus, its storage may be mandatory and may not need to be further secured by an embedding methodology since it may not include the key value as the keyhole.
[0064]
[0062] Table 3504 is a matrix showing which fields are required, relevant, entered and / or generated by key type. Upon inspection of the table, it may be apparent that the KISS structure may hold salts related to various cryptographic operations. This may seem redundant in light of the description of the scipher embedded header, but that description of the salt may not present the whole picture regarding the salt. As shown in Figure 37, the persistence of the attributes 3704, 3714 related to the transformation may be distributed among several data storage areas 3732, 3734, 3736 and 3738. The TOP approach may indicate that the salt may be embedded during some cryptographic operations along with the obtained output data, since the obtained output data may not reveal any additional information regarding the generated cipher text. However, upon inspection of the key derivation transformations processed in the key stack mode, it may be noticed that it may be convenient and logical to store the associated salt value in the KISS structure. A common use of a key derivation function may be to accept a passphrase as input and combine it with a salt value to generate an appropriately formed encryption key, such as but not limited to a symmetric key. The use of the salt in this case may be for semantic security. Thus, it may be entirely possible that every keyhole that may accept the same passphrase may have a different salt in a way that the resulting private encryption keys may differ from each other, for whatever reasonable reason they may have. This derived key may be used in a temporary manner and discarded after use, thereby leaving only the keyhole as evidence of its existence. Since the product of the key derivation may be used as a private key, it may not generally be saved permanently, which may obscure the question of where it may be stored? TOP may store it in the corresponding keyhole, and SDFT may prefer to store this keyhole along with the folded data, so that each keyhole that may accept the same passphrase may dedicate its storage for its own instance of the salt value. The programmer can store the KISS keyhole externally in a completely different way.The simplified transformation diagram at the top of Figure 37, which is the same as in Figure 5, becomes like the diagram at the bottom of Figure 37 when various components of TOP and SDFT can be introduced. Table 3720 summarizes the placement of the attributes.
[0065] Most have been analyzed via TOP and SDFT and discussed above in terms of syntax and variety of available transformation commands, but what exactly is a TAR? Figure 36 shows the structure of a TAR and lists some examples of TARs. Section 3602 specifies the general structure of a transformation audit record or TAR. The "tar label01" declaration indicates the name or label of the TAR defined immediately below it. All TAR commands follow the TAR label declaration, and a blank line indicates the end of the current TAR definition. Thus, many TARs can be declared in a single text file. The TAR definition section can contain a TAR label by itself or a line with transformation commands. This can be similar to the macro feature of programming language compilers, which can be used as a convenience feature to combine well-known TAR constructs into a new TAR without having to actually copy the definitions into the TAR itself. Transformation commands can be inserted in a particular sequence to process the target NSstr structure in a desired way. TAR "test_a01" may simply press a Python data object into an equivalent structure lacking a Python byte data type; in other languages it may or may not perform the same function since "press" may be language and / or environment specific. TAR "test_a02" performs the press transformation twice in succession; the second press transformation may not achieve a function change of the data. This indicates that the TAR augmentation is working. TAR "test_a07" may press the data, serialize it into a JSON string, and then convert it to a byte type binary string using utf_32 encoding. TAR "test_a17" shows what the ending mobius transformation may be.The TAR "test_a20" plasters the data, serializes it to a JSON string, converts it to a utf_8 encoded binary string, ciphers it using chacha20 with a 256-bit symmetric key, and then converts the resulting binary ciphertext string to a base64 encoded character string. The symmetric key for the scipher transformation can be expected in the key stack of an NSstr, which may contain a single KISS structure holding the 256-bit symmetric key value. An alternative is that no key stack may be given, and the Ravel function proceeds to generate a valid key stack with a suitably generated random 256-bit symmetric key, uses that to perform the scipher transformation, and allows the programmer to fetch a copy of the key stack (and therefore the keys within it) upon completion. The TAR "test_a42" shows an example of a TAR group and dependency transformation, i.e., it stamps the data, serializes it to a JSON string, converts it to a binary string encoded in utf_8, derives a 256-bit symmetric key from the passphrase provided in the key stack, and then performs chacha20 encryption on the data using the derived symmetric key. The last two transformations may have a persistent dependency since the cipher relies on the derived key, and therefore this dependency may be grouped in the TAR and the leading <tag> is marked as such. In forward mode, there may be no obvious impact of TAR grouping in the TAR definition, except to visually highlight such dependencies. However, TAR groups may play a significant role with respect to TAR reversal. When a TAR is being prepared for the TAR reversal process, a TAR group may be kept intact as a unit and its components may not be reversed. Figures 41 and 42 show some examples of TAR reversal. The TAR "test_a64" may perform five scipher transformations and a DSS dign transformation. This TAR may expect a key stack filled with six keys of various types and lengths in a specific order. An abbreviated representation of a key template that may correspond to the TAR "test_a64" may be shown in section 3610.This key template may be used by the implicit key check and / or generate transformations to validate the input key stack and / or generate a valid key stack for proper processing of the TAR.
[0066]
[0064] Figure 38 shows a block diagram of the SDFT operations Ravel and Unravel (or the inverse of Ravel). The two central operations in SDFT may be "Ravel" and its inverse, "Unravel". The Ravel operation may process a given NSstr, which may comprise some or all of the following items: data, TAR, key stack, and / or other attributes. The Ravel operation may "ravel" or fold 3810 the source data in 3802 according to the sequence of transformations listed in the TAR in 3802, eventually producing output as components in an NSstr structure 3804 or NSjson structure 3806. The Unravel operation may "unravel" or unfold 3820 the source NSstr 3804 or NSjson 3806 structure according to the reversed sequence of transformations listed in the embedded TAR, finally producing output as an NSstr structure 3802. As will be shown, the Ravel / Unravel symmetry can be an interesting aspect of this design. Note the consistency of terminology and viewpoints that can be used throughout TOP. A Ravel operation in the reverse direction can be equivalent to an Unravel. Not only can this invertibility principle simplify the analysis of such functions, it can permeate modular organizational methods that can lead to higher-order concepts related to data transformations.
[0067]
[0065] Figure 39 shows a flow chart of the SDFT Ravel operation. Given an NSx structure, a Ravel function or method call may utilize either the parameters with the call and / or the TAR embedded within the NSx to perform the following operations on the data contained within, where "x" in this case represents any transformation structure. As with the key check / generate transformation, the mobius transformation may be considered very fundamental to this algorithm, and therefore may be performed implicitly on the input data structure if conditions are met 3906. Ravel may only properly perform its core operations on NSstr structures, and therefore if an NSx structure that is not an NSstr is passed, the NSx structure may attempt to convert it to an NSstr structure 3918. Failure to generate a valid NSstr 3924 may trigger an appropriate error code 3978 and abruptly terminate the process 3984. There may be at least three different ways in which the data inside may be raveled or folded: first, a TAR may be included in a valid NSstr that indicates a sequence of transformations to be performed on the data in the NSstr structure; second, the name of a TAR label may be passed as a parameter to a ravel call, thereby indicating a preferred set of transformations to be performed on the data in the NSstr structure; and third, a customized TAR list may be passed as a parameter with its given name in a ravel call, thereby indicating a preferred set of transformations to be performed on the data in the NSstr structure. Preparing the TAR 3912 may comprise expanding other TAR label references and / or ordering them appropriately for a traversal mode that may be either forward or reverse. Figures 41 and 42 show some examples of TAR inversion. A key check transformation may then be effectively performed on the TAR and the NSstr structure. A component of the key check transformation may be deriving 3930 a list of key templates by checking the TAR.Using the TAR, the input key stack (which may be empty or partially populated) and / or the key template, the process may construct a key stack 3936 for proper traversal of the TAR. This may comprise generating missing keys of the correct type, ordering the keys in the proper order, and / or checking the input key for the proper structure and type. A mismatch between the input key type and the corresponding derived key template may generate an error condition 3942, leading to an appropriate error code 3978 and abruptly terminating the process 3984. The process may then iterate 3948 through each transform command in the TAR in the appropriate sequence, performing the specified transformation on the data contained within the NSstr 3954. Any errors 3960 that may be encountered during the execution of the transform commands may cause an appropriate error code 3978 and abruptly terminate the process 3984. When the end of the TAR sequence 3948 is reached, if there are no errors, the Ravel operation may be deemed successful 3966 and the process may end successfully 3972.
[0068]
[0066] Figure 40 shows a flowchart of the SDFT unravel operation. Rather than specifying the unravel process in detail, the symmetry of the reversibility of the transformation can be shown by comparing the flowchart in Figure 39 with the flowchart in Figure 40. The only difference between the two flowcharts may be the TAR preparation steps 3912 and 4012. Since every transformation may be analyzed and structured using TOP to perform in a manner that works well in both directions, the unravel process may not need to be significantly different from the ravel process, except for how the TAR may be presented. The unravel process is implemented as the same code, but with a slight deviation when the reverse flag may be indicated and may perform the proper reverse ordering of the TAR when encountered. Such a call in Python v3.6 may take the form "obj.ravel(...,reverse=True)". The symmetry may allow the actual implemented code to be much smaller and / or present fewer opportunities for programming errors. A conceptual benefit may be clarity and simplicity of thought when constructing a new TAR for a specific purpose, i.e., a programmer may rely on the appropriate TAR sequence to be fully reversible within its limits and not have to think through that part of the application. A benefit may be that the programmer's workload for creating a specific set of data transformations may be effectively reduced by at least 1 / 2, since the programmer may no longer need to create the reversal code for such data manipulations. Building complex ciphering and locking mechanisms may require a huge number of data manipulations utilizing multiple encryption keys. The transformation organization principle (TOP) method may help achieve a more cohesive and unitized way of approaching such complexity in a discrete, less error-prone manner, which may therefore enable, but is not limited to, more consistent, reliable, secure, portable, understandable, comprehensive, flexible, extensible and / or complex code and / or data.
[0069]
[0067] Figure 43 shows a table of transformations mapped to key type templates that may occur or require during TAR processing. Referring again to the description of key management, one of the main operations of key management may be to analyze a given TAR and generate a corresponding list of key type templates that may detail the type and specifications of each key that may be required in the successful processing of the given TAR. Table 3506 lists at least nine of the key types defined within the SDFT. Table 4300 shows the mapping of each transformation operation that may require the key and corresponding key type or "keytyp" that it may require by the ravel / unravel process. The key template may have several attributes associated with each key type, such as, but not limited to, key length or "keylen". For the sake of brevity and simplified explanation, a 256-bit long symmetric key may be shown as having a key template that may be represented as "symmetric keylen=256" or "symmetric 256", but an actual implementation may utilize available data structure mechanisms in a programming language to store such values in an organized manner. In Python v3.6, a possible structure for key templates may be represented by an array of dictionaries, where each dictionary entry in the array stores a single key template with each attribute corresponding to the dictionary key and the attribute value corresponding to the value associated with that key in the dictionary. Within SDFT, all key templates may be temporary structures and may be subject to repeated recursion via key check transformations, and it may not be necessary to store such key templates persistently. In this way, SDFT may properly analyze keys inserted into the key stack for processing before key type / structure incompatibility causes the cryptographic transformation to fail outright. A major theme in TOP and SDFT may be the view that obfuscation of data manipulation sequences may not be a reliable component in securing sensitive payloads, but rather may require the strength of the chosen cipher and its computational attributes and / or properties.
[0070]
[0068] Figure 44 shows TAR examples and the key templates generated from each. The left column in table 4402 lists TAR example "A". The right column shows the key type templates generated for each mutate command that may require an encryption key as an attribute input. In this example, TAR "A" may require two encryption keys in the sequence shown. The left column in table 4404 lists TAR example "B". The right column shows the key type templates generated for each mutate command that requires an encryption key as an input. In this example, TAR "B" may require four encryption keys in the sequence shown. This process may be known as key template generation from TAR.
[0071]
[0069] Figure 45 shows an example TAR, the key templates generated from each, and the expected list of KISS structures to be put or generated. The list of KISS is also called a key stack. Taking two examples from Figure 44, the next steps in the key management aspect of Ravel / Enravelcor can be shown. The key stack can be expected or generated in the form of a list of KISS structures corresponding to each key type template as shown by 4510. When the TAR "A" process reaches the "scipher salsa20 256" transform command, the process can expect to find an input 256-bit long symmetric key in the key stack as shown by KISS A1. When the TAR "A" process reaches the "dign dss 1024 digestlen=512" transform command, the process can expect to find an input 1024-bit dsa key in the key stack as shown by KISS A2. It can be read and understood that the KISS list for TAR "B" is done similarly. In the event that such an expected key cannot be found in the key stack, the TAR process may expect to find a generated key instead. This implicit key generation may be beneficial to the programmer, since the only requirement to generate an acceptable key of any type for a given keyed transformation is to be able to declare it in TAR. There may be no additional steps required to generate a specific key for a specific cryptographic function. By calling Lovell with an empty key stack, the output NSstr structure may hold a fully compliant key stack with appropriately generated keys that match TAR and are capable of folding the data inside. It is highly recommended and advisable that this key stack, constructed from the KISS structure, may then be stored separately in a secure manner away from the folded data, and / or it may be further modified in some way, folded again, and secured using TAR with a cryptographic transformation, thus further encrypting it. Repeated encryption and encapsulation of the key stack may be useful when dealing with many cryptographic keys to manage and secure.TAR "B" may generate a four KISS key stack, which may be convenient to securely store the entire key stack in a key repository, but the programmer may wish to encrypt the four key key stack using a single key for convenience. This may be accomplished by creating a new NSstr, inserting the four key key stack into the data obj field, choosing the appropriate encryption TAR, and performing a ravel call on the NSstr structure. This sequence of steps may generate a key stack with a single KISS structure that contains the locking key for the folded NSstr structure that holds the four key key stack.
[0072]
[0070] Figure 46 shows three modes of key stack operation within SDFT TAR processing: generation (gen), input (put) and injection (mixed). Section 4600 shows what may be done when the key stack 4602 is empty in the processing of TAR instance "B". The Ravel process takes the key type template 4508 for TAR "B" and generates 4606 the appropriate number of randomly generated encryption keys of the same type and in the same order as those found in the key type template shown in 4604. Section 4610 shows what may be done when the key stack 4612 is put 4616 into the processing of TAR instance "B". The Ravel process may take the key type template 4508 for TAR "B" and check it against the given key stack 4612 to validate the number, type and ordering of keys, which may then allow its use in the processing of TAR "B", as shown in 4614. Section 4620 shows what may be done when key stack 4622 is presented to the processing of TAR instance "B" given only one key, namely KISS B3, or also referred to as a partially filled key stack or "missing teeth" scenario. The Ravel process may take the key type template 4508 for TAR "B" and check it against the given key stack 4622 to validate the number, type and ordering of keys. During the iterative validation of each key type template against the key stack entries, an empty KISS structure may be considered a special type of validation failure and may further be interpreted as an implicit key generate transformation for that key type template. The Ravel process may then inject 4626 a newly generated key of the appropriate type into the empty position of the key stack and continue in the key validation iterations. Upon completing this step, the mixed key stack (sometimes called a mix of entered and generated keys, missing tooth scenario, or key injection) can be presented and used during the processing of TAR "B", as shown in 4624.
[0073]
[0071] Figure 47 shows a diagram of how a key stack may be generated and used in the life cycle of data and its TAR. The use of SDFT 4700 on data may allow it to be iteratively transformed in a coherent fashion according to a variable set of transformations defined by a particular TAR 4702. The TAR may be structured in a way that allows for cryptographic key type analysis and thus generates a key template that details the number and type of keys required by the TAR. The key template may then be referenced in the construction of an input key stack 4704, regardless of whether all, some, or none of the required keys may be present. When a required cryptographic key may be missing, the construction process may generate a new key for use. The TAR, data, and key stack may then be passed to a Ravel call 4706 to perform folding of the structured data according to the TAR. The folded data may then be stored by any means 4708. The keys in the key stack may be stored in a separate secure location 4710. When the folded data needs to be referenced, the application may retrieve it from its storage location 4712, retrieve the key or key stack from its secure storage 4714, pass the folded data and key stack to the unravel call 4716, and access the data in its original form 4702 from the unravel output structure. This may represent one complete cycle of structured data folding with transformation. There may be many other paths for the data structure to be transformed and folded, but essentially some form of this cycle may be necessary to be complete in order to fully retrieve the original data within the SDFT.
[0074]
[0072] Storage of keys and / or key stacks 4710 may involve folding of the key stack utilizing cryptographic TAR to protect it with fewer keys, only one key, and / or different keys. The folded key stack data may become part of another structure that may itself eventually be folded. Data may be folded iteratively in a cascading fashion to build an internal data structure, where precise, piecemeal folding may lead to precise, piecemeal encryption. This ability to direct complex cryptographic data transformations in a precise, organized, and / or systematic way may lead to better and / or simpler designs for the protection of sensitive data using more sophisticated transformation schemes. The simplicity and clarity of the TAR syntax may lead to better understanding of the operations being performed on the target data by others.
[0075]
[0073] An important benefit of SDFT may be the systematic treatment of key management within the context of combining various cryptographic operations on a given piece of data as in 4704 and 4714. The programmer may be somewhat relieved from the minutiae of generating each key and manually manipulating its storage and / or ordering during such a process. In the application of a cryptographic function, these minutiae may quickly add up to a large number of small details or attributes that the application (and therefore the programmer) must track, analyze, remember, and / or use. The SDFT method may enable a given application to track, analyze, remember, and / or use fewer individual attributes of a cryptographic function, since it may enable those attributes to be embedded within the context of the data and / or key stacks it operated on and produced as output, which may provide a pair-wise combination of the folded data with the transformations that may have folded the data. Porting data manipulation instructions from applications to data may enable simpler applications and / or applications with more sophisticated use of cryptographic functions. SDFT may enable a better alternative to expressing Structured Cryptographic Programming (SCP) methods as described in the NUTS section.
[0076]
[0074] Figure 48 shows a diagram of operations that may be performed on data stored in an NSstr structure. Data 4802 referenced by pointers and / or stored in variables may be encapsulated 4812 directly into an NSstr structure using instantiation methods and / or using method / function calls 4804. The NSstr structure 4810 may then encapsulate the TAR 4814 and its associated attributes 4816 if necessary. The attributes may comprise key stacks, digests, transformation parameters and / or temporary variables. This may give the minimum complete set of information required to process the NSstr through the SDFT Ravel / Unravel operations to perform TAR on the data contained within using the attributes that may have been given 4810. In TOP terminology, this may be referred to as folding the data. The output of the SDFT may be returned as the same NSstr structure 4810, or as an NSx structure such as NSjson. This output may then be stored 4820 in some persistent and accessible manner, transmitted 4840 to another computing device using inter-process communication (IPC) methods, and / or stored in another internal data structure 4830. The cycle may begin anew for the stored data 4820 and 4830 at a later point in the application. For transmitted data 4840, the cycle may be initiated 4800 by the receipt of such a data packet.
[0077]
[0075] Figure 49 shows a flow diagram of a method for using SDFT to iteratively fold data. A series of simplified diagrams shows the systematic folding of data using SDFT Ravel Call for N successive data folds. An NSstr structure 4900, containing at least data 4902 and TAR 4904, may be folded by calling Ravel 4906 to generate output data 4908, which may be modified and / or further encapsulated into an NSstr structure 4920 containing at least data 4922 and TAR 4924, which may be folded by calling Ravel 4926 to generate output data 4928, which may be modified and / or further encapsulated into an NSstr structure 4940 containing at least data 4942 and TAR 4944, which may be folded by calling Ravel 4946 to generate output data 4948, which may be modified and / or further encapsulated, ...this process may be repeated 4950 as necessary. Note that in this complex series of Structured Data Folds, any TAR at any step can be modified separately from the application code by simply modifying the TAR instructions stored in some text file or equivalent. An equivalent programmatic representation without SDFT of such an iterative encapsulation, with its transformation sequences and / or parametric distribution possibilities for each step, may be relatively long, error-prone, and / or difficult to understand.
[0078]
[0076] Figure 50 shows a flow diagram of SDFT usage to unfold data iteratively. A series of simplified diagrams shows the systematic unfolding of data using SDFT unravel calls for N successive data unfoldings. It is the exact reverse sequence of the flow of Figure 49, and therefore may be understood as such. As previously shown in Figures 39 and 40, unravel calls may be equivalent to ravel calls, except for the preparation of the TAR and the state of the data being fed to it. Note that in this complex series of structured data unfoldings, additional reverse TARs may not be required to accomplish the unfolding. All the necessary TARs required to unravel each folded data may be seen to be embedded within the folded construct. A closer inspection of the NStar structure 3106 shows the "expd" field, which is defined as the "list-expanded form of the TAR command". This may be an important feature of reversibility in SDFT, and the output of TAR preparation steps 3912 and 4012 may generate a full set of operable transformation commands, devoid of label references and other external references, and may be considered a complete description of the transformations to which the transformed data may have been subjected. This may be considered a static snapshot of the TAR set for the folded data, thereby ensuring that a proper unfolding may be performed on the folded data despite any changes to the TAR definition in the external location. It may imply that although the TAR definition file may grow over time with multiple TAR definitions, the memory of the operational TAR definition may be saved by the SDFT process in such a way as to preserve its reversibility despite such changes to the external definition file (which may not be a recommended practice). This design may facilitate a systematic approach to better address the time compatibility of stored data.
[0079] FIG. 51 shows a diagram of the SDFT API / library and various types of TAR definition files it may have access to. TAR definitions may exist in many forms, including but not limited to text files, Nut, encrypted files, databases, server processes, and / or in memory while running. TARs may be defined at any time by a programmer as customized TAR definitions in a ravel call and thus may be temporary TARs. For TAR definitions that may be stored persistently, diagram 5100 may show these various forms but may not be limited by those shown. Standard TAR 5102 may be a TAR definition that may be provided as a package with the SDFT library installation for an OS / language pairing. Hidden TAR 5104 may be a TAR definition that may be a customized TAR definition that may exist only in locations with restricted access and / or accessed by explicit permissions. These may be the preferred method of TAR definitions within a private network or custom application installation. The use of hidden TARs may be kept hidden even in Labelle's output, and the expanded form of TAR may not be seen in such folded data, only a reference to it by the TAR label. Since data folded with hidden TARs does not necessarily contain the set of transformations required to unfold it, the responsibility of maintaining hidden TARs may belong to an administrator in such a group. Hidden TARs may appear familiar as an equivalent method of obscuring data manipulation sequences within a program. Local user TARs 5106 may be TAR definitions that may be customized TAR definitions that may be accessed only under the user's or programmer's account privileges. These may be temporary or development TARs that a programmer may be organizing for later permanent addition to one of the TAR definition storage formats. Remote TARs 5108 may be TAR definitions that may be accessed with or without authorized access from a remote server or storage site.Such a topology may be necessary due to limited local storage or due to a policy of centralizing key TAR definitions in a central management area. This may also be a way to always check to see if the standard TAR definition may be the latest version. The protected TAR 5110 may be a TAR definition that may be in a suitable and accessible location, but may be encrypted for authorized access only. A separate authentication and / or authorization process may need to be traversed successfully to gain access to the protected TAR. Another form of protected TAR may be stored within a Nut container that may require the appropriate key(s) to gain access to the Nut container. The embedded folded TAR 5112 may be an expanded TAR definition stored with the folded data from the Ravel Call.
[0080]
[0078] Figure 52 shows an example Python script for performing manual data folding. Figure 53 shows a TAR-defined SDFT example and its usage in a Python script. Figure 52 and Figure 53 together can show an example of how SDFT differs from a simpler programmatic approach using Python v3.6. These example Python scripts can show the large difference in the basic calling sequence for each task at hand using each methodology. We can start with a sample data set 5210. The operations to be performed on the data can be specified in tasks 5220 expressed in plain language as shown in lines 02-06. Typically these can be entered as comment lines in the program itself for readability. Section 5250 shows the actual Python code for performing the tasks, and section 5260 shows the reverse processing of the tasks to recover the original data 5210.
[0081]
[0079] Using SDFT, dataset 5310 is the same as 5210. Section 5320 represents task 5220 as a TAR definition labeled "test_a70". Section 5350 labels the data and writes the folded data to a file. Section 5360 reads the folded data from the file and unlabels it.
[0082]
[0080] There are 18 lines of Python code in FIG. 52 and only 8 lines of code in FIG. 53. It may be clear that changes in the type and number of data transformations may affect both sections 5250 and 5260. The method in FIG. 52 requires the programmer to maintain several variables, the sequence of tasks and / or the proper calling of each function or method. The reverse process in 5260 requires the programmer to make sure that all operations are called in the correct reverse order and that parameters have been supplied in the correct way for each function or method call. A change in a task in 5220 may result in programming changes in sections 5250 and 5260. An additional task in 5220 may result in additional program lines to sections 5250 and 5260. More temporary variables may be created and used as necessary for these additions to or changes in tasks.
[0083]
[0081] In the SDFT method in Figure 53, changes in the task can be reflected directly in TAR 5320. Therefore, additional transformational modifications can only change the length of this section. Ravel calling line 10 and unravel calling line 14 remain unchanged. The reversal process in 5360 of TAR 5320 does not need to be specified beyond the original TAR definition in 5320. In effect, sections 5350 and 5360 can remain as is for the TAR definition chosen except for line 10 where the TAR definition label is specified in the Ravel method call.
[0084]
[0082] In terms of readability and comprehension of the tasks being performed, a reader may prefer TAR5320 over the actual program code in sections 5250 and 5260. The tasks specified in 5220 may be expressed as comments, usually in Python code, rather than as code. Changes to the program code in sections 5250 and 5260 must be manually coordinated with the comments by the programmer, otherwise confusion may result if another programmer were to attempt to understand the code using inaccurate comments, and vice versa. TAR5320 may be considered self-describing in a clear and compact manner.
[0085] The data stored by lines 15-16 in section 5250 has no embedded metadata describing how it may have been transformed. The transformation methods are hardwired in sections 5250 and 5260 as actual code. Any such data written in this manner may be entirely dependent on the presence of the same or similar code for its proper retrieval and restoration. These code sections or their equivalents must be maintained in perpetuity so that the data they transformed is permanently recoverable. It may be the equivalent of the hidden TAR method.
[0086]
[0084] The data stored by line 11 in section 5350 may include embedded expanded TAR definitions that may transform the folded data. The transformation method may be paired with the folded data, thereby making it transportable. The recoverability of the folded data may be considered independent of the code 5350 and 5360 that created it. Code that can properly process the embedded TAR definitions in the folded data may restore the original data. This type of functionality may allow better time compatibility to change the transformation sequence over time, so that older folded data may self-describe and thus self-define how it may be restored.
[0087]
[0085] Figure 54 shows a block diagram of dynamic TAR switching within a single communication session. In the TOP approach, the higher level communication protocol can be considered as a handoff of transformed data from one computing process to another. Since transformation can enable many of the most frequently used cryptographic functions, it can be used to create secure messages for IPC. In theory, each message can be transformed and folded using a different TAR. Each different TAR definition can be considered its own protocol by modern standards of protocol definition. Using SDFT, TAR can be dynamically switched for each folded message between two applications as shown in Figure 54. A mixture of TAR sources shown and described in Figure 51 can be used as long as each application can have access to their TAR definition source. A rich set of embedded and folded metadata, such as, but not limited to, a KISS structure as a keyhole that specifies the exact key identifier for each key required in the embedded cryptographic transformation, can enable SDFT-based communication protocols to provide security at a more sophisticated and potentially more secure level.
[0088]
[0086] The TOP analysis and methods that may result in a framework called SDFT may allow stored data to contain its own portable instruction set that may have generated it. This framework may provide a methodology and / or embodiment for folding data using a conceptually and logically consistent reversible transformation processing method expressible as a transformation audit record (TAR) that may define data folding and be embedded in an organized manner within the stored data. The resulting folded data may then be modified in some way and then folded repeatedly as necessary to achieve a desired application or data format result. Apart from describing TAR as a programming language, it represents a set of cooperating data operations in a concise form that may allow infinite variations of transformation sequences and / or infinite variations of transformation attributes within a given TAR and / or attribute. SDFT may allow variable scoping for data sets similar to the way programming languages isolate local variables using scoping concepts and techniques. Through TOP, protocol distribution can be observed in higher conceptual constructs, which can lead to data that can be self-describing and, in some cases, accessible and readable from a wide variety of applications that can access its methodology through available SDFT libraries adapted to their programming environments. Furthermore, these properties that can be brought to the folded data can enable dynamic switching of protocols within a single communication session or a single stored data object. The TOP approach can be utilized as a fundamental building block for the NUTS ecosystem and in the construction of Nut. NUTS can be implemented entirely without relying on SDFT, but this may be unwise.
[0089] Nut ID
[0087] The NUTS design may enable identifiability of data regardless of location. This may require a universally unique ID (UUID), which may not be achievable in a guaranteed manner without some form of centralization, and therefore may settle on the concept of a virtually unique ID with sufficient length and entropy properties to provide a low probability of ID collision. Figure 55 shows a flowchart 5500 of an example of a process for generating Nut IDs. Here, a local device 5502 may be running an application that may invoke a function to generate a virtually unique ID from pieces of data, such as, but not limited to, user attributes 5504, environment attributes 5506, and / or random attributes 5508. User attributes 5504 may include data items such as, but not limited to, user login information, group ID, company ID, user ID, and / or user password hash. The environmental attributes 5506 may include data items such as, but are not limited to, MAC addresses, IP addresses, device information, system time, OS information, directory paths and / or files, atomic clock sync time values, GPS sync time values, declared environment variables, thread IDs, CPU runtimes, IMEI numbers, phone numbers, application names, and / or process IDs. The random attributes 5508 may include data items such as, but are not limited to, session counters, UUIDs, clock cycle counts, randomly generated numbers, mouse movements, keyboard activity, file system state, partial or complete screen area hashes, process uptime, OS uptime, and / or session duration. These pieces of data may be collected and stored in an ID structure 5510, which may then be serialized using JSON or an alternative marshaling technique.The resulting binary string may then be hashed using a hashing algorithm such as SHA-512 (from the SHA-2 family of hashing algorithms published by NIST in FIPS PUB180-2 in 2001) or an alternative hashing method that may produce a de facto uniqueness with a suggested minimum length of 512 bits to reduce the probability of ID collisions 5520. The binary hash may be encoded into a base64 (or alternative encoding scheme) text string that may produce a text string approximately 86 characters long for portability and readability 5514. The encoding scheme may comprise a method that may result in a printable, human readable form and may be accepted as a text string by multiple programming languages and software systems. Depending on the modality in which the function may be called, the resulting encoded hash string may be checked for duplicates against an accessible Nut ID cache 5516. If there may be a collision of ID values, the process may be repeated with new random attributes 5508 until a non-colliding ID can be generated, where collisions may be expected to be a rare occurrence. The output string of this logical operation is sometimes called Nut ID5518.
[0090]
[0088] This process may be called locally within a running program, or may be implemented within a server application residing locally or remotely that services client application requests for new Nut IDs. A possible benefit of a server model implementation may be its ability to access a larger cache of existing Nut IDs to check against, generating Nut IDs with a lower probability of collision. Nut ID duplication checks are not required, as the hash length and properly populated data components in the ID structure 5510 may provide sufficient entropy. There may be a general concept of compartmentalization across some or all of the digital infrastructure, such as the Internet with IPv4 / IPv6 addresses, domains, directory hierarchies, and access control groups. In a similar manner, a Nut ID may be effectively unique, but it may be used within the context of compartments established by external systems or relationships, and thus the likelihood of a collision may be much less than the mathematical probability provided by transposition, at a given length of bits in the Nut ID. If a different length may be desired, this may be achieved by one of skill in the art by replacing the SHA-512 hash with an alternative hash algorithm in a modular parameterized fashion.
[0091] Given a process by which a virtually unique ID can be generated in the form of a Nut ID, what can be identified by a Nut ID? In NUTS terminology, this can be known as Nut ID stamping. There can be at least two structures in NUTS that can be consistently stamped with a Nut ID: lock nodes and Nuts. A Nut ID assigned to a lock node may be referred to as a lock ID. A Nut ID assigned to a Nut may be referred to as a Nut ID. Lock nodes can be the internal building blocks of Nut. A lock node can be a self-contained, standalone locking mechanism that can protect its payload, known as a bag. A Nut can be a data structure composed of one or more lock nodes. Thus, a Nut can hold one or more parcels of data, in whole or in part. Nut can be used throughout the NUTS environment to identify in a virtually unique manner some or all of the associated software, data and / or hardware represented in binary form. A consequence of Nut ID stamping implies that every Nut can be uniquely identified, and every data parcel stored within a Nut can be uniquely identified by its Nut ID, regardless of where the Nut may be physically located.
[0092]
[0090] Figure 56 shows a simplified diagram of the Nut data structure. This diagram may highlight the usage and relative placement of lock IDs and Nut IDs within the Nut data structure. Specific lock IDs 5614-5622 may be assigned in this Nut, which may be different values. Lock nodes 5604-5612 may be identified by lock IDs 5614-5622, respectively. In a general Nut data structure formation, such as this example, Nut 5602 may be a group of lock nodes organized into a graph, such as a data structure called a lock graph. A specific Nut 5602 may be identified by its Nut ID 5634, which may be stored in a bag 5626 of lock node 5606, and the Nut ID may be considered the payload of this lock node, which may differ from the payload of the Nut, which may be stored in one or more of the other lock node bags. Every lock node 5604-5612 structure may contain a payload area called a bag 5624-5632. This indicates the relationship between a Nut and its Nut ID, where these items stored in a general Nut container can be found.
[0093]
[0091] Figure 57 shows an example of the relationship between Nut ID, path name and / or payload data. There may be several lock nodes in Nut that may be used to store Nut metadata, metadata about Nut payloads and / or Nut payloads. The metadata parts may be stored in bags of various lock nodes in Nut. 5702 shows a scenario where there may be two different Nut payloads D1 and D2, each stored in a different Nut, identified by Nut ID A3 and Nut ID B1, respectively. For illustrative purposes, a two-character Nut ID is used, but it may have been specified previously that a Nut ID may be a base64 encoding of a 512-bit hash that may produce a text string up to 86 characters long. Nut A3 and Nut B1 also have different path names in an NTFS file system. 5704 shows two different Nuts with the same file name but different path names. 5706 shows two copies of the same Nut with the same file name in different directories. 5708 shows two copies of Nut with different file names located in the same directory. This may not be an exhaustive listing of the permutations of some or all of these attributes, but it may illustrate the flexibility of having persistent metadata items associated with each payload, such as the Nut ID.
[0094]
[0092] The data embedded within a Nut file, which can be identified by its associated Nut ID, can result in a novel feature of this methodology, namely the ability to automatically create dynamic filenames based on parameterized rules in the metadata. The filename can represent the usual identification string for the file, as well as a structured summary of its other attributes, such as, but not limited to, the modification date and time and / or the number of writes for that day. This can provide a more accurate and convenient way of identifying a file and its state over time, without having to look up normally hidden attributes, such as having to look at file properties in a directory browsing application. It can also allow for embedding of file and data attributes into the containers that hold the files, rather than relying on the file system's attribute capture capabilities, which can vary from file system to file system. An example: a user may create a Nut with Nut ID#234 that can store a text document, and the text document may always be identified by Nut ID#234, but the user may set up a dynamic file name with the base name + date of last modification + count of writes for that day, such as "diary_20151115_1.txt". When saving to disk on the same day after some modification to it, the file name may indicate "diary_20151115_2.txt" and the old file name may no longer exist in the directory. This methodology may automatically create a new file name that may indicate some state information of the stored data. The property of the Nut ID, which may be virtually unique and separate from the path name + file name specification, may allow such a feature to be implemented without any external references. One of the benefits of such a feature may be a frequently used method of copying the previous state of a working document and archiving it with a date stamp. The author may find a directory full of files for each day that the author may have been working on the author's document.Using the dynamic filename method, an author may have only one Nut file in the author's directory with a date stamp of the last time the author wrote to it. The history (state) saving aspect of the manual method may be preserved within Nut itself using the Nut history feature presented in a later section. This concept of the Nut ID being the main identity of the content may later be used by the NUT server to perform replication and synchronization operations for distributed Nuts.
[0095] Lock graph and lock nodes
[0093] The NUTS technique may address data storage, protection and access control in a layered, integrated, modular and / or iterative manner, which may be defined as Structured Cryptographic Programming (SCP). The internal overall design of Nut may be described and defined, and then each defined structure may be subsequently described in detail. Some features may be described in a layered fashion, and then an integration description may be given to show how the individual features may work together. SDFT may be utilized throughout the NUTS design to improve the organization of complex cryptographic structures and the systematic embedding of attributes associated with each folded data structure. Various embodiments may show how SDFT allows the SCP design to be implemented relatively easily compared to equivalent manual methods.
[0096]
[0094] There may be four different methodologies that may control access in Nut: keyhole, variable lock, hierarchical access control (SAC) and / or Nut access control (NAC). Some or all of these methodologies may be layered together and / or integrated in novel ways, partially or wholly, within Nut, which may give the full functionality of a reference monitoring system in an internalized and / or agnostic manner. These four layers may be embodied in complex data structures called lock nodes, which may be designed to be modular, isolated and / or linkable.
[0097]
[0095] A keyhole may be a data structure that can accept any number of cipher keys, each of which may have an associated encrypted key map. The embodiment is not limited to the cipher key types it currently recognizes and can accept, i.e., passphrases, symmetric keys, and asymmetric key pairs. Any simple or complex method, or any process that can designate a sequence of bits as a secret key, may be integrated into a keyhole. The encrypted key map may contain several sets of keys, one set for each layer of access control in Nut, i.e., variable lock, SAC, and / or NAC.
[0098]
[0096] Variable locks may provide different types of locking mechanisms in a normalized structure that may protect data in a lock node. These variable locks may include ORLOCK, MATLOCK, SSLOCK, XORLOCK, and HASHLOCK. This disclosure is not limited to these predefined lock types and may be expanded or contracted to accommodate any appropriate locking scheme that may be normalized to its structure.
[0099]
[0097] Hierarchical access control may regulate ingress access to individual lock nodes in a lock graph. This feature may result in a property in Nut called Gradient Opacity, which may be an ability that allows Nut to allow various levels of metadata to be viewed given the appropriate access attributes.
[0100]
[0098] NUT Access Control or NAC may employ Role-Based Cryptographic Access Control (RBCAC) techniques to provide fine-grained control over modifications and authentication inside Nut.
[0101]
[0099] Structured cryptography programming can be the design of data structures that can enable easy and flexible interaction between different methodologies to represent various access models. Security mechanisms can be fully embodied in the ciphered data and their associated ciphers, and therefore there can be no external application dependencies on Nut's access control, such as reference monitors. In some embodiments, locking nodes can be used individually to protect field-level data in any part of the payload. The interior of a Nut container can potentially utilize multiple cipher keys to embody a particular security model.
[0102]
[0100] Nut may be a directed graph data structure called a lock graph, composed of nodes called lock nodes. Each lock node may be identified by a lock ID, which may be created by the same function to generate Nut IDs, and therefore they may both have the same properties. Lock nodes may be stored in a hashed array that may be referenced by their lock IDs. Each lock node may have pointers linking to other lock IDs or a null pointer. A lock graph may be derived from a hashed array of lock nodes using well-established programmatic graph extraction and traversal techniques. A lock node that has no other lock nodes pointing to it may be a keyhole lock node (entry or external lock node). A lock node that may have a null pointer may be a terminal lock node of the lock graph and may store the payload or a reference to the payload of Nut. A lock node may have multiple lock nodes linking to it. Under most circumstances, a lock node does not link to a previous lock node in the lock graph or itself. Circular link references may be unusual, but may be accommodated through customized programming for a custom Nut if such a structure is warranted.
[0103]
[0101] Some, if not all, of the data structures described herein to support the functionality of Nut may be implemented using complex data structures in a selected programming language. If a SDFT function library is available for the selected programming language, it may be readily applied to fold and encapsulate any and all applicable complex data structures or subparts thereof in order to minimize data manipulation code, clarify the data manipulation methods, reduce the probability of coding errors, and take advantage of the implicit SDFT features embedded in any folded data structures.
[0104]
[0102] Note that due to the data-centric nature of this disclosure, most flowchart type diagrams may be a mix of traditional flowchart elements mixed with data components, sometimes called data flow diagrams or data flowcharts. Also, the intertwined nature of the lock node design layer may make it difficult to expose the logical operations of its components in a completely linear manner without making forward reference statements, and therefore some rereading may be required on the reader's part.
[0105] FIG. 58 is an embodiment of a Nut or lock graph 5800 with two logical sections that employ multiple purpose aspects of a modular lock node: Nut lock 5802 and Nut part 5804. The Nut lock 5802 section of the lock graph may allow cryptographically linked complex locks to be constructed for a given Nut using one or more lock nodes. Currently, there are five types of lock nodes defined in this disclosure that correspond to the five types of variable locks mentioned: ORLOCK, MATLOCK, SSLOCK, XORLOCK, and HASHLOCK. Each lock node type may refer to a type of variable lock internal locking mechanism that may be utilized at the heart of a particular lock node to protect encryption keys to storage areas and other lock node metadata and parameters. The lock transformation disclosed in FIG. 30 may be one embodiment of a variable lock and may be used in building a lock node. Successfully unlocking and traversing the Nut lock 5802 portion of the lock graph may lead to the Nut part 5804 section of the lock graph 5800. There may be several lock nodes that comprise the Nut part 5804, namely hair 5820, tick 5822, seal 5824, vita 5826, bale 5828, and / or tale 5830. The Nut part 5804 may contain a Nut payload 5830 and / or metadata 5820-5828. The number and type of Nut parts for a lock graph may vary depending on the type of data that Nut may be storing and / or the design of Nut for certain desired behaviors and properties. In this example, unlocking 5816 the keyhole lock node 5806 may result in an appropriate cipher key that can be inserted into the primary keyhole of the linked 5818 lock node 5820. Unlocking a lock node 5820 may result in an appropriate cipher key that can be inserted into the primary keyhole of the linked lock node 5822.Unlocking lock node 5822 may result in an appropriate cipher key that may be inserted into the primary keyhole of linked lock node 5824. Unlocking lock node 5824 may result in an appropriate cipher key that may be inserted into the primary keyhole of linked lock node 5826. Unlocking lock node 5826 may result in an appropriate cipher key that may be inserted into the primary keyhole of linked lock node 5828. Unlocking lock node 5828 may result in an appropriate cipher key that may be inserted into the primary keyhole of linked lock node 5830. Lock node 5830 may link to a null pointer, and thus it may be the terminal lock node or innermost layer of this lock graph or Nut. Unlocking a lock node may comprise unravelling a folded data structure representing the lock node using the SDFT method. Each lock node may contain multiple folded data structures, where the action of unlocking a lock node may be equivalent to unravelling the applicable data structures.
[0106]
[0104] Figure 59 shows a simplified Nut schematic 5900 of a lock graph embodiment with logical sections, namely Nut lock 5902 and Nut part 5904. This example considers a Nut lock 5902 with four lock nodes 5908, 5910, 5912 and 5916. Lock nodes 5908-5912 may be keyhole lock nodes 5906 of this Nut, since some or all of them may be outward-facing nodes and may accept external cipher keys, called primary keys. A user may have a primary key associated with one or more of these keyhole lock nodes. The Nut ID of a Nut that stores a primary key as its payload may serve as a key ID that may be automatically matched with an identifier in the keyhole lock node 5906 that marks the keyhole to which it belongs. A passphrase key may be identified by a key ID, or a text string that may or may not carry a question as its identifier. Complex multi-level passphrases may be constructed using the appropriate keyhole identifier and a cleartext Nut metadata portion with the appropriate question list. Linkages between lock nodes, such as 5914 and 5918, may be opened in a similar manner where a successfully unlocked lock node may generate an output key(s) with the identifier. In this particular example, unlocking any one of the keyhole lock nodes may reveal the appropriate cipher key that may be inserted into the keyhole of the linked 5914, lock node 5916. From this point on, unlocking a node with Nut part 5904 may proceed similarly to the process described for Nut part 5804. This Nut lock 5902 construction may convey the building block nature of the lock node and its combinatorial flexibility by showing that there may be three different paths to unlocking the payload of Nut 5900, with each path requiring different conditions to be met in order for the unlocking process to proceed.
[0107] In Fig. 60, a lock node 6000 may be a data structure with the following sections: parameters 6002, inputs 6006, key map 6008, variable lock 6012, derived keys 6016, key set 6020, bag 6024 and / or outputs 6026. The parameters section 6002 may hold the metadata of the lock node, lock ID 6030, encrypted strings of the key map 6010, derived keys 6014, key set 6018, bag 6022 and dig of said encrypted strings created by the appropriate access role key for the lock node (forward reference may be explained in the description of element 8334 of Fig. 83). The design principle may be similar to the flow in a lock graph with unlocking of each section leading to a key that may help open the next section, but in that case each component in a lock node may provide a specific function. A dign on an encrypted string can be used by a reader (access role) to authenticate a particular section prior to a decryption attempt. A dign can be created by a writer (access role) of a particular section using the encrypted string of the section when there may be some modifications to be saved, or to indicate that the holder of the appropriate writer's access key generated the dign. Additionally, each of the encrypted strings described above can be embodied by use of the SDFT method for folding data structures using TAR containing cryptographic transformations. Given the several and various encrypted strings described in this section, the SDFT method can greatly reduce the burden of cryptographically managing related attributes by the programmer when coding.
[0108] keyhole In FIG. 61, the input section 6006 of the locked node may provide two different keyholes: a primary keyhole 6102 and an access keyhole 6104. Structurally, the primary keyhole 6102 may accept any number of encryption keys with four different key types: symmetric, asymmetric public, asymmetric private, and passphrase. The access keyhole 6104 may accept symmetric and / or passphrase key types. The primary and access keyholes may internally utilize one or more KISS data structures shown in FIG. 34, each operating in keyhole mode (ima="keyhole") to represent a keyhole for each unique key it may accept.
[0109]
[0107] Figure 62 shows a single encryption key 6202, which may have an associated key ID, key type and key attributes 6206, and may also be designated as a primary key. The key ID may be any identifying string. The primary key and other keys described in this disclosure may each be represented internally by the KISS data structure shown in Figure 34, operating in key mode (ima="key"), with the key->value field populated with the key and other matching attribute fields filled in as necessary. The primary keyhole 6204 may accept the primary key 6202, which may decrypt the encrypted key map 6208. The decrypted key map 6240 may be a structure, which may comprise three sections: a main key 6210, a hierarchical key 6212, and an access key set (AKS) 6214. The main key structure 6210 may contain a symmetric key or tine, sometimes referred to as the main key, an expiration date / time for the primary key 6202, a countdown timer for the primary key, and / or an action instruction upon expiration of the primary key. The symmetric key or tine may be used by the variable lock of the lock node. For a keyhole lock node, the key map structure may additionally hold a hierarchical key 6212 and / or an AKS 6214. The hierarchical key 6212 may hold a set of keys to be inserted into a strata lock node of the lock graph, i.e., a lock node that may be identified by its hierarchical designation. The AKS 6214 may hold a set of keys to be inserted into its own access keyhole 6104 for the keyhole lock node. The encrypted key map 6208 may be an SDFT folded data structure that may contain the main key 6210, the hierarchical key 6212, and the access key set (AKS) 6214 structures.
[0110]
[0108] Figure 63 shows a flow chart of the key insertion process for any lock node and for any cipher key. Step 6304 may be a search over some or all listed lock nodes in Nut for a given cipher key and its associated key ID. Once the cipher key is inserted into the appropriate keyhole 6304, step 6306 may attempt to decrypt and unfold the encrypted key map for that key. Decrypting and unfolding the encrypted key map may be equivalent, in such an embodiment, to unraveling the SDFT folded encrypted key map.
[0111] Upon successfully unlocking and unfolding the encrypted key map 6208 for a keyhole lock node, 1) a hierarchical key may be inserted into each lock node's primary keyhole that matches the hierarchical designation found in the parameters section of each lock node, and 2) the Access Attribute Key Set Unlocking Key (AAKSUK) of the Access Key Set (AKS) may be inserted into the lock node's access keyhole. This primary key unlocking (or unraveling) may be done because there may be many primary keys inserted into a lock node, after which one may have a set of decrypted (or unfolded) key maps that collectively constitute the set of main keys for possible use by the lock node's variable locks.
[0112]
[0110] Figure 64 shows an example where three primary keys 6402-6406 may be inserted into a primary keyhole 6400. Each key (→) may be matched with its identifying key ID and inserted into a slot in a hashed array or KISS keyhole structure. The key type may indicate the key type, such as, but not limited to, symmetric, asymmetric public, asymmetric private, and passphrase. In some embodiments of Nut, the user may specify any type of key that may have a corresponding cipher methodology appropriately modularized for NUTS integration. These key cipher methodologies may include fingerprint scan, iris scan, palm print, voice print, handwriting pattern, facial recognition, DNA characteristics, physical key device, hardware secured keys, software / hardware based zero knowledge protocol keys, and / or NFC keys. If an asymmetric private key, such as may be used in RSA-2048, is inserted, it may represent both a public and private portion, and the public portion may be extracted from the private portion and used to encrypt the encrypted key map of the primary key, and thus the decryption operation may require the private asymmetric key to be presented. As clearly shown for one key (→) inserted into one keyhole 6402, its encrypted key map 6412 may be decrypted using a key type cipher methodology to reveal the key map structure 6430, which may contain three different sets of keys 6432, 6434, and 6436. This decryption step may be performed for each key 6404 and 6406 to generate the respective corresponding key map sets 6440 and 6450. Each decryption step may also be equivalent to unravelling the folded structure of the SDFT in such an embodiment. In a passphrase key type, the key may be a passphrase, and the key attributes may indicate the passphrase derivation function to use and appropriate parameters for that function, including the number of iterations to perform to generate a symmetric key that can decrypt the encrypted key map. In embodiments utilizing SDFT, such passphrase attributes may also be matched with a corresponding TAR to access the appropriate derive transformation with matching attributes.Looking at the example in perspective with the lock node diagram 6000 , the input section 6006 may contain a primary keyhole 6400 , the encrypted key map 6010 may be represented by 6410 , and the key map 6008 section may be represented by 6420 .
[0113] Variable Lock
[0111] The next part of the lock node may be a variable lock, as shown in element 6012 of FIG. 60. The variable lock may be a locking mechanism that may help protect the contents of the lock node stored in the bag 6024. The variable lock may allow the lock node to utilize any one of several different types of cryptographic locking techniques well known to those skilled in the art. For example, these different lock types may comprise ORLOCK, MATLOCK, XORLOCK, HASHLOCK and / or SSLOCK. This may be accomplished by normalizing the inputs and / or outputs of each locking method to fit a common data flow model, so that each locking method may be seamlessly substituted for one another. Similarly, the primary keyhole structure and key map structure may act as data normalizers for the number and key types of keys flowing into the variable lock. The lock node may imprint a set of parameters 6002 that indicate what type of variable lock it may be implementing 6030. Once this value is set, the lock node will rarely change this setting, but it may be possible for the lock node to be rekeyed and / or reset by the RAT (owner of the Nut). The SDFT library describes one embodiment of a variable lock, listed in Figure 30, and the accompanying specification thereof, which may be used in this section for convenience, although the use of the lock transformation is not a necessary requirement to fulfill this function of the lock node.
[0114] Continuing the traversal of the lock nodes in FIG. 64, which ended with the three main keys 6432, 6442 and 6452, we can consider how the variable lock of it may work in FIG. 65. The variable lock 6502 may protect the derived key (DK) 6506 by encrypting the DK 6506 as an encrypted derived key (eDK) 6504. Some or all of the main keys 6432, 6442 and 6452 may be symmetric or tine key types and may fit into the variable lock 6502. Depending on the variable lock type that may be specified in the lock node parameters sections 6002 and 6030, the appropriate variable lock function may be called to perform a cipher / decipher operation on the DK or eDK. Figure 65 shows a decryption operation of eDK 6504 to DK 6506 with variable lock 6502, which may use main keys 6432, 6442 and 6452. Figure 66 shows an encryption operation of DK 6506 to eDK 6504 with variable lock 6502, which may use main keys 6432, 6442 and 6452. In an embodiment using SDFT, DK may be data protected by TAR employing lock transformation with data folding, thus unfolding such a structure would expose the derived keys contained within.
[0115]
[0113] The table in Figure 67 summarizes some of the key characteristics that the variable lock describes. As the term variable lock may imply, any locking technique that can be normalized to this model may be added as an additional variable lock type. Alternatively, any locking technique may be removed. The table in Figure 30 may correspond to the table in Figure 67 and shows how SDFT may embody the variable lock design in its lock transformation.
[0116]
[0114] The metadata section 6030 of the lock node may be a common component that may be involved in some or all variable locks. There may be various digns (digital signatures) of the lock node sections, such as 6040-6048 (see forward), that may have been created by appropriate access role keys (ARKs). Some of all of these digns may be created by the Nut owner, who may be someone who holds the Root Access Tier (RAT) access role keys, particularly the RAT private key, through its AKS. Anyone with a valid primary key may have a RAT public key that may enable anyone to authenticate various RAT digns across lock nodes to ensure that the Nut components have not been compromised. In the figures, sometimes the RAT public key may be referred to as the RAT reader key and the private key may be referred to as the RAT writer key. Further discussion regarding the Nut access control layer later in this specification may discuss, specify, and / or clarify these features in more depth. As mentioned earlier in the section on SDFT and TAR, the dign of the encrypted data may be part of the TAR specification of a folded data structure that may embed the protected data, its dign, and the TAR that created it. It clearly implies that systematic use of SDFT in lock nodes may be advantageous to programmer workload.
[0117]
[0115] The ORLOCK in FIG. 68, also known as OR lock, is a variable lock that may accept any number of symmetric cipher keys, called main key 6808, and may systematically attempt to decrypt 6814 the eDK 6806 using a symmetric encryption cipher, such as AES-256 or an alternate cipher. The parameters section 6002 may indicate the cipher method to be used for this logical operation, or the preferred TAR when using the SDFT method. The first successful decryption of the eDK may generate a derived key (DK) 6816, resulting in a successful unlock of the ORLOCK. Prior to the decryption attempt on the variable lock, the dign 6804 of the eDK may be authenticated using the eDK 6806 and the RAT reader key 6802. If the authentication is successful 6810, the decryption process may continue, otherwise an error 6830 may be triggered and the attempt may be paused. The main key 6808 may be an equivalent key, such as, but not limited to, a symmetric 256-bit key. In this configuration, the essence of the OR lock may be isolated and normalized to a keyhole and variable lock structure to make it modular. In the collapsed structure, the authentication step may be part of the TAR and may be implicitly attempted by the act of unraveling.
[0118]
[0116] Figure 69 shows the encryption operation of ORLOCK from the perspective of a RAT writer or Nut owner. It may take a main key 6902 and perform an encryption operation 6920 on the DK 6906 using an appropriate cipher to generate an eDK 6908. Then, using its RAT writer key 6904, the eDK 6908, and an appropriate digning algorithm 6922, it may create an eDK dign 6910 that may be stored in the lock node parameters section 6044. The SDFT method may collapse many of these attributes into a single data object to be stored in the parameters section in a compact manner along with the eDK. The encryption process for non-RAT members of the locked node may be simple, i.e., they may either erase the application memory contents of the locked node since they may not create a genuine dign for anything, implying that they may successfully modify its contents and not dign it, or they may use the already decrypted DK6908, which encrypts the relevant contents of the locked node but leaves the eDK6910 untouched since nothing that may be related to the eDK dign may be changed. This may indicate that only the RAT writer may be able to replace the value of DK6906 or re-key it. When using the SDFT method, non-RAT members of the locked node may choose to leave the original folded data containing the eDK in the parameters section and erase the unfolded structure holding the DK.
[0119] MATLOCK in FIG. 70, also known as a matroyshka lock, cascade lock or AND lock, is a variable lock that can accept a fixed number of symmetric cipher keys, called main keys 7006, and can successively decrypt eDK7022 using each main key 7008 in ascending order using an appropriate cryptographic cipher 7014, such as AES-256 or an alternative cipher. The parameters section can indicate the exact cipher to be used for this logical operation, and the number of main keys that may be required, or the preferred TAR when using the SDFT method. Successful ordered iterative decryption of eDK7022 can produce DK7024, resulting in successful unlocking of MATLOCK. Prior to a decryption attempt on the variable lock, the eDK's dign7004 can be authenticated using eDK7022 and the RAT reader key 7002. If the authentication is successful 7010, the decryption process may continue, otherwise an error 7030 may be triggered and the attempt may be paused. In this configuration, the essence of the matroyshka lock may be isolated and normalized into a keyhole and variable lock structure to make it modular. In the folded structure, the authentication step may be part of the TAR and may be attempted implicitly by the act of unraveling.
[0120]
[0118] Figure 71 shows the encryption operation of MATLOCK from the perspective of a RAT writer or Nut owner. It may take some or all of the presented main keys 7102 and sort them in descending order 7110. It may then iteratively perform the encryption operation 7112 on the DK 7120 using an appropriate cipher to generate an eDK 7122. Then, using its RAT writer key 7124, the eDK 7122, and an appropriate digning algorithm 7118, it may create an eDK dign 7126 that may be stored in the lock node parameters section 6044. The SDFT method may collapse many of these attributes into a single data object to be stored in the parameters section in a compact manner along with the eDK. The encryption process for non-RAT members of the locked node may be simple, i.e., they may either erase the application memory contents of the locked node since they may not create a genuine dign for anything, which implies that they may successfully modify its contents and not dign it, or they may use an already decrypted DK7120, which encrypts the relevant contents of the locked node but leaves the eDK7126 untouched since nothing that may be related to the eDK dign may be changed. This may indicate that only the RAT writer may be able to replace the value of the DK7120 or re-key it. When using the SDFT method, non-RAT members of the locked node may choose to leave the original folded data containing the eDK in the parameters section and erase the unfolded structure holding the DK.
[0121]
[0119] The XORLOCK in Fig. 72, also known as the XOR lock, is a variable lock that may accept a fixed number (>1) of symmetric cipher keys, called main keys 7206, and may generate a calculated key by successively applying an XOR operation 7224 to each main key 7208 in ascending order 7222. It may then attempt to decrypt 7228 the eDK 7210 using the calculated key from 7224 with an appropriate cipher, such as AES-256 or an alternative cipher. The parameters section 6030 may indicate the exact cipher to use for this logical operation, and the number of main keys that may be required, which may be more than one key, or the preferred TAR when using the SDFT method. Successful decryption of the eDK 7210 may generate the DK 7212, resulting in a successful unlocking of the XORLOCK. Prior to the decryption attempt on the variable lock, the eDK dign 7204 may be authenticated using the eDK 7210 and the RAT leader key 7202. If the authentication is successful 7220, the decryption process may continue, otherwise an error 7230 may be triggered and the attempt may be paused. In this configuration, the essence of the XOR lock may be isolated and normalized to the keyhole and variable lock structure to make it modular. In the collapsed structure, the authentication step may be part of the TAR and may be attempted implicitly by the act of unraveling.
[0122]
[0120] Figure 73 shows the encryption operation of XORLOCK from the perspective of the RAT writer or Nut owner. It may take some or all of the main keys 7302 presented and sort them in ascending order 7320. It may then iteratively perform an XOR operation 7322 on the main keys 7304 to generate a calculated key, which may be used to encrypt 7326 the DK 7306 to generate an eDK 7308. The RAT writer key 7310, the eDK 7308, and a suitable dign algorithm 7328 may be used to create the eDK's dign 7312, which may be stored in the lock node parameters section 6044. The SDFT method may collapse many of these attributes into a single data object to be stored in the parameters section in a compact manner along with the eDK. The encryption process for non-RAT members of the locked node may be simple, i.e., they may either erase the application memory content of the locked node since they may not create a genuine dign for anything, which implies that they may not successfully change its content, or they may use an already decrypted DK7306, which encrypts the relevant content of the locked node but leaves the eDK7312 untouched since nothing that may be related to the eDK dign may be changed. This may indicate that only the RAT writer may be able to re-key the DK7306. When using the SDFT method, non-RAT members of the locked node may choose to leave the original folded data containing the eDK in the parameters section and erase the unfolded structure holding the DK.
[0123]
[0121] The HASHLOCK in FIG. 74, also known as a hash lock, is a variable lock that may accept a fixed number of symmetric cipher keys, called main keys 7406, and may create a calculated key by concatenating 7424 some or all of the main keys presented in a particular order 7422; it may then apply a hashing algorithm 7426 to the string. It may then attempt to decrypt 7428 the eDK 7410 using the calculated key with an appropriate cryptographic cipher, such as AES-256 or an alternative cipher. The parameters section 6030 may indicate the exact cipher and hash to be used for these logical operations, the number of main keys requested, and / or the sort order of the main keys, or the preferred TAR when using the SDFT method. Successful decryption of the eDK 7410 may produce the DK 7412, resulting in a successful unlocking of the HASHLOCK. Prior to the decryption attempt on the variable lock, the eDK dign 7404 may be authenticated using the eDK 7410 and the RAT leader key 7402. If the authentication is successful 7420, the decryption process may continue, otherwise an error 7430 may be triggered and the attempt may be paused. In this configuration, the essence of the hashing lock may be isolated and normalized to the keyhole and variable lock structure to make it modular. In the collapsed structure, the authentication step may be part of the TAR and may be attempted implicitly by the act of unraveling.
[0124]
[0122] Figure 75 shows the encryption operation of HASHLOCK from the perspective of the RAT writer or Nut owner. It may take the presented main keys 7502 and sort them in ascending order 7520, then concatenate them 7522, and then perform a hash operation 7524 on it to generate a calculated key. This calculated key may be used to encrypt 7526 the DK 7506, generating the eDK 7510. The RAT writer key 7508, the eDK 7510, and a suitable dign algorithm 7528 may be used to create the eDK's dign 7512, which may be stored in the lock node parameters section 6044. The SDFT method may collapse many of these attributes into a single data object to be stored in the parameters section in a compact manner along with the eDK. The encryption process for non-RAT members of the locked node may be simple, i.e., they may either erase the application memory content of the locked node since they may not create a genuine dign for anything, which implies that they may not successfully change its content, or they may use an already decrypted DK7506, which encrypts the relevant content of the locked node but leaves the eDK7512 untouched since nothing that may be related to the eDK dign may be changed. This may indicate that only the RAT writer may be able to re-key the DK7506. When using the SDFT method, non-RAT members of the locked node may choose to leave the original folded data containing the eDK in the parameters section and erase the unfolded structure holding the DK.
[0125]
[0123] SSLOCK in FIG. 76, also known as Secret Share Lock or Shamir's Secret Share Scheme, is a variable lock that can accept k of n main keys 7606, each of which can be a different tine or secret share, where 1>p+1≦k≦n, and p+1 can be the minimum number of required keys, called the threshold. To recover the private key, some or all tines from the decrypted key map 7606 can be given to an appropriate secret share cipher, such as Shamir's Secret Share Scheme or an alternative cipher 7622. The recovery can be successful if some or all tines can be valid and there can be a sufficient number of tines. It can then attempt to decrypt 7624 the eDK 7608 using the recovered private key with an appropriate encryption cipher, such as AES-256 or an alternative cipher. The parameters section 6030 may indicate the exact cipher to be used for the secret sharing and ciphering operations, as well as the number of shares (n) and threshold count (p+1) for the secret sharing cipher, and / or the preferred TAR when using the SDFT method. Successful decryption of the eDK 7608 may produce the DK 7610, resulting in a successful unlock of the SSLOCK. Prior to a decryption attempt on the variable lock, the dign 7604 of the eDK may be authenticated using the eDK 7608 and the RAT reader key 7602. If the authentication is successful 7620, the decryption process may continue, otherwise an error 7630 may be triggered and the attempt may be paused. In this configuration, the essence of the secret sharing lock may be isolated and normalized to the keyhole and variable lock structure to make it modular. In the collapsed structure, the authentication step may be part of the TAR and may be attempted implicitly by the act of unraveling.
[0126] FIG. 77 shows the encryption operation of SSLOCK from the perspective of a RAT writer or Nut owner who may be encrypting a lock node for the first time or who may be in the process of rekeying a variable lock. A new private cipher key K may be generated 7720 and then a desired number of shares (tines) may be created from K using an appropriate secret sharing methodology, which may be specified in parameters 6030. These tines may then be stored as the main key 7702. In step 7724, the key K may encrypt the DK 7704 to generate the eDK 7706. The RAT writer key 7708, the eDK 7706, and an appropriate dign algorithm 7726 may be used to create the dign 7710 of the eDK, which may be stored in the lock node parameters section 6044. The SDFT method may collapse many of these attributes into a single data object to be stored in the parameters section in a compact manner along with the eDK. The encryption process for non-RAT members of the locked node may be simple, i.e., they may either erase the application memory content of the locked node since they may not create a genuine dign for anything, which implies that they may not successfully change its content, or they may use an already decrypted DK7704, which encrypts the relevant content of the locked node but leaves the eDK7706 untouched since nothing that may be related to the eDK dign may be changed. This may indicate that only the RAT writer may be able to re-key the DK7704. When using the SDFT method, non-RAT members of the locked node may choose to leave the original folded data containing the eDK in the parameters section and erase the unfolded structure holding the DK.
[0127]
[0125] The description of the variable locks and illustration of their various logical operations may show how the lock node may employ the primary keyhole 6102 in the input section 6006, the encrypted key map 6010, the key map 6008, the variable lock 6012, the encrypted derived key 6014, and / or the derived key 6016 to create a robust data structure that may allow different locking techniques to be normalized and modularized, such that substituting one for another may require modification and / or re-keying of some parameters 6030. The normalization of the different locking methods may ensure that the user primary key for Nut may not be touched and that a single user primary key may be employed in many different locking techniques in different Nuts without the user being aware that the locking technique may be deemed appropriate for the protection of a particular Nut payload. Sections have been highlighted where SDFT methods may prove advantageous in some embodiments of these complex data structures. Here are some examples. ORLOCK may allow multiple users to gain access to a bag of locked nodes, which may be a form of group access, or one of the keys may represent the master key. MATLOCK, XORLOCK, or HASHLOCK may ensure that a certain number of keys may exist to unravel its bags; a highly sensitive trade secret may require that two specific executives provide their respective private keys to view its contents; SSLOCK may require that a minimum number of private keys may exist to gain access to its bags; a corporate payment system may be accessed by a minimum number of authorized personnel, but it may not be operated alone.
[0128]
[0126] By partitioning each primary keyhole with its corresponding key map, the key map may contain attributes for the primary key, such as, but not limited to, expiration date / time, countdown timer, and / or expiration action. If any of the expiration attributes are activated, the corresponding expiration action may be set to be performed upon primary key expiration. For example, a common expiration action may be to delete the key map of the primary key. Deletion of the key map may not interfere with other registered primary keys of the keyhole lock node due to its partitioned design. Reinserting an expired primary key may no longer be recognized as a valid key since there may not be a matching key map for it. Of course, such primary key deletion should be done carefully with respect to the type of variable lock being employed; while deletion may be tolerable for ORLOCK and some SSLOCK, deletion may be counterproductive for MATLOCK, XORLOCK and HASHLOCK as it may create a lockout situation for that lock node.
[0129]
[0127] The interaction of a complex data structure that may utilize multiple cryptographic techniques to protect its contents in various ways and layers can pose significant challenges in implementation details due to the extraordinary number of variable attributes required and / or generated for each cryptographic operation. It is in this context that the utility and sophistication of SDFT can shine and provide a convenient organizational method and structure to help overcome such implementation challenges. For example, a single authenticated ciphering of data may require the following attributes to be stored somewhere: key type, key length, cipher type, cipher mode, initialization vector, key ID, padding, padding type, padding length, block length, digital signature or keyed MAC string (digest), matching key ID for digest, digest length, digest key length, digest method. Multiply this by each of the ciphering operations described in the locked node specification presented thus far (locked nodes have several more components that will be described in later sections), and it can become a huge number of attributes to keep track of. In many cases, application programmers and designers may be aware of such predicaments and challenges and may choose to simplify the coding process by selecting a small number of ciphering methods and associated attribute values and using them throughout their implementations in a global manner. Such simplification may lead to undesirable consequences, including, but not limited to, less security, less flexibility, fewer features, greater incompatibilities, and computer code that may be more difficult to maintain or modify.
[0130] hierarchy FIG. 78 shows a block diagram of Nut (lock graph) 7800 highlighting hierarchical key usage. Each lock node in the Nut part 7804 section may be assigned a hierarchical ID. Lock nodes 7820-7824 are hierarchical ID "A", lock node 7826 is hierarchical ID "B", lock node 7828 is hierarchical ID "C", and lock node 7830 is hierarchical ID "D". The designation of the hierarchy may be arbitrary, but may follow a pattern of grouping various Nut parts together by degree of privacy sensitivity; the deeper the hierarchy, the more sensitive the data contained in the lock node may be. Gradient opacity of Nut may be implemented by the correct use of hierarchical access control (SAC). For purposes of illustration, the hierarchical IDs shown in FIG. 78 are simple characters, but in practice they may be any set of identifiable strings, such as, but not limited to, Nut IDs (as in the case of the effectively unique ID from FIG. 55).
[0131] Any lock node with a Nut lock 7802 may be assigned a hierarchy. When the Nut keyhole lock node 7806 is properly unlocked or unlabeled, it may reveal a key map 7840 that may comprise up to three key sets 7842 (similar to FIG. 62). This section may focus on the hierarchy keys 7850 (6212) and how they may function within the lock graph. In this example, there may be four hierarchy keys 7852, 7854, 7856, 7858 that may correspond to hierarchies "A, B, C, D", respectively. Each hierarchy key may be stored in the hierarchy keys 7850 section with an associated hierarchy ID. The flow chart presented in FIG. 79 may be followed, showing how each hierarchy key may be used. Once some or all of the hierarchy keys have been inserted into the primary keyholes of their matching lock nodes, the process may be terminated, waiting for the lock graph traversal to continue beyond the Nut lock section 7802.
[0132]
[0130] Hierarchical keys may work with MATLOCK variable locks, as shown for some or all lock nodes in the Nut part 7804 section. When using the SDFT method, MATLOCK may be indicated by a "lock matlock" transformation in the preferred TAR of the involved section. Each hierarchical key may be a mandatory key in MATLOCK for the lock node in question (* in Figure 79). If either the lock node output link key or the hierarchical key may be missing, a particular lock node may not be unlocked according to the definition of MATLOCK. Thus, some or all deeper hierarchies beyond that level may not be opened either. By controlling which hierarchical keys may be stored in the primary key's key map 7840, the Nut owner may explicitly control exactly how far someone may enter the lock graph 7860. The hierarchical access control layer may work independently from the Nut access control layer, which may work with the variable lock method.
[0133]
[0131] The way SACs and keyholes can work may imply that if multiple keys can be presented to a keyhole lock node such as 7806, there may be multiple key maps 7840 exposed and possibly multiple hierarchical key sets 7850 that can be inserted into various lock nodes. Hierarchical keys of a single hierarchical ID may be equivalent keys, so inserting the same key into a lock node that may utilize MATLOCK may result in one key being inserted under that ID, essentially the same key may be overwritten several times in the keyhole. This may be an additive access attribute property of hierarchical keys.
[0134]
[0132] Both hierarchical keys and Nut access control (described in the next section) may exhibit an additive access attribute property or characteristic. Insertion of primary keys of different access levels into a primary keyhole of a lock graph may result in an access level of the lock graph that may represent a combination or union of the access levels of all valid inserted primary keys. One powerful use of this property may be in the distribution of keys for a given lock graph in a segmented manner, where a combination of primary keys may be required to gain a very specific level of access to the lock graph. This may be contrasted with a mode of operation where a primary key may present a complete picture of a given access for that keyholder.
[0135] Nut Access Control Nut Access Control or NAC is an access control method that uses cryptographic data structures that can work independently of variable locks and hierarchical access control. NAC may use a combination of role-based access control (RBAC) and cryptographic access control (CAC), which may be called role-based cryptographic access control (RBCAC) or key-based authorization (KBP). Although the NAC attribute key set may be localized inside a single lock node, there may be a mechanism in the lock node to propagate the NAC attributes along the rest of the lock graph that may give the key holder a consistent level of accessibility across associated lock nodes. These NAC attributes may be found in unlocked or unlabeled keyhole lock nodes for primary keys that may have been inserted from an external source. Like hierarchical keys, NAC keys may exhibit additive access attribute properties.
[0136]
[0134] KBP may be deployed using well-known properties of public key cryptography, such as creating digital signatures (dign) and authenticating them asymmetrically on strings of data using an algorithm such as RSASSA-PSS (RSA Probabilistic Signature Scheme with an adjunct based on the Probabilistic Signature Scheme originally invented by Bellare and Rogaway) or an alternative algorithm. The basic premise of KBP may be that, given a private / public key pair, a private key holder (writer) may create a digital signature (dign) on a parcel of data using the writer's private key, and then a public key holder (reader) may use the writer's public key, held by the reader, to authenticate that the dign was created by the writer on the parcel of data. If authentication fails, something may have been compromised, such as the public key, the parcel of data, or the dign, or some or all of these. The writer may be responsible for creating an updated dign for the target data parcel upon every modification of dign, and the reader may be responsible for authenticating the dign and the target data parcel before "reading" or decrypting the data parcel. This process may provide a reasonable assurance to the reader that the reader may be reading something that may have been created or modified by someone (the writer) who may have the counterpart private key. In role-based cryptographic access control (RBCAC), there may be an asymmetric key pair for each defined access role, where the "writer" of the role may obtain the private part of the key and the "reader" of the role may obtain the respective public part of the key. By separating the data sets by function and digning each function data set using a different key pair, access roles may be precisely defined and assigned to various key holders by distributing the appropriate key parts. NUTS's RBCAC may allow the binding of one or more symmetric keys to the asymmetric key pair of a defined role to provide an additional layer of control of the target data set. The holder of the bound symmetric key may decrypt and read the target data set for that role.This combined symmetric key may encrypt the target dataset in addition to encryption by the symmetric key exposed by unlocking the variable lock and subsequent keys in the eKS. Alternatively, the presence of the combined symmetric key may override use of the exposed encrypting key from the eKS and may be the only key to symmetrically encipher the target dataset. This alternative may be preferable for large target datasets, as it is not encrypted more than once. The combined symmetric key may be used to control read access to the target dataset.
[0137]
[0135] The use of SDFT in one embodiment of NAC can greatly simplify coding. Encryption and dig can be embedded into a logically coherent TAR appropriate to the function to be performed, and the SDFT unraveling process can automate most of the detailed processing of such operations. Any localized attributes associated with the TAR can be folded with the target data or further folded with another TAR to simplify its protection and storage.
[0138]
[0136] The table in Figure 80 shows an example of how key-based authorization can work with three defined roles, namely, Reader, Writer and Verifier, and five role-players, namely, A, B, V, X and Y. All role-players who possess the combined symmetric key S may have the ability to encrypt or decrypt data using the symmetric key S. The class of writers (COW), namely, X and Y, may have the ability to create a dign on encrypted data using the asymmetric private key R. Using the asymmetric public key U, the class of readers (COR), namely, A and B, may have the ability to verify that the corresponding digital signature was created by someone from the class of writers on the encrypted data, and A and B may have the ability to decrypt the data using the symmetric key S. Thus, the ability to create a valid dign may imply that one may have the ability to modify the data, and all other readers may authenticate that the dign may have been created by a valid writer. The number of roles defined depends on the access control granularity desired by the owner, but some or all of the defined roles may utilize the methodology described for FIG. 80. A role player that only possesses an asymmetric public key U may be known as a verifier, and a verifier may have the ability to traverse the entire Nut but may not be able to decrypt the target data corresponding to the role class. For example, a COR verifier may only authenticate that a payload in Nut may have been properly modified by an appropriate COW role player by using a COW public key for dig, but the COR verifier cannot decrypt the payload because it does not have a copy of the decryption key S.
[0139]
[0137] NAC may precisely affect and control the viewable and modifiable aspects of the content, thereby affecting and controlling the aspects of the lock node, thereby affecting and controlling the aspects of Nut. The table shown in FIG. 81 lists several parts of Nut, namely hair, tick, seal, vita, face, tale and / or bale, but may include more or less parts as needed. There may be several forward references in the table to Nut logs and Nut history, which may be described in more detail later in this specification. Each row may represent a lock node, and data defining the Nut parts may be held in that lock node's bag. The column entitled Bag Opacity may indicate the cipher mode of the lock node's bag, which may be controlled by the lock node's metadata. The bag may be encrypted or unencrypted (clear) based on the metadata settings, which may be referred to as bag opacity. If some or all of the Nut parts in the table in FIG. 81 are present in a given Nut, then each Nut part that may be represented by a lock node may be linked in a top-to-bottom sequence using the lock node link pointer and link key. The traversal down this table column of the bag opacity of each Nut part may be referred to as the gradient opacity of the Nut. Holders of appropriate external primary keys may gain access to the Nut by eventually unlocking the variable locks of the lock nodes. Depending on the SAC settings of the primary keys, key holders may be limited to how far they may traverse into the Nut. The NAC may affect which primary keys may be enabled with the ability to read, modify, and / or authenticate each Nut part by careful placement of bound symmetric cipher keys, precise use of asymmetric key pairs, and using digital signature methods.
[0140] FIG. 82 shows a table listing key-based authorization access roles that may be defined for and available for a general Nut. The access roles may not be limited by this list, as there may be more or less access roles defined according to the needs of the Nut owner. The table lists, but is not limited to, four sections of Nut that may be identified: Bale, Vita, Tale, and All. The All section may refer to anything not explicitly covered by another access role. This may involve some or all of the internal workings of the lock node, such as, but not limited to, key maps that are not specified by the key pair representing a separate access role, dign on eDKs and / or encrypted bags. For the purposes of this description, the key pair may comprise an asymmetric key pair and a bound symmetric key. The existence of the bound symmetric key may depend on the existence of an access class verifier role. The holder of the All private key may be referred to as the RAT (Root Access Tier) or the owner of Nut. Each primary key may have a key map that may contain a copy of the RAT leader public key for authentication purposes. Bales may be kept in a bag of lock nodes that hold Nut payloads, such as documents. This key pair may be specifically referred to as a Class of Writer (COW) and Class of Reader (COR) due to its frequent use. This key pair may control which primary keys may have the ability to modify Nut payloads. In a similar fashion, Nut logs may be kept in a bag of the Vita part of Nut and controlled by a Logger / Log Reader key pair. Nut history may be kept in a bag of the Tale part of Nut and controlled by a Historian / History Reader key pair. A verifier role for each access role class may have access to at least one public key associated with that role to authenticate digns associated with it. A verifier role may imply that there may be bound symmetric keys associated with an access role class to which it does not have access.A maintenance process is given access to a combination of defined verifier roles in Nut to check the validity, consistency and / or authenticity of Nut parts, but may not be able to read the contents of the protected data. The key pairings are not limited to these sets and may be expanded or contracted based on requirements. Any encrypted and / or unencrypted string of a lock node may have a dign created for it by its own specific key pair, and all lock nodes in the lock graph may adopt this level of specificity, which may lead to an extreme level of access control granularity, but such an extreme level of access control granularity may weaken the effectiveness of access control for such a Nut.
[0141]
[0139] The parameter section of a lock node may specify the digital signature algorithm to be applied and the asymmetric key length (defaulted to a minimum of 2,048 bits for RSA-2048). Alternatively, SDFT usage may allow a specific TAR to express such a preference, and the TAR label may be stored in the parameter section instead. The encrypted bag of a lock node, which may be holding a payload of Nut, may not be digitally signed by a RAT writer using a RAT writer key, but rather by a key holder with COW access, which may include a RAT writer. Primary key holders may be given access to RAT reader keys via their access keys set in their key map of the keyhole lock node and corresponding access attribute propagation keys (AAPKs), which may allow legitimate primary key holders to authenticate digns in lock nodes that may be within the jurisdiction of the RAT authority (exemplified by the primary key holders that may have access to the RAT writer keys). Failure to authenticate the RAT dign may imply that the corresponding string or folded data may have been compromised, or that the RAT leader key may be invalid, or that the primary key may no longer be valid, or some or all of the reasons stated. The application may indicate this warning and not proceed further since the integrity of Nut may have been compromised and further decryption attempts may be unlikely to succeed or may indicate compromised data.
[0142]
[0140] Figure 83 shows how Nut achieves its initial set of NAC access keys. Starting with a keyhole lock node 8300, a primary key 8304 may be inserted into a primary keyhole 8306, which may decrypt or unpack the encrypted key map, which may expose a key map structure 8310, and there may be an access key set (AKS) 8312, which may contain a set of keys composed of an access attribute key set unlocking key (AAKSUK) 8314, which may be symmetric. Each individual AAKSUK symmetric key may correspond to an access role, as shown in the table in Figure 82. Each AAKSUK in the AKS may then be inserted into an access keyhole 8320 in the same input section 8302 of the same lock node 8300 as the initial primary keyhole 8306, and thus the key map 8310 may hold in the AKS 8312 a set of keys that may fit into its own access keyhole 8320. This may be a special property of keyhole lock nodes (outward-facing lock nodes) and may not be applicable to interior lock nodes in most cases. In the access keyhole 8320, each appropriately inserted AAKSUK 8314 may be decrypted or expanded to expose a corresponding access attribute key set (AAKS) 8330, which comprises an access role description 8332, an access role key (ARK) 8334, and / or an access attribute propagation key (AAPK) 8336. The ARK 8334 may specify the key pair part corresponding to the given role, i.e., public (reader) or private (writer). The AAPK 8336 may be a symmetric key that may serve as the AAKSUK to the access keyhole of the next linked lock node. The set of AAKSUKs may constitute a set of AAKS that may define the NAC access attributes of the primary key and ultimately its access at the lock node. In this figure, the AAKS 8330 may specify the access attributes of the Nut owner since it contains the RAT private key and the COW key. The additive attribute property of AAKSUK (and thereby the additive attribute property of NAC) may be shown in this figure, where there may be an AKS8312 for each primary key 8304 that may be inserted into the primary keyhole 8306, and therefore any insertion of an AAKSUK8314 into the access keyhole 8320 may be additive.An equivalent AAKSUK may simply overwrite an existing one by an access keyhole, which may lead to the union of unique AAKS when some or all of the presented primary keys may have been processed. This may result in a cumulative access attribute effect when primary keys with different access attributes may be inserted at the same time.
[0143]
[0141] Figure 84 shows how an AAPK can be used to propagate NAC attributes throughout the rest of the lock nodes in the lock graph. A keyhole lock node 8400 may be properly unlocked and some or all of the AKS 8402 may be inserted into the access keyhole 8404, which may result in an AAKS 8420. An access attribute propagation key (AAPK) 8424 may then be inserted into the access keyhole 8432 of the next linked lock node. This may be similar to how the access keyhole of a keyhole lock node may be populated, but note that the key comes from the linked lock node and not from an AKS that may or may not be seen in its own primary keyhole. The primary keyhole (not shown) of an internal lock node 8430 may have an empty AKS in its key map, except for the RAT access level key. By following this propagation methodology, the access attributes of the primary key may be present in every open lock node in the lock graph. A lock node may isolate and localize some or all of its internal control mechanisms, such as generating a different set of AAKS within the lock node for its own use, even though the access role may be the same as COW, etc. Even the AAKSUK and AAPK symmetric keys may be different, as long as they can be properly mapped. Allocating a RAT with a complete set of AAKS for the entire lock node, and having it properly propagate throughout its lock graph, may be a well-defined Nut assumption. For reference, there may be a complete set of AAPKs and ARKs that may be encrypted by the RAT public key and stored in the parameter section of the lock node, so that only the RAT may expose it when it may need to rekey the lock node.
[0144]
[0142] Figure 85 shows the propagation of access attributes using an AAPK from an external lock node 8500 to an internal lock node 8530. The diagram shows where the various keys to fit into the primary keyhole 8550 and the access keyhole 8560 of the linked nodes can come from. The output section 8510 can expose the link symmetric key 8512 for the primary keyhole 8550 of the linked lock node 8530. The AAPK 8522 can be inserted 8524 into the access keyhole 8560 of the linked lock node 8530.
[0145]
[0143] Figure 86 shows a flow chart for inserting a key into an access lock, which may be covered in detail using examples in the previous section.
[0146] FIG. 87 shows a table of key-based permissions for an alternative embodiment. The table includes the write asymmetric key pair (U W , R W ) and the per-instance data ciphering symmetric key S n The table presented in Figure 80 may be expanded by further defining: D , R D ) and the default data ciphering symmetric key S 0 An additional key may allow the ARK to define a WriteOnly access role that may write to the lock node's bag but may not read other parts of the bag. A WriteOnly role is a role that can be accessed by any of the following access roles: D , U D , U W and S n A write-only role can have access to message T n When we want to save a,to a bag of lock nodes, it is,T,. n and encrypts the encrypted message E n To generate a single-instance symmetric encryption key S nThen, a single-instance symmetric encryption key S n is the encrypted key K n To generate the key U W Then, E n and K. n Both can be saved in the lock node's bag. The write-only role also D The key may be used to create dign and save it. Message authentication may alternatively or additionally be performed by appropriate application of an authenticating SDFT TAR sequence, which may embed and automatically fold such information for compactness and simplicity of organization. Such a TAR sequence may allow for an alternative method of message authentication using an arbitrary keyed MAC transformation. A write-only role-player may finish writing, S n If the in-memory instance of can be destroyed, the role player can use the asymmetric private key R W Since you may not have the message E n S to decipher n The asymmetric private key R may be assigned a role such as a reader role and a writer role, and may no longer have access to the key. W The only access role that can have a copy of S n The encrypted key K is used to obtain n can be decrypted and converted to the original message T n Encrypted message E to obtain n To operate against S nThe authentication methodology may additionally include hashing or dign chaining, similar to the way Merkle trees work, to make the authentication process more efficient for payloads with many individual messages. While write-only role access may not prevent unauthorized truncation or overwriting of previous messages on a lock node running on a local system, the NUTS ecosystem may help prevent or accentuate such occurrences by engaging its Nut history, replication and synchronization features in various collaborative ways. This is explained later in the sections on the NutServer and revision control modules.
[0147]
[0145] The write-only and verifier limited role capabilities presented by the table in Figure 87 may help alleviate some of the problems associated with the pervasive "God Key" conundrum in computer system security. This may be a well-known class of problem where in some cases a system administrator may be given the "God Key" or all-access credentials to a system or set of systems to maintain, upgrade, repair, install, and / or troubleshoot the system(s) at hand. With a relatively small number of highly competent and experienced system administrators with proper security clearance checks, there may be a tendency in the industry to automatically correlate technical ability with high security clearance. This type of practice may not be able to address the dynamic nature of trust relationships, where the trust level between two parties may change over time in a unidirectional manner that may not be detectable by the other or may be intentionally hidden from the other. Through careful use of write-only and verifier access roles, payloads can be protected from unauthorized access at all times for data in motion or at rest. Application of these two access roles can allow organizations to decouple the composite nature of technical ability and security clearance to more appropriately and independently fully manage each aspect. The write-only role can allow people and processes to augment the log components of Nut as evidence of handling, but may not allow them to read the payload or edit the logs. Additionally, the write-only role may have access to both Dign keys and can create authentication strings and verify them. The verifier role can allow people and processes to check Nut for internal consistency and authenticity without allowing any access to the payload.Lock Nodes may be systematically modified, adapted, or inserted within any database system, such as, but not limited to, noSQL or RDBMS, to achieve such granularity of access control at the field, record, table, and / or database level. Compactness, flexibility, features, and / or independence may allow Lock Nodes to exist within a computerized appliance as an embedded access gateway to the appliance itself. This may be described in more detail in a later section on the Internet of Nuts.
[0148]
[0146] The NAC feature may contain a complete set of permutations regarding actions that may be taken on a target payload. A simple cross-reference matrix of permitted actions, together with its NAC implementation, may be shown as follows:
[0149] [Table 1] Reader and writer roles may have the implicit ability to verify or authenticate the dign contained within a bag of locked nodes.
[0150]
[0147] The three methods of protection of lock nodes can be summarized as variable locks, hierarchical access control and / or Nut access control. Variable locks may primarily protect a bag of lock nodes that may be used to carry some data content. Hierarchical access control may define how deep a user may go into the lock graph hierarchy. Nut access control may specify which parts of Nut may be modified, viewed, written to, digitally signed by a user. Some or all of these layers may be controlled by an embedded or folded set of keys in the lock node's keyhole mechanism. The keyhole mechanism may be a flexible doorway that may allow a wide variety of cipher keys to be inserted and processed for various functions. Some or all of these components may work together and / or separately to provide a rich set of access controls that may be modularly constructed, customized for each Nut to exhibit the locking behavior that may be desired for the content to be protected. The modularity of the lock node may also afford the simplicity of building many complex locking structures due to its repetitive and compact modular design. While many different algorithms may be used to fully unlock and utilize Nut, the information to initiate the mechanism may be represented by an enciphered data portion that may be stored entirely within the lock node of Nut, and thus its access control mechanism may be portable and travel with its payload without relying on any external reference monitor. These mechanisms may further be embodied by various SDFT methods and structures to help simplify implementation and better manage the complexity of the internal coding and / or data details.
[0151]
[0148] Nut's access control model may be a combination of mandatory access control (centralized), discretionary access control (user-centric), etc. Nut's access control model may resemble a discretionary access control model in the way it may store some or all of its access attributes within itself, and in the way that owners may set access levels directly per Nut to facilitate transportability. It may also accommodate some or all mandatory access control models, and may integrate into some or all such environments due to its flexibility afforded by its keyholes, variable locks, and other mechanisms. Additionally, it may exhibit other properties, such as, but not limited to, gradient opacity, additive access attributes, and / or modular locked node links, which may be new to NUTS.
[0152] Locked Node Traversal
[0149] Next, one may traverse the entire lock node and see how things may be uncovered along the way. Figure 88 shows a simplified diagram illustrating the decryption data flow within a lock node 8800. References may be made to elements of other figures that participate in the interwoven and integrated depiction of the lock node unlocking process, such as Figures 62, 78, 83, 84, 85 and 88. References may be made to the same lock node sections numbered by different element numbers, but may represent different views of the same section being examined in a drill-down type of manner. The ordering of logical operations that may be required in the lock node unlocking process may be further optimized for efficiency and / or other purposes. The process of unlocking a lock node, and thereby ultimately unlocking the lock graph or Nut, may involve steps that may be described in this example, such as, but not limited to, use of a primary key to obtain access privileges to the lock node and a decryption key, authentication of the lock node, propagation of access privileges throughout the lock graph, logical operations on variable locks, and / or decryption of stored data, which may be expanded, contracted, or reordered as may be required. Where appropriate, several mechanisms within the lock graph and lock nodes may benefit from appropriate application of SDFT methods.
[0153]
[0150] Primary keys 8804 may be inserted into the input section 8806, and each primary key may use its associated cipher method to attempt to decrypt its matching encrypted key map 8810 and unpack it into a key map 8808 structure. Each key map 6240 may generate a main key 6210 that may be used by a variable lock 8812. There may be a set of hierarchical keys 7850 within each key map 7840 (equivalent to 6240), and each hierarchical key (such as 7852-7858) may be inserted into a matching hierarchical lock node (such as 7820-7830) of the lock graph at the primary keyhole 8306 of the respective input section 8302 (in this example, hierarchical keys such as 7852-7858 may be equivalent to the primary key in 8304), and a hierarchically specified lock node such as 7820-7830 may employ a MATLOCK, which may require a minimum of two keys to open it, namely a hierarchical key such as 7852, and an output link key such as 8512, which may be found in the output section 8510 or 8826. In a keyhole lock node 8300, within each key map 8310, there may be a set of access attribute key set unlocking keys (AAKSUK) 8314, called access key set (AKS) 8312, and each AAKSUK key may be inserted into the access keyhole 8320 of the input section 8302 of the current keyhole lock node 8300. Once a set of access attribute propagation keys (AAPK) 8336 may have been achieved in this way, an AAPK 8522 (equivalent to 8336) may be inserted into the access keyhole 8560 of the next linked lock node 8540. Then, there may be an access attribute key set (AAKS) 8332, which may contain an access role key (ARK) 8334. The ARK may define the access role of the primary key 8304 for the entire lock graph. The digns of the various lock node sections, such as 8840-8848, may be authenticated using these ARKs. The lock ID and metadata Dign8840 may be authenticated using the RAT public ARK8344 (which may be the public part of the RAT asymmetric key pair, as may be described in the NAC specification) and the authentication algorithm specified in Section 8830.To authenticate, Section 8830 may be submitted to an authentication algorithm along with the corresponding dign 8840 and RAT public ARK 8344. If authentication fails, Section 8830 may be compromised and the locked node unlocking process may cause an error and stop processing. If successfully authenticated, each Dign 8842 of the encrypted key map may be authenticated for each encrypted key map that corresponds to a valid inserted primary key. To authenticate, each eKM 8810 string may be submitted to an authentication algorithm along with the corresponding dign 8842 and RAT public ARK 8344. If authentication fails, the eKM may be compromised and the locked node unlocking process may cause an error and stop processing. If all appropriate eKMs are successfully authenticated, each Dign 8844 of the encrypted derived key may be authenticated. Each eDK8814 may be submitted to an authentication algorithm along with the corresponding dign8844 and RAT public ARK8344 for authentication. If authentication fails, the eDK may be compromised and the locked node unlocking process may cause an error and stop processing. If all appropriate eDKs are successfully authenticated, each Dign8846 of the encrypted key set may be authenticated. Each eKS8818 may be submitted to an authentication algorithm along with the corresponding dign8846 and RAT public ARK8344 for authentication. If authentication fails, the eKS may be compromised and the locked node unlocking process may cause an error and stop processing. If all appropriate eKSs are successfully authenticated, each Dign8848 of the encrypted bag may be authenticated. Each eBag8822 may be submitted to an authentication algorithm along with the corresponding dign8848 and COR ARK8348 for authentication. If authentication fails, the eBag may be compromised and the locked node unlocking process may cause an error and stop proceeding. If all appropriate eBags are successfully authenticated, the locked node may be considered fully authenticated.Note that the eBag may be authenticated using the class of leader (COR) access role key 8348. This may be true for lock nodes that hold Nut payloads, but for lock nodes that hold Nut metadata in their bags, the RAT public ARK may be used instead to authenticate it. In that case, based on the variable lock type indicated in the parameters section 8830 of the lock node, the appropriate variable lock algorithm 8812 may be attempted for each encrypted derived key string (eDK) 8814 using the set of main keys 7844 from the key map 8808. Successfully unlocking the variable lock 8812 by decrypting the eDK 8814 may result in one or more derived keys (DK) 8816. Each derived key may decrypt a corresponding encrypted key set string (eKS) 8818 that may be stored in parameters 8802. Decrypting the eKS may generate a corresponding key set 8820 structure that may hold an output section 8826 structure and a bag key. The output link key(s) that may be found in the key set 8820 structure may be stored in the output section 8826, which may serve as a key that may be inserted into the primary keyhole of the linked lock node 8530, if any. The bag key may decrypt an encrypted bag string (eBag) 8822, which may be stored in the parameters section using an appropriate cipher. The decrypted bag may hold data such as, but not limited to, a Nut (lock graph) payload, metadata about the payload, Nut metadata, bag metadata, any combination of these, and / or other data. The bag metadata may indicate whether the bag 8824 holds a Nut part or a Nut payload. If the bag holds a Nut part, it may indicate which Nut part it may represent, as well as other appropriate Nut part metadata and / or other data.If the bag holds a Nut payload, it may indicate whether the stored data may be actual data or a reference to it, and if it may be a reference to it, what type of reference it may be, what the reference may be and / or where it may be.
[0154]
[0151] This sequence of steps may be repeated for each lock node in the lock graph to unlock Nut. Figure 89 shows a general flow chart of Nut unlocking. Most of the steps may have been detailed in previous examples, but some steps may require further clarification. Step 8902 - Organize lock nodes into appropriate traversal levels. Since lock nodes may be stored in a row-based format in a list-type structure, the actual topology of the lock graph may be extracted and built using linkage information that may be stored within each lock node. Once the graph may be built, one or more additional passes may be made to properly assign graph levels so that the lock nodes may be traversed in the proper sequence. Step 8908 - Prompt for some or all passphrase-based keyholes. During processing of the input section, if a passphrase-based keyhole is encountered with an empty key (passphrase), it may prompt for a passphrase. This default behavior may be modified to call another function or to bypass empty passphrase keyholes. Any logical step or process in the flowchart may have errors that may occur and lead to the process being paused; these are not specified in detail as this is a higher level flowchart, for example, a process attempting an operation may fail, causing the algorithm to be paused. The remainder of the flowchart may continue along the path of the previous example.
[0155]
[0152] Figure 90 shows how a NUTS-based system may open documents contained in Nut. Forward references are introduced, i.e., NUTbook 9000 may be a data collection organization application that may use Nut and essentially act as a personal PKI with respect to storing and organizing collections of passwords, cipher keys and / or certificates. File symbols such as 9002 and 9004 may be used throughout the diagram to represent Nut files. Within the NUTbook system there may be a main NUTbook access key Nut 9002 that may be unlocked to gain some minimal functionality from the application. The key may be stored within Nut 9002 and may be referred to as the main NUTbook key, and the unlocking mechanism to Nut 9002 may itself comprise a passphrase. There may be a hierarchical key relationship with the main NUTbook key 9002 and the document access key 9004, such that the document access key may be required to access documents that hold Nut in this configuration. Thus, the hierarchy may be set up as requiring the main NUTbook key 9002 to open and access the document access key 9004. The Nut that holds the document access key may have Nut ID#33 9016. Thus, the key 9020 that may be stored in the payload may be referred to as key ID#33, and both the document access key and the Nut ID of the Nut that holds it may be referenced by the same ID, in this case #33. The document 9040 may be stored in the Nut 9030 with Nut ID#44 9036. Similarly, the document may be referred to as document #44. When the user decides to open document #44, one of the keyholes in the primary keyhole 9032 may specify that it may require key ID#33 to open document #44. Nut#33 9004 may be requested from the NUTbook, and to open Nut#33 9004, the NUTbook may request that Nut 9004 be opened. In order for that Nut to be opened, Nut 9002 may need to be opened.Assume that the user may have already initialized their NUTbook with a passphrase to Nut 9002, and that the NUTbook may have cached the main NUTbook key in memory. Opening Nut 9004 may then only require an additional passphrase for document level access of the NUTbook, which may be opened, resulting in a cascade of Nut unlocks to eventually reveal the decrypted document #44 9050. The NUTbook may cache the document access key for a finite amount of time to facilitate document fetching during a session, but some events, such as inactivity, hibernation, screen lock, timeout, and / or explicit locking, may require the passphrase to be entered again for document access. This section introduced the NUTbook application and hierarchical password concepts, which may be further described in later sections. The sequence of steps that may be required to open a single document may be large, but some or all of the logic employed may be based on locking nodes and their iterative processes, most of which may be hidden from the user. The end result may be that a piece of data may be stored in a Nut such as the 9030 and its security may be consistent in some or all environments.
[0156]
[0153] Figure 91 shows the common usage in NUTS terminology to refer to a Nut payload by the Nut ID of the Nut that holds it. Here, it shows how a tagged keyhole 9124 for key #33 may actually be looking for a Nut 9110 with Nut ID #33 9112, which shows that Nut #33 may expect to hold a single key 9114 that can be inserted into the keyhole 9124. It may be interesting to note that in many of these figures and examples, the filename of the Nut file may rarely be referenced in most operations, given that Nut may be stored in a file.
[0157]
[0154] The next set of figures shows various example embodiments of lock graphs that can highlight the flexibility and expressiveness of lock node and lock graph models using variable locks and lock node links.
[0158]
[0155] Figure 92 shows a simplified embodiment of a list of receiver locking models, any one of which can unlock an ORLOCK lock node 9220, thereby reaching a lock node carrying a Nut payload 9290. Note that for simplicity, the lock node may be represented diagrammatically as a padlock, but in reality the lock node is a fully functional lock node that may be storing some metadata about the Nut.
[0159]
[0156] Figure 93 shows a simplified embodiment of an ordered locking model, where key 9310 may be presented first, then key 9320 may be presented second, which may allow access to Nut's payload 9390. A MATLOCK locking node 9312 may request a single key, and a MATLOCK locking node 9322 may request both the key 9320 and a link key from the locking node 9312.
[0160]
[0157] Figure 94 shows a simplified embodiment of an ordered locking model with a master key, where key 9410 may be presented first, then key 9420 may be presented second, which may allow access to Nut's payload 9490. Or, the master key 9430 may be presented directly to the ORLOCK locking node 9432, which may allow access to the payload 9490. The ORLOCK locking node 9432 may allow either a link key or a master key to unlock it.
[0161]
[0158] Figure 95 shows a simplified embodiment of a locking model using a master key, where a key 9510 or a master key 9520 may be presented together or separately, which may enable access to the Nut payload 9590.
[0162]
[0159] Figure 96 shows a simplified embodiment of a locking model with a master key, where a key 9610 or a master key 9620 may be presented together or separately, which may allow access to a Nut payload 9690. The MATLOCK placement 9632 in the lock graph may indicate that some hierarchical control for this Nut may be in place, which may be a Nut part that stores some Nut metadata.
[0163]
[0160] Figure 97 shows a simplified embodiment of a safe deposit box locking model in which a key 9710 and a bank key 9712 may be presented together, which may enable access to the Nut payload 9790.
[0164]
[0161] Figure 98 illustrates a simplified embodiment of a secret sharing locking model with a master key, where from a set of keys 9810, a number of keys that meet or exceed a secret sharing threshold may be presented together, which may enable access to the Nut's payload 9890. Alternatively, a master key 9820 may be presented directly to the ORLOCK locking node 9822, which may enable access to the payload 9890. The keys 9810 may be any combination of passphrases, symmetric keys, and / or asymmetric keys, as the keyhole / key map structure may hide the tine that may be required by the secret sharing scheme utilized in the SSLOCK locking node 9812.
[0165] FIG. 99 shows a simplified embodiment of a “PrivaTegrity” type locking model, where a user key 9920 may be presented to an ORLOCK 9922, which may allow access to the payload 9990. Or, nine keys 9910 may be presented together to a MATLOCK 9912, which may allow access to Nut’s payload 9990. The “PrivaTegrity” model was once proposed by David Chaum in early 2016 to implement a text messaging system that may securely send messages using a key known to its user, but it may have a collusionary backdoor system that may involve up to nine different keys being held by nine international jurisdictions to grant law enforcement access to a particular message only if all nine jurisdictions can agree that such access may be critical and legally warranted.
[0166]
[0163] Figure 100 shows a simplified embodiment of a multi-Nut configuration where multiple payloads may be stored within a single Nut, and a user key 10010 or a master key 10012 may have access to one or both payloads, which may depend on their hierarchical access control. A master key 10020 may only have access to payload 10092 by its traversal path through the lock graph. This lock graph may display the flexibility of modular lock nodes and their access control layers working together. Separate data parcels may be protected in different ways, in part or in whole, within this single Nut. If the master keys 10012 and 10020 may be the same, it may allow a key holder access to both payloads.
[0167]
[0164] Figure 101 shows a simplified embodiment of a multi-Nut configuration, where any of the user keys 10110 may have access to some or all three payloads, which may depend on their hierarchical access control. The key 10120 for SSLOCK 10122 may only access payload 10194 due to its lock node link. This lock graph may display the flexibility of modular lock nodes and their access control layers working together and / or individually. Separate data parcels may be protected differently within this single Nut. The flexible nature of this disclosure may allow infinite variations in locking configurations.
[0168]
[0165] Figure 102 shows a simplified embodiment of the direct locking model with multiple payloads, where the lock graph may show a flat topology for Nut, rather than the usual linear topology. ORLOCK 10212 may be an interesting node in that there may be several ways to implement the multiple link keys required to connect it to five different lock nodes. In one embodiment, the output section of ORLOCK node 10212 may contain five output keys. In another embodiment, the output link key map may be embedded as a key map in a keyhole and then propagated to the output section. Additionally, hierarchical keys may also play a role in which keys may access various nodes.
[0169]
[0166] Figure 103 shows a simplified embodiment of an ordered message passing example, which may be a collusion-resistant design using Nut and a Relationship Base Key (RBK, see above). Mr. Data 10310 may have a relationship with each of Alice, Bob, Charlie and Danny. Some or all of the participants may know each other. Mr. Data's relationship may be symbolized by having a relationship base key with each person. Mr. Data may wish to send a set of secret instructions to each person, but Mr. Data may wish the messages to be read in a certain sequence without the possibility of prior snooping by collusion between the participants. Thus, Mr. Data may construct these four Nuts with specific content in each. Nut 10320 sent to Alice can only be opened by Alice, since it may be locked using the RBK set up between Alice and Mr. Data. Inside 10320, the message for Alice and the key for Bob, K Bob Alice can read her message and give Bob the key K Bob The Nut10330 sent to Bob contains two keys: Bob's RBK key between Bob and Mr. Data, and the key K from Alice. Bob A MATLOCK may be employed that can only be opened using the MATLOCK and ... Charlie Bob can read the message and give Charlie the key K Charlie The Nut10340 sent to Charlie contains two keys: Charlie's RBK key between Charlie and Mr. Data, and the key K from Bob. Charlie On the inside of the 10340, there is a message for Charlie and a key for Danny, K Danny Charlie can read the message and give Danny the key K Danny The Nut10350 sent to Danny contains two keys: Danny's RBK key between Danny and Mr. Data, and the key K from Charlie. Dannyand MATLOCK, which can only be opened using the same password at the same time. Inside 10350 there can be a message for Danny. Danny can read the message and Mr. Data's plan for ordering the messages can work.
[0170]
[0167] In the field of cybersecurity, the "backdoor" feature can generate negative connotations in various dialogues around the topic. Traditionally, backdoor mechanisms may be implemented at the application level, which may allow unfettered access to data processed by the application. This type of application-level access may be interpreted as a serious compromise to the security of the data processed by the application, depending on which party gains access to the backdoor entry. The perception of compromise in such a situation may be well-founded due to the prevalence of such applications that often handle unencrypted data in their own application memory, thereby potentially granting backdoor users access to cleartext data. In NUTS, particularly in Nut's locking model, some may consider the use of a master key as a type of backdoor into Nut, but technically, it may be quite different, since in all locking models of Nut, all doors (keyholes) are front doors and require the appropriate cryptographic key to gain access to Nut. The NUTS API or any NUTS-related application implementation may not have backdoors designed in and intended at the application level. While there may be many legitimate reasons to have a master key entry available to Nut, all such entries may only be defined by a secret key and may be directly visible by a cursory inspection of the input section of a locking node. Thus, any application attempting to install a backdoor type function within a NUTS-related application may only do so after first gaining access to a master key for a target set of Nut, which may only be applicable to Nuts for which that master key is valid. This may demonstrate the flexibility, compartmentalization, protection, and / or resiliency of the data-centric approach to security of Nut.
[0171]
[0168] Some or all of the methods of access control in NUTS may involve patterns of hiding cryptographic keys within encapsulated data structures whose unfolding may expose other keys that may allow access to the target data set. In the embodiments shown in this disclosure, most of these key hiding methods may use data encapsulation and / or data folding methods. The method of hiding the access key may be a preference made by the implementer or it may be a parameterized setting within each nut. These methods may comprise data folding, data encapsulation, attribute-based encryption, function encryption, authorization tokens from a reference monitor, or any other method that may provide selective cryptographic exposure of a subsequent access key given access material that decrypts or unlocks its cryptographic mechanism. The demonstrative embodiments in this disclosure may have been chosen for their simple and straightforward mechanics and their well-known properties. Other equivalent mechanisms may streamline or make more efficient some aspects of the embodiments, but they may still essentially provide the same functionality, i.e., the ability to control access to access attributes that may precisely grant access to the target data set and may not be dependent on the reference monitor by default. Any equivalent access attribute exposure methodology may be used in place of the methods presented thus far to provide the same level of protection of the nut's contents.
[0172] This concludes the section on the Nut container and its internal workings. The internal mechanisms may be embodied directly or through the use of SDFT methods, which may simplify the coding and management of such embodiments. The payload of Nut may be anything that Nut may ultimately protect, which may be any storable digital data, such as, but not limited to, text files, binary applications, image files, access keys to remote systems, executable scripts, certificates for securely establishing computer-to-computer connections, entire databases, operating systems, links to other Nuts, streaming data, and / or text messages. Due to Nut's ability to describe what it may be holding through its rich configurable metadata, a standard list of common file types may be far from its holding capacity. The locked node architecture may allow payloads to span Nut, which may result in unlimited logical container sizes. If solid-state NUTS compatible chips or circuits were available, it may be possible to turn a physical device into a Nut itself, so that the device may only be accessed by the key holder. A series of such devices may constitute entire networks and intranets that may only be operational with proper authentication. The flexible nature of the modular locked node design may permit an infinite variety of locking configurations for Nut. In the following sections, various systems and / or methods may be introduced that may use Nut as the basis for secure storage to show how some common services and methodologies may be expanded, improved, and redesigned to provide capabilities that may otherwise seem beyond the reach of the average user.
[0173] Modular I / O
[0170] A significant amount of programmer effort may be expended in making sure that data is properly brought into the program, transformed, calculated and / or edited in its running memory space, and then properly stored permanently. An unpleasant by-product of this mode of application development may be that of the eventual obsolescence of file formats and their various versions. Owning, possessing and controlling one's own data may be a useful and laudable goal, but what good is it if one never reads that data properly? The ability to read formats, write formats, act on data read, and / or display data read may constitute some of the basic building blocks of a typical program. Modular I / O (MIO) may be a system and / or method that modularizes these logical operations into a repository of modular components that may be used by anyone who has access to it. A by-product of MIO may be the ability to create file format conversion modules that may allow users to access file reading and writing routines of past versions, thereby making their older data readable. This is sometimes called backward compatibility. A notion of forward compatibility may also be provided, although the utility of this feature may depend on the skill of the programmer who may design the application modules. It may be a preferred embodiment of the MIO system that some or all modules may be encapsulated in Nut, and thus authentication, protection and / or access control for each module may exist by default. Figure 104 shows the general components in a modular I / O. Element 10450 may be a modular I / O repository (MIOR), which may be a server process that may store and organize MIO components. The MIOR may be embodied as a local and / or remote server type application that may act as an intelligent cache for such modules.In other embodiments, the MIOR may have a local cache on the local device, so that it can better facilitate the MIO modules that are typically required. A generic application 10402 that may read and / or write to a file 10404 may be conceptually and programmatically broken down into modules to read 10406 and write 10408 the file. The file 10404 may be formatted in a particular format "A" that may be specific to the application 10402. Similarly, the figure shows two other applications 10410 and 10418 with corresponding data files 10412 and 10420 for the particular formats that they may be in "B" and "C", and their respective read and write modules 10414, 10422, 10416 and 10424 that may be stored in the MIOR 10450. The MIOR may contain other modules that may perform different tasks or procedures for the application. 10426-10432 may denote file conversion modules that may perform conversion from one file format to another as specified by their respective labels; module Convert_A_B 10426 may take data read from file format "A" by file read module 10406 into the application's memory, which may then convert the memory structure into one that resembles a memory structure that may be created by file read module File_Read_B 10414.
[0174] Modular I / O: Read and Write
[0171] Figure 105 shows simple read and write operations using MIOR 10500. An application 10502 that can process files that can be stored in file format "A" can read a file F_A 10504 formatted in format "A" by requesting a file read module File_Read_A 10506 from MIOR 10500. If found, the module 10506 can be sent 10510 to App_A 10502, at which point App_A 10502 can install the file read module File_Read_A 10506 and run it against the file F_A 10504. The module File_Read_A 10506 can perform a file read on the file F_A 10504 and build an internal memory structure that can represent the contents of the file F_A 10504. This memory structure, which may represent the contents of file F_A 10504, may then be transferred to the calling application App_A 10502. Once successfully transferred, App_A 10502 may continue to perform its functions using the contents of file F_A 10504, which may reside in its running memory space. In other embodiments, it may not be necessary to transfer the memory structure to App_A 10502 if the file contents may have been read by the file reading module File_Read_A 10506, where there may be a facility whereby both the file reading module 10506 and the application module 10502 may share the same memory space.
[0175]
[0172] When application App_A 10502 is ready to store the modified contents of file F_A 10504 back into a file format, it may contact MIOR and request a file write module for file format "A", called File_Write_A 10508. Upon receiving module 10508 10512, App_A may install and execute it using the same methodology for transferring application memory structures as the read process. Write module 10508 may perform a write operation to persistent storage, which may create the modified file F_A 10520. The requests to MIOR for read module 10506 and write module 10508 may be made in any sequence that may be deemed appropriate by the application developer. In one embodiment, the application may request some or all relevant I / O modules in advance before proceeding, to be sure that some or all necessary I / O operations may be performed by the application, which may prevent undesired failures later. In another embodiment, there may be a locally cached MIOR of previously fetched modules by previously executed applications that may be maintained to expedite the request and fetching procedure.
[0176]
[0173] There may be many ways to transfer and / or share memory structures between two or more logical processes to one skilled in the art, such as, but not limited to, shared memory segments, memory-mapped files, databases, inter-process messages, binary memory dump files, and / or converted memory dumps. A preferred method of application memory transfer in an MIO system may be to use converted memory dumps between processes. JSON read and write functions may be modified to recognize binary data and automatically convert them to and from base64 encoding or other binary-text encodings. Figure 106 illustrates the data conversions and transfers that may be involved in a typical MIO file read operation. An MIO read module File_Read_A 10604 may read a file 10602 called F_A in format "A" into its running memory 10606 10620. Thus, the associated contents of the file 10602 may be represented 10630 in the application memory structure 10606. The application memory may be stored in a JSON compatible data structure 10606 and marshaled into a text format 10610 using a JSON write function call. Optionally, the JSON output may be embedded in a Nut container 10608 for added security. Thus, the application memory 10606 may be converted and stored outside 10608 of the read module 10604. Nut 10608 may then be opened and read into memory by App_A 10612 and a JSON read may be performed on the data parcel 10610, thus reconstructing the data into the running memory of App_A 10614. Data transfer methods 10622 and 10624 may include, but are not limited to, command line arguments, inter-process messages, and / or data file(s).The reading application and / or the data processing application may be separate processes on different machines, the same machine, separate threads or separate cores, or the application may be a single logical process on a local or remote machine with the dynamic ability to modify its running code on the fly.
[0177] Modular I / O: Backwards Compatibility
[0174] An application may undergo incremental changes over time by issuing version changes with enhancements throughout its life cycle. Many of these version changes may include format changes of storage files used to save user work. Historically, this may lead to two problems: encumbrance and obsolescence. Encumbrance may be when software is bloated by adding backward compatibility capabilities to every version for every format change during the life of a product line. This may involve a large number of format version changes. Furthermore, if there may be other third party or open formats that the application may want to handle, it may result in further software bloat. Figure 105 shows how files may be read and processed without undue bloat if modular read and write modules may be available in MIOR for any format in any version that the application may utilize. Additionally, Figure 105 shows how newer read and write modules can be added independently to the MIOR, and then any application that can communicate with the MIOR can have access to the additional formatting modules without program modification. These newer modules could be the ability to read different versions of file formats for the same application product line, or they could be compatibility modules for reading and writing third-party file formats written by anyone, including the application developer.
[0178] FIG. 107 illustrates a backward compatibility example where an application App_B 10702 may be a more recent version and may use a corresponding newer format version "B" data file, but the user may want to read and write an older version "A" file format 10704. In such a case, data conversion modules such as 10708 and 10710 may be created and stored in MIOR 10700. A conversion module may be responsible for reading one format and generating another format, in this example, conversion module 10708 may read an "A" formatted file and convert it to a "B" formatted file, and conversion module 10710 may read a "B" formatted file and convert it to an "A" formatted file. File F_A 10704 may be presented to App_B 10702, which may determine from the file's metadata that the file may be in an incompatible format and may proceed to make a request to MIOR 10700 for the read module sequence that may be required to read "A" and generate the "B" file. MIOR 10700 may respond by sending the following modules to App_B 10702: File_Read_A 10706, File_Write_A 10712, Convert_A_B 10708 and Convert_B_A 10710. App_B 10702 may call File_Read_A 10706 on file F_A 10704, which may then call Convert_A_B 10708 and transfer its memory structure in the "A" format to module 10708, which may then convert the received data to the "B" format and transfer it to App_B 10702.When App_B is ready to save the modified data back to file F_A in the "A" format, it may call Convert_B_A 10710 and transfer its memory structures in format "B" to module 10710, which may then convert its memory structures to format "A" and call File_Write_A 10712 and transfer its memory structures in the "A" format, which may then overwrite file F_A 10714 with its modified contents in format "A" and format the file write in file format "A". A more complex example may be where several conversion modules may be called in sequence to perform an iterative conversion process to appropriate older format versions, or where a developer may have added frequently used version change converter modules, such as Convert_B_F and Convert_F_B, to streamline such requests.
[0179]
[0176] Software bloat can be illustrated with a simple calculation: suppose a popular application has undergone five major revisions, three file format versions across three operating systems with three major version changes, each spanning ten years. Also suppose that every one of these changes may require a different version of an I / O routine for the application. This could potentially lead to the most recent version of the application carrying within itself up to 135 versions of its I / O functions. Even if this could be an extreme case, one can understand the proliferation of program code that may be generated to maintain backward compatibility in an application over time. This characteristic is sometimes called the dependency property of software.
[0180]
[0177] A properly maintained MIOR 10700, with consistently updated modules added to its repository, can act as a historical I / O format library, allowing users to access older versions of their data files at any time in the future, which can address the problem of software and data format obsolescence. When an application may no longer be produced, sold, and / or maintained, the useful life of the application may be greatly shortened since newer versions may not appear that could allow it to run on newer operating system versions. When an application may no longer run on modern computers due to incompatibility, data files formatted by the application may be difficult to access. Clever users and developers may have found various solutions to these problems, but it may require a lot of effort and / or specialized knowledge on the parts. Using MIOR may require at least one developer to maintain modules that may be related to now defunct applications, and that developer to create newer versions of modules to be added periodically that may be compatible with newer versions of various operating systems. This type of routine maintenance may be automated using automated unit testing tools to automatically generate the appropriate modules for the OS type and version in a timely manner. Updated modules may be inserted into the MIOR so that anyone who may have access to the MIOR may benefit from the developer's work; if a particular MIOR may be accessible by anyone on the Internet, some or all users on the Internet may automatically benefit from that MIOR without requiring users to be familiar with the low-level problems and the processes that may be invoked to automatically resolve them. Software backward and forward compatibility issues are sometimes referred to as obsolescence properties of software.
[0181] Modular I / O: Forward Compatible
[0178] A user may sometimes experience a situation where the user may have bought, installed, and / or used an application many years ago, but the user may not have purchased subsequent upgrades for it over the years. However, the application may still be functional to the user, but it may only read and write file formats that may be compatible with the user's older version of the application. The most recent version of the application may have introduced a newer file format with additional features at some point in the past. This situation may present two problems for the user: 1) the user's version of the application may not read files formatted in the latest format version, and 2) other programs that may read the latest format from this application may not be able to access the user's older formatted data. A solution to the first problem may be called a forward compatible read operation, whereby the user's older application may directly load from MIOR a set of modules that may perform incremental conversions on the data that may enable the user to read files formatted in the newer version using the user's older program. A solution to the second problem may be called a forward-compatible write operation, whereby a user's older application may load a set of modules directly from MIOR that may perform incremental conversions on the data that may allow the user to use the user's older program to write files formatted in the newer version. Programs built with forward compatibility in mind may make this type of transition easier and seamless using MIOR, with little or no loss of functionality. Newer features provided in the more recent format version may be optimally mapped to less sophisticated application constructs, or may simply be substituted for the raw data, allowing the user to modify it later.FIG. 108 illustrates these two different logical operations with examples.
[0182]
[0179] Forward Compatible Read Operation: App_A 10802 may be compatible with files formatted in version "A", but a user may wish to read a newer file format "C". This request may be communicated to MIOR 10800, which may reply with a sequence of modules that may perform these recursive conversions: File_Read_C 10806, Convert_C_B 10808, and Convert_B_A 10810. Module File_Read_C 10806 may read file F_C 10804, which may be formatted in version "C". Module 10806 may then call recursive conversion function Convert_C_B 10808 and transfer its memory structure to it. Module Convert_C_B 10808 may perform the conversion on the data in memory and generate a memory structure that is compatible with format "B", i.e., the application's previous file format version. Module 10808 may then call recursive conversion function Convert_B_A 10810 and transfer its memory structure to it. Module Convert_B_A 10810 may perform a conversion on the data in memory to generate a memory structure compatible with format "A", i.e., the desired file format version that is compatible with the older application App_A. Module 10810 may transfer its memory structure in format "A" to the calling application App_A 10802, which may process it. Thus, the newer version file format may be read by the older version application without modifications to the application.
[0183]
[0180] Forward Compatible Write Operation: App_A 10840 may be compatible with files formatted in version "A", but a user may wish to write a newer file format "C", which may be beyond its original capabilities. This request may be communicated to MIOR 10800, which may reply with a sequence of modules that may perform these incremental conversions: File_Write_C 10816, Convert_B_C 10814, and Convert_A_B 10812. App_A 10840 may call Convert_A_B 10812 and transfer App_A 10840's memory structure to it. Module Convert_A_B 10812 may perform the conversion on the data in memory, producing a memory structure that is compatible with format "B". Module 10812 may then call the incremental conversion function Convert_B_C 10814 and transfer the memory structure of module 10812 to it. Module Convert_B_C 10814 may perform the conversion on the data in memory and generate a memory structure that is compatible with format "C". Module 10814 may then call the file write function File_Write_C 10816 and transfer the memory structure of module 10814 to it. Module File_Write_C 10816 may write file F_C 10818, which may be formatted in version "C", i.e., the desired file format version. Thus, newer versions of file formats may be written by older versions of applications without modifications to the application.
[0184]
[0181] The disclosure is not limited by the two examples shown. A conversion module can be generated to access any or all versions of file formats for applications on any operating system. A conversion module may not be limited to conversions within its application product line, but can be written to perform conversions across different application product lines. A conversion module can include conversion of data to different formats, such as, but not limited to, file-to-database, database-to-file, file-to-datastream, datastream-to-file, file-to-webpage, webpage-to-file, file-to-cloud storage, cloud storage-to-file.
[0185] Modular I / O: Displays
[0182] Figure 109 shows a diagram of the MIOR display module in operation. Once the application App_A 10902 has successfully read the data from the file F_A 10904 into its memory, it may proceed to use the functionality of the module Display_A 10908 to display the contents of the file F_A 10904 to the user. In the display module, the functional aspects of the modules may vary greatly depending on the application, the data content, and / or the developer's design. Some modules may be designed to use shared memory methods that may allow the display module to directly access the data in the application memory, others may transfer the data to the display module, which may allow the display module to display the data. Other embodiments of the display module may have screen formatting instructions and / or templates for the type of data to be displayed, which may in some cases be edited. This modularization of the display functionality may allow custom display modules to be created for various hardware and OS platforms, while allowing the calling program to remain relatively unchanged.
[0186]
[0183] The catalog of collections architecture described later in the NUTbook section can take advantage of the lightweight aspects of the modular display. Instead of building larger monolithic applications to handle, display, and / or edit different collections of data sets, NUTbook can make extensive use of the MIOR architecture, which can give NUTbook piecemeal customization based on the type of payload in Nut being examined.
[0187] Modular I / O: Applications
[0184] In FIG. 110, MIOR 11000 may store modular application modules such as 11022. NUTbrowser 11020 (see forward) may be an application that may be similar in appearance and behavior to most file and directory browsers, but it may recognize Nut and act on them by looking at Nut's extensive metadata. Within Nut 11030's metadata 11002 may be information related to the type of payload it may be protecting and storing. When a user selects Nut from NUTbrowser 11020 and double-clicks to open it, NUTbrowser may open Nut and read the metadata to figure out which modules may be required to open the file. Metadata may include data such as, but not limited to, application version, file format version, and / or display version. NUTbrowser may then make a request to MIOR 11000 11004 to find applications App_A 11022, File_Read_A 11024, and Display_A 11026. MIOR 11000 may return some or all of the modules, and application App_A 11022 may be called by NUTbrowser 11020. Once App_A is running, it may call File_Read_A 11024 to read the contents of Nut payload F_A 11028, which may be stored in Nut 11030. After transferring the memory structure from 11024 to the calling module App_A 11022, it may call the display module Display_A 11026 to show the data F_A 11028 to the user.
[0188]
[0185] Modular I / O application modules can vary widely in what they contain and what they can do; in some embodiments it can be a complex logical computing module; in other embodiments it can store an entire software installation package; in other embodiments it can contain some or all aspects of the I / O, display and / or application functions; in other embodiments it can contain information including the Genesis Nut, which can kickstart the reincarnation of a user's environment in a remote manner. The functionality of the modular I / O application modules is not limited to these cases.
[0189]
[0186] Modular I / O features such as read, write, display and / or application may be overlaid with access control mechanisms at the MIOR or container level so that only properly authorized users may access it. These access control mechanisms may include, but are not limited to, access control policies, ownership requirements, and / or DRM mechanisms, for purposes of advantage. Much of the access control may result from the properties of the Nut container in which the modules may be stored. As this disclosure is described in more detail, it may become clearer as to the mechanisms by which these MIOR requirements may be derived. When a data file or its contents may be encapsulated within a secure Nut container, there may be many levels of metadata available regarding the Nut contents, which may specify details of the data format, such as, but are not limited to, the application version that created it, the display version, the file format version, the size, the time of creation, the time of last modification, the author, the type of file, and / or a summary. Environmental attributes may be provided by the application opening the Nut, such as, but are not limited to, the OS version, the application version, the hardware type and / or version. With some of this information about the environment, data content, and / or the requested operation, MIOR can look up the appropriate module and respond with either a set of modules to satisfy the operation or an error message. These modular I / O modules can operate as single or separate processes on the same machine, across different machines, across different chips or cores, across a network, and other modes of executing a logical process(es) on a computing device. Through these modules, issues of obsolescence, dependency, adaptability, compatibility, and / or flexibility can be addressed in part or in whole.
[0190] Nut History
[0187] Nut containers may be structured to store the history of payloads. The form of history may comprise periodic snapshots, incremental deltas, full event sequences, or any combination of the three, or any other archiving method. The form of history may vary depending on the type of data being stored and the application and / or data preferences and design. The NUTS ecosystem may include methods and systems to support these modes of data history archiving. These three methods of archiving may be well-established methods known to those skilled in the art. The physical location of the Nut history may be in a Nut part called a Tale (Figure 81), the opacity of which may be controlled by the Nut RAT.
[0191]
[0188] Figure 111 shows a simplified Nut schematic diagram, which illustrates the incremental changes of its history structure over three time points, covering two editing sessions of a document. At time T1, Nut 11102 may hold data D1 11110, and its history may be empty 11112. A user may edit data D1 11110 at time T2 11126, generating a new version D2 11114. The application may employ a snapshot archiving method, storing the original version 11110 of data D1 as a snapshot 11118 of the data at time T1 in the history section 11116 of Nut. Then, a user may edit data D2 11114 at time T3 11128, generating a new version D3 11120. The application may employ a snapshot archiving method and store an older version 11114 of data D2 as a snapshot 11124 of the data at time T2 in Nut's history section 11122. At time T3, the history section 11122 may in turn hold two different snapshots 11118 and 11124 of a previous version 11120 of data D3. Nut's history 11122 may be browsed and extracted by the user at will at any time using simple history extraction methods to enable reversion or to create entirely new documents from them. There may be Nut metadata parameters that may control the type, frequency and / or lifespan of the history section to set a reasonable history growth for the data at hand. For some text documents, saving some or all changes forever may be practical since its size may be relatively small when using the delta method of archiving. This may enable Nut to generate saved versions of some or all of the document at any time thereafter. Binary documents may be archived as snapshots or deltas depending on the application. Some event-driven applications may archive the complete set of event sequences as its history.Note that Nut history may be archived within Nut itself and may not depend on external programs and / or storage systems. Payloads may be historically archived in this manner as long as there are archival methods available for the payload type in the NUTS environment.
[0192] Nut Log
[0189] Nut containers may be structured to store Nut event logs. When computer processes may read, manipulate, and / or write Nut, they may generate and leave within Nut itself an audit trail of logical operations performed on Nut. The audit trail may exist essentially from an object perspective, on a per-object basis. Thus, between the Nut history and the Nut log, a chronicle of events on a data object from the beginning may be stored in a single container for further review at a later time. The precision, content, and / or granularity of the Nut archive may depend on disciplined and systematic usage of these features by developers of applications that operate on Nut. The physical location of the Nut log may be in a Nut part called Vita (Figure 81), and its opacity may be controlled by the Nut RAT.
[0193]
[0190] Figure 112 shows a simplified Nut schematic diagram, which shows the incremental changes of its event log structure over three time points, covering two events occurring on Nut. This example may continue the scenario from Figure 111 for Nut history. At time T1, Nut 11102 may hold data D1 11110, and its log 11212 may hold one log entry 11218 for event E1, which may indicate that Nut 11102 was created at time T1. A user may edit data D1 11226 at time T2, which may create a new version 11114 of data D2 in Nut 11104. The editing application may log the event log entry at T2 to the Nut log 11216, as may be shown by element 11222. The user may then edit 11228 the data D2 11114 at time T3, generating a new version D3 11120. The editing application may log the event log entry at T3 to the Nut log 11230, as may be shown by element 11224. At time T3, the log section 11230 may now hold three different event log entries 11218, 11222 and 11224. Nut's log 11230 may be browsed and extracted by the user at will using simple log extraction methods at any time, which may enable auditing on Nut. To set reasonable and appropriate log growth for Nut, there may be Nut metadata parameters to control the type, frequency and / or lifespan of the log section.
[0194]
[0191] System administrators and application developers may know the work and effort that may be involved in finding bugs and errors on their systems when more than one application may be involved in modifying a data object, since they may have to look through some or all of the responsible application's event logs (if they may have access to them at all), filter out the event log entries related to the object in question, and then possibly manually reconstruct those events in the sequence in which they may have occurred on the object. With the Nut log, this event log collection, filtering, and reconstruction may already be done at the object level from the object's perspective. Additionally, Nut metadata may specify the level of granularity of event log message details that may be desired by the object owner for the working application. This granularity may range from a brief debug level to a detailed debug level to find various lines of investigation. A highly sensitive and confidential payload may require the most granular level of event log details to perform an audit trail on its access history. In essence, this can be a consistent and customized way of controlling the auditable history of an object by any application on a per object basis according to the level of granularity required by the object. The term consistent can refer to the consistent design and operation of the available logging features, and the term customized can refer to the per object preferences that the design can accommodate.
[0195] Relationship-Based Keys (RBK)
[0192] The description of how a Relationship Based Key (RBK) may be established should be familiar to anyone who has used encryption tools manually: Bob and Alice may wish to communicate privately, and therefore may trade each other randomly generated asymmetric cipher keys (public parts only), which they may use in a tool such as PGP or its equivalent to exchange ciphered messages and documents. The protection and management of the key pairs by Bob and Alice may be left entirely to Bob and Alice. This may tend to be a careful and tedious task for each relationship to be established, maintained, and properly utilized, and may in some cases require Alice and Bob to have a primer or two on ciphers, their proper usage, and / or key protection. This type of key exchange may take place when neither Bob nor Alice have an established public key certificate, via a centralized directory or web of trust. It may also occur if any participant feels that an additional layer of privacy may be required by creating a completely private communication channel.
[0196]
[0193] What could happen if RBK were the default method of communication for people like Alice and Bob? What could be the consequences, and what might be needed to make that happen in a painless way? Systematic aspects of the establishment, maintenance, and / or usage of RBK could be automated. It may be constructive to consider some of the properties and consequences of consistent application of RBK before examining the details of how that could be accomplished systematically. Properties of Relationship-Based Keys ● The trust level between two parties can be a dynamically adjustable parameter. It can be an observation of a real-life relationship between any two parties, and trust can be relative. It can wax and wane over time based on events and communications. - Unidirectional adjustment of trust level: Either party in a relationship may unidirectionally change the trust level of the parties in the relationship at will, with or without the knowledge of the other party. ● Relationship channel health can be determined from message context. Systems and keys can be compromised from time to time for anyone. The default usage of the RBK can allow either party to inspect the contents of a communication and determine the likelihood that the other person's system or key has been compromised. In the simplest case, a message coming from Bob without RBK ciphering could potentially be a sign of compromise. ● The true nature of the relationship can be assessed over time: if messages of an anomalous nature are sent over the RBK and the sending party's key has not been compromised, the sending party may have changed the nature of the relationship. ● Losing a relationship may be permanent, and some or all of the relationship's history may lose commercial and / or meaningful value. Unidirectionally, either party may break a relationship by blocking its messages or erasing their RBK set. This logical operation of relationship channels may present each user with deterministic unidirectional message blocking ability. ● Parties may be bound to strict ground rules that they are mutually obliged to follow or risk losing the relationship, i.e. ground rules that may change over time. Violation of implied ground rules may result in a unilateral severing of the relationship in a permanent manner, digitally speaking. ● It may allow for a more detailed representation of real-world relationships in digital cryptographic form. Public key cryptography in its most widely used form may be a centralized model that may go against how people form relationships. RBK may be decentralized and may use public key cryptography in a private manner. ● Subversion isolation. Subversion of the RBK on Bob's environment can be isolated to Bob and any RBK channels he may have established with his contacts, namely Alice. Damage to Alice's environment can be isolated to Alice's channel with Bob and their mutual history communiqués. Some or all other relationship channels for Alice can be secure and cannot be breached by a hacker who subverts Bob's environment.
[0197]
[0194] A personal information manager or PIM may be a well-known application concept in computer software. It may be broadly defined as an amalgam of various functions that may provide productivity and organization tools for personal use. A PIM may provide tools such as, but not limited to, a calendar, an address book, contact management, a password keeper, notes, an email manager, chat functionality, project management, a key manager, a calculator, a task list, and / or an activity logger. A PIM may be any combination of these functions or it may provide just a single function. A PIM may be designed to operate locally in an isolated manner, or only on the PIM web server, or any combination thereof. In the following description, references to such functions of a PIM, such as an address book or chat or email manager, may be understood to be a PIM providing any of those functions as part of what the PIM offers, or it may be the only function of the PIM.
[0198]
[0195] Figure 113 shows how digital address book entries between Alice and Bob can be structured to support RBK in a consistent manner for some or all relationships in the address book. Alice's address book 11310, which may be a feature provided by Alice's PIM, may have two entries: an entry 11320 for herself and an entry 11330 for Bob's information. In Alice's own entry 11320, Alice may list her own basic contact data 11322 and some personal data 11324. Alice's address book entry 11320 may be stored as a payload in a Nut file on Alice's system and secured. On Bob's contact card 11330, Alice may have some contact information about Bob 11332, such as Bob's name and email address. Bob's address book entry 11330 may be stored as a payload in a Nut file on Alice's system and secured. Bob's address book 11350, which may be a feature provided by Bob's PIM, may have two entries: an entry 11360 for himself and an entry 11370 for Alice's information. In Bob's entry 11360, Bob may list his own basic contact data 11352 and some personal data 11354. Bob's address book entry 11360 may be stored as a payload in a Nut file on Bob's system and secured. On Alice's contact card 11370, Bob may have some contact information 11372 about Alice, such as Alice's name and email address. Alice's address book entry 11370 may be stored as a payload in a Nut file on Bob's system and secured. When Alice and Bob decide to set up RBKs with each other, Alice and Bob may decide to set up a private two-way communication channel between themselves. Alice may begin the process by generating an asymmetric key pair 11334 and 11336, storing them under Bob's address card 11330, and sending 11344 the public portion of key 11334 to Bob.The sending process 11344 may be accomplished by a passphrase secured Nut, a message written on paper, a phone call to Bob, a message using Bob's public key known to the world, or any version of a secure key exchange protocol familiar to those skilled in the art. When Bob receives this message with his internal key 11334, he may store it in Alice's address card entry 11370 as a key 11334 for sending messages privately to Alice. Bob may then generate an asymmetric key pair 11374 and 11376, store them under Alice's address card 11370, and send Alice the public part of the key 11374 using the public key 11334 that Alice sent to Bob to encrypt the message 11346. When Alice receives this message, she may decrypt messages from Bob using Alice's private key 11336 for Bob's messages. Alice may extract the internal key 11374, which she may store in Bob's address card entry 11330 as a key 11374 for sending messages privately to Bob. Alice may create a confirmation message for Bob encrypted with the key 11374 from the card 11330 and send it to Bob over any working communication medium. Bob may receive the message, which he may then decrypt with the key 11376 from the card 11370 and mark Bob's RBK set as established and active with respect to Alice.
[0199]
[0196] This step in RBK setup between Alice and Bob can be automated and initiated with a single action button or command. This can be the operating basis of how NUTbook manages its contact collection and can be explained in the NUTbook section later in this specification. The process can be repeated by either Bob or Alice independently for some or all of the contact cards in Bob's or Alice's respective address books in Bob's or Alice's PIM. Finally, each person can establish an RBK channel for each of their contacts, which can be considered a private communication channel for each of their relationships. If Cathy is a mutual friend between Alice and Bob, Cathy's RBK relationship with Bob can be different from Cathy's RBK relationship with Alice, and the RBK configuration can reflect that reality.
[0200] Now that we have defined the RBK and the context of its systematic use, what can it do for Alice or Bob? A consistent use of the RBK to send messages between two entities can enable monitoring of the health of their communication channel. One example of a practical use can be the mitigation of spam e-mail. It can be estimated that a significant amount of global Internet bandwidth and data storage can be taken up by spam e-mail, both malicious and / or commercial. We may venture to assume that not many people would welcome such an amount of spam. Some of the common methods of spam mitigation can be by using filtering techniques based on content pattern recognition, domain exceptions, address exceptions, and / or by actually taking down prolific spam servers by law enforcement. In a mode where RBK encryption can be the default way of communicating, spam can be detected in a more deterministic manner.
[0201]
[0198] One of the main obstacles in the way of automating processes such as RBK can be the significant lack of user-friendly, user-accessible, and / or user-controllable personal Public Key Infrastructure (PKI) applications. NUTbook, along with its usage of Nut, can attempt to fill the PKI gap. It can provide a flexible, secure, and / or user-controllable way to store, manipulate, and access such information in a seamless manner.
[0202]
[0199] Figure 114 shows a flow chart for reducing spam between Alice and Bob who may now have established an RBK communication channel, which may be their default way of communicating, and who may be using well-known public email addresses. If an email is encrypted via the RBK between Alice and Bob, it may likely be a valid email from Alice to Bob or vice versa 11414. If either person receives an email from the other that is not encrypted with the RBK, it is most likely spam and may be filtered out and stored in a spam bin 11412.
[0203]
[0200] Figure 115 shows a flow chart for reducing spam between Alice and Bob who may now have established an RBK communication channel, which may be their default way of communicating, and who may be using private email addresses that are not made public, i.e., anonymous email addresses. If an email is encrypted via the RBK between Alice and Bob, it may possibly be a valid email from Alice to Bob or vice versa 11514. If either person receives an email from the other that is not encrypted with the RBK, it may most likely be spam and may be filtered out and stored in a spam bin 11512. This example may assume that a set of private email addresses may only be used between Alice and Bob to send RBK encrypted messages to each other, thus extending the RBK channel concept to the email address level as well. This type of communication channel oriented email address may be defined as an anonymous email address.
[0204]
[0201] The communication channel between Alice and Bob, who may use RBK consistently via anonymous email addresses, may exhibit several characteristics that may be analyzed to determine the health of the relationship itself. As may be explained in Figure 115, some or all unencrypted spam messages may already be removed from the channel by default. Next, the context of the appropriate RBK encrypted message may be examined. The table in Figure 116 lists a deterministic context-based status matrix of the health of the Alice-Bob communication channel. It may require a qualitative assessment of the content by Alice to work out what may be going on in the Alice and Bob relationship. It shows a unidirectional action matrix by Alice that may be based on Bob's behavior as may be evidenced by Bob's messages to Alice.
[0205]
[0202] The last symptom listed in Figure 116 may raise an interesting scenario when Bob's role may be replaced by a web vendor, i.e., Alice may have established an anonymous RBK communication channel with the vendor. The table in Figure 117 shows a deterministic context-based status matrix of the health of the Alice-vendor communication channel. Now Alice may have the ability to find out if this vendor may be selling Alice's information to spammers through the channel identifiable aspects of the anonymous email address and RBK set. It may give a level of transparency into the inner workings of the vendor's marketing department, along with a clear audit trail. This type of vendor accountability may be unprecedented in such a systematically detailed manner by the average user. The consequences for a vendor violating Alice's trust may be dire, as the vendor may lose any means to contact Alice forever. In effect, proper and consistent use of the anonymous email address and / or RBK may allow Alice's digital equivalent to leave the store and never return, which may serve as a deterrent for vendors not to misuse the personal information of the vendor's clients.
[0206]
[0203] Figure 118 shows a deterministic context-based status matrix of the health of the Alice-Vendor communication channel from the vendor's perspective. The channel characteristics may give the vendor the same type of unidirectional actions that the vendor can take to protect its business and possibly protect its clients. The use of this methodology by the vendor may possibly improve the vendor's reputation for privacy and data security. It may also implicitly state that the vendor may not engage in indiscriminate reselling of client data on a large scale.
[0207] FIG. 119 shows a graphical representation of how the use of RBKs can help isolate the compromise of sensitive data on a user's system. Bob 11900 may have an RBK channel with Alice 11910 and an RBK channel with Dave 11920. Bob may have clicked on a Trojan horse website and may be infected with a key logger or equivalent malicious program, after which a hacker may be able to break into Bob's secure data store for RBKs, such as Bob's NUTbook. As a result, Bob's RBK set with some or all of Bob's contacts may have been compromised 11900. Bob may contact some or all of Bob's friends, who may notify them of the breach, or some of Bob's friends may have already inferred that something was wrong with Bob or Bob's system from spam messages that may have been sent to them using Bob's private channel with Bob. If Alice sees Alice's NUTbook 11910, in which Alice may store some or all of Alice's RBK set, Alice may mark Alice's RBK set 11912 with Bob as compromised and generate a new RBK set whenever Bob is ready to remove the virus on Bob's system. That may be the extent of the damage to Alice that does not spread to other RBK relationships Alice may have established. This may be especially true if Alice has consistently used anonymous email addresses with Alice's contacts as well. Alice may receive spam from hackers, but the spam may be automatically ignored when Alice marks the channel as compromised or deleted. When Bob is ready, Alice may generate a new set of RBKs and a new anonymous email channel, and Bob and Alice may continue their digital dialogue in private. The process for Dave may be the same for Dave's RBK store 11920.
[0208] Anonymous Relationship
[0205] Digital relationship topologies and conventions that may have arisen and solidified on the Internet over the last few decades may be unnatural and unrealistic. Anonymity may be a powerful relationship construct, a level of relationship that may be enjoyed daily with most ad-hoc interactions, such as, but not limited to, going to a drug store to buy a personal product, going to a restaurant to buy a meal, hailing a medallion cab for a ride, and / or showing up at a protest rally. Contrary to this physical reality, almost any vendor on the Internet may want to know exactly who Alice may be, including some or all of the personal information the vendor may obtain from Alice. Many vendors themselves may remain relatively anonymous by not publishing direct phone numbers, and may serve customers through email, transactional systems, and / or remotely outsourced customer service representatives in remote call centers. The most prevalent use of anonymity may be by people who may wish to hide, such as hackers. Currently, there may be many pseudonym-generating websites for people who may wish to remain anonymous on the Internet, but they may have to track their anonymity in a very cumbersome manner and may have to make a cautious decision to be intentionally two-faced. The use of RBK and anonymous email addresses may bring some balance to this imbalance of anonymity on the Internet for the average user, allowing them to have more meaningful interactive relationships with vendors and each other without having to resort to pseudonyms and ad-hoc two-faces.
[0209]
[0206] Figure 120 shows a simplified diagram of pre-packaged personal data Nut. Nut can store detailed personal information 12000 about a person. It can automate the pre-packaging of different subsets of this personal information for different purposes. 12010 can be a simple personal data Nut that may just contain a name and an email address. Anonymous personal dat...
Claims
1. 1. A method comprising: at least one processor running a cryptographic function stored in at least one memory coupled to the at least one processor requesting at least one key; the at least one processor running the cryptographic function comprising: operating said cryptographic function, initially with at least one input data and initially with zero input keys, in a forward mode to generate said required set of properly formed original keys for processing said at least one input data to produce at least one output data and said generated set of properly formed original keys; operating said cryptographic function, initially with at least one input data and initially with a subset of the input keys, in said forward mode to generate a required missing set of properly formed original keys and combine them in a logical order with said subset of input keys to process said at least one input data, to generate at least one output data and a combined set of keys; operating said cryptographic function in said forward mode, initially with at least one input data and initially with a requested set of input keys, and checking the structure of each input key for processing said at least one input data with a validated set of requested input keys to generate at least one output data; operating the cryptographic function, initially with at least one output data and initially with the requested set of input keys, in a reverse mode and checking the structure of each requested input key for processing the at least one output data with the validated set of requested input keys to generate the at least one input data; A method for providing the above.
2. 2. The method of claim 1, wherein the cryptographic function requests multiple keys, and the cryptographic function sequences the requested original keys in a predetermined order.
3. The method of claim 1 , wherein the cryptographic function comprises a plurality of cryptographic functions.
4. 1. A method comprising: at least one processor running a cryptographic function stored in at least one memory coupled to the at least one processor requesting at least one key; the at least one processor running the cryptographic function comprising: operating said cryptographic function, initially with at least one input data and initially with zero input keys, in a forward mode to generate said required set of properly formed original keys for processing said at least one input data to produce at least one output data and said generated set of properly formed original keys; operating said cryptographic function, initially with at least one input data and initially with a subset of the input keys, in said forward mode to generate a required missing set of properly formed original keys and combine them in a logical order with said subset of input keys to process said at least one input data, to generate at least one output data and a combined set of keys; operating said cryptographic function in said forward mode, initially with at least one input data and initially with a required set of input keys, to process said at least one input data with said set of required input keys to generate at least one output data; operating said cryptographic function, initially provided with at least one output data and initially provided with said required set of input keys, in a reverse mode to process said at least one output data with said set of required input keys to generate said at least one input data; The method according to claim 1,
5. 5. The method of claim 4, wherein the cryptographic function, when operating in the forward mode, checks the structure of a provided input key prior to processing.
6. 5. The method of claim 4, wherein the cryptographic function, when operating in the reverse mode, checks the structure of a provided input key prior to processing.
7. 5. The method of claim 4, wherein the cryptographic function requests multiple keys, and the cryptographic function sequences the requested original keys in a predetermined order.
8. The method of claim 4 , wherein the cryptographic function comprises a plurality of cryptographic functions.
9. 1. A data processing device, comprising: at least one processor and at least one memory coupled to the at least one processor; the at least one processor running a cryptographic function stored in the memory that requires at least one key; the at least one processor running the cryptographic function comprising: operating said cryptographic function, initially with at least one input data and initially with zero input keys, in a forward mode to generate said required set of properly formed original keys for processing said at least one input data to produce at least one output data and said generated set of properly formed original keys; operating said cryptographic function, initially with at least one input data and initially with a subset of the input keys, in said forward mode to generate a required missing set of properly formed original keys and combine them in a logical order with said subset of input keys to process said at least one input data, to generate at least one output data and a combined set of keys; operating said cryptographic function in said forward mode, initially with at least one input data and initially with a requested set of input keys, and checking the structure of each input key for processing said at least one input data with a validated set of requested input keys to generate at least one output data; operating the cryptographic function, initially with at least one output data and initially with the requested set of input keys, in a reverse mode and checking the structure of each requested input key for processing the at least one output data with the validated set of requested input keys to generate the at least one input data; An apparatus comprising:
10. 10. The apparatus of claim 9, wherein the cryptographic function requests multiple keys, and the cryptographic function sequences the requested original keys in a predetermined order.
11. The apparatus of claim 9 , wherein the cryptographic function comprises a plurality of cryptographic functions.
12. 1. A data processing device, comprising: at least one processor and at least one memory coupled to the at least one processor; the at least one processor running a cryptographic function stored in the memory that requires at least one key; the at least one processor running the cryptographic function comprising: operating said cryptographic function, initially with at least one input data and initially with zero input keys, in a forward mode to generate said required set of properly formed original keys for processing said at least one input data to produce at least one output data and said generated set of properly formed original keys; operating said cryptographic function, initially with at least one input data and initially with a subset of the input keys, in said forward mode to generate a required missing set of properly formed original keys and combine them in a logical order with said subset of input keys to process said at least one input data, to generate at least one output data and a combined set of keys; operating said cryptographic function in said forward mode, initially with at least one input data and initially with a required set of input keys, to process said at least one input data with said set of required input keys to generate at least one output data; operating said cryptographic function, initially provided with at least one output data and initially provided with said required set of input keys, in a reverse mode to process said at least one output data with said set of required input keys to generate said at least one input data; An apparatus comprising:
13. 13. The apparatus of claim 12, wherein the cryptographic function, when operating in the forward mode, checks the structure of a provided input key prior to processing.
14. 13. The apparatus of claim 12, wherein the cryptographic function, when operating in the reverse mode, checks the structure of a provided input key prior to processing.
15. 13. The apparatus of claim 12, wherein the cryptographic function requests multiple keys, and the cryptographic function sequences the requested original keys in a predetermined order.
16. The apparatus of claim 12 , wherein the cryptographic function comprises a plurality of cryptographic functions.
Citation Information
Patent Citations
Methods and systems for process workset isolation
JP2015511050A
Method and system for in-place updating content stored in a storage device
US20060004756A1
Process and Framework For Facilitating Data Sharing Using a Distributed Hypergraph
US20150347480A1
Structured data conversion method
WO2006103777A1
