# Patent

## Title
System and method for establishing a shared secret among nodes of a security appliance

## Abstract

A system and method securely establishes a shared secret among nodes of a security appliance. The shared secret is established by distributing private keys among the nodes in accordance with a node ring protocol that uses a predetermined encryption algorithm to generate messages containing the keys. Briefly, each node is initially notified as to the number of nodes participating in the shared secret establishment. Each node generates a public-private key-pair, as well as a first message that includes the generated public key and an indication of the source of the generated public key (hereinafter “source generated public key”). The node then sends the first message to an adjacent node of the appliance. Upon receiving the first message, each node extracts the source generated public key from the message and stores the extracted information into a data structure of “partner” public keys. The protocol then continues with each node generating additional messages equal to the number of participating nodes minus one. At that point, each node combines its private key with its partner public keys stored in the data structure to generate a value that is common among all of the participating nodes. This common value is then used to derive the shared secret.

## Background
CROSS-REFERENCE TO RELATED APPLICATION
The present invention is related to the following commonly assigned U.S. patent application Ser. No. 10/478,386 titled, Encryption Based Security System for Network Storage, filed May 14, 2003, now U.S. Publication No. 2004-0153642 on Aug. 5, 2004, which application is hereby incorporated by reference.
FIELD OF THE INVENTION
The present invention relates to security appliances and, more specifically, to a technique for securely establishing a shared secret among nodes of a security appliance.
BACKGROUND OF THE INVENTION
A storage system is a computer that provides storage service relating to the organization of information on writable persistent storage devices, such as memories, tapes or disks. The storage system is commonly deployed within a storage area network (SAN) or a network attached storage (NAS) environment. When used within a NAS environment, the storage system may be embodied as a file server including an operating system that implements a file system to logically organize the information as a hierarchical structure of data containers, such as files on, e.g., the disks. Each “on-disk” file may be implemented as a set of data structures, e.g., disk blocks, configured to store information, such as the actual data (i.e., file data) for the file.
The file server, or filer, may be further configured to operate according to a client/server model of information delivery to thereby allow many client systems (clients) to access shared resources, such as files, stored on the filer. Sharing of files is a hallmark of a NAS system, which is enabled because of its semantic level of access to files and file systems. Storage of information on a NAS system is typically deployed over a computer network comprising a geographically distributed collection of interconnected communication links, such as Ethernet, that allow clients to remotely access the information (files) on the filer. The clients typically communicate with the filer by exchanging discrete frames or packets of data according to pre-defined protocols, such as the Transmission Control Protocol/Internet Protocol (TCP/IP).
In the client/server model, the client may comprise an application executing on a computer that “connects” to the filer over a computer network, such as a point-to-point link, shared local area network, wide area network or virtual private network implemented over a public network, such as the Internet. NAS systems generally utilize file-based access protocols; therefore, each client may request the services of the filer by issuing file system protocol messages (in the form of packets) to the file system over the network identifying one or more files to be accessed without regard to specific locations, e.g., blocks, in which the data are stored on disk. By supporting a plurality of file system protocols, such as the conventional Common Internet File System (CIFS) and the Network File System (NFS) protocols, the utility of the filer may be enhanced for networking clients.
A SAN is a high-speed network that enables establishment of direct connections between a storage system and its storage devices. The SAN may thus be viewed as an extension to a storage bus and, as such, an operating system of the storage system enables access to stored data using block-based access protocols over the “extended bus”. In this context, the extended bus is typically embodied as Fibre Channel (FC) or Ethernet media adapted to operate with block access protocols, such as Small Computer Systems Interface (SCSI) protocol encapsulation over FC (e.g., FCP) or TCP (iSCSI).
SCSI is a peripheral input/output (I/O) interface with a standard, device independent protocol that allows different peripheral devices, such as disks, to attach to a storage system. In SCSI terminology, clients operating in a SAN environment are “initiators” that initiate commands and requests to access data. The storage system is thus a “target” configured to respond to the data access requests issued by the initiators in accordance with a request/response protocol. The initiators and targets have endpoint addresses that, in accordance with the FC protocol, comprise worldwide names (WWN). A WWN is a unique identifier, e.g., a node name or a port name, consisting of an 8-byte number.
A SAN arrangement or deployment allows decoupling of storage from the storage system, such as an application server, and some level of information storage sharing at the storage system level. There are, however, environments wherein a SAN is dedicated to a single storage system. In some SAN deployments, the information is organized in the form of databases, while in others a file-based organization is employed. Where the information is organized as files, the client requesting the information maintains file mappings and manages file semantics, while its requests (and storage system responses) address the information in terms of block addressing on disk using, e.g., a logical unit number (lun).
A network environment may be provided wherein information (data) is stored in secure storage served by one or more storage systems coupled to one or more security appliances. Each security appliance is configured to transform unencrypted data (cleartext) generated by clients into encrypted data (ciphertext) destined for secure storage or “cryptainers” on the storage system. As used herein, a cryptainer is a piece of storage on a storage device, such as a disk, in which the encrypted data is stored. In the context of a SAN environment, a cryptainer can be, e.g., a disk, a region on the disk or several regions on one or more disks that, in the context of a SAN protocol, is accessible as a lun. In the context of a NAS environment, the cryptainer may be a collection of files on one or more disks. Specifically, in the context of the CIFS protocol, the cryptainer may be a share, while in the context of the NFS protocol, the cryptainer may be a mount point. In a tape environment, the cryptainer may be a tape containing a plurality of tape blocks.
Each cryptainer is associated with its own encryption key, e.g., a cryptainer key, which is used by the security appliance to encrypt and decrypt the data stored on the cryptainer. An encryption key is a code or number which, when taken together with an encryption algorithm, defines a unique transformation used to encrypt or decrypt data. Data remains encrypted while stored in a cryptainer until requested by an authorized client. At that time, the security appliance retrieves the encrypted data from the cryptainer, decrypts it and forwards the unencrypted data to the client.
Often, the security appliance is configured with a plurality of nodes, e.g., processors, each of which is configured to perform encryption and decryption operations for the security appliance. Each node typically has no knowledge of the other nodes within the security appliance; however, the nodes may be required to share a secret. Accordingly, a technique is needed to securely enable each node to a share a secret. In addition, a technique is needed to securely introduce the shared secret to each node of the security appliance.
SUMMARY OF THE INVENTION
The disadvantages of the prior art are overcome by providing a system and method for securely establishing a shared secret among nodes of a security appliance. The shared secret is established by distributing private keys among the nodes in accordance with a node ring protocol that uses a predetermined encryption algorithm to generate messages containing only public information about the keys. Briefly, each node is initially notified as to the number of nodes participating in the shared secret establishment. Each node generates a public private key pair, as well as a first message that includes the public key of the generated key pair and an indication of the source of the generated private key (hereinafter “source generated public key”). The node then sends the first message to an adjacent node of the appliance. Upon receiving the first message, each node extracts the source generated public key from the message and locally stores the extracted information, e.g., in a data structure of “partner” keys.
Each node then combines its own private key with the public information received from the first message and generates a second message that includes the source generated public key combination. The node sends the second message to its adjacent node of the appliance, which extracts the key combination and locally stores the added source generated public key of the combination. The protocol then continues with each node generating additional messages equal to the number of participating nodes minus one, wherein each additional message combines the local private key of each node with the additional public information keys received from the additional messages. As the final step, each node combines its own private key with the stored partner information and public key combinations to generate a value that is common among all of the participating nodes. This common value is then used to derive the shared secret.



BRIEF DESCRIPTION OF THE DRAWINGS
The above and further advantages of the invention may be better understood by referring to the following description in conjunction with the accompanying drawings in which like reference numerals indicate identical or functionally similar elements:
FIG. 1 is a schematic block diagram of an environment including a multi-protocol security appliance that may be advantageously used with the present invention;
FIG. 2 is a schematic block diagram of the multi-protocol security appliance that may be advantageously used with the present invention;
FIG. 3 is a schematic diagram illustrating an arrangement of software processes and modules executing on the security appliance in accordance with the present invention;
FIGS. 4A-E are schematic diagrams illustrating a node ring protocol in accordance with the present invention.



DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT
FIG. 1 is a schematic block diagram of an environment 100 including a multi-protocol security appliance 200 that may be advantageously used with the present invention. The security appliance 200 is coupled between one or more clients 102 and one or more storage systems 110, such as an application server or filer. The security appliance 200, which is configured to act as an encryption proxy, intercepts a data access request issued by client 102 and destined for the storage system 110, wherein the data access request may be a read request to retrieve certain data stored on storage devices, such as disks 120, coupled to the storage system 110 or a write request to store data on the disks. In the case of a write request, the security appliance 200 intercepts the request, encrypts the data associated with the request and forwards the encrypted data to the storage system 110 for storage at a specified location (address) on disk 120. In the case of a read request, the security appliance intercepts the request and forwards it onto the storage system, which returns the requested data to the appliance in encrypted form. The security appliance 200 then decrypts the encrypted data and returns the decrypted data to the client 102.
In the illustrative embodiment, the security appliance employs a conventional encryption algorithm, e.g., the Advanced Encryption Standard (AES) or other appropriate algorithms, to transform unencrypted data (cleartext) generated by the clients 102 into encrypted data (ciphertext) intended for secure storage, i.e., one or more cryptainers, on the storage system 110. To that end, the security appliance illustratively uses a high-quality, software or hardware-based pseudo random number generation technique to generate encryption keys. The encryption and decryption operations are performed using these encryptions keys, such as a cryptainer key associated with each cryptainer. As described herein, the security appliance 200 uses an appropriate cryptainer key to encrypt or decrypt portions of data stored in a particular cryptainer. In addition to performing encryption and decryption operations, the security appliance 200 also performs access control, authentication, virtualization, and secure-logging operations.
FIG. 2 is a schematic block diagram of the multi-protocol security appliance 200 that may be advantageously used with the present invention. As used herein, a security appliance denotes a computer having features such as simplicity of security service management for users (system administrators) and clients of network attached storage (NAS) and storage area network (SAN) deployments. The security appliance comprises one or more processors, e.g., central processing units (CPU 220a,b), a memory 210, one or more network adapters 220a,b, and one or more storage encryption processors (SEP 390,b) interconnected by a system bus 240, such as a conventional Peripheral Component Interconnect (PCI) bus. The PCI bus implements conventional bus arbitration and contention management functionality among the plurality of SEPs 390. Each SEP 390 is configured to perform all encryption and decryption operations for the security appliance in a secure manner; for example, the SEP is configured to protect plaintext encryption keys from system software executing on each CPU 202. Accordingly, the SEP is illustratively embodied as a FIPS 140-2 level-3 certified module that is epoxy-potted onto a dedicated interface card or other similar card.
The network adapters 220 couple the security appliance 200 between one or more clients 102 and one or more storage systems 110 over point-to-point links, wide area networks, virtual private networks implemented over a public network (Internet) or shared local area networks. In a SAN environment configured to support various Small Computer Systems Interface (SCSI)-based data access protocols, including SCSI encapsulated over TCP (iSCSI) and SCSI encapsulated over FC (FCP), the network adapters 220 may comprise host bus adapters (HBAs) having the mechanical, electrical and signaling circuitry needed to connect the appliance 200 to, e.g., a FC network. In a NAS environment configured to support, e.g., the conventional Common Internet File System (CIFS) and the Network File System (NFS) data access protocols, the network adapters 220 may comprise network interface cards (NICs) having the mechanical, electrical and signaling circuitry needed to connect the appliance to, e.g., an Ethernet network.
The memory 210 illustratively comprises storage locations that are addressable by the processors and adapters for storing software programs and data structures, such as node table, associated with the present invention. The processor and adapters may, in turn, comprise processing elements and/or logic circuitry configured to execute the software programs and manipulate the data structures. An operating system 212, portions of which is typically resident in memory and executed by the processing elements, functionally organizes the appliance 200 by, inter alia, invoking security operations in support of software processes and/or modules implemented by the appliance. It will be apparent to those skilled in the art that other processing and memory means, including various computer readable media, may be used for storing and executing program instructions pertaining to the invention described herein.
The operating system 212 illustratively organizes the memory 210 into an address space arrangement available to the software processes and modules executing on the processors. FIG. 3 is a schematic diagram illustrating an arrangement 300 of software processes and modules executing on the security appliance 200 in accordance with the present invention. In the illustrative embodiment, the operating system software is a customized version of a Unix type operating system, although other operating systems may be used.
For both NAS and SAN environments, data is received at a proxy 320 of the security appliance. The proxy 320 is illustratively embodied as, e.g., the network protocol stack configured to interpret the protocol over which data is received and to enforce certain access control rules based on one or more policies. Each policy is served by a box manager 360 that is illustratively embodied as a database application process configured to manage a configuration repository or database (Config DB 370) that stores permissions, access control lists (ACLs), system-wide settings and encrypted keys. A socket server 380 provides interfaces to the box manager 360, including (i) an HTTP web interface 382 embodied as, e.g., a graphical user interface (GUI) adapted for web-based administration, (ii) a SSH interface 384 for command line interface (CLI) command administration, and (iii) an SNMP interface 386 for remote management and monitoring.
Specifically, the box manager 360 supplies the permissions and encrypted keys to the proxy 320, which intercepts data access requests and identifies the sources (clients 102) of those requests, as well as the types of requests and the storage targets (cryptainers) of those requests. The proxy also queries the box manager for permissions associated with each client and, in response, the box manager 360 supplies the appropriate permissions and encrypted key (e.g., a cryptainer key). The proxy 320 then bundles the data together with the encrypted key and forwards that information to a crypto process (layer) 330 that functions as a “wrapper” for the SEP 390. As noted, the SEP resides on an interface card, which is hereinafter referred to a data crypto card (DCC 340).
The crypto layer 330 interacts with the DCC 340 by accessing (reading and writing) registers on the DCC and, to that end, functions as a PCI interface. Illustratively, a descriptor queue is used by the crypto layer to access the DCC by, e.g., supplying starting and ending points of data, as well as offsets into the data and the encrypted keys used to encrypt the data. The DCC 340 includes one or more previously loaded keys used to decrypt the supplied encrypted keys; upon decrypting an encrypted key, the DCC uses the decrypted key to encrypt the supplied data. Upon completion of encryption of the data, the DCC returns the encrypted data as ciphertext to the proxy 320, which forwards the encrypted data to the storage system 110.
Notably, the security appliance 200 “virtualizes” storage such that, to a client 102, the appliance appears as a storage system 110 whereas, from the perspective of the storage system, the security appliance appears as a client. Such virtualization requires that security appliance manipulate (IP) addresses with respect to data access requests and responses. Illustratively, certain of the customizations to the network protocol stack of the proxy 320 involve virtualization optimizations provided by the appliance. For example, the security appliance 200 manipulates (changes) the source and destination IP addresses of the data access requests and responses.
As noted, the security appliance may be configured with a plurality of SEPs or nodes, each of which has no knowledge of the other nodes. However, each node may be required to share a secret, such as a key encrypting key, with the other nodes of the security appliance. Moreover, it is desirable that the nodes establish and share the secret in a secure manner.
The present invention is directed to a system and method for securely establishing a shared secret among nodes of a security appliance. The shared secret is established by distributing ephemeral, i.e., transitory and short lived, public information among the nodes in accordance with a node ring protocol that uses a predetermined encryption algorithm to generate messages containing public information about the keys. It should be noted that topologies other than node rings may be utilized in accordance with alternate embodiments of the present invention. Briefly, each node is initially notified as to the number of nodes participating in the shared secret establishment. Each node generates an ephemeral public private key pair, as well as a first message that includes the generated public key and an indication of the source of message (hereinafter “source generated public key”). The node then sends the first message to an adjacent node of the appliance. Upon receiving the first message, each node extracts the source ID and generated public key from the message and locally stores the extracted information, e.g., in a data structure of private “partner” keys.
Each node then combines its private key with the ephemeral public information received from the first message and generates a second message that includes this new source generated public key combination. The node sends the second message to its adjacent node of the appliance, which extracts the key combination and locally stores the added source generated public key of the combination. The protocol then continues with each node generating additional messages equal to the number of participating nodes minus one, wherein each additional message includes the source generated public information for each node combined with additional pubic information received from the additional messages. As the final step, each node combines its private key with its locally stored ephemeral partner public information to generate a value that is common among all of the participating nodes. This common value is then used to derive the shared secret.
FIGS. 4A-E are schematic diagrams illustrating the node ring protocol in accordance with the present invention. In the illustrative embodiment, the security appliance contains a plurality of (four) nodes, wherein each node is a SEP, e.g., SEPs1-4. Distribution of the private keys among the SEPs is performed in a secure Federal Information Processing Standard (FIPS)-certified manner and, to that end, the node ring protocol is illustratively a generalized version of the conventional Diffie-Hellman (DH) public key algorithm. The DH algorithm is well-known and disclosed in Network Security, Private Communication in a Public World, by C. Kaufman et al., Prentice Hall PTR, (1995) at pgs 147-152, which disclosure is hereby incorporated by reference.
Referring to FIG. 4A, the messages generated in accordance with the node protocol use a DH group of numbers p and g, wherein p is a prime and g is a number less than p. Each SEP generates a random secret (private key), such that SEP1 generates private key a, SEP2 generates private key b, SEP3 generates private key c, and SEP4 generates private key d. In FIG. 4B, each SEP uses the DH group to generate a first message that includes its public key and an indication of the source of that key (hereinafter “source generated key”). Illustratively, the message embodies the form of gX mod p, wherein X is the source generated key (or source generated key combination).
The SEP then sends (transmits) the first message to an adjacent SEP of the appliance. For example, SEP1 generates and transmits a first message ga mod p to SEP2, which generates and transmits a first message gb mod p to SEP3. Note that the generation and transmission of first (and subsequent) messages among the SEPs may occur substantially in parallel, although this is not a requirement of the invention. Upon receiving the first message, each node extracts the source generated key from the message and locally stores the extracted key information. That is, for instance, SEP2 extracts SEP1's private key a and locally stores that key, e.g., in a data structure of private “partner” keys. In the illustrative embodiment, the data structure is embodied as node table 215.
In FIG. 4C, each SEP combines its own private key with the public partner key received from the first message and generates a second message that includes the source generated key combination. For example, SEP3 generates and transmits a second message gcb mod p to SEP4, which generates and transmits a second message gdc mod p to SEP1. Upon receiving the second message, each node extracts the key combination and locally stores the added source generated key of the combination. For instance, SEP4 extracts and locally stores the added source generated key b (i.e., the private key generated by SEP2). In FIG. 4D, each SEP combines its private key with the public partner keys received from the first and second messages, and generates a third message that includes the source generated key combination. For example, SEP2 generates and transmits a third message gbad mod p to SEP3, which generates and transmits a third message gcba mod p to SEP4. Upon receiving the third message, each node extracts the added source generated key from the message and locally stores the extracted key information.
In FIG. 4E, each SEP then combines its private key with the partner information received from the first, second and third messages to generate a value that is common among all of the participating SEPs. Notably, this common value comprises the exponent of the quantity g. For example, SEP1 combines its private key with the public partner keys to generate gadcb mod p, SEP2 combines its private key with the public partner keys to generate gbadc mod p, SEP3 combines its private key with the public partner keys to generate gcbad mod p, and SEP4 combines its private key with the public partner keys to generate gdcba mod p. According to exponent arithmetic, the order of exponents do not matter, e.g., gadcb=gbadc=gcbad=gdcba. According to the invention, this common value is then used to derive the shared secret.
Advantageously, the novel node ring protocol provides a method for securely establishing a shared secret among SEPs of the security appliance. In the illustrative embodiment described herein, the shared secret may be used by the SEPs as a key encrypting key to facilitate sharing of other keys among the SEPs. That is, the novel protocol ensures that each SEP can derive the same ignition key IG1 without knowing the shared secret beforehand. Moreover, the exchange of messages as defined by the node ring protocol occurs in a secure manner that does not compromise the integrity of the resulting common value. In other words, even if an attacker intercepts all of the messages exchanged among the SEPs participating in the shared secret establishment, the attacker would not have enough information to be able to derive the common value as the private parts are ephemeral and are cleared at the completion of the process.
While there has been shown and described an illustrative embodiment of a system and method for securely establishing a shared secret among nodes of a security appliance, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the invention. For example, in an alternate embodiment, the node ring protocol may be used to establish an authentication key as well as a shared ignition key. That is, in addition to establishing ignition key IG1 used for encryption (of master key MK), the protocol may be used to establish an authentication key used for communication among any pairs of the participating SEPs. For example, if two SEPs decide to change the common value used to derive the ignition key IG1, the SEPs may establish a secure channel using the authentication key, and one of the SEPs may generate a new random secret value and send that value over the channel to the other SEP.
The foregoing description has been directed to specific embodiments of this invention. It will be apparent, however, that other variations and modifications may be made to the described embodiments, with the attainment of some or all of their advantages. For instance, it is expressly contemplated that the procedures, processes, layers and/or modules described herein may be implemented in hardware, software, embodied as a computer-readable medium having executable program instructions, firmware, or a combination thereof. Accordingly this description is to be taken only by way of example and not to otherwise limit the scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.

## Claims

1. A method for securely establishing a shared secret among a plurality of nodes of a security appliance, the method comprising:
notifying each node as to a number of nodes participating in shared secret establishment;
generating a private key at each node of the plurality of nodes, wherein each node of the plurality of nodes is configured to send messages containing ephemeral public information to only a first adjacent node and receive messages containing ephemeral public information from only a second adjacent node, wherein the first and second adjacent nodes for each node are different nodes within the plurality of nodes;
generating an initial message at each node that includes ephemeral public information associated with the generated private key, and an indication of a source of the generated private key;
sending the initial message from each node to each node's first adjacent node of the plurality of nodes;
receiving at each node messages generated and sent from each node's second adjacent node;
storing the received generated private key in a data structure at each node;
in response to each received message containing ephemeral public information, generating a new message with new ephemeral public information at each node by combining the received ephemeral public information with that node's generated private key;
in response to generating a new message, sending the new message to each node's first adjacent node until x−1 messages have been received at each node from each node's second adjacent node, where x is the number of nodes participating in the shared secret;
wherein once x−1 messages have been received from each node's second adjacent node at each node, the value obtained by combining private key of each node with the new ephemeral public information is a common value among all of the nodes in the plurality of nodes; and
deriving the shared secret using the common value.

2. The method of claim 1 wherein generating a message comprises generating a message using a predetermined encryption algorithm.

3. The method of claim 2 wherein the predetermined encryption algorithm is a generalized version of a Diffie-Hellman public key algorithm.

4. The method of claim 1 wherein sending further comprises sending additional messages from the node to the adjacent node.

5. The method of claim 4 wherein combining comprises extracting the additional public keys from the additional messages at each node.

6. The method of claim 5 wherein storing comprises storing the extracted additional public keys in the data structure at each node.

7. The method of claim 6 wherein the data structure is a node table.

8. The method of claim 6 wherein the value common to all of the nodes is generated by combining the private key generated by each node with the additional public keys received from all of the additional messages.

9. The method of claim 1 wherein each node comprises a secure encryption processor.

10. The method of claim 1 further comprising utilizing the shared secret as a key encrypting key to facilitate distribution of at least one encryption key among the plurality of nodes.

11. A non-transitory computer readable medium containing executable program instructions executed by a processor, comprising:
program instructions that notify each node as to a number of nodes participating in shared secret establishment;
program instructions that generate a private key at each node of the plurality of nodes, wherein each node of the plurality of nodes is configured to send messages containing ephemeral public information to only a first adjacent node and receive messages containing ephemeral public information from only a second adjacent node, wherein the first and second adjacent nodes for each node are different nodes within the plurality of nodes;
program instructions that generate an initial message at each node that includes ephemeral public information associated with the generated private key and an indication of a source of the generated private key;
program instructions that send the initial message from each node to each node's first adjacent node of the plurality of nodes;
program instructions that receive at each node messages generated and sent from each node's second adjacent node;
program instructions that store the received generated private key in a data structure at each node;
program instructions that generate a new message with new ephemeral public information at each node by combining the received ephemeral public information with that node's generated private key in response to each received message containing ephemeral public information;
program instructions that send the new message to each node's first adjacent node until x−1 messages have been received at each node from each node's second adjacent node, where x is the number of nodes participating in the shared secret, in response to generating a new message;
wherein once x−1 messages have been received from each node's second adjacent node at each node, the value obtained by combining private key of each node with the new ephemeral public information is a common value among all of the nodes in the plurality of nodes; and
program instructions that derive the shared secret using the common value.

12. The computer readable medium of claim 11 wherein each node comprises a secure encryption processor.

13. The computer readable medium of claim 11 further comprising utilizing the shared secret as a key encrypting key to facilitate distribution of at least one encryption key among the plurality of nodes.

14. An apparatus configured to securely establishing a shared secret, the system comprising:
a plurality of nodes operative interconnected with each other, wherein each node of the plurality of nodes is configured to send messages containing ephemeral public information to only a first adjacent node and receive messages containing ephemeral public information from only a second adjacent node, wherein the first and second adjacent nodes for each node are different nodes within the plurality of nodes;
wherein each of the nodes is further configured to:
receive notification as to a number of nodes participating in shared secret establishment,
generate a private key at each node,
generate an initial message at each node that includes ephemeral public information associated with the generated private key and an indication of a source of the generated private key,
send the initial message from each node to each node's first adjacent node of the plurality of nodes,
receive at each node messages generated and sent from each node's second adjacent node,
store the received generated private key in a data structure at each node,
generate a new message with new ephemeral public information at each node by combining the received ephemeral public information with that node's generated private key in response to each received message containing ephemeral public information,
send the new message to each node's first adjacent node until x−1 messages have been received at each node from each node's second adjacent node, where x is the number of nodes participating in the shared secret, in response to generating a new message,
wherein once x−1 messages have been received from each node's second adjacent node at each node, the value obtained by combining private key of each node with the new ephemeral public information is a common value among all of the nodes in the plurality of nodes, and
derive the shared secret using the common value.

15. The apparatus of claim 14 wherein each node is further configured to generate a message using a predetermined encryption algorithm.

16. The apparatus of claim 15 wherein the predetermined encryption algorithm is a generalized version of a Diffie-Hellman public key algorithm.