instruction
stringlengths
32
27.2k
Gilbert, MacWilliams, and Sloane defined a solution to "perfect integrity" in Codes Which Detect Deception, unconditionally secure message authentication, not vulnerable to any cryptanalysis on its own even by an adversary with unbounded computational power, provided you have a key chosen uniformly at random the same l...
I am reading the Handbook of Applied Cryptography and on page 99 the authors write , after showing that $QRP \le_P FACTORING$: It is believed that the $QRP$ is as difficult as the problem of factoring integers, although no proof of this is known. I am not quite sure what "as difficult" means, do they say that it is as...
The definition of an unconditionally secure cryptosystem is that it cannot be broken even with infinitely computational resources and time. The one-time pad (OTP) is an example of an unconditionally secure system, there is nothing in the ciphertext that makes one message seem more probable than the other, brute-force c...
I have been reading about Pedersen Commitments, and have come across some contradictory examples, which is confusing. Just focusing on simple commitment of scalars (not EC points or vectors), then I have read this: Why is the Pedersen commitment perfectly hiding? which states: Public parameters - 2 primes , such that...
I'm testing IEEE's P1619, which is XTS mode. IEEE documents from 2007 provided both test vectors and a reference implementation. Documents from 2008 only provided the reference implementation. Here is the 2007 document with both. The reference implementation stayed the same from 2007 and 2008. The problem is, the refer...
Sorry I didn't put enough details on my last question, I didn't expect that there is really lots of factors, so most answers were left for speculations. In this question, I will give the scenario I am looking at: This is the code //seed is 64xF Hex //example 0123456789abcdef0123456789abcdef0123456789abcdef0123456789a...
For a public one-way function $f()$, we can use zero proof to prove I know some secret $x$, such that the output of $x$ is a specific number $y$. However, in zcash, I need to prove that I have some secret $x$, then $cm$ which is the commitment result of $x$ is a leaf in Merkle tree. Here, $cm$ is not a specific number...
I manage a proxy server. Is it technically possible to observe and determine which cipher suite is selected between end points (client and server) without changing their SSL certificate, without mimicking server certificate through a proxy in general? My main goal is to obtain weak algorithms that parties agree upon. F...
Can someone please share a link of any research paper or web-page analyzing the security of Ring-LWE? Essentially, how should I choose my parameters to get security equivalent to 128-bit or 256-bit?
I'm looking for the homomorphic version of the following (I'm using Python here): $ a = [1,2,3] $ s = sum(a) $ print(s) 6 Is there an open source fully homomorphic library which is able to do $sum(vector)$? So far I just found libraries allowing operations with input-output either only vectorial or only integer. Her...
Are there any commutative one-way functions for floating points? I tried to explain why I need these functions. First, I describe the problem on a high level and then I further formalize it; There are three parties. Alice, Bob, and Charlie. Charlie wants to check if Alice and Bob have the same value without knowing the...
I want a cryptosystem with the following four functions: declare function encrypt(text: string, key: CryptoKey): ArrayBuffer; declare function decrypt(ciphertext: ArrayBuffer, key: CryptoKey): string; declare function concat(ciphertext1: ArrayBuffer, ciphertext2: ArrayBuffer): ArrayBuffer; declare function slice(cipher...
I was reading the paper by Boneh et al. Link. The scheme describes what is called a Verifier Local Revocation Technique. The Scheme assumes that a Revocation List [RL] allows each verifier to check the validity of the signature. The revocation check works as follows: $e(T_2/A,\hat{u}) =^{?}e(T_1,\hat{v})$, Given $T_1 ...
Suppose I always reuse p, g and a in DH and there is someone monitoring my communication. Is there a way this person can use this to perform some kind of attack to me? I believe that reusing p and g isn't a big issue, however I'm not quite sure about a.
Let $f$ be a collision resistant function i.e. it is computationally impossible to find $x_0, x_1$ such that $f(x_0) = f(x_1)$. If a computationally bounded adversary demonstrates that he knows some $x_0$ and $f(x_0)$, in what sense is he unable to determine $x_1$? My instinct is that he can do no better than choosing...
Consider a block cipher (such as AES256) as $E$, a randomly selected key $k$, a counter $i$, and an array of n-bits $M$ as the message. Also consider the following block cipher modes of operations: $E_{k \oplus i}(M_i)$, e.g. three block encryption: $$E_k(M_0), E_{k \oplus 00\ldots 1}(M_1), E_{k \oplus 00\ldots 10}(M_...
I have been studying additive ElGamal and I think I have the hang of it except the part where the message $M$ must be retrieved by computing the discrete log of $g^M$. From what I've read, the result of such computations is a function of $k$ e.g. for $g=3, M=4, \pmod{17}$ we have $3^4=13 \pmod{17}$ but computing the d...
This paper explains an attack on TLS 1.3. This was published way back in 2015 when TLS RFC was in draft stage. My question is now TLS 1.3 RFC is finalized, is this attack got addressed?
How can I find the known plain text P2 based on the given information? Assuming that the encryption is made using a common initialization vector and the mode used for encryption is OFB. Plaintext (P1): This is a known message! Ciphertext (C1): a469b1c502c1cab966965e50425438e1bb1b5f9037a4c159 Plaintext (P2): (unknown)...
The attacker doesn't need the key in order to decrypt ciphertexts or encrypt plaintexts since he/she already has the full implementation. So what's the point of hiding the key? What advantage would the attacker even have by knowing the key? Update: ddddavidee's answer below, in the second paragraph, raises an interes...
My government issues certificates for many purposed, including e-mail signing. The government doesn't provide e-mail addresses, but it does declare my e-mail in the certificate. Can I use this certificate to sign e-mail in S/MIME? Can I use this certificate to sign e-mails using Microsoft Outlook? Can I use this certi...
if you know the result of a hash, for this example the resulting hash is: ec664d1d65fd8a58c59b337b11c37a4d And you also know the hash has been made like this: const salt = "asdjbsdhal" const password = unknown; // only thing we don't know const hash = md5(salt + password); So we know that md5(salt + password) == "ec66...
How can I find two strings that have the same hash value for first $n$ bits in SHA-256? I'm implementing it by Python and I have the following ideas and problems: Keep generating two random string What is the length of the string that I need to generate? How to avoid generating the existing string again? How many ...
I have recently gotten interested in cryptography, so I looked some things up. I thought, why even use AES or DES or any other complex way for encrypting data when there are far simpler ways, like just generating a random (pseudorandom) bitstream, and XOR'ing it with the data or secret message? The point is, if you hav...
Just for anyone reading this: DO NOT ROLL YOUR OWN ALGORITHM. Besides that, is implementing a well-trusted protocol with well-trusted algorithms and libraries a good idea? Is this likely to colossally fail like rolling your own crypto? Could this be used in production after enough peer review? (I know that rolling your...
In discrete log cryptosystems like ElGamal it is noted that the "private key" $k$ should be chosen as any element of the group $G$ i.e. $k < p-1$. Does the integrity of the cryptosystem rely on $k$ being an element of the group or can it be larger as well (always assuming that $g^k \bmod{p}$ will be published in the pu...
I have read here that Elgamal is resistant to brute-force attack, because the group to where the key is selected is very large. But since the key generation is random, (i assume)there is a chance that the key generated is lower than the recommended. example, the recommended keylength is 1024 bits, but the key generated...
I have been reading a bit about how the Enigma machine was cracked in WW2. There was also this wonderful post which highlighted a lot of useful information. Let's assume I know everything about how the M3 Army Enigma machine works according to Kerckhoff's principle. Now I am wondering, in theory, if say, the Germans de...
I'm having a hard time understanding the purpose of having two primes $p,q$ for RSA to work. To illustrate my point, imagine only one prime ($p$) is used. Alice, the encryptor, can take the public encryption exponent $e$, which Bob, the decryptor, created (along with the private exponent $d$) to satisfy $$ed\equiv 1\p...
I am writing code for Elliptic Curve Cryptography. I have a class class EllipticCurvePoint. class EllipticCurvePoint{ FieldElement x, y; }; I need to support point-at-infinity (which should behave as if it is an object of type EllipticCurvePoint). Only thing I can think of is to reserve (-1, -1) for this but x and...
If $S$ is a finite set (such as outcomes of a dice). If I have a sequence $x_0 ... x_n$ of elements over $S$, how can I measure randomness quality of such a sequence as compared to measuring quality of random bits?
See this answer that explains the following sequence of operations: CipherText = IV|| AES(key1,iv,message) tag = hmac(key2,ciphertext) That answer says, You should use a different key for the HMAC. In practice tacking the sha1 sum of your encryption key is good enough. Is it really okay to use SHA1(key1) as key2? ...
Is there a deterministic pseudo random function $f$ with $r_{n+1} = f(r_n)$, $|\{r_i,\forall i\}|=N$, $r_N = r_0$, (for given random initial value $r_0$) where a function which derives the index of a given value $g(r_k)=k$ is harder than deriving the index of a given value at elliptic curve cryptography? For ECC e.g. B...
I am working on a C++ desktop application that reads an XML (also created by my org) from a public server (does not require authentication). I would like to make sure that the downloaded XML has not been tampered with and was created by my organization. Digitally signing the XML before uploading it to the server shoul...
I am working on a project which needs to share messages, and part of that project is deriving a password, I am currently using a value of 65537, totally arbitrary (it is $2^{16} + 1$, so not TOTALLY) and that takes about 1-second to compute. but, I just wondered what value or iteration count is enough? Note its just a...
Let || be the concatenation operator. Let CipherText = AES(Key1, IV, Message). Let us assume AES is used in CBC mode. I want to compute an HMAC tag on the IV and CipherText. Normally, one would do the following: Tag = HMAC(Key2, IV || CipherText) I want to know if the following would also be equally secure: Tag = HMAC...
I would like to encrypt some sensitive files on my computer and smartphone so that they remain unreadable even if the computer is stolen. So far as I'm concerned, AES is the best encryption algorithm, so I would go for it. For the AES, I also need a secret key (or cipher key). Therefore, I need a key derivation functio...
One common complaint about GPG-encrypted e-mail is that it doesn't provide forward secrecy; however with opportunistic TLS becoming increasingly common in both IMAP and SMTP, it's not unreasonable to expect that e-mail sent from one message transfer agent (MTA) to another is done over a TLS protocol that utilizes (EC)D...
I read the zcash paper recently. But I have been puzzled by a question. How did the authors prove that the coin commitment appears as a leaf of a Merkle tree with root rt? Apparently, the authors provided authentication paths for a commitment. But how to provide them in a private way?
CTR is amenable to parallelization because you can split the message into chunks, each chunk having a range of counter values associated with it, and encrypt (or decrypt) each chunk independently. What I would like to know is if any other modes can do this? EDIT: My reason for wanting to know this is that I have a clas...
I'm trying to estimate the probability that Pollard's p-1 factorization in its two-stages variant finds a factor of an RSA modulus product of $k$ random $b$-bit primes, as a function of the bounds $B_1$ and $B_2$ used. That's about $1-(1-P)^k$, or about $k\,P$ for low $P$, where $P$ is the probability that a $b$-bit p...
I have some embedded device for which I want to sign and encrypt firmware files. Firmware updates are generated by me and may be installed by the customer. The encryption is supposed to protect the intellectual property contained in the firmware and the signature prevents unauthorized modifications. For the signature t...
Consider the following three stage interactive zero knowledge proof in round $i$ The prover sends some commitment $a_i$ to the verifier. The verifier picks a challenge $c_i\in \{0 ,1\}$ Depending on the challenge, the prover responds with $r_i(c_i)$ that convinces the verifier of his knowledge. The Fiat-Shamir heuris...
Recently I've been reading papers about MPC protocol, but when I read the paper by Zahur, S., M. Rosulek, and D. Evans. 2015 Two Halves Make a Whole- Reducing Data Transfer in Garbled Circuits Using Half Gates. The researchers proposed the state-of-art technology of optimizing garbled circuit. Their main idea is to di...
I am reading about "Bingo voting" (Wikipedia, Paper), and I'm not understanding how it is secure against a corrupt election authority. If the election authority knows all the dummy votes $N_j^i$, can't it just look at any voter's ballot and tell who they voted for (by finding the candidate on the ballot whose vote is...
I want to attempt creating a decentralized dead man's switch, so I'm looking for an asymmetric encryption scheme, with the following properties (ideally), or something close to them: There is a group of n people, each with their own public and private key. Any one person can, at any time, encrypt a message using all p...
I want to derive a list of sub-keys derived[t] from a master key mk by a key derivation function KDF: derived[t] = KDF(mk, t) However mk has already been distributed by a M-of-N threshold secret sharing scheme: shared_keys = secret_sharing(mk, M, N) Is it possible to find a KDF and a secret sharing scheme such that I...
How much would using AES-CTR like 3DES improve security? Like so (Using a 512-bit key split into two; $K_1$ & $K_2$, and seperate nonces for all stages): Encrypt plaintext $P$ with key $K_1$ Decrypt ciphertext $C$ with key $K_2$ Encrypt muddled text $M$ with key $K_1$ How much would this improve AES's security? EDIT...
I’m not talking about if a collision can be found but even simply exists. The point is since it’s shorter than the length of the hash (since I’m talking about keccak256), normally there’s a hash value for each possible data. I mean in that case there’s more possible hash than possible values for input data. So is the c...
I'm a complete newby, so please pardon my ignorance when it comes to basic cryptography aspects. My question is whether a biometric passport with Active/Chip Authentication (AA or CA) can be used to generate digital signatures for docs (or rather their hashes). If so, is there any API available to do that? Thank you ...
Would a HAIFA-construction based hash function like Argon2 resistant to length-extension attacks? I say that Argon2 is HAIFA-based because BLAKE is, and Argon2 is based on BLAKE.
As I'm going through NIST-SP-800-90Ar1 spec for DRBG, I found the mention of security_strength in all of the 3 specified construct in the document: Hash_DRBG, HMAC_DRBG, CTR_DRBG. However, they're all noted as optional: security_strength: The security strength for the instantiation. This parameter is optional for Ha...
I'm considering implementing an authentication service without storing users' passwords/hash. I want to use a key derivation function with a corresponding username and a master secret key to calculate the password of the user(user is actually a service). Then deliver the derived password to each user(service). Somethi...
So I recently started to look into cryptography and found the following question to cryptography scheme using $T = E_{S}(S \oplus M)$ It is said that this is not secure because you can have a colliding input. I am now not sure how to find this input, that leads to the same Hash. Would be wonderful, if someone could hel...
Is there some algorithm that, given the Shannon entropy of a string, compute an estimation of the time that an average home computer will take to crack the password? Thank you.
The symmetric-key encryption scheme from [1] is based on the LPN (learning parity with noise) problem. The definition of the problem is, informally, that the adversary cannot recover $\mathbf{s}$ from $\mathbf{A} \cdot \mathbf{s} \oplus \mathbf{e}$ given $\mathbf{A}$, where $\mathbf{A}, \mathbf{s}$ and $\mathbf{e}$ are...
I have some fields, similar to NAME, SURNAME, EMAIL, ADDRESS... I'm using NaCl for symmetric encryption. Is bad If I Encrypt every field with the same key and nonce? They are encrypted and stored separately. Thanks for help
Are there any practical post-quantum aggregate / multi signatures? Currently, the aggregate / multi signature schemes seem to be limited to pre-quantum elliptic curve assumptions only, e.g., [BDN18], [MPSW18] and [Zha18].
I'm working on this project where a client can send a message, now obviously sending it in plainText is not very smart. So I decided to Encrypt it with AES-CBC. Now, each time I encrypt something, the KEY is derived with PBKDF2, defined in RFC-2829, as: DERIVED = PBKDF2(salt: 16 random bytes, key: plainText pasword, it...
I have the following data (represented as hex from binary below) where the lower bytes is controlled by attacker in the second case : 0x00: 000000000000000000000000cf269986 ???????????????? 0x10: da781407b0eeeac3ea79ac1c9d857d38 ?x???????y?????8 0x20: 00000000000000000000000000000000 ???????????????? 0x30: 000000000000...
In the "Introduction to Cryptography: With Coding Theory" by Trappe and Washington, in the chapter about DES algorithm the authors say that: "In a good cipher system, each bit of the ciphertext should depend on all bits of the plaintext" Since it's not said why, are you able to explain it to me ? Thanks
If so, what would happen? And if not, what are some limitations to it? The reason I am asking is because I just started getting into the cryptocurrency and am very interested in the cybersecurity aspect of it. Also, it's important to mention I don't have much experience in either but am willing to learn. Could someone ...
Well, I guess that I have always been a little bit suspicious ... so to speak ... of the "official stories" about the difficulty of recovering Enigma message texts during WW2, because it seems to me that they're always focused on recovering "one message, in isolation." Whereas, the actual situation faced by the interc...
In EEA (EPS Encryption Algorithm) and EIA (EPS Integrity Algorithm), what exactly does the direction (uplink/downlink) indicate? It's confusing because for both encryption and decryption of a given plaintext, the direction has to be same. This w.r.t the LTE communication. For your reference, the section B.1 in 33401-g...
Consider a Plaintext P1 and Ciphertext P2, which is known to the attacker. If the attacker knows that the IV used in encrypting P1 in OFB mode is the same used to encrypt another plaintext P2, how can he find out the content of P2 given the ciphertext C2? Will the attacker have greater limitation if it is encrypted in ...
I have an assignment where I have to print out the hamming weights between every iteration of AES's diffusion steps and I have been getting a maximum weight on every iteration, but I can't seem to verify if that is correct or not. It seems like the assignment was given to show that the weights increase as diffusion goe...
Let's say that a substitution cipher had 52 symbols instead of 26. For this, we would include all lower case and upper case letters. This creates a key space of 52! wehere the cipher text can contain both lowercase and uppercase letters. Would this provide more security to a standard substitution cipher? I would say ye...
The NTRU crypto system requires quite long keys. For example with parameters N=439 and q=2048 the security is 128 bits and the key_size is 4829 bits. When the private key is encrypted with AES-256 and the ciphertext is made public, can an attacker learn something from that? Or is the 128 bit security of NTRU reduced b...
AESCCM- Couter with Cipher Block Chaining Message. As it uses cmac for generation for tag , which is internally aes-cbc (block cipher, need block size, may require padding) And Encryption is done with AES-CTR (can be used as stream cipher) How AES-CCM can behave as a AEAD stream cipher , as it uses aes-cbc ? Whereas i...
I'm not a mathematician, and i would like to understand in the most concise way (if possible) why choosing linear S-Box functions makes the DES algorithm attackable. Thanks
GCM (Galois/Counter Mode), in particular in combination with AES, has been a de-facto gold standard for years. Encrypt and authenticate in one step, that's just too awesome, and terms like AEAD work well for impressing a girl, so that would be win-win. But, joke aside... I've always wondered what makes it so special, a...
I am trying to understand how we can have cryptographic schemes that builds on both secret sharing, which is build on top of a finite field, and bilinear maps, which are built on top of elliptic curve groups. An example of this is section 4 in Public Verifiability from Pairings in Secret Sharing Schemes, where publicly...
In the "Introduction to Cryptography: With Coding Theory" by Trappe and Washington, in the chapter about DES algorithm the authors say that: "if a cryptosystem is such that double encryption is equivalent to a single encryption, then there is no additional security obtained by double encryption" Why is this?
I'm trying to make my first RSA encryption/decryption using CNG. In 1 part of the example they add pick a chaining mode, I don't know if this is mandatory and when I tried to google about it I found that most of those are not safe. So I would like to know which one is the right one to pick. (In the future I would like ...
Consider a situation where a symmetric key encryption (such as AES) is used to encrypt the plain text. Moreover, a nonce is used to ensure that old communication cannot be used to perform a replay attack. In this scenario: Is it better to XOR the nonce with the plain text and then encrypted the output to produce a ciph...
If I have a high entropy key (ECDHE shared secret), what type of hash should I use to format this into an AES-256 key? Is Sha256 or Sha3_256 sufficient to maintain entropy or do I need to use a KDF (Scrypt / Argon2) and exchange the salt during the handshake??
Do you know if is has already happened (since 1980), that someone (academic or not) has "broken" (even in a weak sense) some cryptographic assumption, but has chosen to not first publish and directly attack some security system of the physical world? I'm really considering the cryptographic/algorithmic level, not a hum...
I ask this because it might one of those things that "everybody knows/does", but never gets written or explained anywhere... Is it just a matter of aesthetics (in the mathematical sense of the word), or is there a more specific (read: practical) reason for doing this? (as opposed to say, talking about a priori and a po...
In the "Introduction to Cryptography: With Coding Theory" by Trappe and Washington, in the chapter about OFB (Output Feedback) mode the authors say that: The OFB mode produces a bit stream and it encrypts similarly to the LFSR(Linear-feedback shift register) method. The differences are that LFSR is faster, but OFB...
I'm using Shamir's secret sharing in a 2:3 system. Thus a secret Key is split in 3 subkeys (KeyS:KeyC:KeyT) I've 3 entities at play here, Srv, Client, Tag, each one storing one subkey. In my protocol, Client reads KeyT from the Tag and combine it with its own KeyC or query KeyS from Srv over a secure channel. I assume ...
In the following, all the operations and polynomials are defined over a finite field of prime order, $\mathbb{F}_p$, where $p$ is a sufficiently large prime number. All polynomials and values below are non-zero. Let $F(x)= R(x)\cdot \phi(x)+Z(x)$, where the degree of each of the polynomials $R,Z$ and $\phi$ is $d>1$....
In the "Introduction to Cryptography: With Coding Theory" by Trappe and Washington, in the chapter about Counter mode (CTR) the authors say that: "As a result, its performance is identical to OFB's when errors are introduced in the ciphertext." What does this mean ? The authors don't explain it
In the "Introduction to Cryptography: With Coding Theory" by Trappe and Washington, in the chapter about DES algorithm the authors say that: "If double encryption is equivalent to single encryption, then the (single encryption) cryptosystem is much less secure than one might guess initially" The authors don't exp...
The DASH cryptocurrency uses X11, which is a Proof of Work hashing algorithm composed of 11 separate hash functions which are run as a sequence. Example: $Digest = H_{11}...(H_3(H_2(H_1(Input))))$ Questions: 1) Is this algorithm's collision resistance that of the weakest function in the sequence? 2) Can this algorith...
I understand that RLWE was introduced to avoid the quadratic overhead in the matrices that appear in plain LWE. However, I have a series of questions about this setting. First, Ring-LWE-based constructions consider the polynomial ring $R_q = \mathbb{Z}_q[x]/(f(x))$, for some polynomial $f$ and some integer $q$. I've se...
Say I have access to a system A that is limited to performing (EC)DH, followed by key derivation to produce a secret key. This secret key is later used to provide integrity protection. There is a party B want to use this system to create a signature over some data. This signature can then be used to prove to a party C ...
As the title states, would increasing the rounds by doubling them to Bruce Schneiers recommendation of 16, 20, and 28 increase security? And how much? As a bit more, would increasing rounds, keys, blocksize, or almost everything increase security?
I am designing a protocol that will have security in mind as one of its key goals. Currently I have selected SSH with TLS as the underlying transport. I selected SSH because it had a variety of extensible authentication methods built-in already, which would not only make it easier to add my own in the future but (in so...
These are the steps: Hash ECDH shared secret with SHA3-512 Concatenate odd bytes and rehash with SHA3-512 for AES-256 key Concatenate even bytes and rehash with SHA3-512 for KMAC key Is this key derivation secure? If not, what are the weaknesses?
My current role as a software developer is leading into areas of research in elliptic-curve-cryptography that keeps bringing me back to bilinear pairings. This includes BLS Signatures, CL Signatures and zkSnarks. In learning PBC, I've found I need to understand Miller's algorithm, but I lack the mathematical backgroun...
"The Dedekind sum is a product of a sawtooth function." This sentence does not make sense to me. A sawtooth is a kind of wave for sound generation. But in the realms of cryptography, the Dedekind sum seems to use these sawtooth functions. Could anyone please explain how the sawtooth function are used for the Dedekind s...
Peggy would like to prove to Victor that she knows the discrete logarithm of $y$ based $g$; that is, she knows $x$ such that $y = g^x \bmod p$. One round of the interactive proof protocol consists of the following steps. Peggy picks random $k \in \mathbb Z/(p−1)\mathbb Z$, computes $t = g^k \bmod p$, and sends $t$ to ...
Both PGP and Signify (or Minisign) are capable of generating ED25519 detached signatures. Is it possible to convert a PGP-generated ED25519 signature into a signify-compatible format?
I'm brute forcing a ciphertext with a given dictionary to figure out which key was used. However, it's been hinted at that there is a way to narrow down the dictionary to a smaller subset of possibilities. I know the plaintext, its ciphertext, and the IV (0). It was encrypted using AES-128-CBC and no salting was used d...
Actually, I think IV (initialization vector) is random number which is same size as the other block of plaintext. But if the IV is corrupted, message cannot be decrypted because original IV used to encrypt doesn't exist so it actually cannot recover the message from ciphertext. Is it right?
I know that perfect security means absolutely no information about the plaintext is leaked to the adversary while computational secrecy is okay with a tiny amount of leak. But, what is the difference between Computationally indistinguishably and Perfect Indistinguishably?
Can you explain me, in simple terms if possible (I'm not a mathematician :( ), why the non-linearity introduced by the AES s-boxes hinder the differential cryptoanalysis ?
In the "Introduction to Cryptography: With Coding Theory" by Trappe and Washington, in the chapter about AES algorithm the authors say that in the last round of the encryption algorithm the MixColumn layer isn't applied, since it only slows down the decryption algorithm. But this doesn't decrease the security of the al...
I understood, how this works for arbitrary n and p = 2, but I am struggling with higher prime numbers as a base. In the following, I wanted to use the irreducible polynomial r(x) = x²+1 = 101. static const __flash uint8_t lookup[9][9] = { // 0, 1, 2, 10, 11, 12, 20, 21, 22 0, 0, 0, 0, 0, 0, 0, 0, 0,...
I had a quick question for all. Why do we hash the random challenge in Fiat-Shamir heuristic? If we hash the public key of Prover it should be enough for the verifier to prove non-repudiation? What is the need for hashing the first random message the prover ($x=g^y$) also?