instruction
stringlengths
32
27.2k
The wikipedia page for Length Extension Attacks says "Note that since HMAC doesn't use [Merkle–Damgård constructions], HMAC hashes are not prone to length extension attacks." However, HMACs can be constructed with hashing algorithms such as MD-5, SHA-1, and SHA-256 which use these constructions. I understand that HMACs...
I was solving a Crypto Challenge in a CTF, and I got a Nihilist Cipher Encoded String. Luckily the additive key was given as a hint, and for the polybius Square key, I kinda bruteforced or I just got lucky somehow and found the word with which the polybius square was made able to decrypt the cipher text. But what if on...
Can anyone give the mathematical definition of deterministic and non-deterministic random bit generator? Providing a reference will also be very helpful.
I actually do want to know how to generate the multiplication inverse (M.I) table, I mean the calculation how the M.I been generated.. such as the M.I of 22 is 5A regarding to the table.. Do you know how to calculate M.I how the 22 will become 5A
What's the security of Elliptic Curve Cryptography over finite fields of word-sized characteristic $p\approx2^{50\pm10}$? We are talking about $\Bbb F_q$ where $q=p^k$ for some suitable $k$. Furthermore, I would like to know about the possibility of pairings over fields of such word-sized characteristics. References a...
Is there a good way to do repeatable (with the same result) encryption for pseudonymisation where the pseudonym can be decrypted? I want to set up a system to allow multiple services to communicate about subjects without them being able to join their data together themselves. They would send their requests through a "m...
It is related to my earlier question: Can zkSNARK or other zero-knowledge proofs be used to proof message authenticity without revealing private key? Are there any algorithms for which generating zero-knowledge proof is so computationally complicated that they cannot be generated in any practical time, by mainstream de...
We have a POS (Ingenico) that uses DES3-CBC encryption using a derived key. It sends encrypted data, and 10 bytes size Key Serial Number (KSN). I tried to use CKM_DES3_CBC_ENCRYPT_DATA to derive the key, and decrypted the data using DES3-CBC mech. However, I get some gibberish data something like this: \ufffd\u001dl\u...
It happens that on the internet I often find that AES encryption should use a 128-bit key only if it is used in conjunction with the GCM mode of operation. Why only with 128-bit keys? What happens if I use one of 192 or 256? Can it be? Why is this recommendation made?
In this link: Has GMAC mode a future outside GCM?, the last comment given by the user Demi, indicates that the larger the size of the text to be encrypted, the lower the security of the gmac. Why is this happening?
I am trying to understand https, as I understand https uses the Diffie–Hellman method for keys exchange and then AES for encryption. But Diffie–Hellman needs two prime numbers, where do these come from?
I don't understand the popularity of the idea of QKD (often coupled with OTP). From what I can tell, a quantum-safe key exchange algorithm like McEliece has just as much security while operating over current networks, through repeaters, and not requiring single-photon emitters. Combining this with AES seems convenient ...
When using the BB84 algorithm for QKD, you arbitrarily choose which of two filters (bases) to use when detecting a photon: rectilinear or diagonal. If you choose rectilinear, you can detect polarization with certainty if the photon is rectilinear, i.e., either vertically- or horizontally-polarized. But how? A pol...
I have a PSK. I don't want to use it directly. I want to pass a "salt"/password into a KDF and get a new key for authenticated encryption with ChaCha20-Poly1305 . I need to give the other side the nonce used. I don't have enough space to fit all of this in a packet. My plan was to generate a random nonce. But then tho...
Alice and Bob have agreed to use the Three Pass Protocol. p=1009 Alice chooses the encryption exponent e_A = 101 Bob chooses the encryption exponent e_B = 209 Now Alice and Bob send three encrypted messages: y1, y2, and y3 in this order. Which of the following are possible solutions? a. y1 = 471, y2 = 27, y3 = 14 is ...
I have a 128 bit Pre-Shared Key. I don't want to use it directly. I'd much rather generated a session key with HKDF(PSK, SALT) = SESSIONKEY. I'm however under strict size limits for packet size. So I'm looking at the option of a 12 byte (96 bit) salt. Does this significantly weaken my 128 bit PSK down to 96 bit? What i...
My question is: I'm using AES with 256 bits key in CTR mode. Will it be less secure if I use a random key and static zero nonce? key = random; nonce = 0;
I have just learned about the CBC mode of operation and that it gives the cipher by xoring the plaintext m0 with random IV and then encrypt it with random key and I found out that the CBC is not CPA-secure if the IV can be predictable. I'm considering a new mode like what if CBC work by encrypting the plain text and t...
I am using HKDF with an IKM and salt, the OKM is used as the key for an HMAC operation. The HMAC algorithm is authenticating messages in a communications system The salt is the concatenation of 2 nonces, 1 drawn drawn by each of the communicating nodes and can be found by any one observing the communications system M...
From a crypto challenge i have the following PMAC variant where the task is to forge a signature to fulfil a specific condition: Preparation: in the finite Field GF(2^128) with the polynomial x^128 + x^7 + x^2 + x + 1 as modulus we generate the PMAC-L constants like that: L(0)=AES(0) -> standard AES-128 with a random f...
this is a question about Katz-Lindell book, introduction to modern cryptography, 2nd edition, exercise 4.7, part c. For (a) and (b) it is clear that the Macs are insecure, but for (c) I am struggling to see why. For me, when the attacker will present his pair $(m^*, \langle r^*,t^* \rangle)$, the MAC will sample unifo...
Given all message blocks $w[i],i \in 0:63$ and assume that $n<128$ (arbitrary) bits $x_1,x_2,...,x_n$ of the IV values are unknown (e.g., $h_7$ bits are unknown) while other IV values coincide with those in the SHA-256 algorithm. Let $h_{i}^{j}$ denotes $i$-th hash of $j$-th round that is $$(h_{0}^{0},h_{1}^{0},...,h_{...
Referring to the following URL: http://cryptowiki.net/index.php?title=Goldwasser_Micali_cryptosystem The decryption of the message is based on wether the bit is a QRn or not, but how do we know/verify (the mathematical operations) if it is a QRn or not.
I have a question regarding the relationship between the (search) LPN problem and the GapSVP problem. I have read a related problem that explains the main theorem in Reg05: the GapSVP problem can be reduced to a search LWE problem (especially, the modulus $p>2\sqrt{n}$). What is the direct connection between LWE and G...
Let $H : \{0, 1\}^∗ \mapsto \{0, 1\}^ n$ be a collision-resistant hash function. Define $H_0(M) = H(M)\mathbin\|0^{n−10}$. That is, $H_0$ appends ($n − 10$) zeros to the output of $H$. Clearly $H_0$ is collision resistant. Now let $H_{00}$ be the result of truncating the output of $H_0$ to $n$ bits. The question is to ...
So I was implementing the $2$-point method described here[1], which requires to samples two points $P_0, P_1$ in the Frobenius eigenspace initially. It uses a method called Elligator, which seems to me only samples $\mathbb F_p$ rational points. Suppose one is given a supersingular curve $E$ defined over $\mathbb F_p$ ...
SHA384 is a hash function that can be (and is) used to verify data by checking it. Can it also be used as the background for a public-key crypto system? Here is what I mean: A 48-byte string is generated randomly. This is the private key. That 48-byte string produces another piece of data through SHA384: the public ke...
For some reasons, I was looking into libgcrypt source code and found this. If I understand this correctly, while asking to use /dev/random for some bytes, it actually checks first if rdrand is available (without being very explicit about it) and uses it up to 25%, which is fine I guess if it was used standalone. Where ...
To encrypt a message $M$, we compute $C=M^k \bmod p$ and to decrypt a Cipher-text we compute $M=C^{k^{−1} \bmod (p−1)} \bmod p$ But if we use Pohlig Hellman twice like $C_1=M^k \bmod p$, and then $C_2=C_1^k \bmod p$, So is this more secure than doing it just once or not. And what if we do it multiple times like a Casca...
While I understand the principle of bit-slicing, several papers mention byte-sliced AES implementations (see e.g. Homomorphic Evaluation of the AES Circuit and Fast Implementations of AES on Various Platforms). However, I don't clearly understand how byte-slicing works. Especially, one can read in the above mentioned ...
Let $f(x)$ and $g(x)$ denote two independent, “ideal”, unkeyed, public $n$-bit permutations (two publicly known bijective functions that produce $n$-bit outputs from $n$-bit inputs), where $n$ is an arbitrary natural number greater than or equal to $3$ (the number $3$ is here because it is the minimal size of a “crypto...
Let's assume the following situation: The attacker has extracted 1000 password hashes from a website (vuln.com) along with all their usernames and hashing algorithm (assume bcrypt). The only piece of information stopping them from cracking all the hashes is the missing passwords and salts. Assume the salts are all cryp...
The EdDSA signature scheme is a deterministic scheme. So could it be proven provable security in Random oracle model?
I am reading Applebaum et al.. In Lemma 1. (page 7), Applebaum et al. proved the decision to search reduction when the modulus $q=p^e$ for prime $p$. In the proof, they define the hybrid distribution $A^i_{\mathbf{s},\chi}$ and say "By a hybrid argument and standard amplification techniques, we can use an algorithm $D$...
There are Client and Server. Client have previously send public keys for x25519 and ed25519 to the server. And now need to prove that it has private keys for them. I have found similar solutions in description of ssh protocol by Digital Ocean: https://www.digitalocean.com/community/tutorials/understanding-the-ssh-encry...
Let $a_1$ through $a_k$ be some permutation of the first $k$ primes. Let $n \in [1,k!]$ be a parameter specifying the exact ordering by taking the $n$th permutation in a sorted list or by some other simple mechanism. Then define $f(n,k)=a_1^{p_1}+a_2^{p_2}+\ldots+a_k^{p_k}$, where $p_i$ is the $i$th prime, and the $a_i...
I am implementing a custom challenge-response protocol to authenticate a client to a server. Mutual authentication is not required, i.e. the server doesn't need to be authenticated to the client. The protocol works over TCP. Client and server are in a LAN (not over the internet). There is only one server and only one c...
My question is regarding to : How does AWS Secret key and access key work The point 5: AWS service verifies the identity of the sender and integrity of the message by recomputing the HMAC code. How does the service verify the identity of the sender? Does the AWS service know the secrete key? if so how does it get ...
I came up with a threat model where: Alice and Bob agree on a shared key $K$ Alice sends a plain text $M$ and its $\operatorname{MAC}$ tag, $T = \operatorname{MAC}(K,M)$ to Bob over an untrusted network Eve collects pair of $M$ and $T$, thus mount a replay attack First of all, I am curious whether my threat model is ...
HElib has no general purpose API for number operations such as comparison or division. How can we implement division operation on ciphertext?How to encrypt floating numbers of any length in homomorphism and add, subtract, multiply and divide them?
Alice has symmetrically encrypted the large (100Mb) MessageA with a random key K1, and then asymmetrically encrypted K1 with Bobs public key. She then stores the encrypted large message in a central and public repository and sends Bob's key to him. Can Bob then decrypt the key K1 with his private key and then encrypt t...
I saw a question on StackOverflow where RC4 was initialized by a 1024 bit key (with 2048 the maximum key size, if I'm not mistaken). Will such a large key size possibly solve any of the bias of the initial bits of the key stream produced by RC4? Does it increase security any other way - other than brute force? Is there...
In an embedded environment, what AES key wrap algorithm is best, in terms of performance and security coverage? We are using RSA PKI asymmetric encryption.
In for example the Microsoft Encrypting File System, the SYM-Key is first encrypted with a RSA-Pub-key and its corresponding private-key is then encrypted using a users password. Why not encrypt the SYM-key directly with the PW?
Is there any way to change a password using a PAKE-like algorithm, without the server getting the plaintext of either the old or new password?
The enigma machine had a serious flaw: the letters could not be encrypted as themselves. Is there an online enigma simulator I can try that does not have this flaw, which would likely make it secure?
In this question regarding integrity of FPE, the main point of the answer is that: FFX is not malleable. [...] FFX can provide integrity protection in very limited circumstances. So I was wondering, in practice how does one enforce integrity of the data? For instance if the systems stores credit card information and...
I’m planning to compare cryptographic algorithms in terms of encryption/decryption time, memory used etc. and for that I’m in need of a standard dataset consisting of plaintexts of different bit sizes and character lengths. Can anyone suggest a source where I can obtain these data?
I'm using PHP. The guys over at paragonie have made encryption easy for the PHP eco-system. Now, on my computer, Alice, when I encrypt a message using Alice's private key and Bob's public key, I am also given a nonce. Its use? I don't know. I just trust the guys that it's needed and safe. Thing is, this got me thinking...
I've been looking at the various types of ciphers and I can't seem to find something I want or if it's even possible. For example the text is "London2234", when run through the cipher, it encrypts into something like "Marble2234" where a person who doesn't have the cipher doesn't see it as garbage but sees it as anothe...
So, I have a stream of tuples coming in for example [country, state, person], where state and person are unique items. Now I have to find : 1. for each country, I have to estimate average number of persons in a state. How do I design a sketch that uses a hash function that does this with a minimum memory storage.
I'm trying to understand the following RLWE encryption scheme from this Chris Peikert's paper Say i choose $q = 97$, $n=8$ and the polynomial $a = 96 x^8+30 x^7+76 x^6+12 x^5+57 x^4+77 x^3+70 x^2+49 x+83$ secret key $s = 8 x^8+7 x^7+6 x^6+5 x^5+4 x^4+3 x^3+2 x^2+x$ and error $ e = x^6+x^4+x^2+1 $ then $b = a \cdot s ...
As the Logjam attack allows a Man-in-the-Middle attacker to downgrade vulnerable TLS connections to 512-bit export-grade cryptography by modifying the ClientHello and ServerHello, can the Logjam attack be avoided by verifying the integrity of the ServerHello?
So I am developing a python program and encrypting the trained machine learning models which need to be decrypted when loading them on client side. My program will deployed on the client's machine with no internet access and I need to protect my models. Now I'd like to ask the following Whether using symmetric key enc...
Consider a shift cipher that has the following encryption scheme: The plaintext contains lowercase characters and spaces, is composed of English text, and is length 500. Thus, the message (and ciphertext) space is $\{\text{space}, a, b, ..., z\}^{500}$. There is a key $K$ of len $t$ (between 1 and 24), which is a sequ...
NOTE: I know that there are numerous topics here on StackExchange about this but I've read them all and this question still persists. I'm currently working to enhance the security of a windows based application that is sent to specific clients. We use AES encryption to create a big binary file with license data. In thi...
I am currently learning about the Diffie-Hellman key exchange. I understand that for a $g$ of $1$, the resulting key would always end up as $1$ which would obviously not be secure. I read that the $p\! -\! 1$ value for $g$ is not secure either, but there is no explanation as to why - which is my question. I guess it ha...
My question concerns the elliptic curve $E$ over a prime field $\mathbb F_p$. To the best of my understanding, ECDSA requires a Generator point $G$ of prime order $n$, and the $r$ and $s$ values of the signature must be within the range $[1,n-1]$. The concept of ECDSA is to show a person that one is in possession of a ...
As i read MD5 have many complex formulas, example: $k_i := \lfloor \space| \sin(i + 1) \times 2^{32}| \space\rfloor$ My question is why use sin(), how about cos() or tan() or something like that. Does it make any sense when use sin() ? Or just for more complex of formula lead to more secure of algorithm ?
I wish to agree with a 3rd party on using RSA-PSS algorithm for a implementing a Digital Signature Scheme. I want to avoid selection of RSA parameters like salt length, hash algorithm etc at my side and share the required configuration parameters. Instead I want to refer to a standard where all the parameters are alrea...
Is there a common terminology to designate parties in authentication protocols? For example, we typically use prover and verifier to designate parties with zero-knowledge proofs.
So I need to write a piece for school about ECDSA and how it is secure. Now I thought I had a simple question, however, I can't seem to find an answer anywhere: Why does the p in the formula need to be a prime number? Now I understand how you can only have modular inverses of prime numbers, and I thought maybe that had...
I know that for Poly1305-ChaCha20 reusing the key does reveal information about the plaintext. How it is for the Poly1305 MAC algorithm? Revealing information about the plaintext is not a problem at all, as it is available in plaintext anyways. Question: Does a reuse of the Mac key reveal information about the key itse...
both myself and my collaborators are pure mathematicians with only tangential experience in the study of cryptographic systems, so if this question is unclear or does not belong here, please do let me know. I apologize for the length of this question, after necessary background my questions appear in the last part. As...
Imagine the following situation: there are many "big" files (100Gb+) lying on 2 different remote servers you have no direct access to these files you can only read a small amount of each file (e.g. 10Mb) as well as it's general information (e.g. file size) files can have different names and paths but same content/size...
I have been told by my professor to compare two passwords as we do it in Yao's two-party protocol but without using any crypto functions. We are only allowed to use a hash function. The passwords are taken from the dictionary so we can't even send the hash of that word as we can't risk a dictionary attack. I am thinkin...
In this case we are given the distribution D from which secret s is sampled. If I can get some hints to proceed with the questions, it would be of help. Thanks,
In SSL 3.0 and TLS versions 1.0 through 1.2 the last two messages are the "Client Finished" followed by "Server Finished" messages. These messages include an encrypted (under the established session keys) MAC of all the previous messages. However, in TLS 1.3 and in the abbreviated handshake, the server is the first to ...
I should prove mathematically that: $D_k(E_k(p))=p$ I know $E_k(p)=c=(p+k)\bmod26$ and $D_k(c)=p=(c-k)\bmod26$ Substituting the two formulas to the initial assertion I have $((p+k)\bmod26-k)\bmod26=p$ And applying the $\bmod$ property twice I have $((p \bmod26+k \bmod26)\bmod26)-k)\bmod26=p$ $((p\bmod26+k\bmod...
How I can prove that ElGamal encryption in $\mathbb{Z}_p^*$ with Optimal Asymmetric Encryption Padding (OAEP) is IND-CPA secure?
I am looking at a protocol to securely multiply numbers, so as to preserve privacy of inputs. In particular, suppose there are three parties $P_1$, $P_2$ and $P_3$ and 2 numbers to multiply, $a \in \mathbb{F}$ and $b \in \mathbb{F}$ such that $\mathbb{F}$ is a finite field of prime order $p$. More precisely, $a$ is th...
Does ISAAC use key scheduling? I do not know programming. Is it safe if ISAAC derives subkeys using ISAAC itself?
I have been struggling to find the algorithm $\mathcal{A}$ in the following. Let $(G,g,q)$ be the group parameter, $p << q$, $x\in \mathbb{Z}_q$, can we build the following algorithm: $$\mathcal{A}(g,g^x,g^{x^k},p,q) = g^{y^k} \text{ where } y = \bigg \lfloor x \cdot \frac{p}{q}\bigg\rfloor \in \mathbb{Z}_p$$
I wonder if someone can represent the blockchain encryption problem (used to mine bitcoins) as a TSP-metric problem (where TSP = Traveling-Salesman Problem). Any approach or intuition of the idea to do that is welcome.
I have a basic question about the Homomorphic Encryption schemes, garbled circuits, Oblivious Transfer (OT), two-party computation, and multi-party computation. Specifically, I want to understand, how to apply these great techniques, or are these at the theoretical stage? More specifically, are the OT schemes applied i...
I have the following problem: A secret $x \in \mathbb{Z}_q$ is secret shared (additive secret sharing) between $n$ parties, now is it possible to compute the secret shares of $y = \lfloor x \rfloor _p $ without reconstructing the secret $x$. $ y = \lfloor x \cdot \frac{p}{q} \rfloor \in \mathbb{Z}_p \text{ } p < ...
I know that SHA(key || msg) is vulnerable to string concatenation attack. However, what if we specified key bit-length and msg bit-length? For example, key bit-length is 256 bit and msg bit-length is 256 bit. If msg or key bit-length is longer than 256 then we simply don't do anything. In this situation, will there be ...
In the Kerberos protocol, the user sends his ID, the server (Or ticket granting server) ID and a nonce value. The Key Distribution Center uses a key (I assume symmetrical) derived from the client's password to send a message containing the session key between the client and the server and the same nonce. It also sends ...
After looking into how TLS handshaking works it seems to inherently include the Diffie Hellman algorithm during the point where they generate a shared secret key. However as I look into this some more I find articles such as this: https://thecybersecurityman.com/2018/04/25/https-the-tls-handshake-using-diffie-hellman-...
I know that if Alice and Bob both have secret-public key pairs, they can use RSA for example. If we remove the possibility that Alice can know anything which Eve doesn't (ie Alice's secret key), is there an algorithm which makes encryption still possible? (I am new in the topic and haven't been able to find an answer.)...
The task Encrypt data in a way that a freely choosable quorum of n people out of a group of m participants are required to decrypt that data. It is not necessary to have to fulfil the quorum to encrypt data. What crypto systems and algorithms exist that solve this task? Example: A poor solution that does the trick A me...
Can an attacker guess the key given enough codes for the same key? And if so, how many times is it safe to use the same key?
Is the following possible with homomorphic encryption (or some other technique)? Suppose the cloud server keeps a key-value list for a user with each value field encrypted (prv key with user). Now, the cloud server needs to include some of its own key-value pairs to this list and sign the whole list homomorphically and...
Given a curve, I am trying to limit the private key space to ultimately cut down the Schnorr signature size as follows: Assume an elliptic curve $E$ over a field $F$ with generator point $G$ and the main subgroup's order being $\ell$. Field $F$ can be assumed to be secure. (For the sake of an example, it may be assumed...
I am reading through an information security book right now, and a confusing question poses itself to me: "Could you use a MAC as a HMAC? That is, does a MAC satisfy the same properties that a HMAC satisfies?" The book then goes on to give a hint about how MACs are computed by CBC mode of a given symmetric block c...
Suppose you have a string, precisely an MD5 hash string, which basically it is computed in the following way: "element1:element2:element3" So, in order to get the hash (MD5 hash) you can issue the command: echo -en "element1:element2:element3" | md5sum MD5_hash_output Given that MD5 is a one-way function (it is now...
Whatsapp uses 5200 iterations of SHA-512 over user's public key and identity according to WhatsApp Security Whitepaper. I wonder why? According to: Why iterate 5200 times when computing Safety Numbers in Signal? this question on Information Security.SE: It is to increase security bits to 112. I do understand why 30 d...
I have a basic question. Is there a way to define an Elliptic Curve over (binary) Finite Field of order $q=2^m$ such that by taking the points from $(0, Y_0)$ and $(1, Y_1)$ then maps them to $(q - 1, Y_{q - 1})$?
What's the simplest way to encrypt multiple bits with LWE public key cryptosystem? Some paper say use a different secret key for each bit of the message. Does that mean the length of the message need to be agreed upon before transmission?
I am trying to build a solution for the following problem and I think it is relevant to crypto: Party A has a set of indexes M, such as a group of people's ID; Party B has information of a larger group of people, and we name the set of this group as N. Let's assume M is a subset of N. Party B agrees to provide informat...
In WW1, the Germans made their communications secret by encoding their messages. This meant that the message's sender would have a codebook with all possible words and phrases he might use listed in alphabetical order. Those were attached to a random number. He would then write down the numbers corresponding to his mes...
I am new to this field. I am doing some cryptography course and have encountered $\text{GF}(2^8)$ in the famous AES algorithm. Although I do not have a strong relevant math background with this stuff(ring/field), I am really interested in it. My textbook has a question which says to prove that: $$x^8+x^4+x^3+x+1$$ is i...
In a somewhat recent lecture a claim was made that I couldn't back up myself but it got me curious whether it actually holds: If the order of the group is not prime, then the DDH assumption does not hold. So my question would simply be: How does one break DDH in general assuming only that the group order is composite...
Are there any standard (or at least well-know) elliptic curves over $F_{p^4}$ where $p$ is a ~64-bit prime? I know Microsoft has FourQ curve which works over $F_{p^2}$ where $p$ is a 127-bit prime, but I haven't come across any curve that works over extensions of ~64-bit fields. If there are no standard/well-know curve...
at IPsec, Diffie-hellman is used in framework ISAKMP resulting shared secret. some of Diffie-Hellman group may define the length of the prime number of q and the size of the secret key of K: group 1 (768 bit),Group 2 (1024 bit), atau Group 5 (1536 bit). a. what is the prime number of group 1 at decimal and hexadecimal ...
I am reading Vadim Lyubashevsky's paper on Lattice Signatures without Trapdoors and I came across a somehow counter-intuitive part where he defined an algorithm $\mathcal{A}$: $y\leftarrow D_\sigma^m$, where $D_\sigma^m$ is the discrete Gaussian distribution centered at $0$ with standard deviation $\sigma$ on $\mathbb...
Is there a signature scheme that given $x, y \in \mathbb{Z}_p^k$ and signatures $S(x)$ and $S(y)$ allows any linear combination of $x, y$ to be successfully verified, and nothing else? I'm aware of schemes where $p = 2$, where 'linear combination' just means XOR, but I'm interested in bigger fields, in particular $GF(2...
Trying to simplify my question, keeping only core concepts. Proposed solution: Both user devices generates ECDHE key pairs. Send pub keys to each other. Generate shared secret. Device that requests secrets – presents dialog with the 6 digit code. 6 digit code is just first 6 bytes of SHA-512(shared_secret||A_identity|...
The RFC is very superficial on the implementation details. What is the injective function being used? RFC (ietf) MD5 digest is produced by applying the MD5 algorithm to these items in the following order: 1. the TCP pseudo-header (in the order: source IP address, destination IP address, zero-padded protocol nu...
lets say we have a countable message space for example set of natural numbers then can we have a cryptography system that information-theoretically (Shannon or other equivalence definition) be Perfectly-secret ? if yes please give example if not an intuitionistic or mathematical proof would be great