instruction stringlengths 32 27.2k |
|---|
The Symmetric-key algorithm article from Wikipedia states:
The keys may be identical or there may be a simple transformation to go between the two keys.
I am not aware of any symmetric-key cryptosystem that uses different keys for encryption and decryption. What are some examples of such algorithms? Is this correct t... |
In On Ideal Lattices and Learning with Errors over Rings, the authors prove a search-to-decision reduction by guessing the RLWE secret $s$, and using the guess to transform a sample from $\mathfrak{q}_{i}$-$\mathrm{LWE}_{q, \Psi} \text { to } \mathrm{DecLWE}_{q, \Psi}^{i}$ (Lemma 5.9). They say nothing about the proper... |
What is the difference between Special Honest Verifier Zero-Knowledge (SHVZK) and Honest Verifier Zero-Knowledge (HVZK)? Sometimes I see one term being used, other times the other. Do they mean the same thing?
|
Using paillier encryption, $N$ is the product of two large prime numbers, $s$ is sampled randomly from $Z_{N^2}$ we get $ C \leftarrow g^ms^N \bmod N^2 $ where $g=1+N$, By multiplying the cipher $c$ and a prime number $B$, we get the following equation:
$g^az^N = CB \bmod N^2$
Is it possible to compute the value of $a$... |
Given the parameters which include: tree height, Winternitz parameter, security parameter, SHA-512 or SHA-256, tree level, how do I optimize the scheme to output a small signature?
The idea is to reduce latency of Extended Merkle Signature Scheme to be use in bitcoin cryptosystem.
|
I apologize for the theoretical nature of this question,
but It has cost me a lot of sleep over the past months.
Querying my immediate peers has so far failed to produce results.
I assume this question belongs to the domains of Cryptography & Game-Theory, hence I hope to be in the right forum.
Question
Is it possible t... |
Which column type is best for storing $tag, $iv, $key, $encryptedData generated by openssl_encryption, and in which format I should save these values?
I am using "aes-128-gcm" cipher method.
|
So i came across three padding scheme for RSA: PKCS1, PSS and OAEP.
My intention here is to encrypt a file using AES key. then, encrypt the AES key with
the RSA key and save the encrypted AES key along with the encrypted file.
My question is which one of the padding schemes above best suits my purpose.
Needless to say ... |
I am to decrypt the ciphertext YVBCXGJRYHHRCJIUL into its plaintext message. The information that I am given is that the key used in the cipher is very long (equivalent to the length of an entire book) and that the key is certainly longer than the message being encrypted. The only other information I know is that the m... |
In a ctf, I encountered this problem:
from Crypto.Util.number import getStrongPrime, getRandomRange
N = 1024
def generateKey():
p = getStrongPrime(N)
q = (p - 1) // 2
x = getRandomRange(2, q)
g = 2
h = pow(g, x, p)
pk = (p, q, g, h)
sk = x
return (pk, sk)
def encrypt(m, pk):
(p,... |
Assuming I have multiple symmetric keys on specific machine(more than 10000 probably),
can I use the same rsa key to encrypt all of those keys?
I'm a bit concerned from a situation where multiple encrypted keys will have similar pattern
and will leak data about the original ones
|
In the X3DH specification of the Signal Protocol it mentions having a signed pre-key in the key bundle.
This pre-key is signed using the identity private-key.
Because the identity private-key is in the X25519 Montgomery form, it cannot be used as a signing key.
Therefore signal implements XEdDSA to overcome this and co... |
I recently started studying cryptography but I am not sure I quite understand the concept of proof by reduction. Question I am trying to solve is as follow:
Suppose $\Pi$ is a symmetric encryption scheme which $ C \subseteq M$ ($M$ is message space and $C$ is ciphertext space). then we have $\Pi'$ with same key generat... |
In crypto papers, cryptanalysis of MLWE/RLWE/etc. is often reduced to LWE. Why can we do this? Is there strict proof of such reductions?
|
I recently studied a Hash function and its security requirement. I have studied that simple hash construction from XOR is weak. My question is, based on Xor property the following Hash based on RSA Mi<n calculated by
$H(M_1,M_2)=(M_1^e \bmod n) \oplus (M_2^e \bmod n)$, where $(n,e)$ is an RSA public key.
satisfy the co... |
According to Wikipedia:
TLS has a variety of security measures:
Using a message digest enhanced with a key (so only a key-holder can
check the MAC). The HMAC construction used by most TLS cipher suites
is specified in RFC 2104 (SSL 3.0 used a different hash-based MAC).
What hash-based MAC did SSLv3.0 use? How does i... |
Is there such a cryptography where I can prove that someone decrypted an encrypted string? Say I wanted to attach a Bitcoin private key in some type of digital container, but in order to open this digital container, I would need to break a digital seal.
I'm basically trying to find a digital equivalent of how a securit... |
Some weeks ago, I read an article about an interesting boolean function with some applications to cryptography. Then, I forgot about the article and now I cannot find it. Hence here I am asking if someone is familiar with this function and can give me some references. Thank you in advance.
Fix a positive integer $n$. T... |
Provided that:
$AES(plaintext, key)$ is the standard AES block cipher for a 128 bits block.
$\oplus$ is the standard XOR operation.
$K$ is a constant 128 bits pseudorandom value, which is used as the key for AES operations, unknown to the attacker.
$A$ is another constant 128 bits pseudorandom value, unknown to the at... |
Suppose we have a set of $N$ parties. I am looking for a scheme to generate shares of a random secret $s$ where any subset of the participants with size $k$ can recover the secret similar to Shamir's scheme. Additionally, no party outside of the group, such as a dealer, has access to $s$.
|
Matrix cipher is defined by:
a) Encryption: $C = K \times Z$, where $C$ is a cryptogram vector, $Z$ is a message vector and $K$ is encryption matrix (encryption key)
b) Decryption: $Z = K^{-1} \times C$, where $K^{-1}$ is decryption matrix (decryption key), which is inverse to matrix $K$.
Is the matrix cipher symmetric... |
When knowing the full content of the original message, will I be able to derive the private key from the encrypted message when the underlying encryption uses a fixed initialization vector?
Meaning if we encrypt by Text UNENCRYPTED x Private Key =[fixed IV]=> Text ENCRYPTED, can we somehow calculate the key backwards b... |
I am currently working on a problem where an attacker knows that a user's password is either "pqrs" or "jmlo" and also knows that the encryption scheme is using the Vigenere cipher with a key length of 2 (Obviously, the attacker also knows the ciphertext). I must either describe how to find out with 100% certainty that... |
I've seen the following two definitions of perfect secrecy for an encryption scheme (Gen, Enc, Dec).
Pr[M = m | C = c] = Pr[M = m] for all c, m, M and C
Intuitively, this means that if the adversary trying to guess the plaintext, gets no information from the ciphertext.
Pr[k <- Gen | Enc k m1 = c] = Pr[k <- Gen | En... |
When I learn PBKDF2, I found out most of the articles say that the PBKDF2 use HMAC as PRF. Why is HMAC? Can I use other pseudorandom functions? Is HMAC safer than any other functions for PBKDF2?
|
It is well-known that to make the result of a $\mathbb{R}^d$-valued query $(\varepsilon,\delta)$-differentially private, you can add noise to it. If you add Laplace noise, you need to scale the noise by the $L_1$-sensitivity of the query; if you add Gaussian noise, you need to scale it by the $L_2$-sensitivity instead.... |
In practice, the circuit need to be proved always has a large size, maybe nearly billion gates, when turns such circuit to QAP, it will generate a large polynomial, which is a high cost to use zkSNARK. So, could the circuit be decomposed into different sub-circuit to reduce the scale of the circuit and also the scale o... |
Let $\mathcal S=\{0,1\}^n$ be the set of bitstrinsg of $n$ bits (for security parameter $n$). Let $P$ be a public Pseudo-Random Permutation of $\mathcal S$, efficiently computable in both directions.
Construct a block cipher $E$ with message and key domains $\mathcal S$ as
$$\begin{align}
E:\mathcal S\times\mathcal S\t... |
Basically I am trying to understand the difference between server salt and client salt. I know that the client salt is used to make encryption harder for hackers, but I can't seem to grasp the concept of a server salt. Does anyone know?
|
Actually, I'm reading the description about Zerologon attack from the original whitepaper document. In there, Tom Tervoort mentions these sentences:
So I tried to come up with some chosen-plaintext attacks myself and figured out
something interesting: for 1 in 256 keys, applying AES-CFB8 encryption to an all-zero plai... |
So hypothetically I have a an arbitrary block cipher operating in CBC-MAC mode that makes use of a public and static $IV$ as well as a static key $K$.
I want to be able to that this won't be preimage resistant using a proof for an arbitrary single-block message $P$ that hashes to a given digest $T$. So far I've gotten ... |
I have a question regarding pitfalls of using only encryption.
Suppose Bob and Alice want to flip a coin over a network. Alice proposes the following protocol.
Alice randomly selects a value X ∈ {0,1}.
Alice generates a 256-bit random symmetric key K.
Using the AES cipher, Alice computes Y = E(X,R,K), where R consists... |
Recently, Boyle et. al. proposed silent OT extension. In the paper, silent OT, it seems that a GGM based PPRF used as building blocks. However, after reading the paper, I have two questions that are not clear:
For $t$-points PPRF, the authors proposed to have $t$ independent single point PPRFs to be constructed such t... |
I'm reading rfc5652, there are different references of the two algorithm identifiers.
For example in this ASN.1 structure:
SignerInfo ::= SEQUENCE {
version CMSVersion,
sid SignerIdentifier,
digestAlgorithm DigestAlgorithmIdentifier,
signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL,
... |
Regular hash functions like SHA-256 have a variable length input and measure security against collision attacks in bits. For SHA-256 this is 128 bits. When I limit the input length of SHA-256 to for instance a fixed 8 bits, the chance of a collision drops to zero (with SHA-256 there are no collisions possible with only... |
The secure third party R generates key $k_1$ to communicate with A and $k_2$ to communicate with B.
A requests a key with which to communicate with B.
R generates k un and encrypts:
$E_{k_1}(k) = s1;\ \ E_{k_2}(k) = s_2; \ \ E_{k_2}(p_A) = s_A$
R sends to A $\ s_1$ and $[s_2, s_A]$.
A deciphers his key:
$E^{−1}_{k_... |
I'm working on small RSA project in university.
At this moment I have done this:
An array of prime numbers is generated from selected range.
$p$ and $q$ selected randomly from this array
$n$ calculated
$\phi(n)$ calculated
$e$ calculated
$d$ calculated
What do you think about $e$ and $d$ in that case?
$p = 29$
$q = ... |
XTS is suitable for disk encryption while GCM doesn't.
Both require the same number of block encryption calls.
Both are parallel in encryption and decryption.
XTS is actually even faster in openssl implementation (openssl speed -evp aes-256-xts/gcm), not sure why.
Why even bother to use GCM instead of XTS?
|
I'm reading from Cornell , I know for a single permutation, I can find the ciphertext length (100), divide in some key lengths (10x10, 5x20), then try all permutation (10x9x8... 5x4x3x2x1). then find anything legible.
Is there any case the above method will not work, and is there any better method to crack this permuta... |
I'm dealing with a website that loads a javascript file which eventually sets an AES hash/value (whatever it's called) as a cookie. The file is heavily obfuscated making it hard to understand certain things within. Anyways, I have reversed enough of the file to understand that they are using the cipher block chaining m... |
How does a hybrid argument work relating to PRG's?
I am working on a homework assignment where the problems say to use a hybrid argument to prove/disprove that something is a secure PRG, and I can't find an explanation of this idea anywhere online or in the notes which makes sense to me.
I think the idea is to have a s... |
I started thinking about P vs NP after reading another question on this stack exchange. Here I propose a proof that relates P vs NP to the existence of a secure block cipher in the elf model.
Let's say I have a (normal) Turing machine and I want to model a nondeterministic machine with it. According to certain models, ... |
In Discrete Log based Cryptography, one of the core operations that one, has to perform is modulo exponentiation. There are many algorithms to choose from, especially, when considering my point of interest "scalar multiplication" of a point (generator) of an Elliptic Curve. The most fundamental algorithm is the double ... |
I'm learning about Elliptic curve cryptography. If I understand right, ECDSA and other algorithms used in ECC are dependent on the curve chosen. So, before you want to use ECDSA, you first have to choose a suitable curve.
Pairing-friendly curves are a special kind of elliptic curves that have properties that allow for ... |
I can't be the first one to think of this and there must be a reason nobody design cryptosystem off this problem.
Let's define MECC as matrix of elliptic curve points, and MI as matrix of non-negative integers.
Given a MECC $G$, MI $v$, and MECC $P=v\cdot G$. How would a quantum computer calculate $v$ from $P$ and $G$?... |
Let's suppose and scenario like a secret voting scheme, at the ID verification step.
Considerations:
There is a public list of identities of people who are able to vote (ex, people who live in a certain town).
The identity confirmation process is entrusted to a central server (Bob).
Users send requests remotely and de... |
I'd like a sample of true random data from a source that has a known entropy. It's not easy to even produce true random data in sufficient quantity --- much less know the entropy of the source. For instance, my only chance at grabbing true random data is waiting for /dev/random.
I'm spinning my hard drive and using t... |
How to avoid differential cryptanalysis attacks when you are inventing new cipher?
Let's say you have a $16$-round $128$-bit cipher vulnerable on differential cryptanalysis attacks. Now let's say you will add between every round:
bitwise NOT (optional you make it ot not - randomly),
xor with $128$-bit subkey,
moving b... |
Being a physicist, I know very little about cryptography. In fact, the main two practical aspects I've learned so far are: Unless you're an expert, 1. Don't try to invent new cryptosystems and 2. Don't implement cryptographic algorithms yourself if you can avoid it.
I need an implementation of information-theoretically... |
-- Hopefully this question fits here --
Time and time again, there is always one person who asked about creating their own encryption standard/cipher, and we all agree to stop them early on because we all agree that it is very unwise to do so (such as preventing unknown or invisible weakness in their standard, etc.).
M... |
I have difficulty understanding the difference between two cyphers that both use Vigenere table and transposition, here is examples of both:
The key for the system is the key pair $k_1, k_2$, where $k_1 - $ slogan (witch contains no same letters) and $k_2 \in Z_m $. Then transposition rule can be defined as:
$$\phi(k_1... |
Although I had a security course in school a long time ago, I am effectively new to cryptography.
I have an encrypted text, the encryption key of 44 characters, the encryption method, (Fernet, which uses AES), the mode (CBC), the length of the key (128-bit), the padding (PKCS7) and the authentication (SHA256). The onl... |
If we encrypt a plain text using Double DES but with same key K1,
Can we get the same result as if we would encrypt the plain text using single DES but with different key, say K2.
What I'm asking is can we achieve this for same size of K1 and K2 :
DES(K1,DES(K1,m)) = DES(K2,m)
What would be effective key bits for the ... |
Let's say we have transformer(?) A = $\{0;1 \}$, B = $\{0;1\}$, $Q = \{q_0,q_1,q_2\}$, where A - plaintext alphabet, B - encryption alphabet, Q - the set of states. The functions of the rotor are described as:
$$q0 ◦ 0 → q0 \ \ \ q0 ∗ 0 → 0 \\
q0 ◦ 1 → q1 \ \ \ q0 ∗ 1 → 1 \\
q1 ◦ 0 → q2 \ \ \ q1 ∗ 0 → 2 \\
q1 ◦ 1 → q... |
It's common to use a salt before hashing a password in order to prevent an attack by rainbow tables.
Would it also work to encrypt the password for instance by RSA encryption - by a permanent RSA private key stored on the server - before hashing?
In other words: $hash = SHA(RSA(password))$
For me this looks secure beca... |
I think a simple question but here it goes (and sorry for my lack of math notation skills):
Given input I, a fixed factor X and fixed modulo Y and N iterations, does the process need to be performed consecutively in N steps, or can it be sped up?
I=12345
X=655573
Y=54321
for N=0; N < 10000; N++ {
I=(I*Y)%X
}
|
In proof of CPA-security of encryption scheme $(r, F_k(r)\oplus m )$
where:
$F_k$ is a keyed function
$r\in_R\{0,1\}^n$ is a random number,
on page 85 of Introduction to modern cryptography we have
The value $r^*$ is used when answering at least one of A’s encryption oracle queries: In this case, A may easily determ... |
How can we prove that no DES key makes encryption the identity function?
That is: $\;\forall K\in\{0,1\}^{56}\quad\exists M\in\{0,1\}^{64}\quad E_K(M)\ne M$
Note: anyone disproving this proposition would gain instant celebrity, which is a meta-proof that this proposition is true, but not an acceptable answer!
That pro... |
Let's assume we encrypt a 50000 bit plaintext with 1024-bit RSA and public exponent $e$ = 3: How big will its cipher be?
When we increase the exponent to let's say $e$ = 216 + 1 = 65537, how big will its cipher be then?
|
Given an SBox, how can I generate its component equations (in ANF)?
given in this link: https://en.wikipedia.org/wiki/Algebraic_normal_form
For example, let's say I have this SBox:
$$\{1, a, 4, c ,6 ,f ,3, 9, 2, d, b, 7, 5, 0, 8, e\}$$
|
According to ssh_config(5), HostKeyAlgorithms “specifies the host key algorithms that the client wants to use in order of preference ... The default for this is:
ecdsa-sha2-nistp256-cert-v01@openssh.com,
ecdsa-sha2-nistp384-cert-v01@openssh.com,
ecdsa-sha2-nistp521-cert-v01@openssh.com,
ssh-ed25519-cert-v01@openssh.com... |
I'm new to cryptography. I've been experimenting with getting Windows hashes to see whether it's possible to reverse engineer. The following hash is what I got from my test laptop. What can you identify here and what is possible to do with this kind of hash. However, I'm not solely interested in extracting the password... |
So I was researching Initialization Vectors (IV) and even took a look at this thread... What is the main difference between a key, an IV and a nonce? ,but I was hoping that I could get some clarity.
Everyone keeps saying they IVs need to be public because the recipient of a cryptographic message will need to first decr... |
since the public key is calculated as Y=(alpha^private-key)mod(chosen prime) and alpha is a primitive root of prime, when Y becomes public then private key can be calculated easily right? since there is a unique private key less than chosen prime that will satisfy the equation. I think I'm missing something here. Pleas... |
In the article How Does the Blockchain Work? the writer makes the following statements:
Since only you should be able to spend your bitcoins, each wallet is protected by a special cryptographic method that uses a unique pair of distinct but connected keys: a private and a public key.
If a message is encrypted with a s... |
I'm familiar with RSA for asymmetric encryption. I also understand it's only supposed to encrypt small amounts of data (smaller than the key) so for encrypting arbitrary data I would typically generate a one-time random key, encrypt just that random key with asymmetric encryption, and then encrypt the actual data using... |
Taking a graduate computer security class, part of our current assignment is to crack 50 Unix md5crypt password hashes, due on Thursday, October 8th (in eight days.) I've managed to crack 49 out of the 50 passwords using hashcat, but the last password seems borderline impossible within the time given to us.
The hash fo... |
My question might be quite beginner, so please pardon my ignorance :)
So, assume there are 10 parties, each with their own keypairs. There is a message $M$ that is passed from one party to the next. Each has to sign the message with their own private key, append the signature, and send it to the next guy.
As you can se... |
My symmetric block cipher works kind of like a stream cipher, but it works on $128$-bit blocks. It generates a $128$-bit block in every round. And at the end of the round, I have to slice it into two blocks and add them together. I mean after each round we take first $a$ bits and second $b$ bits of $128$-bit block and ... |
Imagine a database containing hashed (HMAC) Primary Account Numbers (PANs ) and associated identifiable information (e.g. transactions).
Consider a data breach. Prior to the breach, an attacker made specific transactions to make it easy to identify one or more hashed PANs. Could the attacker then work out the SHA256 ke... |
Is there any theoretically safe notion of white-box?
I have been reading about white-box [1, 2, 3] recently. It seems white-box deals with code obfuscation and its not known whether a perfect white-box exists.
I am curios about theoretical notion behind this. For a stream cipher, the theoretical notion is PRF. For bl... |
a. A nonce may or may not be predictable.
b. Use of timestamps requires fewer numbers of messages compared to nonce-only authentication
protocols.
c. Server keeps track of nonce it has used in the past.
d. Timestamp based protocols are sensitive to clock skew.
From the above options which option are true about the ques... |
I am new to cryptography.
I have a package to be shared with Bob which is something like below:
Package contains: data.zip and Application
where,
data.zip is encrypted
Application will have logic to decrypt the data
Bob will run Application and it will decrypt the data.zip.
Now for the decryption key, I understand ... |
With reference to Jan Camenisch and Anna Lysyanskaya's paper A Signature Scheme with Efficient Protocols, in proceedings of SCN 2002, I need some help to understand How to verify that $C_x$ is a commitment to an integer of length $l_m$.
$$C_x = g^x * h^r$$, where $x$ is the secret and $r$ is the randomness; $g$ and $h... |
I would like to use AES-CTR to encrypt the same plaintext with the same key more than once (on different machines). I'm wondering whether I should try to use the same IV each time, or whether it's safe to use a random IV for different instances of the same plaintext. Using the same IV would require a deterministic meth... |
What encryption mode should I use to protect a packet, such that the payload of the packet is encrypted, but the integrity of the entire packet, including its header, is protected?
|
Just a small question. Since in LWE the error is rather small, is there a problem with replay attacks? What I mean is that if we use the typical scheme of Regev [1] to encrypt a vector m, but this vector is sent, e.g. 1000 times, then an eavesdropper may perform a simple voting scheme to approximate the original messag... |
I need to use some kind of authentication of the client during my key exchange process.
During my research, in this article I learned about identity-based key exchange and authentication, and I was very interested in the idea.
However, when I started to search for some protocols I could not find anything further than... |
I am by now perfectly aware that "Bletchley Park had much more available to them than 'Bombes,'" but I'm finding it difficult to find on-line explanations of their many other types of "rapid analytic machinery" which are not shielded by "paywalls." No, I really am not interested in paying $75.00 (USD) for access to a ... |
I want to reduce a multi-precision integer $x$ modulo a prime $p$, very fast. Performing the traditional Euclidean division for only calculating the modulo, is inefficient and modular reduction is at the heart of many Cryptographic primitives like Elliptic Curve Cryptography. There are other methods to perform the afor... |
I have got the following documents:
(1) The plaintext
(2) The ciphertext
(3) The python program used to encrypt/decrypt the text
My goal is to find the key that was used to encrypt the plaintext into the ciphertext. I have tried using pkcrack on my MAC OSX machine (which took a few hours to run), however that failed an... |
I understand why s-boxes are needed in general especially when ECB mode is used(because of using the same key for encryption of other blocks)but I wonder if it's still relatively secure if we omit S-boxes substitution step in these circumstances
using AES-CTR mode to make sure the same key with the same blocks will en... |
all,
I have a very fundamental question on Secret Sharing schemes such as SPDZ families.
As far as I can see for now, SS schemes always assume a certain variable range. For example, suppose the bit length of the variable is $k=32$ and its underlying operational domain is in $p$ ($p$'s bit length is $l=128$), then, all ... |
I currently implement the AES(128,192,256)(ECB,CBC). Does the type of padding affect security?
I just want to fill the blocks with null bytes.
|
If I understand correctly, for RSA to work we need the message(cleartext) M $\in Z_n$ and gcd(M,n)=1. That is M coprime to n. This is to fulfil the requirement for Eulers theorem. How does RSA make sure this is the case, and wouldn't this mean that some cleartext cannot be encrypted? Thanks,
|
I'm new to universal composability.
I'm trying to define a protocol, $\pi$, in UC.
The protocol involves 3 parties: A, B, and a smart contract $C$. Parties A and B interact with each other and with $C$.
Each party, including $C$, makes calls to multiple primitives (e.g. symmetric key encryption: $Enc$, commitment schem... |
I saw that non-negative integers with the addition operation cannot be the Diffie Hellman group. I'm having trouble understanding why it cannot be the DHKE group.
To be DHKE group, there are five properties to be held,
The operator is closed
associativity
identity element exists
inverse element exists
commutativity
I... |
Let's say someone implements 3DES with three separate 56-bit keys and an attacker is attempting to execute a MITM attack.
Here is the encryption plan designed to attempt to disrupt the MITM attack, or at least make it more expensive. You grab 192 bits of plaintext and shuffle them into three 64-bit blocks, intermingli... |
I've been reading How to estimate the hardness of SIS instances? and following some of its sources, and I want to confirm a few things.
LLL algorithm runs in polynomial time, but isn't capable of producing arbitrarily small basis, and is therefore not very relevant in cryptanalysis in most lattice-based schemes. Is tha... |
Here is a GPG message, signed and encrypted (strictly for demonstration, with test keys):
-----BEGIN PGP MESSAGE-----
hQGMAyxbH69MHihtAQv/Z5FROYmcGwAWeomk+1b1ps4EQaLkUDU+iYKzhEojEDJa
pxbZB5yUsLlrEmJXMis3Jt4eSMvRpj6xUVR9cJHbWPAOTK1S6PMASquFIagNY0c7
dIoShPSlPDjSb1Vi/0drqZUoEkjeB3fnqRb3ECTwBbU24Ygq/MD5Jtf0pGLmcXxT
ZAM4Sb... |
I'm using RSA public key private key for sending AES key from each client to server application.
then i'm using this AES key and IV for communicating between client and server.
what should i do for this MITM attack scenario??
client[encrypted text] ---> Server
the MITM can use this encrypted text again to send it to ... |
I understand that AES in GCM mode produces an authentication tag that is used to ensure that a tampered with cipher text is not decrypted. However, if I pass the wrong key will AES in GCM mode detect that I am using the wrong key and give me an error message or will it give me back garbled data because I used the wrong... |
I understand that it is important to check how hard it is to attack RSA keys, but I assume at some key size attackers would not even try. Real attacks are carried out by exploiting mistakes in the whole process, not the cryptography.
The maximum key size attempted would obviously depend on the value of the protected se... |
When using AES-GCM I know that I am supposed to use a new initialization vector every time I call the AES-GCM algorithm with the same key. What are other rules must be followed to use AES-GCM correctly?
I am looking for a bullet point checklist with advice that I can follow as a developer, and the consequence of ignor... |
I am using AES to create a secure tunnel for transmission of data.
As the symmetric key encryption will require the same key to encrypt and decrypt, so we need to generate the exact same key for the decrypt process. Is there any possible way for me to generate the exact same key for both side?
|
Let $\lambda$ be a statistical security parameter. Consider a security proof that is based on hybrid argument, where there are polynomially many (say, $n = p(\lambda)$) hybrids, $H_1, ..., H_n$. Any two hybrids $H_i$ and $H_{i + 1}$ can only be efficiently distinguished with probability $2^{-\lambda}$. So, by iterating... |
The RSA cryptosystem makes use of $n=pq$ where $p, q$ are large prime numbers.
With quantum computing, factorization might become easier, so it will probably be useful to use much much bigger $p$, $q$ in the future.
If I remember correctly, the source of large prime numbers $p$, $q$ in today's most commons RSA implemen... |
I tried to solve SBox as given in this link
I am trying to understand this paper SBox. In this on page no.4 the correct equation of given SBox is mentioned. I am not getting how to design ANF equation as given in paper.
|
There is a matrix $A$ that we don't want to be revealed, and there is a matrix $B$ that is known. Is there any way to calculate $A \times B$ without revealing $A$?
$A$ can be encrypted. But we don't want anyone to know it, but we want anyone to be able to calculate the multiplication of it to another matrix.
Is there a... |
I hope this doesn't look like a silly question. In an age where our current cryptography is often impossible to crack when properly implemented and used, would we be able to decipher anything, for example if WWIII were to break out ? Similarly to how the Germans added some rotors to Enigma, what could be done against 5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.