CA2988628C - Methods and computer program products for encryption key generation and management - Google Patents

Methods and computer program products for encryption key generation and management Download PDF

Info

Publication number
CA2988628C
CA2988628C CA2988628A CA2988628A CA2988628C CA 2988628 C CA2988628 C CA 2988628C CA 2988628 A CA2988628 A CA 2988628A CA 2988628 A CA2988628 A CA 2988628A CA 2988628 C CA2988628 C CA 2988628C
Authority
CA
Canada
Prior art keywords
key
seed
encryption
bit
bit sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CA2988628A
Other languages
French (fr)
Other versions
CA2988628A1 (en
Inventor
En-Hui Yang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bicdroid Inc
Original Assignee
Bicdroid Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US14/737,940 external-priority patent/US9619667B2/en
Application filed by Bicdroid Inc filed Critical Bicdroid Inc
Publication of CA2988628A1 publication Critical patent/CA2988628A1/en
Application granted granted Critical
Publication of CA2988628C publication Critical patent/CA2988628C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0894Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
    • H04L9/0897Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage involving additional devices, e.g. trusted platform module [TPM], smartcard or USB
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/41User authentication where a single sign-on provides access to a plurality of computers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/062Network architectures or network communication protocols for network security for supporting key management in a packet data network for key distribution, e.g. centrally by trusted party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/12Transmitting and receiving encryption devices synchronised or initially set up in a particular manner

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Storage Device Security (AREA)

Abstract

The described embodiments relate to encryption methods and computer program products. An encryption application is used to determine a keystore seed with a seed bit set having seed bits in an ordered sequence. A plurality of key derivation sets are determined and a selected key derivation set is selected randomly. A key bit sequence is generated from the seed bit set using the selected key derivation set. An encryption key is generated using the key bit sequence, and corresponding keying information is determined from the selected key derivation set such that the latter is also derivable from the former. The keying information discloses zero information about the encryption key absent knowledge of the keystore seed. Plain text data is encrypted using the encryption key to generate cipher text data, and the keying information is stored with the cipher text data. The encryption key may then be deleted.

Description

TITLE: METHODS AND COMPUTER PROGRAM PRODUCTS FOR
ENCRYPTION KEY GENERATION AND MANAGEMENT
[0001] (Paragraph deleted) FIELD
[0002] Embodiments of the present invention relate generally to data protection and encryption, and more specifically to methods and computer program products for generating and managing encryption keys.
BACKGROUND
[0003] As people become more reliant on computing and Internet technologies, data security is becoming more important than ever. In applications of data storage and communications, such as cloud storages and wireless sensor networks, data encryption is critical to the protection of privacy and sensitive information.
[0004] With Internet connections becoming ubiquitous, it is relatively easy to access and distribute data widely through the use of clouds. To enjoy the benefits of cloud computing, people and companies often upload their data to cloud servers. This often includes private or confidential data, or any data a user might want to protect. This increases the chance for private and important data to become unnecessarily exposed if it is left unprotected.
[0005] Typically, people rely on cloud service providers to ensure the security of their data. However, cloud storage may have a number of associated security vulnerabilities. In its 2013 report ("The notorious nine:
Cloud computing top threats in 2013,"
http://www.cloudsecurityalliance.orq/topthreats), the Cloud Security Alliance identified nine top security threats to cloud computing including data breaches, data loss, malicious insiders, and shared technology issues. Such data security issues are undesirable, and may slow the uptake of cloud services.
[0006] One way to mitigate data security issues is by way of encryption.
For example, stand-alone tools such as Winzip and secure PDF may be used to encrypt files before those files are saved and stored, uploaded, and/or transmitted. Without the corresponding decryption key, the encrypted file may not be meaningful.
[0007] Using stand-alone tools such as Winzip and secure PDF to encrypt multiple files in a folder, however, has several drawbacks. For example, a user may be required to input a password to encrypt every file, and to input a corresponding password to decrypt the encrypted file for viewing and/or modification. When the number of files increases, this approach becomes tedious and is not user-friendly. As well, the user may easily become confused about which password decrypts which file if different passwords are used to encrypt different files.
[0008] Furthermore, the encryption strength in these examples depends on how strong the passwords chosen by the user are. Because of the difficulty users experience in coming up with and memorizing strong random passwords, they tend to choose weaker passwords, and the resulting encryption can often be weak. As a result, files encrypted using stand-alone tools may still be vulnerable to sophisticated attacks. Furthermore, if passwords are forgotten or lost, it may be difficult or impossible to recover the original plaintext files from the encrypted files. This effectively results in a permanent loss of data. Finally, when files are encrypted using stand-alone tools, sharing encrypted files among a group of people can be tedious and often requires the use of side channels to exchange passwords.
[0009] In large scale information systems, key management including key generation, exchange and maintenance of secrecy of the secret keys, becomes even more difficult. As such, it is desirable to develop a solution to mitigate key management challenges while achieving strong security in some information theoretic sense.
SUMMARY
[0010] In accordance with an embodiment described herein, there is provided an encryption method. The encryption method may include providing an encryption application for installation on a computing device; operating the encryption application to determine a keystore seed having a seed bit set with L seed bits in an ordered sequence where L is an integer greater than 3, where each seed bit in the seed bit set has a seed bit position in the ordered sequence, and the L seed bits in the seed bit set are independent and identically distributed; and storing the keystore seed on the computing device using the encryption application. The method may further include operating the encryption application to determine a plurality of key derivation sets, where each key derivation set includes at least one key derivation value;
randomly selecting a selected key derivation set from the plurality of key derivation sets; and operating the encryption application to generate a key bit sequence having 1 bits from the seed bit set and the selected key derivation set, where 1 is a positive integer less than L. The method may further include generating an encryption key having u bits using the key bit sequence, where u is a positive integer not greater than /; determining keying information corresponding to the encryption key, the keying information being determined from the selected key derivation set, where the selected key derivation set is derivable from the keying information and where a mutual information amount between the encryption key and the keying information is zero such that the encryption key and the keying information are statistically independent, and the keying information can disclose zero information about the encryption key absent knowledge of the keystore seed. The method may further include receiving, by the encryption application, plaintext data; operating the encryption application to generate ciphertext data by encrypting the plaintext data using the encryption key; and storing the ciphertext data and the corresponding keying information using the encryption application.
[0011] In some embodiments, the method may further include receiving second ciphertext data at the computing device; receiving second keying information at the computing device, the second keying information corresponding to the second ciphertext data and to the keystore seed;
determining by the encryption application, a second key derivation set from the second keying information; generating a second key bit sequence having /
bits from the seed bit set and the second key derivation set; generating a second encryption key having u bits using the second key bit sequence, where u is less than or equal to /; and generating second plaintext data by decrypting the second ciphertext data using the second encryption key.
[0012] In some embodiments, the at least one key derivation value in each key derivation set may include a set oft distinct seed bit positions in the ordered sequence, and the plurality of key derivation sets can be determined to include all possible sets of t distinct seed bit positions in the ordered sequence, where t is a integer greater than or equal to 1.
[0013] In some embodiments, generating the key bit sequence having /
bits from the seed bit set and the selected key derivation set may include determining a plurality of derived seed bit sequences from the seed bit set, the plurality of derived seed bit sequences including one derived seed bit sequence for each of the t distinct seed bit positions in the selected key derivation set, where each derived seed bit sequence includes / consecutive bits from the seed bit set, and the / consecutive bits for each derived seed bit sequence begin from the seed bit having the seed bit position equal to the corresponding distinct seed bit position in the selected key derivation set and includes the / ¨ 1 successive seed bits in a cycle of the ordered sequence;
and determining the key bit sequence as a linear function of the derived seed bit sequences in the plurality of derived seed bit sequences.
[0014] In some embodiments, generating the key bit sequence having I
bits from the seed bit set and the selected key derivation set may include generating the key bit sequence k(m1,m2, ===,mt) according to k(mi, m2, === , mt) = K(mi)K(mi + 1) === K(mi + 1 ¨ 1) i=t where each derived seed bit sequence is determined by K(mi)K(mi +
1) === K(mi +I¨ 1) and the selected key derivation set is defined as 0 < m1 <
m2 < === < mt L ¨ 1.
[0015] In some embodiments, each key derivation set may be a binary matrix of size I x L with rank of I, and the plurality of key derivation sets can be determined to include a plurality of binary matrices of size I x L with rank of 1 such that the module 2 addition of any two of the binary matrices in the plurality of binary matrices is also of rank I.
[0016] In some embodiments, generating the key bit sequence having 1 bits from the seed bit set and the selected key derivation set may include generating a key column vector of dimension I by multiplying the selected key derivation set as a binary matrix of size 1 x L by the keystore seed defined as a seed column vector of dimension L; and determining the key bit sequence as the key column vector.
[0017] In some embodiments, generating the key bit sequence having 1 bits from the seed bit set and the selected key derivation set can include generating the key bit sequence k according to kT = AKT
where the selected key derivation set is the binary matrix A of size I x L
with rank of I, K = (K (0), K(1), ===, K (L ¨ 1)) is a seed row vector of dimension L
including the seed bits at their seed bit position in the ordered sequence, KT

is the transpose of K and kT is the transpose of k.
[0018] In some embodiments, generating the encryption key having u bits using the key bit sequence may include determining the encryption key to be the key bit sequence.
[0019] In some embodiments, generating the encryption key having u bits using the key bit sequence may include determining a hashed key bit sequence by applying a hash function to the key bit sequence; and determining the encryption key to be the hashed key bit sequence.
[0020] In some embodiments, the method may further include providing the encryption application for installation on a second computing device;
operating the encryption application on the second computing device to determine the keystore seed having the seed bit set; storing the keystore seed having the seed bit set on the second computing device using the encryption application; receiving at the second computing device the ciphertext data and the keying information; operating the encryption application on the second computing device to determine the selected key derivation set from the keying information; operating the encryption application on the second computing device to determine the key bit sequence from the seed bit set stored on the second computing device and the selected key derivation set; operating the encryption application on the second computing device to generate the encryption key using the key bit sequence; and operating the encryption application on the second computing device to generate the plaintext data by decrypting the ciphertext data using the encryption key.
[0021] In some embodiments, the method may further include deleting the encryption key and the key bit sequence from the computing device each time after a particular ciphertext data is generated or decrypted.
[0022] In accordance with an embodiment described herein, there is provided a computer program product including a computer readable medium having computer executable instructions stored thereon, the instructions for configuring a processor of a computing device to: determine a keystore seed having a seed bit set with L seed bits in an ordered sequence where L is an integer greater than 3, where each seed bit in the seed bit set has a seed bit position in the ordered sequence, and the L seed bits in the seed bit set are independent and identically distributed; store the keystore seed on the computing device; determine a plurality of key derivation sets, each key derivation set including at least one key derivation value; randomly select a selected key derivation set from the plurality of key derivation sets;
generate a key bit sequence having 1 bits from the seed bit set and the selected key derivation set, where 1 is a positive integer less than L; generate an encryption key having u bits using the key bit sequence, where u is a positive integer not greater than /; determine keying information corresponding to the encryption key, the keying information being determined from the selected key derivation set, where the selected key derivation set is derivable from the keying information and a mutual information amount between the encryption key and the keying information is zero such that the encryption key and the keying information are statistically independent, and the keying information discloses zero information about the encryption key absent knowledge of the keystore seed; receive plaintext data; generate ciphertext data by encrypting the plaintext data using the encryption key; and store the ciphertext data and the corresponding keying information.
[0023] In some embodiments, the computer program product may further include instructions for configuring the processor to: receive second ciphertext data at the computing device; receive second keying information at the computing device, the second keying information corresponding to the second ciphertext data and to the keystore seed; determine a second key derivation set from the second keying information; generate a second key bit sequence having / bits from the seed bit set and the second key derivation set; generate a second encryption key having u bits using the second key bit sequence, where u is less than or equal to /; and generate second plaintext data by decrypting the second ciphertext data using the second encryption key.
[0024] In some embodiments, the at least one key derivation value in each key derivation set can include a set of t distinct seed bit positions in the ordered sequence, and the plurality of key derivation sets can be determined to include all possible sets of t distinct seed bit positions in the ordered sequence, where t is an integer greater than or equal to 1.
[0025] In some embodiments, the computer program product may further include instructions for configuring the processor to: generate the key bit sequence having / bits from the seed bit set and the selected key derivation set by: determining a plurality of derived seed bit sequences from the seed bit set, the plurality of derived seed bit sequences including one derived seed bit sequence for each of the t distinct seed bit positions in the selected key derivation set, where each derived seed bit sequence includes /
consecutive bits from the seed bit set, and the / consecutive bits for each derived seed bit sequence begin from the seed bit having the seed bit position equal to the corresponding distinct seed bit position in the selected key derivation set and includes the / ¨ 1 successive seed bits in a cycle of the ordered sequence; and determining the key bit sequence as a linear function of the derived seed bit sequences in the plurality of derived seed bit sequences.
[0026] In some embodiments, the computer program product may further include instructions for configuring the processor to: generate the key bit sequence having / bits from the seed bit set and the selected key derivation set by generating the key bit sequence k(mi, m2, === , mt) according to k(mi, m2, === , mt) =
K(mi)K(mi + 1) === K(mi + 1 ¨ 1) where each derived seed bit sequence is determined by K (mi)K (mi +
1) === K(mi + 1¨ 1) and the selected key derivation set is defined as 0 < m1 <

m2 < === < mt < L ¨ 1.
[0027] In some embodiments, each key derivation set may be a binary matrix of size lx L with rank of 1, and the plurality of key derivation sets can be determined to include a plurality of binary matrices of size Ix L with rank of 1 such that the module 2 addition of any two of the binary matrices in the plurality of binary matrices is also of rank 1.
[0028] In some embodiments, the computer program product may further include instructions for configuring the processor to: generate the key bit sequence having 1 bits from the seed bit set and the selected key derivation set by: generating a key column vector of dimension 1 by multiplying the selected key derivation set as a binary matrix of size Ix L by the keystore seed defined as a seed column vector of dimension L; and determining the key bit sequence as the key column vector.
[0029] In some embodiments, the computer program product may further include instructions for configuring the processor to: generate the key bit sequence having 1 bits from the seed bit set and the selected key derivation set by generating the key bit sequence k according to kT = AKT
where the selected key derivation set is the binary matrix A of size Ix L with rank of 1, K= (0), K(1),=== , K(L ¨ 1)) is a row vector of dimension L
including the seed bits at their seed bit position in the ordered sequence, KT
is the transpose of K and kT is the transpose of k.
[0030] In some embodiments, the computer program product may further include instructions for configuring the processor to: generate the encryption key having u bits using the key bit sequence by determining the encryption key to be the key bit sequence.
[0031] In some embodiments, the computer program product may further include instructions for configuring the processor to: generate the encryption key having u bits using the key bit sequence by: determining a hashed key bit sequence by applying a hash function to the key bit sequence;
and determining the encryption key to be the hashed key bit sequence.
[0032] In some embodiments, the computer program product may further include instructions for configuring a second processor of a second computing device to: determine the keystore seed having the seed bit set at the second computing device; store the keystore seed having the seed bit set on the second computing device; receive at the second computing device the ciphertext data and the keying information; determine the selected key derivation set from the keying information at the second computing device;
determine the key bit sequence from the seed bit set stored on the second computing device and the selected key derivation set; generate the encryption key at the second computing device using the key bit sequence; and generate the plaintext data at the second computing device by decrypting the ciphertext data using the encryption key.
[0033] In some embodiments, the computer program product may further include instructions for configuring the processor to delete the encryption key and the key bit sequence from the computing device each time after a particular ciphertext data is generated or decrypted.
BRIEF DESCRIPTION OF DRAWINGS
[0034] For a better understanding of the described embodiments and to show more clearly how they may be carried into effect, reference will now be made, by way of example, to the accompanying drawings in which:
[0035] FIG 1A shows a block diagram of a system that can be used to provide encryption key generation and management for a computing device in accordance with an embodiment;
[0036] FIG 1B shows a block diagram of another system that can be used to provide encryption key generation and management for a computing device in accordance with an embodiment;
[0037] FIG 2 shows a flowchart of an example embodiment of a method for generating an encryption key on a computing device;
[0038] FIG 3 shows a flowchart of an example embodiment of a method for generating ciphertext data on a computing device;
[0039] FIG 4 shows a flowchart of an example embodiment of a method for generating plaintext data from ciphertext data on a computing device.
[0040] The drawings, described below, are provided for purposes of illustration, and not of limitation, of the aspects and features of various examples of embodiments described herein. For simplicity and clarity of illustration, elements shown in the drawings have not necessarily been drawn to scale. The dimensions of some of the elements may be exaggerated relative to other elements for clarity. It will be appreciated that for simplicity and clarity of illustration, where considered appropriate, reference numerals may be repeated among the drawings to indicate corresponding or analogous elements or steps.
DETAILED DESCRIPTION
[0041] Various systems or methods will be described below to provide an example of an embodiment of the claimed subject matter. No embodiment described below limits any claimed subject matter and any claimed subject matter may cover methods or systems that differ from those described below.
The claimed subject matter is not limited to systems or methods having all of the features of any one system or method described below or to features common to multiple or all of the apparatuses or methods described below. It is possible that a system or method described below is not an embodiment that is recited in any claimed subject matter. Any subject matter disclosed in a system or method described below that is not claimed in this document may be the subject matter of another protective instrument, for example, a continuing patent application, and the applicants, inventors or owners do not intend to abandon, disclaim or dedicate to the public any such subject matter by its disclosure in this document.
[0042] Furthermore, it will be appreciated that for simplicity and clarity of illustration, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements.
In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein may be practiced without these specific details. In other instances, well-known methods, procedures and components have not been described in detail so as not to obscure the embodiments described herein.
Also, the drawings and the description is not to be considered as limiting the scope of the embodiments described herein.
[0043] It should also be noted that, as used herein, the wording "and/or" is intended to represent an inclusive-or. That is, "X and/or Y" is intended to mean X or Y or both, for example. As a further example, "X, Y, and/or Z" is intended to mean X or Y or Z or any combination thereof.
[0044] Described herein are various embodiments of systems, methods, computer program products, and devices for providing data protection. In general, the embodiments described herein provide methods for generating encryption keys for securely encrypting files. The embodiments described herein also provide methods for generating corresponding decryption keys for decrypting the encrypted files. In general, the embodiments described herein relate to the generation of symmetric encryption keys, where the encryption key and the decryption key are the same. In general, features of the various embodiments described herein can be used in any combination with one another except where otherwise noted.
[0045] Embodiments described herein may address problems associated with key generation and management. In particular, embodiments described herein may be used to provide one-file-one-key secure data encryption (also called practical one-time pad), where individual files can each be encrypted using a unique key.
[0046] The embodiments herein may be described using a concept referred to as information-theoretical &security to measure the security of a set of keys. As used herein, the term keystore generally refers to a set of random keys, kij < i < A, each having length of 1 bits. A keystore can be generated from a string of L bits (typically a random string), which may be referred to as a keystore seed or key seed.
[0047] Embodiments described herein may provide efficient methods for generating a keystore using a keystore seed. In particular, some embodiments described herein may use a hash function in generating a keystore. Such a keystore may be referred to as a hashed keystore. A hashed keystore may be denoted herein in some examples by 0(T) = [0(1c1): 1 i A). Alternative embodiments may generate a keystore without using a hash function. Such alternative keystores may be referred to as non-hashed keystores. Examples of non-hashed keystores may be denoted herein by = fki: 1 i
[0048] Embodiments described herein can be shown to be information-theoretically &secure with small s. Specifically, embodiments described herein may satisfy the following properties:
(Property 1) Embodiments described herein may provide a keystore having a key capacity A (i.e. a number of keys in the keystore) substantially greater than a bit size L of the keystore seed. The keystore seed generally consists of a set of bits, referred to as a seed bit set. The number of bits in the seed bit set is then the keystore seed bit size. For examples of hashed and non-hashed keystores described herein, A>> L may be sufficiently large to realize one-file-one-key encryption for a large-scale multiple-user information system.
(Property 2) Embodiments described herein may provide keys having a plurality of key bits with the key bits uniformly distributed over a key space. That is, for any key index i, the key ki may be uniformly distributed over the key space [0,1)1. The embodiments described herein may also provide methods for generating keys where there is zero mutual information between the key and corresponding keying information or key index. The key ki may thus be statistically independent of the key index i (e.g. if i is chosen randomly).

(Property 3) Embodiments described herein may provide a keystore with a low probability of key collisions. Key collisions generally refers to two different keys (i.e. keys corresponding to different keying indexes or keying information) being identical. That is, for any two independent 1,j, 1 < i,j < A, the probability that ki = kj may be very small (less than(1 ¨ E) + ).
(Property 4) Embodiments described herein may provide methods for generating a plurality of encryption keys from a keystore seed such that for any two independent key indices i and j, knowing 1, j, and ki does not reduce the amount of uncertainty about ki significantly. In the embodiments described herein, the conditional Shannon entropy H(kili,j,ki) may be at least as large as (1 ¨ E)H(ki j). With L = 216 and 1= 256, examples described herein illustrate that A can be greater than 2138 and s can be less than 8.205 x 10-12.
[0049] The above-noted properties of keystores (e.g. W and/or 0(Y)) in embodiments described herein may enable practical applications of one-time pad for large-scale data communications and storage systems. Embodiments described herein may also provide simple and efficient methods for generating keys ki from the keystore seed and sets of key derivation values or key index values i. Accordingly, embodiments described herein may minimize some of the challenges associated with distributing and managing a large set of random encryption keys.
[0050] In applications of data storage and communications, such as cloud storages and wireless sensor networks, data encryption is critical to the protection of privacy and sensitive information. Various encryption ciphers are available, such as the Advanced Encryption Standard (AES) (see, for example, Advanced Encryption Standard (AES), Federal Information Processing Standards (FIPS) Publication 197, United States National Institute of Standards and Technology (NIST), 2001), and users may choose a particular encryption scheme based on the nature of their business and the confidentiality requirements of the data being stored and/or transmitted. In large scale information systems, key management, such as key generation, exchange and maintenance of secrecy of the secret keys, can be an extremely difficult problem (see, for example, Z. Philip, PGP Source Code and Internals. MIT Press, 1995; W. Stallings, Cryptography and Network Security: Principles and Practices, (6th Ed.). Prentice Hall, Boston, 2011; E.-H. Yang, J. Meng, and X. Yu, "Methods, systems and computer program product for providing encryption on a plurality of devices," US Patent Application No. 14/737,940, June 12, 2015).
[0051] In some currently available security protocols, including PGP
(see Z. Philip, PGP Source Code and Internals. MIT Press, 1995) and SSL
(Netscape Corporation, "The SSL Protocol," 1997), symmetric algorithm based ciphers (e.g., AES) are used to encrypt and decrypt data. Asymmetric (or public-key) cryptographic algorithms (see, for example, I. F. Blake, G.
Seroussi, and N. P. Smart, Elliptic Curves in Cryptography. Cambridge University Press, 1999; A. J. Menezes, P. C. van Oorschot, and S. A.
Vanstone, Handbook of Applied Cryptography. CRC Press, 1996; B.
Schneier, Applied Cryptography. Wiley, New York, 1995; W. Stallings, Cryptography and Network Security: Principles and Practices, (6th Ed.).
Prentice Hall, Boston, 2011), such as the RSA algorithm (R. L. Rivest, A.
Shamir, and L. Adleman, "A method for obtaining digital signatures and public-key cryptosystems," Comm. ACM, vol. 21, no. 2, pp. 120 ¨ 126, Feb.
1978), Diffie-Hellman (W. Diffie and M. Hellman, "New directions in cryptography," IEEE Transactions on Information Theory, vol. 22, no. 6, pp.
644 ¨ 654, Nov. 1976) and EIGamal methods (T. EIGamal, "A public-key cryptosystem and a signature scheme based on discrete logarithms," IEEE
Transactions on Information Theory, vol. 31, no. 4, pp. 469 ¨ 472, July 1985), can be used for key exchange (or digital signatures). These methods provide a solution to the key-exchange problem for data encryption during data transmission while achieving computational security due to the difficulties associated with large integer factorization and discrete logarithms.
[0052] However, such methods may be vulnerable in situations where sensitive data is stored long-term/permanently, where an attacker has sufficient time to intercept as much information as possible or has extremely powerful computational capability (to crypt analyze the encryption/decryption keys). In such cases, the use of a secret key to encrypt many files or data items during a period of time (such a secret key is called a session key), as operated in PGP and SSL, may be vulnerable to attack. As such, it may be preferable for every file or data item to be encrypted using a unique key. As used herein, such an encryption method may be referred to as a one-file-one-key method. Embodiments of one-file-one-key methods described herein may provide implementations that are an extension from the idea of one-time pad (OTP) (see, for example, C. Shannon, "Communication theory of secrecy systems," Bell System Technical Journal 28 (4): 656-715, 1949).
[0053] For data confidentiality, one-file-one-key methods may provide the advantage that even if a file or data item is intercepted and broken (or, in a worse case, a storage component is compromised), it may still be difficult for an attacker to break and understand other files/data items, as they are encrypted using different keys. However, one-file-one-key methods result in challenges for key management as a large number of keys have to be generated, exchanged or distributed, and managed securely. For practical implementations of a one-file-one-key method, embodiments described herein may provide solutions to one or more of the following problems:
1) How to effectively generate a large set of keys?
2) How to ensure that the generated keys are uniformly distributed over the key space?
3) If keying materials (such as key indices) used to extract the key for decryption are placed in the file header of an encrypted file to facilitate key distribution, how to ensure that the keying materials do not disclose any information about the key, i.e., the mutual information between the key and keying materials is zero?

4) How to ensure that breaking one key does not gain any significant information about other keys, i.e., the mutual information between distinct keys are near zero?
[0054] Existing key exchange procedures based on asymmetric cryptographic algorithms such as PGP and other security protocols such as SSL do not offer desirable solutions to the problems mentioned above. For example, in PGP and SSL, a session key k, is first encrypted using the public key (referred to as KU) of the legitimate receiving party. The encrypted key EKu(k,$) is then transmitted through an unprotected medium (for example, placed in the file header of an encrypted file). Upon receiving the encrypted key EKu(ks.), the legitimate receiving party uses its private key to extract the key k, from EKu(k5.). In this case, EKu(ks.) essentially serves as keying information for the key kõ. Although the key k, can be generated randomly (at least in theory), the keying information EKu(ks.) discloses all information about the key k, from an information theoretic perspective. Indeed, since the public key KU is known, the mutual information I(Eicu(ks); kJ between the key k, and keying information EKu(ks) is equal to the length of the key k,. This is in contrast with the requirement mentioned in Problem 3) above.
[0055] Embodiments described herein may provide methods and computer program products for generating encryption keys that can address the above-noted problems. In embodiments described herein, legitimate communicating parties can share a common random string of L bits, which is denoted by K. K is generally referred to as a keystore seed comprising a seed bit set with L seed bits. L is an integer value, and will typically be greater than at least 3. Various examples of values for L will be discussed further below.
[0056] The seed bit set will generally include the L bits in an ordered sequence. That is, each seed bit in the seed bit set can have a corresponding seed bit position in the ordered sequence. While the seed bit set may be a random string of L bits, the ordered sequence may be treated as a cycle of module L. As mentioned, the seed bits in the ordered sequence can be randomly determined. Accordingly, the seed bits in the seed bit set can be independent and identically distributed.
[0057] As mentioned, the legitimate communicating parties (i.e. users) to an exchange of data generally share the same seed bit set. Users may synchronize the keystore seed (i.e. the seed bit set) manually or automatically. Examples of systems and methods for synchronizing keystore seeds between devices are described in greater detail in the Applicant's PCT
Patent Application No. PCT/CA2015/050543 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR
PROVIDING ENCRYPTION ON A PLURALITY OF DEVICES" now published as PCT Patent Publication No. W02015/188277 and Applicant's U.S. Patent Application No. 14/737,940 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR PROVIDING
ENCRYPTION ON A PLURALITY OF DEVICES" which has now been published as U52015/0363607A1.
[0058] Embodiments described herein may provide a simple and efficient process for generating a plurality of random keys for data encryption and decryption (for simplicity the keys may be referred to herein as encryption keys, although such keys may be used for both encryption and decryption) from a keystore seed K of L seed bits. The keys (e.g. O(ki) or ki, 1 < i < A) can each be generated to have a key length of 1 bits where A>> L. The set of encryption keys (e.g. (p(ki) or /col A) may be referred to herein as the keystore. The seed bit set or random string K may be referred to herein as the keystore seed or key seed. Some embodiments described herein may provide linear methods for easily generating an encryption key from K and i. Some embodiments described herein may use one-way or hash functions in generating encryption keys. The keys generated from the keystore seed K in embodiments described herein may be shown to be information-theoretically E-secure.
[0059] Embodiments described herein that satisfy Property 2 set out above facilitate distributing the key as the key may be statistically independent of its corresponding keying information. To distribute a key, the keying information (e.g. key index 0 can be included in the file header of an encrypted file. Since the mutual information between the key and its keying information is zero, including the keying information in the file header discloses zero information about the key itself.
[0060] In addition, the key can be determined from the keystore seed K
and the keying information 1. Accordingly, managing a large set of random keys may be simplified as the keystore seed K can be managed instead. Thus practical implementations of one-time pad can be applied to large-scale data communications and storage systems, or to devices having limited storage capacity such as an increasing number of devices being connected through the Internet of Things.
[0061] Embodiments described herein satisfying Properties (1) to (4) provide methods for key generation and management that can be substantially secure against almost any attack on individual files or keys. As mentioned above, some embodiments described herein may generate keys using linear operations from the seed bit set of the keystore seed. That is, one or more key bit sequences may be derived from the seed bit set using linear functions and then used to generate the encryption keys.
[0062] However, in embodiments where keys are generated from the keystore seed K by linear operations, an attacker may attempt to reconstruct the keystore seed K if the attacker acquired a significant number of keys.
Such an attack can be referred to as a reconstruction attack. To prevent a reconstruction attack, some embodiments described herein may provide a reconstruction-prevention key generation method using a secure hash function 0. Even if an attacker acquires a number of hashed keys, due to the security properties of the hash function, it will still be hard for the attacker to recover key bit sequences from the hashed keys. Thus, it may be infeasible to reconstruct K even if a plurality of hashed keys 0(k1) are acquired.
[0063] Referring now to FIG. 1A, shown therein is an example of a system 100A that can be used for generating and managing encryption keys in accordance with an embodiment. In some embodiments, system 100A may form part of a security system that enables automatic encryption and decryption of data files on various computing devices 102.
[0064] Each of the computing devices 102 may be associated with a particular user 140. For instance, in system 100A a first user 140A has two associated computing devices 102A and 102B and a second user 140B has two associated computing devices 102C and 102D.
[0065] In general, the computing devices 102 include a processor, volatile and non-volatile memory, at least one network interface, and input/output devices. Computing devices 102 may include server computers, desktop computers, notebook computers, tablets, PDAs, smartphones, or other programmable computers. Computing devices 102 may also encompass any connected or "smart" devices capable of data communication, such as thermostats, air quality sensors, industrial equipment and the like.
Increasingly, this encompasses a wide variety of devices as more devices become networked through the "Internet of Things". Examples embodiments of the computing devices 102 will be described in further detail with reference to FIG. 1B.
[0066] The computing devices 102 may include a connection with a network, such as a wired or wireless connection to the Internet. The network may be constructed from one or more computer network technologies, such as IEEE 802.3 (Ethernet), IEEE 802.11 and similar technologies.
[0067] The computing devices 102 may be connected to a cloud server 150 over a network such as the internet. Cloud server 150 generally refers to one or more server computers connected to a computing device 102 using a network such as the internet. The cloud server 150 generally includes a processor, volatile and non-volatile memory, and at least one network interface and may provide data storage services for the computing devices 102. Data stored on cloud server 150 may be accessible by the computing devices 102 using the network.
[0068] Q-server 130 may also include one or more server computers connected to the computing devices 102 over a network such as the internet.
The Q-server 130 generally includes a processor, volatile and non-volatile memory, and at least one network interface and may assist the computing devices 102 in various processes of encrypting and decrypting data. For example, the 0-server 130 may assist the computing devices 102 in generating new keystore seeds and/or synchronizing keystore seeds between different computing devices 102 and between different users 140. Further details of the operations of the Q-server 130 are described in the Applicant's PCT Patent Application No. PCT/0A2015/050543 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR
PROVIDING ENCRYPTION ON A PLURALITY OF DEVICES" now published as PCT Patent Publication No. W02015/188277 and Applicant's U.S. Patent Application No. 14/737,940 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR PROVIDING
ENCRYPTION ON A PLURALITY OF DEVICES" which has now been published as U52015/0363607A1.
[0069] Referring now to FIG. 1B, shown therein is an example system 100B that can be used for generating and managing encryption keys in accordance with an embodiment. In general, system 100B corresponds to system 100A and illustrates additional details of a computing device 102A
associated with the first user 140A. The details of computing device 102A
illustrating in system 100B may be generally extended to the various other computing devices 102 shown in FIG. 1A.
[0070] The computing device 102A generally includes a processor 104, a memory 106, a display 108, a database 110, and a communication interface 112. Although shown as separate elements, it will be understood that database 110 may be stored in memory 106.
[0071] The processor 104 is a computer processor, such as a general purpose microprocessor. In some other cases, processor 104 may be a field programmable gate array, application specific integrated circuit, microcontroller, or other suitable computer processor.
[0072] Processor 104 is coupled, via a computer data bus, to memory 106. Memory 106 may include both volatile and non-volatile memory. Non-volatile memory stores computer programs consisting of computer-executable instructions, which may be loaded into volatile memory for execution by processor 104 as needed. It will be understood by those of skill in the art that .. references herein to computing device 102 as carrying out a function or acting in a particular way imply that processor 104 is executing instructions (e.g., a software program) stored in memory 106 and possibly transmitting or receiving inputs and outputs via one or more interface. Memory 106 may also store data input to, or output from, processor 104 in the course of executing the computer-executable instructions. As noted above, memory 106 may also store database 110.
[0073] Processor 104 is also coupled to display 108, which is a suitable display for outputting information and data as needed by various computer programs. In particular, display 108 may display a graphical user interface (GUI). In some cases, the display 108 may be omitted from computing device 102, for instance where the computing device 102 is a sensor or other smart device configured to operate autonomously. Computing device 102 may execute an operating system, such as Microsoft WindowsTM, GNU/Linux, or other suitable operating system.
[0074] In some example embodiments, database 110 is a relational database. In other embodiments, database 110 may be a non-relational database, such as a key-value database, NoSQL database, or the like.
[0075]
Communication interface 112 is one or more data network interface, such as an IEEE 802.3 or IEEE 802.11 interface, for communication .. over a network.
[0076] The processor 104 may operate based on instructions provided in applications stored in memory 106. As used herein, the term "software application" or "application" refers to computer-executable instructions, particularly computer-executable instructions stored in a non-transitory medium, such as a non-volatile memory, and executed by a computer processor. The computer processor, when executing the instructions, may receive inputs and transmit outputs to any of a variety of input or output devices to which it is coupled.
[0077] The computing device 102A may have stored thereon a software application referred to as an encryption application 114. Although shown separately, it should be understood that encryption application 114 may be stored in memory 106. The encryption application 114 may also be referred to as a Q-Agent or encryption agent installed on the computing device 102.
[0078] Each computing device 102 may have an encryption application 114 installed thereon. The encryption application 114 installed on each device 102 may be responsible for the encryption and decryption operations on that device 102. The encryption application 114 may also generate encryption/decryption keys and protect the keys once generated. The encryption application 114 may also generate one or more keystore seeds which can be stored on each device 102. The keystore seeds can be used by the encryption application 114 to generate one or more encryption/decryption keys.
[0079] The encryption application 114 can be used to generate keystore seeds. The keystore seeds can then be used to derive keys as will be described in further detail below. In some cases, the keystore seeds may be generated through communication between a particular encryption application 114 and Q-Server 130. In some cases, there may be no direct communication between and among the encryption application 114 on different devices 102. In such cases, the keystore seeds may need to be synchronized between different computing devices 102, either manually or automatically. The Q-Server 130 may be used to automatically synchronize the keystore seeds used on the devices 102, as described in the Applicant's PCT Patent Application No. PCT/0A2015/050543 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR
PROVIDING ENCRYPTION ON A PLURALITY OF DEVICES" now published as PCT Patent Publication No. W02015/188277 and Applicant's U.S. Patent Application No. 14/737,940 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR PROVIDING
ENCRYPTION ON A PLURALITY OF DEVICES" which has now been published as US2015/0363607A1. Synchronizing keystore seeds between different devices 102 may enable different devices to communicate ciphertext files between devices 102 in an information-theoretical E-secure manner, while still providing for easy encryption and decryption of the ciphertext files.
[0080] In some cases, the first user 140A may wish to move encrypted files/ciphertext from the first device 102A to a second device 102B or to a device associated with second user 140B, such as device 1020. The first user 140A may transmit one or more encrypted files/ciphertext from the first device 102A to a second device 102B in various ways such as using cloud services, telecommunications networks or other file transfer mechanisms such as a USB or Firewire key. Once the files have been received at the second device 102B, it may be necessary to decrypt the files on the second device 102B.
[0081] To allow encrypted files/ciphertext that were encrypted by the encryption application 114 on the first device 102A to be decrypted by the encryption application 114 on the second device 102B, the keystore seed(s) used by the encryption application 114 on the first device 102A and second device 102B may be synchronized, either manually or automatically. Thus, the encryption application 114 on the second device 102B may be able to determine the encryption key for decrypting the received file using the keystore seed and keying information transmitted along with the received file.
Furthermore, the data may be secure against decryption during transmission as the keying information and the encryption key may have zero mutual information, such that the keying information and the encryption key are statistically independent, which may prevent an attacker from determining the encryption key from the transmitted ciphertext and keying information alone.
[0082] In some cases, the encryption application 114 may be configured to generate a large set of encryption keys, i.e., an encryption keystore, from the keystore seeds. However, in some cases it may be undesirable for the computing device 102 to generate and store a large set of encryption keys, e.g. if the device 102 has limited storage capacity.
Accordingly, the device 102 may store only the keystore seed and derive encryption keys from the keystore seed as needed. Example embodiments for deriving encryption keys from a keystore seed will be discussed in further detail below.
[0083] The encryption keys or keystore seeds can be stored in non-volatile device memory in encrypted format and protected by a verification code defined by the user. In some embodiments, the verification code may be known only to the user. Local authentication information can be generated based on the verification code and stored on a user's device. The authentication information can be used to authenticate a user attempting to access or modify encrypted files. In some cases, the verification code may not be determinable from any of the stored authentication information. Further details regarding secure storage of encryption keys and keystore seeds using a verification code are described in the Applicant's PCT Patent Application No. PCT/CA2015/050543 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR PROVIDING
ENCRYPTION ON A PLURALITY OF DEVICES" now published as PCT
Patent Publication No. W02015/188277 and Applicant's U.S. Patent Application No. 14/737,940 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR PROVIDING
ENCRYPTION ON A PLURALITY OF DEVICES" which has now been published as US2015/0363607A1.
[0084] Data managed by the example systems described herein may remain encrypted at all times when stored in non-volatile memory¨whether on devices of the user or other devices, such as a cloud server 150. The embodiments described herein may also ensure that the plaintext files corresponding to the stored encrypted files can be seen and/or modified only inside installed encryption agents. The plaintext files may be accessible only after being decrypted upon request from the user and are only temporarily stored in the volatile memory of devices of the user while being accessed.
[0085] In some embodiments, each of the programmable computers may include an input device for entering information into the device. For example, the input device may be a keyboard, key pad, cursor-control device, touch-screen, camera, scanner or microphone. In some embodiments, input information may be received through the communication interface from other programmable computers over a network. In some embodiments, the computing devices may include a display device for presenting visual information. For example, the display device may be a computer monitor, a flat-screen display, a projector or a display panel. In some embodiments, the display device displays one or more files to the user that have been encrypted by an encryption agent in accordance with systems and methods described herein.
[0086] The embodiments of the systems, processes and methods described herein may be implemented in hardware or software, or a combination of both. Alternatively, these embodiments may also be implemented in computer programs executed on programmable computers each comprising at least one processor (e.g., a microprocessor), a data storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. For example and without limitation, the programmable computers (referred to below as devices, computing devices or servers) may be a personal computer, laptop, personal data assistant, cellular telephone, smart-phone device, tablet computer, and/or wireless device. For any software components, program code is applied to input data to perform the functions described herein and generate output information. The output information is applied to one or more output devices, in known fashion.
[0087] Each software component or program may be implemented in a high level procedural or object oriented programming and/or scripting language to communicate with a computer system. However, the programs can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the processes and methods of the described embodiments are capable of being distributed in a computer program product comprising a computer readable medium that bears computer usable instructions for one or more processors. The medium may be provided in various forms, including one or more diskettes, compact disks, tapes, chips, wireline transmissions, satellite transmissions, intemet transmission or downloadings, magnetic and electronic storage media, digital and analog signals, and the like. The computer useable instructions may also be in various forms, including compiled and non-compiled code.
[0088] As discussed above, the keystore seed K, includes a seed bit set with L seed bits. For example, the keystore seed can be generated as a random string of L bits. The seed bits in the seed bit set may be arranged in a ordered sequence where each seed bit has a seed bit position in the ordered sequence. Embodiments described herein provides methods for generating a large set of encryption and decryption keys, i.e., the keystore = ki:1 i A) where A is a large number >> L, and each k, is of length / bits.
[0089] The encryption application 114 can determine one or more keystore seeds for a computing device 102. In some cases, the keystore seeds may be imported from another device 102. For example where the first user 140A has previously generated key seeds on first device 102A, the first user 140A may import the same key seeds to the second device 102B. If the first user 140A has not yet generated key seeds on any other devices 102, then the encryption application 114 of the first device 102A can generate the key seeds.
[0090] The encryption application 114 on the first device 102A can generate one or more key seeds. In some cases, the key seeds can be generated through communication between the encryption application 114 and Q-Server 130. For example, the encryption application 114 may randomly generate a plurality of independent key seeds K2, === KJ.
Each key seed generally comprises a seed bit set including a plurality of seed bits in an ordered sequence.
[0091] The encryption application 114 can then store key seed information based on the plurality of key seeds in the non-volatile memory of the first device 102A. For example, the key seed information may be generated by encrypting the key seeds, and then storing the encrypted key seeds as the key seed information. In some cases, a verification code C can be used to encrypt the key seeds K1, K2, ¨, KJ into encrypted key seeds Ec(K1,K2, === , KJ). These encrypted key seeds Ec (Kt, K2, = , KJ) can then be saved on the non-volatile memory of the first device 102A.
[0092] If a second device 102B has an encryption application 114 installed thereon and has key seeds generated and stored on that device 102B, the first user 140A may import the key seeds from the device 102B. In system 100A, the first user 140A can access the encryption application 114 on the device 102B to get a copy of the encrypted FED key seeds Ec(K1,K2, ===,KJ) generated by that encryption application 114. The first user 140A can then transfer the copied key seeds to the encryption application 114 on the first device 102A. The encryption application 114 can then import the key seeds and store them in the non-volatile memory of the first device 102A.
[0093] To encrypt a file or plaintext data, a key (e.g. ki) may be randomly selected or derived from the keystore using the encryption application 114. The selected key ki can then be used as the encryption key to encrypt the file or plaintext data using a symmetric cipher such as AES.
Keying information corresponding to the selected key, such as the key index i, can be included with the encrypted ciphertext, e.g. in the header of the ciphertext. The keying information (e.g. key index i) and the ciphertext together form an encrypted file. Upon receiving an encrypted file (i.e.
ciphertext data and corresponding keying information), the encryption application 114 of a legitimate receiving party can extract the key ki from the keystore K stored on the receiving computing device 102 using the associated keying information (e.g. key index i). The encryption application 114 can then use the key k, to decrypt the ciphertext and generate the corresponding plaintext data.
[0094] To provide practical and secure embodiments of one-file-one-key encryption, A should be sufficiently large. In addition, it is desirable for embodiments of the keystore P and corresponding keys to be information-theoretically E-secure for sufficiently small E, as discussed below.
[0095] A keystore W
= fki: 1 < i < A} of keys of length I generated from a keystore seed K is said to be information-theoretically E-secure for 0 < E <

1, if the following security properties hold:
1) For any given keying index 1,1 < I <A, the key bits of the corresponding key in the keystore ki is random and uniformly distributed over f0,1}1.
2) For any two independent keying indices 1,j,1 < i,j < A, the probability of a collision between the corresponding keys is low:
Prfki =k} (1¨ E) x 2-1 + E.
3) For any two independent keying indices i and j, 1 < i,j < A, H(ki I ki) H((kilj) x (1¨ E) = I>< (1¨ E) where H(XIY) stands for the conditional Shannon entropy of random variable X given random variable Y.
[0096] Based on the first security property, the mutual information between the key ki and the key index i is zero when the key index or keying information is chosen randomly. Thus, the release of the keying information (i.e. the key index) does not disclose any information on the key absent knowledge of the keystore seed (i.e. if the keystore seed is unknown). The second security property indicates that randomly selecting keys from the keystore is essentially collision free. In turn, this implies that randomly generating keys from the keystore is essentially collision free for embodiments where encryption keys are generated as required. The third security property indicates that knowledge of one encryption key does not significantly reduce the uncertainty about other keys, i.e., independently selected keys from the keystore (or independently generated keys from a keystore seed) are essentially pair-wise independent.
[0097] A keystore W
= fki: 1 < i < A} of keys of length 1 generated from a keystore seed K is said to be information-theoretically E-secure up to order n for 0 < s < 1, if 4) satisfies the first two security properties in Definition 1 as well as the following security property:
3*) For any independent keying information (i.e. key indices j, ===, .. , 1 < j, === , <A), = = = , in, j, , kin) H((kilj) x (1¨s) = 1 X (1¨ E)
[0098] In some cases, the encryption application 114 may not derive all of the encryption keys from the key seeds to generate a keystore in advance.
Storing all the encryption keys of the keystore may not be feasible in terms of the storage capacity of a computing device 102 and may also be prone to security threats when W is large enough. Accordingly, each key ki should be easily computed from K and i so that there is no need to actually store the entire keystore P and its corresponding encryption keys.
[0099] The encryption application 114 may derive the encryption keys from the key seeds only as needed, i.e. when receiving an indication of a file to be encrypted or decrypted. In such cases, the encryption application 114 may also store keying information along with the encrypted file that indicates how to derive the encryption key from the key seed information stored on the non-volatile memory of the first device. As well, the encryption application may erase the derived encryption key from the first device 102A after the file is encrypted.
[0100] In some cases, the keystore P may be generated from the random key seeds K1,K2,===,K1 using any means such that for any two independent i and j, 1 < i,j < A, the probability that a first encryption key is equal to a second encryption key Prtici = kJ} is not significantly larger than 1/A. For example, the means used to generate the keystore from the random key seeds may essentially be collision-free. In some embodiments this may be referred to as property (1) of the keystore P.
[0101] In some cases, the keystore IP may be generated from the random seeds K1,K2,===,Kj such that for any 1 < i < A, the key ki is more or less uniformly distributed and hence statistically independent of 1. In such cases, disclosing information i may not reveal any essential information about ki. In some embodiments this may be referred to as property (2) of the keystore P.
[0102] In some cases, the keystore 4, may be generated from the random seeds Kl,K2,===,Kj such that for any two independent i and j, 1 < i,j < A, knowing i, j, and a single key ki does not reduce the amount of uncertainty about another key kj significantly, i.e., the conditional Shannon entropy H(kili,j,ki) is close to WM j). In such cases, knowing one key ki does not provide any essential information about another key ki. In some embodiments this may be referred to as property (3) of the keystore P.
[0103] A large A
may provide increased entropy regarding the keys generated. However, storing all the keys generated with a large value of A
may require a significant amount of storage space. This may not be desirable when the systems described herein are mobile devices or other devices with storage capacity constraints. In some cases, the keystore tP may be generated from the random seeds KII,K2,===,Ki such that for any 1 < I < A, it is easy to compute ki from the seeds K1,K2, ===, KJ and the index I. In such cases, as mentioned above, there is no need to actually store IF on the devices 102 of the first user 140A. This may be desirable particularly when A
is large. In some embodiments this may be referred to as property (4) of the keystore
[0104] In some cases, the encryption application 114 may store one or more key seeds, where each key seed has a first bit length. The encryption application 114 may derive one or more encryption keys from the stored key seeds, where each of the derived encryption keys has a second bit length. In some embodiments, the second bit length can be shorter than the first bit length.
[0105] Embodiments described herein provide efficient methods by which a large keystore (i.e. a large set of encryption keys) can be generated from a random keystore seed, such that the keystore satisfies the properties presented in the above definitions.
[0106] The keystore seed K may be considered a random string of L
bits. That is, the keystore seed includes a seed bit set having L seed bits.
The L seed bits in the seed bit set may be positioned in an ordered sequence and may be represented as:
K = K(0)K(1)===K(L ¨1)
[0107] Each seed bit K(i), i = 0,1,===,L ¨1, in the seed bit set can be independent and identically distributed bits over a seed bit space, here [0,11.
That is, the seed bits in the seed bit set may have PrfK(i) = 0) = PrfK(i) = 1) = 1/2 Accordingly, the seed bits may be said to be uniformly random.
[0108] Encryption keys having u bit can be generated from the keystore seed. For example, the encryption application 114 may determine a set of key derivation values. The encryption application 114 may determine a plurality of key derivation sets. Each key derivation set may be determined to include at least one key derivation value mi. In some embodiments, the key derivation sets can be determined to include a plurality of key derivation values m2, ===,mt where 0 <m2 < ===
<mt < L ¨ 1. The key derivation values may correspond to a set of t distinct seed positions in the ordered sequence of the keystore seed, where t is an integer value greater than or equal to one. In some particular embodiments, the plurality of key derivation sets can be determined so that all possible sets of t distinct seed bit positions in the ordered sequence are included in the plurality of key derivation sets.
[0109] The encryption application 114 can generate a key bit sequence having / bits, where / is a positive integer with / <L. The key bit sequence can be generated from the keystore seed K using the seed bit positions n12, -= , mt from a selected key derivation set. In some cases, the key bit sequence can be generated using one or more derived seed bit sequences K (m,)K (m, + 1) K(mi + 1¨ 1), where each derived seed bit sequence corresponds to one of the seed bit positions mi of the selected key derivation set. The key bit sequence can then be generated from the derived seed bit sequences.
[0110] In some embodiments a key bit sequence can be generated from a plurality of derived seed bit sequences as a linear function of the derived seed bit sequences. For example, a key bit sequence k(m1m2, = = = , mt) may be determined according to k(mi, m2, = = = , mt) = K (mi)K (mi + 1) = = = K (mi + 1 ¨ 1) (1) where the summation of the derived seed bit sequences K (mi)K (mi +
1) === K(mi + 1¨ 1) is a bit-by-bit binary addition, and the addition of integers mi and (1 j < / ¨ 1) is with respect to module L.
[0111] The key bit sequence can be used by the encryption application to generate an encryption key. In some embodiments, the encryption key may be generated from a key bit sequence using linear operations. In some embodiments, the key bit sequence generated by the encryption application 114 may be used as the encryption key.
[0112] In this example, the keystore W (i.e. the set of keys that can be generated from the keystore seed) can be given by = m2, === , mt): 0 < m2 < === < mt L ¨
1) (2) In this example, the number of random encryption keys in the keystore 1, (i.e.
the number of keys that can be generated from the keystore seed) is A = (L).
[0113] In some embodiments, non-linear functions or a one-way function of the key bit sequence may also be used to generate an encryption key. For example, hashed key bit sequences may be generated by the encryption application 114 as will be discussed in further detail below.
PROPERTIES OF KEYSTORE
[0114] Some of the security properties of the generated keystore tif will now be described.
[0115] In embodiments where the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set is defined as L > 241¨ 1), a keystore P = 1 < i < A) generated from the keystore seed K via Equations (1) and (2) satisfies the following keystore properties:
i) Given the seed bit positions 0 <m <m2 <=== < mt L¨ 1 for any selected key derivation set, the key bit sequence k(mi, m2, === , mt) of key bit length us random and uniformly distributed over [0,1)1.
ii) For a first set of distinct seed bit positions (m1, === , mt) corresponding to a first selected key derivation set and a second set of distinct seed bit positions (iii,..., t) corresponding to a second selected key derivation set where (m1, ¨, mt) # (flit, = = = , Mt) with 0 < === <

mt < L ¨ 1 and 0 < < === < 'frit < L ¨1, the probability of key collision is determined as Prfk(mi,===,mt) = k(ni,===, frit)} = 2-1
[0116] The derived seed bit sequences K(mi)K(mi+ 1).- K(mi + 1 ¨
1), 1= 1,...,t corresponding to the first selected key derivation set and the derived seed bit sequences K(1ri1)K(711.i+ 1) ===K(riii +1¨ 1), i = 1, t corresponding to the second selected key derivation set, produce the key bit sequences k(mi,m2,--,mt) and k(fii1,TR2, -= , int), respectively. The seed bit positions m, and filj, 0 < < === < mt < L ¨ 1 and 0 < < < < L ¨
1, can be sorted in nondecreasing order with the sorted seed bit positions denoted by ri, with 0 < < r2 < < rzt < ¨1.
[0117] In embodiments of generating the key bit sequences k(mi, m2, === , mt) and k(fill,ri12,¨,iii,t), each of these seed bit positions, n, can be used to determine a derived seed bit sequence as a string of /
successive bits, K(ri)K(ri+ 1) ...K(r1 +1¨ 1), from the seed bit set K =
K(0)K(1)===K(L ¨ 1). The L seed bits K(0), K(1), === ,K(L ¨ 1) in the seed bit set can be considered as a cyclic ordered set, with K(0) = K(L). For any of the seed bit positions n, if both adjacent seed bit positions from the first and second key derivation sets are offset by at least 1 bits, then the derived seed bit sequence for that seed bit position ri has no common bits with any of the other derived seed bit sequences for the first and second key derivation sets.

That is, for a seed bit position ri, with r1¨ri_1> 1 and r1+1¨ rj > /, where r2t+1 = L +7-1 and r_1= ¨L + r2t, the derived seed bit sequence K(ri)K(ri+
1) K(ri +1¨ 1) corresponding to n does not have any common bits with any other derived seed bit sequence corresponding to ri, 1 <j # I < 2t. In such cases, the first key bit sequence k(mi,m2, ===,mt) and second key bit sequence k(7111,7R2,===, frit) are independent. Such a seed bit position r, if it exists, may be termed an isolated component inside the vector of seed bit positions r= (r1,r2,¨,r2t). Thus, the vector of seed bit positions r=

r2, = , r2t) for a pair of key derivation sets has no isolated components if and only if for any seed bit position ri, i = 1,2, ===,2t, ¨ ri i ¨ ri} 1 ¨ 1 (3) Accordingly, a pair of key derivation sets (m1, , mt) and (1711, ===, Mt) has no isolated components whenever the vector of seed bit positions r =
(r1, r2, === ,r2t) obtained by sorting the seed bit positions mt, === , hit in nondecreasing order has no isolated components.
[0118] Consider any two independent key derivation sets m =
(m1, = = = , mt) and lit = (rrii, = = = , lilt) with 0 < === < mt L ¨ 1 and ii < < int L ¨1. Let E denote the event that m = (mi,¨,mt) and fri = ===, hit) have no isolated components. The probability of the independent key derivation sets having no isolated components can be defined as p = PrfE)
[0119] In some embodiments the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set can be defined as L > ¨ 1). In such embodiments, for the keystore (1, = fici: 1 < I < A) generated from the keystore seed K via Equations (1) and (2), the following holds: for any two independent key derivation sets m = (m1, ¨, mt) and fit = === , hit) with 0 < === <
mt < L ¨ 1 and 0 < < === < 7/1 t < L ¨ 1, H (k (1'n) I k (m)) H (k (fit) x (1 ¨ p) = 1(1 ¨ p)
[0120] In some embodiments the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set can be defined as L > 241¨ 1). In such embodiments, in view of Property ii) set out above, for any two independent key derivation sets m = (mi, = = = , mt) and fit = (In 1, = = = , fiit) with 0 < === < mt L ¨ 1 and 0 < fl < = = = < frit < L ¨ 1, the probability of a key collision can be defined as Prfic(m) = k = Prfic(m) = k (111), m = 741) +Prfk(m) = k (171), m # fit}
= 1/A + 2-1 x (1¨ 1/A) (4) Since fm. = fit') c E, it follows that p 1/A (5)
[0121] In embodiments where the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set can be defined as L> 241¨ 1), the keystore (11 = fici: 1 <
< A) generated from the keystore seed K via Equations (1) and (2) can thus be shown to be information-theoretically E-secure with E = p.
[0122] Examples of upper bounds on p illustrating that p is quite small for various configurations of (L, 1, t) will be discussed below. The above discussion can also be extended to higher orders. To this end, the evaluation of isolated component can be extended to a vector of seed bit positions of any dimension (rather than limited to two key derivation sets having 2f seed bit positions as in the discussion above).
[0123] Consider a vector of seed bit positions r = (r1,r2,===,r5) with dimensions satisfying 0 <r1< r2 < = - <r5 < L ¨ land rs ¨r1 >0. As before, define rs i = L +7-1 and '63 = ¨(L ¨ rs)
[0124] The vector of seed bit positions r = (r1,r2,¨,rs) is defined to have no isolated components if for every seed bit position r1, i = at least one of the adjacent seed bit positions in the vector of seed bit positions is offset by at most / ¨ 1 bits. That is, for every seed bit position ri, i =
1,2, ===,s, minfri ¨ ¨ ri} 1 ¨ 1 (6)
[0125] In other words, a seed bit position ri is an isolated component in the vector of seed bit positions r = (r1,r2,=== ,rs) if and only if both adjacent seed bit positions are offset by at least 1 bits, i.e. rj ¨ 1 and ri+i ¨
[0126] For a plurality of independent key derivation sets mi ===,m), i = 1,2, ===,n + 1, where 0 Trt < mi2 < === < mit L ¨ 1 for any i = 1,2, ===,n + 1, sorting the seed bit positions mji, 1 < j < t, 1< I< n +
1, in non-decreasing order results in a vector of seed bit positions r =
(r1,r2, = = = , rs.) of dimension S = (n+ 1)t. The plurality of independent key derivation sets mi, I = , n + 1, have no isolated components if and only if the corresponding vector of seed bit positions r = r2, = = = , rs.) of dimension S = (n + 1)t has no isolated components.
[0127] Define the non-isolated component event En as En = tm,, i = 1,2, === ,n + 1, have no isolated components (7) and the probability of the non-isolated component event pn as põ = Pr[En) (8)
[0128] It can be shown that pi = p. Further define n-i In + 1\
En = i=O ) Pn-i (9)
[0129] From the above it follows that El = pi = p and E2 = 2 + 3p.
[0130] In some embodiments the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set can be defined as L > t(1¨ 1). In such embodiments, for the keystore P = [k1: 1 < I < A) generated from the keystore seed K via Equations (1) and (2), the following holds: for any independent key derivation sets m, = , === , mit), i = 1,2, ===, n +
1, where 0 <m < =-= < mit L ¨ 1 for any i = 1, 2, === ,n + 1, H (k(nn+i)imn-Fi, tmi, k(m)V1) H (k ( µinn+Dimn-Fi) x (1¨ Eõ) = / x (1 ¨ En) (10)
[0131] Accordingly, in embodiments where the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set is defined as L > 241¨ 1), for any number n 1, the keystore P = 1 < i < A) generated from the keystore seed K
via Equations (1) and (2) is information-theoretically E-secure up to order n, where s = sn is given by equations (6) to (9).
[0132] Some examples of upper bounds for pn (and hence sn) will now be discussed, as well as examples of p and pn for particular configurations of (L,1,t). Here, p =
[0133] In some embodiments the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set can be defined as (n + 1)t x (1¨ 1) <L, where n 1. In such embodiments, the upper bound on the probability of the independent key derivation sets mi, I = 1,2, ===, n + 1, having no isolated components can be defined as:
pn min[/5,1) (11) and L
= 1 I (It)/ (td x 1 (Os ¨(1¨ 1)(i ¨ 1) ¨ 11) (12) j ¨ 1 where S = (n + 1)t.
[0134] Accordingly, pn can be shown to be very small for some example embodiments of the size of the keystore seed, the encryption key size, and the number of distinct seed bit positions in each key derivation set (L,1,t).
[0135] Tables 1 to 5 illustrate some examples of upper bounds on the probabilities of two or three independent key derivation sets having no isolated components, i.e., p and p2 (calculated according to (11) and (12)) and a lower bound on the size A of the keystore W for some example embodiments of (L, 1, t).
[0136] In tables 1 to 5, scientific notation is used for clarity, where 1.8247e - 12 = 1.8247 x 10-12, for example. The selection of the encryption key length 1 as 256 or 128 in the example embodiments shown in tables 1 to 5 is consistent with AES-256 or AES-128, respectively. The selection of the key bit sequence length 1 as 300 is illustrative for embodiments where the key bit sequence k(mi, m2, ===, mt) may be modified to a shorter length, for example using a hash function as discussed below. Along with the discussion above, the example embodiments shown in Tables 1 to 5 illustrate that the keystore = 1 < i < A) generated from the keystore seed K via Equations (1) and (2) can be secure against attack to individual files or keys in the information theoretic sense when (L, 1, t) are properly selected.
Table 1: Bounds on p, P23 and A with (t,l) = (5, 128) L = 212 213 214 215 216 p 0.0052 1.2909e - 4 3.4768e - 6 9.9572e - 8 2.9666e - 9 P2 0.0101 3.5187e - 5 1.2780e - 7 4.7825e - 1.8247e - 12 A > 253 258 263 268 273 Table 2: Bounds on p, 132, and A with (t,l) = (5,256) L = 212 213 214 215 216 p 0.2235 0.0052 1.2889e - 4 3.4740e - 6 9.9525e - 8 P2 1 0.0100 3.5092e - 5 1.2762e - 7 4.7788e - 10 A > 253 258 263 268 273 Table 3: Bounds on p, p2, and A with (t,l) = (10, 128) L = 213 214 215 216 217 p < 2.3928e - 5 1.3341e - 8 8.2203e - 12 5.7083e - 4.4505e - 18 P2 < 6.4278e - 5 7.9599e - 1.0969e - 14 1.7298e - 3.1717e - 24 A > 2108 2118 2128 2138 2148 Table 4: Bounds on p, p2, and A with (t,l) = (10, 256) L = 213 214 215 216 217 p 0.0455 2.3745e ¨ 5 1.3293e ¨ 8 8.2050e ¨ 5.7025e ¨ 15 P2 1 6.3505e ¨ 5 7.9101e ¨ 10 1.0933e ¨ 1.7268e ¨ 19 A > 2108 2118 2128 2138 2148 Table 5: Bounds on p, p2, and A with (t,l) = (10, 300) L = 213 214 215 216 _________ 217 P 0.2589 1.3296e ¨ 4 7.3145e ¨ 8 4.4053e ¨ 2.9781e ¨ 14 P2 1 8.5041e ¨ 4 1.0387e ¨ 8 1.3987e ¨ 2.1389e ¨ 18 A > 2108 2118 2128 2138 2148
[0137] As mentioned above, in some embodiments such as the example keystore P = fki: 1 < i < Al generated from the keystore seed K via Equations (1) and (2), each key bit sequence k(mi,mt, ===,m,) can be generated as a linear function of seed bit sequences derived from the keystore seed K. In some particular embodiments, the encryption keys may be generated as the key bit sequences. In such embodiments, if an attacker was able to acquire a significant number of encryption keys, the attacker may attempt to reconstruct the keystore seed K by solving a system of linear equations. To prevent such a reconstruction attack, some embodiments may generate the encryption keys using secure hash functions. That is, a secure hash function may be applied to the key bit sequence k(mi,mt,--,mt) to generate a hashed key bit sequence. The encryption keys may then be generated from the hashed key bit sequences.
[0138] A function f (x) is a one-way function if it is easy to compute an output value f (x) for every input value x in the domain of f, but for almost all output values y in the range of f, it is computationally infeasible to find an input value x such that f (x) = y. (W. Diffie and M. Hellman, "New directions in cryptography," IEEE Transactions on Information Theory, vol. 22, no. 6, pp.

644 ¨ 654, Nov. 1976.) Let 0: (0,1}1 ¨> [0,1}u, where u < /, be a secure hash function satisfying the following secure hash properties:
P1. For any given hash output value 13, it is computationally infeasible to find an input value a such that 0(a) = 13. That is, the hash function can be a one-way function.
P2. If the input a is random and uniformly distributed over [0,1}1, then the output /3 = 9h(a) is random and uniformly distributed over [0,1}1 .
[0139] The hash function q can be applied to each key bit sequence in ki: 1 < i < A generated from the keystore seed K via Equations (1) and (2) to generate a corresponding hashed key bit sequence. An encryption key may then be generated from the hashed key bit sequence. For example, the encryption key may be generated to be the hashed key bit sequence in some embodiments. In some examples of such embodiments, an example hashed keystore (p(W) can be generated as:
0(W) = f0(k(mi, m2, = = = , mt)): 0 < m2 < = = = < L ¨ 1} (13)
[0140] In embodiments using hashed key bit sequences, even where an attacker is able to acquire a number of hashed keys, it follows from the one-way property P1 that it is still computationally infeasible to determine the corresponding key bit sequence k(m1,m2,¨,mt). Accordingly, embodiments using hashed key bit sequences can reduce the risk of reconstruction attacks.
Furthermore, a hashed keystore cp(Y) remains information-theoretically E-secure up to order n, where s = En, as shown below.
[0141] In embodiments where the relationship between the keystore seed, the key bit size and the set of distinct seed bit positions in the selected key derivation set is defined as L > t(1 ¨ 1), for any number n> 1, the example hashed keystore q5(11J) defined in (13) is information-theoretically E-secure up to order n, where E = ET, is given by (6) to (9).
[0142] An example implementation of an embodiment for generating one or more encryption keys from a keystore seed will now be described. In the example implementation, an encryption key is generated as a hashed key bit sequence.
[0143] In the example, the keystore seed K1 may have a first bit length L of 4096 bits, and the key bit sequences (as well as the encryption keys) may each have a second bit length / of 256 bits. The keystore seed Ki includes a plurality or set of seed bits K1 = K1(0)K1(1)=== Ki(4095). A plurality of key derivation sets m can be determined, with each key derivation set defined to include a plurality of key derivation values mi for each encryption key. For each encryption key, the plurality of key derivation values in the key derivation set for that encryption key indicates how to derive that encryption key from the key seed K. For example, each key derivation value mi may correspond to a distinct seed bit position in the keystore seed Kl.
[0144] In some embodiments, for any key derivation set with 0 15._ m1 <
m2 < === < ms < 4095, we can define a key bit sequence as:
k(mi, m2, === , ms) = Mmi)Ki(mi + 1) ===Ki(mi + 255) /=1 where the string summation is the binary addition and the integer addition is with respect to module 4096. In this example, the keystore W including a plurality of encryption keys can be generated from the random seed Ki as a hashed keystore according to:
= IM AC (k(mim2, = = = , ms), rniiiniziim30n4irinsii 0 ther I nput ):
0 < < m2 < = = = < ms 4095}
where HMAC stands for the keyed-hash message authentication code with, here, for example, the SHA-256 hash as its embedded hash function (see for example, National Institute of Standards and Technology, The Keyed-Hash Message Authentication Code (HMAC). Federal Information Processing Standards Publication 198-1, July 2008), H denotes concatenation, and Otherl nput represents other keying materials which, along with m2, === , ms, can be appended to encrypted data. In the above example, to generate any individual encryption key from the key seed K1 the key derivation values ml, m2, ===, n15 of a particular key derivation set can be specified.
[0145] Note that in this example, A > 253. It can be further shown that in this case, Properties (1) to (4) mentioned above are satisfied.
Specifically, the following hold:
a) Given any key derivation set with key derivation values 0<m1<m2 < === < 7715 < 4095, the key bit sequence k(mi, m2, === , m5), and in turn the encryption key, is uniformly distributed over [0,11256.
b) For any pair of key derivation sets (m1, m2,=== , Ms) #
(fill, in-2, = = = , /715) with 0 <m2 <== <m5 4095 and 0 < ni1 <m2 < === < lit 5 < 4095, the probability of a key collision is Prfk(mi, m2, = ms) = k(fhi, ff2, in-5)) = 2-256 c) For any two independent key derivation sets (mi, m2, ===,m5) and (1, , ills) with 0 <m2 < < 4095 and 0 < < < = = = < Iris < 4095, one has:
H(k(7111,M2,===, his) 7/12, = = = 7/15, /RD 1112, fh51 k(mi, rn2, ===
, ms)) > 0.6 x 256
[0146] Results (a) to (c), together with the properties of HMAC, in turn imply Properties (1) to (4) above.
[0147] Given the properties of information-theoretical &security, the embodiments described herein for generating keys using linear operations on keystore seeds can be secure against any attack to individual files or keys.
Furthermore, embodiments using hashed encryption keys cp(T) can be further robust against the keystore seed reconstruction attack. With a reasonable length of the keystore seed, the number A of keys that can be generated randomly using the embodiments described herein is also large enough to support practical one-time-pad for most applications, as shown in Tables 1 to 5.
[0148] Embodiments described herein may simplify managing a large set of randomly generated keys by instead managing a single keystore seed K. With a smaller keystore seed, keystore seed management is simplified, while on the other hand, the number A of random keys generated from a keystore seed should be large enough to support practical OTP. Accordingly, the size of the keystore seed may be selected based on particular applications (such as devices being connected through the Internet of Things) e.g. where the keystore seed has to be short. Accordingly, different implementations may have different results in the trade-off between A and the length of the keystore seed subject to information-theoretical E-security with small s and the condition that each key is easy to compute from its keying information and the keystore seed.
[0149] In some embodiments, the key bit sequence may be determined from the keystore seed and a key derivation set that is defined as a key derivation matrix. The key bit sequence may be determined according to:
kT = AKT (14) where the keystore seed K = (K(0),K(1),=== , ¨1)) is defined as a row vector of length L that includes the seed bits from the keystore seed K; the key bit sequence k can be defined as a row vector of length 1 consisting of the key bits from the key bit sequence k(mi, m2, ¨, me); the transposed vectors of K and k are denoted by KT and kT, respectively; and the key derivation matrix A = (Ajj)0i_to<i<L_i is an 1 x L matrix corresponding to the key derivation set (m1, m2, ===, me) with Ai 1 if j=ma+i for some 1<a<t (15) j = {0 otherwise
[0150] In (15), the addition of ma and i is with respect to module L.
Note that each row of the key derivation matrix A contains t ones. A will be referred to as a matrix of slash type with row weight t. There is one to one correspondence between matrices of slash type with row weight t and key derivation set vectors (mi, m2, === , mt) with 0 5_ m1 <m2 < < mt 5_ L ¨1.
Let G(L,I,t) include the set of all 1 x L matrices of slash type with row weight t. Then the keystore IP in (2) can also be rewritten as = ye' = AKT: A E G(L,1,t)) (16)
[0151] The slash structure of A provides a simple key index for encryption keys in the keystore P. In some embodiments, it may not be necessary to use matrices of slash type in (14) and (16) in order for the keystore IP to remain information-theoretically E-secure. For example, let G(L,1) be a set of / x L binary matrices such that P1. Each key derivation matrix A c G(L, I) is of rank /;
P2. for any two distinct key derivation matrices A1, A2 c G(L,1), the sum of the distinct key derivation matrices A1 + A2 (module 2) is still of rank land P3. for any two independent key derivation matrices Al, A2 selected randomly from G(L,1), the matrix (AA1) of size 2/ x L is, with probability ri2 at least (1 ¨ ), of rank 2/.
[0152] Replacing G
(L, I, t) in (14) and (16) by G(L,1), illustrates that such embodiments may still provide information-theoretical E-security.
[0153] A particular keystore P(L, I, E, n) (A) can be defined as the set of encryption keys of length / generated according to algorithm A, from the random keystore seed K of length L bits and key indices i, such that tP (L, I, E,n)(A) is information-theoretically E-secure up to order n with small S.
Define the linear key capacity as CF(L, I, E,n) = max I (L, I, E,n)(Ae) I (17) Af and the general key capacity as C (L, I, E, = max IT(L , 1, E, n)(A) (18) A
where the maximization in (17) is taken over all possible linear algorithms !Le which generate a key of length 1 from the random keystore seed K of length L
bits and a key index i using linear operations, and the maximization in (18) is taken over all possible key generation algorithms A. We shall refer to Ce(L,1, E, n) as the linear key capacity of the random keystore seed K with parameters (I, E, n), and C(L,1, E, n) as the general key capacity of the random keystore seed K with parameters (I, E, n). The size A = (L) of the keystore in (2) provides a lower bound to the linear key capacity Ce(L,/,E,n) when E = En.
[0154] Embodiments described herein for information-theoretically 5-secure key generation may be contrasted with processes for data compression. In data compression (see, for example, T. Cover and J.
Thomas, Elements of Information Theory. Wiley & Sons, New York, 2006; J.
C. Kieffer and E.-H. Yang, "Grammar based codes: A new class of universal lossless source codes," IEEE Trans. Inform. Theory, VoLIT-46, No. 3, pp.
737-754, May 2000; E.-H. Yang and J. C. Kieffer, "Efficient universal lossless compression algorithms based on a greedy sequential grammar transform¨
Part one: Without context models," IEEE Trans. Inform. Theory, VoLIT-46, No. 3, pp. 755-777, May 2000) the purpose is to compress a long sequence of (strongly or weakly) dependent random bits into a shorter sequence of independent and uniformly random bits. By contrast, in embodiments of information-theoretically &secure key generation, the purpose is to expand a short sequence of independent and uniformly random bits (i.e., the keystore seed) into a much larger set of weakly dependent keys with each key still being uniformly random over the key space {0,1}1.
[0155] Referring now to FIG. 2, shown therein is an example embodiment of an encryption process 200. Encryption process 200 is an example of a process that may be performed by an encryption application 114 installed on a computing device 102. The encryption application 114 may be provided to a computing device 102, e.g. for download from Q-server 130, for installation on that computing device.
[0156] At 210, the encryption application 114 can be operated to generate a keystore seed. The keystore seed can include a seed bit set with L
seed bits in an ordered sequence. In general, L will be an integer greater than 3 and some specific examples for L have been given above in Tables 1 to 5.
Each seed bit in the seed bit set has a seed bit position in the ordered sequence. The seed bits in the seed bit set can also be independent and identically distributed, so that each seed bit has an equal probability of taking any value within the seed bit space.
[0157] In some cases, the encryption application 114 may generate one or more keystore seeds with assistance from the Q-server 130. The server 130 may randomly generate server key values for the first user. The server key values can be stored in the non-volatile memory of the server and transmitted to the device 102. The encryption application 114 can generate the plurality of key seeds based on the server key values and the plurality of key indicators.
[0158] In some embodiments, encryption application 114 may send a key indicator amount to Q-Server 130. The key indicator amount may identify a number of key indicators generated by the encryption application 114. The key indicator amount may be in the form of a pair of integers (0,1). The key indicator amount may indicate to server 130 that its assistance is requested to generate keystore seeds.
[0159] Upon receiving the key indicator amount (e.g. the pair of integers (0,J), Q-Server 130 can generate server key values as independent random numbers V0,171, ===,17j. The server key values may be random numbers. The server 130 can send the random numbers 170,171,=== , V./ back to the encryption application 114. The encryption application 114 can then generate one or more independent keystore seeds using those random numbers. Further details of methods for generating keystore seeds are described in the Applicant's PCT Patent Application No. PCT/CA2015/050543 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER
PROGRAM PRODUCT FOR PROVIDING ENCRYPTION ON A PLURALITY
OF DEVICES" now published as PCT Patent Publication No.
W02015/188277 and Applicant's U.S. Patent Application No. 14/737,940 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER
PROGRAM PRODUCT FOR PROVIDING ENCRYPTION ON A PLURALITY
OF DEVICES" which has now been published as US2015/0363607A1.
[0160] The encryption application 114 can store the keystore seed on the computing device 102. The keystore seed may be stored in an encrypted manner, for instance where a verification code is required before the keystore seed can be determined on the computing device 102.
[0161] At 220, the encryption application 114 can determine a plurality of key derivation sets. Each key derivation set can be determined to include a plurality of key derivation values. The key derivation values may correspond to seed bit positions in the ordered sequence of the keystore seed.
[0162] In some embodiments, the key derivation values in each key derivation set may include a set of t distinct seed bit positions in the ordered sequence, where t is an integer greater than or equal to 1. The plurality of key derivation sets can be determined to include all the possible sets of t distinct seed bit positions in the plurality of key derivation sets. That is, in some embodiments each possible set of t distinct seed bit positions may be determined to be one of the key derivation sets. Accordingly, the plurality of key derivation sets may include all possible permutations of t distinct seed bit positions in the ordered sequence.
[0163] In some embodiments, each key derivation set may be a binary matrix of size 1 x L with rank of 1. The plurality of key derivation sets can be determined to include a plurality of binary matrices of size 1 x L with rank of 1, where the plurality of binary matrices is determined such that the module 2 addition of any two binary matrices in the plurality of binary matrices is also of rank/.
[0164] At 230, the encryption application 114 can select one of the key derivation sets in the plurality of key derivation sets as a selected key derivation set. The encryption application 114 may randomly select the selected key derivation set. For instance, each key derivation set may be associated with a particular key index. The encryption application 114 may randomly select a key index value (e.g. using a random number generator) and then determine the selected key derivation set by identifying the key derivation set corresponding to that key index value.
[0165] At 240, the encryption application 114 can generate a key bit sequence from the seed bit set and the selected key derivation set. The key bit sequence may have 1 bits, where 1 is a positive integer less than L. In some cases, the key bit sequence may be generated by applying linear operations to the seed bit set. In other cases, non-linear operations such as one-way functions and hash functions may be applied to the seed bit set to obtain the key bit sequence.
[0166] In some embodiments, the encryption application 114 can generate the key bit sequence by determining a plurality of derived seed bit sequences from the seed bit set. The plurality of derived seed bit sequences can include one derived seed bit sequence for each of the key derivation values in the selected key derivation set.
[0167] For example, for each of the t distinct seed bit positions in a selected key derivation set, a derived seed bit sequence may be determined from the seed bit set. Each derived seed bit sequence can be determined to include / consecutive bits from the seed bit set (following the ordered sequence). The 1 consecutive bits for each derived seed bit sequence may begin from a seed bit whose seed bit position in the ordered sequence is equal to the corresponding distinct seed bit position in the selected key derivation set. Each derived seed bit sequence may then include the / ¨ 1 successive seed bits in order following along in a cycle of the ordered sequence. The key bit sequence may then be determined as a linear function (e.g. addition, subtraction) of the derived seed bit sequences in the plurality of derived seed bit sequences.
[0168] For example, as shown above in Equation (1) the key bit sequence k(mi,m2,¨,mt) can be generated according to k m2, = == , mt) = K(mi)K(mi +1)=== K(mi + 1 ¨ 1) where each derived seed bit sequence is defined by K(mi)K(mi +
1) ===K(mi +1¨ 1) and the selected key derivation set is defined as 0 < m1 <
m2 < === < mt L ¨ 1.
[0169] In some embodiments, generating the key bit sequence may include multiplying the selected key derivation set as a binary matrix of size 1 x L by the keystore seed as a seed column vector of dimension L. The key bit sequence may then be determined as the key column vector of dimension 1 resulting from the multiplication.
[0170] For example, as shown in Equation (14) above, the key bit sequence may be generated according to kT = AKT
where the selected key derivation set is defined as a key derivation binary matrix A of size 1 x L with rank of 1, K = (K(0),K(1),===,K(L ¨ 1)) is the keystore seed row vector of dimension L that includes the seed bits of the seed bit set in their seed bit positions in the ordered sequence, and KT and kT
are the transposes of K and k, respectively.
[0171] At 250, the encryption application 114 can generate an encryption key using the key bit sequence. The encryption key may have u bits, where u is a positive integer not greater than /. In some cases, the encryption application 114 may generate the encryption key as the key bit sequence determined at 240. In other cases, the encryption application 114 may apply linear operations to the key bit sequence determined at 240 to generate the encryption key.
[0172] In some cases, the encryption application 114 may determine a hashed key bit sequence by applying a hash function to the key bit sequence.
The encryption application 114 may then determine the encryption key using the hashed key bit sequence. In some cases, the encryption application 114 may determine the encryption key to be the hashed key bit sequence.
[0173] At 260, the encryption application 114 may determine keying information corresponding to the encryption key generated at 250. The keying information can be determined from the selected key derivation set used to generate the encryption key. The keying information is generated to enable the encryption application 114 to re-generate the encryption key from the keystore seed.
[0174] The encryption application 114 can generate the keying information such that the selected key derivation set is derivable from the keying information. For example, the encryption application 114 may define a key derivation index for the plurality of key derivation sets. The keying information may then be defined to include the key derivation index value corresponding to the selected key derivation set. In some cases, the encryption application 114 may generate the keying information as the key derivation values for the selected key derivation set.
[0175] The encryption application 114 can also generate keying information for the encryption key so that the mutual information between the encryption key and the keying information is zero. Accordingly, the encryption key and the keying information can be generated to be statistically independent. As such, the keying information may disclose zero information about the encryption key directly in the absence of knowledge of the keystore seed.
[0176] Accordingly, if an encrypted file is transmitted along with its keying information, the keying information does not provide any additional information to allow an attacker to decrypt the encrypted file unless the attacker also has knowledge of the keystore seed. Thus, encryption files may be transmitted along with the corresponding keying information (potentially even in plaintext) to a receiving party having the same keystore seed to allow them to easily decrypt the encrypted file.
[0177] The encryption application 114 may derive a plurality of encryption keys (i.e. keystore 4,) P = fki: 1 A) from random key seeds K2,===,K1, where A is a large number. When the encryption application 114 receives a file for encryption, the file can be encrypted using one of the derived encryption keys from the keystore T. Similarly, when a file is moved to the encryption application 114, or modified under the control of the encryption application 114, the encryption application 114 can encrypt and store the new or modified file using the derived encryption key. For example, the encryption application 114 may select an encryption key from the keystore to use to encrypt the file. In some cases, the encryption application 114 may randomly select the particular encryption key from the plurality of encryption keys when the encryption application 114 receives an indication of the file to be encrypted (e.g. an indication that a file is being moved to the encryption application 114, created in the encryption application 114 for storage, or modified in the encryption application 114). The encryption application 114 can then store the encrypted file along with keying information, which indicates how to derive the particular encryption key for that file from the key seeds K1, K2, ===,K1 or from the keystore P.
[0178] For example, the encryption application 114 may generate a key index for the plurality of derived encryption keys. The key index may define a key index value for each encryption key in the plurality of encryption keys or keystore. When a particular encryption key is selected from the plurality of encryption keys and used to encrypt a file, the keying information for that file may include the key index value for that particular encryption key.
[0179] Referring now to FIG. 3, shown therein is an example embodiment of a process 300 for generating and storing ciphertext data. The process 300 may implemented using the encryption application 114 on one of the computing devices 102.
[0180] At 310, the encryption application 114 may receive plaintext data to be encrypted. For example, the encryption application may receive an unencrypted file such as documents or images files. The encryption application may also receive other data such as messages in plaintext. The encryption application 114 may then be used to encrypt the plaintext data, e.g. for storage on the device 102, for transmission to a cloud server 150 for storage, for transmission to a second device 102B (for example directly to the second device 102B through a network, or through the cloud server 150, or otherwise transmitted to the second device) or other device or storage platform for encrypted storage, or decryption and review or editing.
[0181] At 320, the encryption application 114 can generate ciphertext data from the plaintext data by encrypting the plaintext data using an encryption key such as an encryption key generated at 250 of process 200.
The encryption key can be derived in various ways, as described above, such as by selecting a particular encryption key from a keystore. The encryption key may be randomly selected or randomly generated when the encryption application 114 receives an indication of the plaintext data to be encrypted.
[0182] Using the keystore seed(s) on a first device 102A, the encryption application 114 on that device can generate one or more encryption keys as described above in process 200. In some cases, the encryption application 114 may generate a plurality of encryption/decryption keys, i.e., a keystore on the first device 102A. In general the plurality of encryption/decryption keys generated by the encryption application 114 may be symmetrical encryption/decryption keys. The plurality of encryption keys may then be stored on the non-volatile memory of the first device 102A. In some cases, the plurality of encryption keys may be encrypted (e.g. using the verification code) prior to being stored on the non-volatile memory of the first device 102a. In such cases, the encryption application 114 may select one of the stored encryption keys to use in encrypting the plaintext data.
[0183] Alternatively, as mentioned above, the encryption application 114 may not store encryption keys on a computing device 102. Rather, the encryption application 114 may generate an encryption key using the keystore seed each time plaintext data is to be encrypted. The keying information corresponding to the generated encryption key may also be generated as described at 260 in process 200.
[0184] At 330, the encryption application 114 may store the ciphertext data generated at 320 along with the corresponding keying information. The keying information may enable the encryption application to generate the encryption key in order to subsequently decryption the ciphertext data.
[0185] The encrypted file/ciphertext data can be stored to the non-volatile memory of the device 102. In some cases, the encrypted file need not be stored to the device 102. For example, the encrypted file may be transmitted to another device 102 or to a cloud server 150 along with the keying information. In some embodiments, the file and the encrypted file can be erased from the device 102 on which it was encrypted after transmission.
[0186] As mentioned, the encryption application 114 may generate an encryption key as necessary to encrypt plaintext data or decrypt ciphertext data. Accordingly, the encryption application 114 may delete the encryption key and the key bit sequence from a computing device 102 each time after particular ciphertext data is generated or decrypted. Thus, the encryption key itself is not vulnerable to being identified from being stored on the device.
Further, the encryption application 114 can reduce the amount of storage required on the computing device 102.
[0187] Referring now to FIG. 4, shown therein is an example embodiment of a process 400 that may be used to decrypt ciphertext data in accordance with an example embodiment. Process 400 may be implemented using the encryption application 114 on the same device 102 as was used to encrypt the plaintext data, or another device having the encryption application.
[0188] The operation of process 400 is generally the same whether it is on the same device 102 used to encrypt the plaintext data, or a different device 102, so long as each device has the same keystore seed. A second computing device may be provided with an encryption application 114 to be installed thereon. The encryption application 114 may then be used at the second computing device to determine the keystore seed and its seed bit set.
The encryption application 114 may then be used to synchronize the keystore seed between the devices.
[0189] In order for files encrypted by the encryption application 114 on first device 102A to be decrypted by the encryption application 114 on the second device 102B (or any other device 102) after files are moved from the first device 102A to the second device 102B, the keystore seed(s) [K1, K2, = = = , KA, in some example operations, can be synced across the devices 102. The keystore seed may be synchronized between computing devices either manually or automatically as discussed above and in the Applicant's PCT Patent Application No. P0T/CA2015/050543 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR
.. PROVIDING ENCRYPTION ON A PLURALITY OF DEVICES" now published as PCT Patent Publication No. W02015/188277 and Applicant's U.S. Patent Application No. 14/737,940 filed June 12, 2015, entitled "METHODS, SYSTEMS AND COMPUTER PROGRAM PRODUCT FOR PROVIDING
ENCRYPTION ON A PLURALITY OF DEVICES" which has now been published as U52015/0363607A1.
[0190] At 410, ciphertext data can be received by a computing device 102. The ciphertext data may be received from another computing device 102, retrieved from a cloud server 150, or otherwise transmitted to the computing device 102. In some cases, the ciphertext data may have been stored on the computing device 102 and is received by the encryption application 114 for decryption.
[0191] At 420, keying information can also be received at the computing device. The received keying information corresponds to the ciphertext data received at 410 and to the keystore seed used to generate the encryption key that was used to encrypt the ciphertext data.
[0192] In some cases, the ciphertext data and keying information may be received by a second computing device 102 different from the computing device on which the ciphertext data was generated. In such cases, the second computing device 102 may require the same keystore seed (and seed bit set) to be generated thereon as was used to encrypt the ciphertext data.
[0193] At 430, the encryption application 114 can determine a key derivation set from the received keying information. The determined key derivation set corresponds to the selected key derivation set used to generate the encryption key that was used to encrypt the ciphertext data.
[0194] At 440, the encryption application 114 can generate a key bit sequence having I bits from the seed bit set and the key derivation set determined at 430. The key bit sequence can be generated in the same manner as described above at 240 of process 200.
[0195] At 450, the encryption application can generate an encryption/decryption key having u bits using the key bit sequence determined at 440. The encryption/decryption key can be generated in the same manner as described above at 250 of process 200.
[0196] At 460, the encryption application 114 can generate plaintext data from the received ciphertext data by decrypting the ciphertext data using the encryption/decryption key determined at 450. A user of the computing device may then review and/or manipulate the plaintext data.
[0197] The encryption application 114 can decrypt the ciphertext files selected by a user and store the decrypted plaintext files temporarily in the volatile memory of the device 102 for the user to read and/or edit. After the user closes each plaintext file, the encryption application 114 may erase the plaintext file from the volatile memory of the device if there is no change.
The encryption application 114 may encrypt the plaintext file again using a particular key (e.g. a new randomly picked key from the keystore IP, the same key, or a newly derived encryption key), and store the encrypted file in the non-volatile memory of the device 102.
[0198] The encryption application 114 may overwrite the original encrypted file in the non-volatile memory of the device 102 with the newly encrypted file, and then wipe out the plaintext file from the volatile memory of device 102 if, on ceasing to access the plaintext file, the user has made any change to the plaintext file. Once again, the encryption application 114 may store keying information along with the encrypted file to enable the encryption key for that file to be derived from the keystore seed information or from the keystore.
[0199] The embodiments described herein may be implemented as systems, methods, devices and computer program products that provide key generation and management that may enable one-file-one-key secure encryption (also called practical one-time pad). In some such embodiments, each individual file can be encrypted using a unique key, from an information theoretic point of view.
[0200] The embodiments herein have been described in terms of information-theoretical &security to measure the security of a keystore (i.e., a set of random keys, ki,1<i< A, each having length of 1 bits). In embodiments described herein the keystore, and the corresponding encryption keys, be generated from a keystore seed which may be provided .. as a set of seed bits which may be defined as random string of L bits.
[0201] Various embodiments of methods for generating encryption keys from the keystore seeds have been described. These include linear key generation methods as well as hashed key generation methods. Examples of the resulting keystores W = tki: 1 A) and O(P) = tO(ki): 1 A) have been shown to be information-theoretically s-secure with small E. Particular examples with L= 216 and / = 256 described above show that A can be greater than 2138 and E can be less than 8.205 x 10-12. The information-theoretical &security of the encryption keys generated in the example keystores IP and (110 along with the large number of encryption keys that can be generated of A easily from the keystore seed and key derivation sets (and key derivation values) may enable applications of practical one-time pad to large-scale data communications and storage systems while removing challenges in distributing and managing a large set of random keys.
[0202] A number of example embodiments have been described herein. However, it will be understood by persons skilled in the art that other variations and modifications may be made without departing from the scope of the embodiments as defined in the claims appended hereto.

Claims (24)

CLAIMS:
1. An encryption method comprising:
providing an encryption application for installation on a computing device;
operating the encryption application to determine a keystore seed comprising a seed bit set with L seed bits in an ordered sequence where L is an integer greater than 3, wherein each seed bit in the seed bit set has a seed bit position in the ordered sequence, and the L seed bits in the seed bit set are independent and identically distributed;
storing the keystore seed on the computing device using the encryption application;
operating the encryption application to determine a plurality of key derivation sets, each key derivation set including at least one key derivation value;
randomly selecting a selected key derivation set from the plurality of key derivation sets;
operating the encryption application to generate a key bit sequence having ~ bits from the seed bit set and the selected key derivation set, wherein ~ is a positive integer less than L, generating an encryption key having µ bits using the key bit sequence, wherein µ is a positive integer not greater than ~;
determining keying information corresponding to the encryption key, the keying information being determined from the selected key derivation set, wherein the selected key derivation set is derivable from the keying information and wherein a mutual information amount between the encryption key and the keying information is zero such that the encryption key and the keying information are statistically independent, and the keying information discloses zero information about the encryption key absent knowledge of the keystore seed;
receiving, by the encryption application, plaintext data;

operating the encryption application to generate ciphertext data by encrypting the plaintext data using the encryption key; and storing the ciphertext data and the corresponding keying information using the encryption application.
2. The method of claim 1, further comprising:
receiving second ciphertext data at the computing device;
receiving second keying information at the computing device, the second keying information corresponding to the second ciphertext data and to the keystore seed;
determining by the encryption application, a second key derivation set from the second keying information;
generating a second key bit sequence having ~ bits from the seed bit set and the second key derivation set;
generating a second encryption key having µ bits using the second key bit sequence, wherein µ is less than or equal to ~; and generating second plaintext data by decrypting the second ciphertext data using the second encryption key.
3. The method of any one of claims 1 and 2, wherein the at least one key derivation value in each key derivation set comprises a set of .tau. distinct seed bit positions in the ordered sequence, and the plurality of key derivation sets is determined to include all possible sets of .tau. distinct seed bit positions in the ordered sequence, wherein .tau. is a integer greater than or equal to 1.
4. The method of claim 3, wherein generating the key bit sequence having ~ bits from the seed bit set and the selected key derivation set com prises:
determining a plurality of derived seed bit sequences from the seed bit set, the plurality of derived seed bit sequences including one derived seed bit sequence for each of the .tau. distinct seed bit positions in the selected key derivation set, wherein each derived seed bit sequence includes ~ consecutive bits from the seed bit set, and the ~

consecutive bits for each derived seed bit sequence begin from the seed bit having the seed bit position equal to the corresponding distinct seed bit position in the selected key derivation set and includes the ~ ¨ 1 successive seed bits in a cycle of the ordered sequence; and determining the key bit sequence as a linear function of the derived seed bit sequences in the plurality of derived seed bit sequences.
5. The method of claim 4, wherein generating the key bit sequence having 1 bits from the seed bit set and the selected key derivation set comprises generating the key bit sequence k(m1, m2, ===, m .tau.) according to wherein each derived seed bit sequence is determined by K(m i)K(m i+
1) === K(m i +~¨ 1) and the selected key derivation set is defined as 0 <=m1 <
m2 < === < m .tau. <= L ¨ 1.
6. The method of any one of claims 1 and 2, wherein each key derivation set is a binary matrix of size ~ x L with rank of ~, and the plurality of key derivation sets is determined to include a plurality of binary matrices of size ~ x L with rank of ~ such that the module 2 addition of any two of the binary matrices in the plurality of binary matrices is also of rank ~.
7. The method of claim 6, wherein generating the key bit sequence having ~ bits from the seed bit set and the selected key derivation set com prises:
generating a key column vector of dimension ~ by multiplying the selected key derivation set as a binary matrix of size ~ x L by the keystore seed defined as a seed column vector of dimension L, and determining the key bit sequence as the key column vector.
8. The method of claim 6, wherein generating the key bit sequence having l bits from the seed bit set and the selected key derivation set comprises generating the key bit sequence k according to k T = AK T
where the selected key derivation set is the binary matrix A of size l ×
L with rank of l, K = (K(0),K(1),.multidot.,K(L - 1)) is a seed row vector of dimension L
comprising the seed bits at their seed bit position in the ordered sequence, K
T
is the transpose of K and k T is the transpose of k.
9. The method of any one of claims 1 to 8, wherein generating the encryption key having u bits using the key bit sequence comprises determining the encryption key to be the key bit sequence.
10. The method of any one of claims 1 to 8, wherein generating the encryption key having u bits using the key bit sequence comprises:
determining a hashed key bit sequence by applying a hash function to the key bit sequence; and determining the encryption key to be the hashed key bit sequence.
11. The method of any one of claims 1 to 10, further comprising:
providing the encryption application for installation on a second computing device;
operating the encryption application on the second computing device to determine the keystore seed comprising the seed bit set;
storing the keystore seed comprising the seed bit set on the second computing device using the encryption application;
receiving at the second computing device the ciphertext data and the keying information;
operating the encryption application on the second computing device to determine the selected key derivation set from the keying information;

operating the encryption application on the second computing device to determine the key bit sequence from the seed bit set stored on the second computing device and the selected key derivation set;
operating the encryption application on the second computing device to generate the encryption key using the key bit sequence; and operating the encryption application on the second computing device to generate the plaintext data by decrypting the ciphertext data using the encryption key.
12. The method of any one of claims 1 to 11, further comprising deleting the encryption key and the key bit sequence from the computing device each time after a particular ciphertext data is generated or decrypted.
13. A computer program product comprising a computer readable medium having computer executable instructions stored thereon, the instructions for configuring a processor of a computing device to:
determine a keystore seed comprising a seed bit set with L seed bits in an ordered sequence where L is an integer greater than 3, wherein each seed bit in the seed bit set has a seed bit position in the ordered sequence, and the L seed bits in the seed bit set are independent and identically distributed;
store the keystore seed on the computing device;
determine a plurality of key derivation sets, each key derivation set including at least one key derivation value;
randomly select a selected key derivation set from the plurality of key derivation sets;
generate a key bit sequence having 1 bits from the seed bit set and the selected key derivation set, wherein 1 is a positive integer less than L, generate an encryption key having u bits using the key bit sequence, wherein u is a positive integer not greater than I;

determine keying information corresponding to the encryption key, the keying information being determined from the selected key derivation set, wherein the selected key derivation set is derivable from the keying information and wherein a mutual information amount between the encryption key and the keying information is zero such that the encryption key and the keying information are statistically independent, and the keying information discloses zero information about the encryption key absent knowledge of the keystore seed;
receive plaintext data;
generate ciphertext data by encrypting the plaintext data using the encryption key; and store the ciphertext data and the corresponding keying information.
14. The computer program product of claim 13, further comprising instructions for configuring the processor to:
receive second ciphertext data at the computing device;
receive second keying information at the computing device, the second keying information corresponding to the second ciphertext data and to the keystore seed;
determine a second key derivation set from the second keying information;
generate a second key bit sequence having / bits from the seed bit set and the second key derivation set;
generate a second encryption key having u bits using the second key bit sequence, wherein u is less than or equal to I; and generate second plaintext data by decrypting the second ciphertext data using the second encryption key.
15. The computer program product of any one of claims 13 and 14, wherein the at least one key derivation value in each key derivation set comprises a set of t distinct seed bit positions in the ordered sequence, and the plurality of key derivation sets is determined to include all possible sets of t distinct seed bit positions in the ordered sequence, wherein t is an integer greater than or equal to 1.
16. The computer program product of claim 15, further comprising instructions for configuring the processor to generate the key bit sequence having l bits from the seed bit set and the selected key derivation set by:
determining a plurality of derived seed bit sequences from the seed bit set, the plurality of derived seed bit sequences including one derived seed bit sequence for each of the t distinct seed bit positions in the selected key derivation set, wherein each derived seed bit sequence includes l consecutive bits from the seed bit set, and the l consecutive bits for each derived seed bit sequence begin from the seed bit having the seed bit position equal to the corresponding distinct seed bit position in the selected key derivation set and includes the l ¨ 1 successive seed bits in a cycle of the ordered sequence; and determining the key bit sequence as a linear function of the derived seed bit sequences in the plurality of derived seed bit sequences.
17. The computer program product of claim 16, further comprising instructions for configuring the processor to generate the key bit sequence having / bits from the seed bit set and the selected key derivation set by generating the key bit sequence k(m1,m2,...,m t) according to wherein each derived seed bit sequence is determined by K(m i)K(m i +
1) ... K(m i +l¨ 1) and the selected key derivation set is defined as 0 <=m1 <
m2 < ... < m t L ¨ 1.
18. The computer program product of any one of claims 13 and 14, wherein each key derivation set is a binary matrix of size l x L with rank of l, and the plurality of key derivation sets is determined to include a plurality of binary matrices of size l x L with rank of l such that the module 2 addition of any two of the binary matrices in the plurality of binary matrices is also of rank l.
19. The computer program product of claim 18, further comprising instructions for configuring the processor to generate the key bit sequence having 1 bits from the seed bit set and the selected key derivation set by:
generating a key column vector of dimension l by multiplying the selected key derivation set as a binary matrix of size l x L by the keystore seed defined as a seed column vector of dimension L, and determining the key bit sequence as the key column vector.
20. The computer program product of claim 18, further comprising instructions for configuring the processor to generate the key bit sequence having 1 bits from the seed bit set and the selected key derivation set by generating the key bit sequence k according to k T = AK T
where the selected key derivation set is the binary matrix A of size I x L
with rank of l, K = (K(0),K(l),..., K(L ¨ 1)) is a row vector of dimension L
comprising the seed bits at their seed bit position in the ordered sequence, K
T
is the transpose of K and k T is the transpose of k.
21. The computer program product of any one of claims 13 to 20 further comprising instructions for configuring the processor to generate the encryption key having u bits using the key bit sequence by determining the encryption key to be the key bit sequence.
22. The computer program product of any one of claims 13 to 20 further comprising instructions for configuring the processor to generate the encryption key having u bits using the key bit sequence by:
determining a hashed key bit sequence by applying a hash function to the key bit sequence; and determining the encryption key to be the hashed key bit sequence.
23. The computer program product of any one of claims 13 to 22 further comprising instructions for configuring a second processor of a second computing device to:
determine the keystore seed comprising the seed bit set at the second computing device;
store the keystore seed comprising the seed bit set on the second computing device;
receive at the second computing device the ciphertext data and the keying information;
determine the selected key derivation set from the keying information at the second computing device;
determine the key bit sequence from the seed bit set stored on the second computing device and the selected key derivation set;
generate the encryption key at the second computing device using the key bit sequence; and generate the plaintext data at the second computing device by decrypting the ciphertext data using the encryption key.
24. The computer program product of any one of claims 13 to 23 further comprising instructions for configuring the processor to delete the encryption key and the key bit sequence from the computing device each time after a particular ciphertext data is generated or decrypted.
CA2988628A 2015-06-12 2016-06-10 Methods and computer program products for encryption key generation and management Active CA2988628C (en)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
US14/737,940 2015-06-12
US14/737,940 US9619667B2 (en) 2014-06-13 2015-06-12 Methods, systems and computer program product for providing encryption on a plurality of devices
CAPCT/CA2015/050543 2015-06-12
PCT/CA2015/050543 WO2015188277A1 (en) 2014-06-13 2015-06-12 Methods, systems and computer program product for providing encryption on a plurality of devices
PCT/CA2016/050663 WO2016197250A1 (en) 2014-06-13 2016-06-10 Methods and computer program products for encryption key generation and management

Publications (2)

Publication Number Publication Date
CA2988628A1 CA2988628A1 (en) 2016-12-15
CA2988628C true CA2988628C (en) 2019-07-09

Family

ID=60780838

Family Applications (1)

Application Number Title Priority Date Filing Date
CA2988628A Active CA2988628C (en) 2015-06-12 2016-06-10 Methods and computer program products for encryption key generation and management

Country Status (2)

Country Link
EP (1) EP3308498A4 (en)
CA (1) CA2988628C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116502253B (en) * 2023-06-29 2023-09-22 北京天健源达科技股份有限公司 Electronic medical record character encryption method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015188277A1 (en) * 2014-06-13 2015-12-17 BicDroid Inc. Methods, systems and computer program product for providing encryption on a plurality of devices

Also Published As

Publication number Publication date
CA2988628A1 (en) 2016-12-15
EP3308498A1 (en) 2018-04-18
EP3308498A4 (en) 2019-01-23

Similar Documents

Publication Publication Date Title
CN107925577B (en) Method and computer readable medium for encryption key generation and management
US9703979B1 (en) Methods and computer program products for encryption key generation and management
US10785019B2 (en) Data transmission method and apparatus
US10187361B2 (en) Method for secure communication using asymmetric and symmetric encryption over insecure communications
Ora et al. Data security and integrity in cloud computing based on RSA partial homomorphic and MD5 cryptography
Cheng et al. Efficient revocation in ciphertext-policy attribute-based encryption based cryptographic cloud storage
CN106134128B (en) Use the system and method for the faster public key encryption in associated private key part
JP2016158189A (en) Change direction with key control system and change direction with key control method
CN109525388B (en) Combined encryption method and system with separated keys
CN108810022A (en) A kind of encryption method, decryption method and device
CN114095170B (en) Data processing method, device, system and computer readable storage medium
CA2988628C (en) Methods and computer program products for encryption key generation and management
US11533167B2 (en) Methods and devices for optimal information-theoretically secure encryption key management
Kapusta et al. Secure data sharing with fast access revocation through untrusted clouds
Wu et al. A Robust Image Encryption Scheme Based on RSA and Secret Sharing for Cloud Storage Systems.
KR20200131688A (en) Apparatus and method for generating secret key, apparatus and method for genrating evaluation key
Gountia et al. Towards security aspects of secret key transmission
US11743039B2 (en) System and method for data encryption using key derivation
WO2018011825A1 (en) Encryption and decryption of messages
Tripathi et al. Survey on performance comparison of various symmetric encryption algorithms
CN114301664A (en) Communication encryption method, communication decryption device, and non-volatile storage medium
Santhi Baskaran Survey on Data Security using Encryption Algorithms in Cloud Environment
Ramakić et al. Combined hardware and cryptographic user data protection in personal computer systems and networks

Legal Events

Date Code Title Description
EEER Examination request

Effective date: 20171214