instruction stringlengths 32 27.2k |
|---|
I was unable to understand the calculation procedure given for $GF(2^m)^2$ in the follwing pdf: http://faculty.washington.edu/manisoma/ee540/EE540finite.pdf
In page 21 of the pdf, "Inversion over Composite Field $GF((2^m)^2)$" is introduced using irreducible polynomial "$x^2+x+\phi$".
(The "$\phi$" represents a constan... |
OAEP is an important technique used to strengthen RSA. However, using OAEP
(or any technique that adds randomness) reduces the size of plaintexts that can be encrypted.
Assume for instance that OAEP is using a 160-bit seed and a hash function that produces a 256-bit value. In that case, how large a plaintext can be han... |
I am looking to research the process behind developing encryption software. I am specifically interested in looking at the software process from a Systems Analysis (SA) point of view. After some extensive and exhaustive searches I have been unable to locate sources that discuss encryption software design tactics, met... |
I'm a complete newbie to ECC. but I was trying to get my feet wet with
(what I thought would be) a TRIVIAL/EXTREMELY SIMPLE example of ECDSA
signing and verification (that I could check by hand).
I'd appreciate any advice as to what I'm missing. Or have done wrong.
And if this is NOT an appropriate venue for this kind ... |
I am investigating on source code of a program called hostapd. And I am looking into Diffii-Hellman part of it.
/* RFC 3526, 3. Group 14 - 2048 Bit MODP
* Generator: 2
* Prime: 2^2048 - 2^1984 - 1 + 2^64 * { [2^1918 pi] + 124476 }
*/
static const u8 dh_group14_generator[1] = { 0x02 };
static const u8 dh_group14_prim... |
In the introduction of NIST Special Publication 800-38D is said that:
GCM provides assurance of the confidentiality of data using a variation of the Counter mode of operation for encryption. GCM provides assurance of the authenticity of the confidential data (up to about 64 gigabytes per invocation) using ... |
Are there any requirements for the additional data to be used in the GCM block cipher mode?
And are there any "classic" used informations worthwile to be used? Can for example a username or the name and surname of a person be suitable to encrypt a message with AES GCM?
|
In a recent answer, Maarten mentioned
including the key is a bad idea as well.
This got my curious. Is there any scientific / cryptographic analysis whether including the key in the authentication actually allows for (easier) attacks in the standard model(s) for authenticated encryption?
Obviously this means that bo... |
Are there two step encryption systems that - given the same plain text - support choosing two keys ($k_{A_1}, k_{A_2}$) for a first encryption so, that you can calculate another pair of keys ($k_{B_1}, k_{B_2}$) resulting in equal cipher texts?
$E(k_{B_1}, E(k_{A_1}, m)) = E(k_{B_2}, E(k_{A_2}, m))$ with $k_{A_1} \neq... |
I am having trouble understanding the difference between Non-Interactive(NIP) and Interactive(IP) Zero Knowledge Proofs as the definitions given to me for the Soundness and Completeness qualities of IP and NIP are seemingly identical. Could someone please contrast IP and NIP? An simple example would also be much apprec... |
Is it possible to derive a shared secret between different curves?
An explanation would be nice.
How can I decide which curve I should use in my software?
Highest amount of bits has in my case the brainpoolP320r1 curve, but on this site https://safecurves.cr.yp.to/ the brainpool curves are rated as not safe.
The Germa... |
I would like to encrypt some data using a password. I want to use a function like PBKDF2 to turn my password into a key. However, I would like to also require a keyfile, for added security. My data should only be decryptable if I have the password and the keyfile.
What is the "best" way to do this?
From what I underst... |
I'm presented with these 2 following commitment schemes $Commit(x;r) = (c,k) $.
This is presented as bad (not hiding)
$Commit(x;r) = (H(x), x)$
So, not hiding means that attacker can deduce $x$ from $H(x)$ in that case. I don't see how this is possible except for an exhaustive search of $H$ ? If this is why the scheme... |
I try to recover public key from the given message $m$ and pair $(r, s)$ using curve that satisfies standard RFC7091. I am using algorithm from one of secp256k1 implementation but it seems that not any random $k$, that is $0<k<N$ give me a pair $(r, s)$ that I can recover a valid public key. I did check this question H... |
One potential client is assessing our system by asking some questions to decide if they eventually will choose our service or not.
One of the question is
All multi-stage cryptographic computations are computed within the secure boundary of the HSM.
I Googled the phrase but I could not find any relevant topics to hel... |
From here,
The Computational Diffie-Hellman problem: Given $y_1 = g^{x_1}$ and $y_2 = g^{x_2}$ (but not $x_1$ and $x_2$), find $y = g^{x_1·x_2}$.
What happens if I knew one of the $x_1$, would it still be hard?
Considering the CDH, is the problem still hard for $g^{x_1x_2}/g^{x_1}$ or $g^{x_1x_2}*g^{x_1}$ or even ju... |
I would like to generate a 128 bit random number with dices, but I have heard that dices are pretty biased, especially low quality (non casino dices).
Would it make sense to generate a higher bit number, like a 1000 bit number? Would that "absorb" the flaws and biases exhibited in the dices. In the sense that the over... |
Currently we have implemented One Time Passwords (OTP) as second authentication which works well. We use TOTP - RFC 6238
Some clients would like to have a "sms only" login, so it's single factor authentication. In the some cases (dependent of the data) that is fine. We will send the token via SMS and it won't have to ... |
On a few occasions I've converted URLs with authentication via a session cookie to deep link URL's with no cookie authentication. These are URL's with simple id's like /download/pdf/1.
I convert them to deep links either by appending a HMAC of the ID (/download/pdf/1/7e3aefd25fb9…) or encrypting the ID using AEAD and ... |
Why did Rijndael become the AES Standard? What is wrong with Twofish and Serpent? Is there a security vulnerability in Twofish/Serpent? How do they work? As far as I know, Twofish and Serpent are used in some modern cryptographic software.
|
For public key $(g,b,P)$ and private key $x$ I have that...
x = 8437809068483222013573558289468531414326215630180218801941732905
P = 7339893940555892950021117953932742794751344995120378281984000000000001
g = 89
b = 4912876245630500045238873065831524614701581692824065606616840403034906
I am trying to find the random nu... |
Suppose that I have $n$ secure 32-bit keys that were generated separately using methods that are known to be secure. For example, one of them might have been generated by using a proven CSPRNG. Another may have been generated using PBKDF2.
Now, I want to turn all of these keys, combined together in to a new key that I ... |
Can we generate two secret keys from same source?
The idea is we have time varying signal. We capture a window of say few milliseconds,$t$. I can chop values of signals at a rate $N_S$ and get $tN_S/1000$ samples. I put a threshold and assign 0 and 1 to values below and above it.
Since this signal is shared I get a sec... |
Alice and Bob share a common time series signal.
1. What can be the largest possible secret key?
2. Will the entropy and secrecy of system depends on this length?
Ideally if after passing though analog to digital converter(ADC) number of bits a signal gives depends on $N_S$ sampling rate. Suppose I had s 1 second windo... |
I've been reading the same thing on a lot of websites: RSA is for communication using the public and private key for both the server and client, whereas Diffie-Hellman is just for exchanging the same secret key that will then be used for both encryption and decryption. But they both depend on the same math.
E.g: This q... |
Say we have a PRG $G(l,x)$ that expands a random string $x$ to length $l$ and is pseudorandom for any $l$ polynomial in $n$ (where $n = |x|$). Is $G$ pseudorandom for any $x$ of arbitrary length? I'm slightly confused as to what the polynomial restriction means.
|
For learning purpose, I'm trying to implement HMAC using SHA256.
In the pseudo code proposed in Wikipedia, the algorithm first focus on how to shorten or expand the key :
if (length(key) > blocksize) {
key = hash(key) // keys longer than blocksize are shortened
}
if (length(key) < blocksize) {
// keys shorter t... |
Why did the Rijndael cipher become the Advanced Encryption Standard instead of Twofish and Serpent?
Do Serpent and Twofish have security issues or weak keys?
Or is it just slower?
I know that some modern cryptography programs use twofish and serpent?
Sorry for the dumb question .
|
I need to compute ecc multiplication with this values : $ P=(1,3)\space ; \space k=2 \space ; \space a=24 \space ; \space b= 13 \space ;\space p=29 $ which means $y^{2}=x^{3}+24x+13 \space$. as far as I know in such situation one should compute values using this formula :
$
\lambda= \frac{3x^{2}+a}{2y}
$
$
x_r=\lambda^... |
I have a 64 bit plain-text that i want to encrypt using AES. But to use AES for 64 bit plain text
i can either add padding bits to it
or use AES in CTR stream mode.
My question is
which approach is more efficient?
Is there any other scheme that i can use to encrypt 64 bit data and is as secure as AES.
|
I often read that MAC's provide a proof of authenticity of a payload 'in transit'.
I'm wondering though is there any special definition of "in transit" that would prevent it from being reliable over a long period of time - for example proving the data was not simply corrupted by a storage medium.
if the meaning is 'ove... |
I am analyzing the Bethencourt CP-ABE model to understand the math behind it. If a data user is able to satisfy the access policy attached to the ciphertext, that user is able to decrypt the encrypted message.
This is made possible because the data user can calculate:
$$e(g,g)^{rq_{x}(0)}$$
We know that:
$$q_{x}(0) = s... |
For asymmetric encryption such as RSA, I understand that Alice can sign a document with her secret key and send it to Bob, which he can then verify.
Sign: $\sigma=m^d \bmod N$
Verify: $v=\sigma^e \bmod N$
This may be a silly question, but what if it was the other way around, Bob wants to send a document to Alice. How w... |
Does the SHA-512 value of an input leak any information about the SHA-256 value of that same input?
Specifically, if I'm using SHA-512 to derive encryption and HMAC keys from a 256 bit ECDH shared secret (by splitting it into two 256 bit chunks), does publishing a SHA-256 fingerprint of that shared secret reveal any us... |
What is the correct procedure in sending an authenticated message, I've been researching and have been getting different answers, such as hash-then-sign [1], [2]
, sign-then-encrypt [3] (but the link wasn't specific for RSA).
Do I send the hash-then-sign (with something like RSA-PSS PKCS#1) and attach it to the messag... |
I want to show that if we can compute order of element a mod n for all a and n with an efficient algorithm then there is an efficient algorithm for factoring numbers
Can some one give me solution?
Thanks
|
I've been given a ciphertext message, encrypted using CBC. I know that the block size is 12 bytes and I know the plaintext value of the first block.
I also know that the encryption function is a simple XOR:
$$C_i = K \oplus (M_i \oplus C_{i-1})$$
where $C_0 = IV$.
Now I supposedly should be able to deduce the complete... |
I found the following challenge on a wargames site:
A 16 byte string is randomly generated and hashed with md5 => HashRandom
Next, the following happens in an infinite loop:
user is prompted for a 16 byte input
input is hashed => HashUser
HashUser is compared with HashRandom and the number of matching bits is displaye... |
Now given this problem, for part 1) I have solved it as follows, (I hope I am correct).
The basic idea is this:
I Have two prime numbers g and p and I tell you what they are.
You choose a secret number (a), you compute ga mod p and send that result back to me. (call it A).
I do the same, and call my number b and B re... |
Let's say I have (e.g.) $32$ output bits of an $128$ bit LFSR whose period length is $2^{128} - 1$. Those output bits are chosen arbitrarily, so I do not have any consecutive bits.
Let us call the set of of outputs $Z = \{(i,z_i) | z_i \leftarrow s_0 \cdot A^i\}$, where $s_0$ is the initial state, $A$ describes the com... |
Can someone view this video and comment?
https://cipherloc.net/cipherloc-presents-details-of-encryption-attacks/
The concept is presented between 8 and 13 minutes, and then results are presented at roughly 20 minutes, but I think the results are limited to some type of linear cipher.
They claim at 12 minutes that wit... |
When i see this problem,
i think that it is similar to 'baby step, giant step' because of gauss symbol.
But in here, i don't know how to prove both (a) and (b).
What i have done is that $A= [p]$ or $A=[p]+1$. here $[p]$ is the lower integer version of gauss symbol.
Also, $$A=p^{1/2}$$ (when this is integer) or $$p^{1... |
I solved (c). I want to know (a) and (b)
For (a), what i have done is that p-1=t2^s(t is odd) = 2^s (mod 2^m)
And for m=1,2,...s, both sides are 0. So, m is s or more than s. For m= s+1, s+2,... what will be the m?
|
Some old hash functions have been proven to be unsafe. This is mainly due to two reasons:
The computation power of machines are increasing.
People have discovered algorithmic flaws in those hash functions.
Strictly speaking, these two reasons have very different implications. The first may be remedied by extending th... |
I heard that Serpent and Twofish are much stronger than AES, but it was chosen because it is faster. If that's true, please tell me why it is stronger.
Also: is it true that Twofish and serpent are better protected from brute force attacks because they take longer to en/decrypt?
|
There was a well-known SHA-3 Competition held between 2007 and 2012, where the winner would be standardized as SHA-3. Now that the competition has ended and NIST has released reports on the different rounds. From the Round 3 report it looks like all five finalists are fairly competitive. It'd be interesting to understa... |
Referring to D. J. Bernstein's paper Bernstein-Curve25519 on Curve25519, the group $\{\infty\} \cup (E(F_{p^2}) \cap (F_p \times F_p))$, where $p$ is the prime $2^{255}-19$ and $E$ is the elliptic curve $y^2 = x^3 + 486662x^2 + x$, has size $n = 8p_1$, where $p_1$ is the large prime $2^{252} + 2774231777737235353585193... |
Let $k$ and $k'$ be two keys of symmetric encryption such that for some $m$ we have $\operatorname{Enc}_k(m)=\operatorname{Enc}_{k'}(m)$. Is it possible to exist a plain text $m'$ such that $\operatorname{Enc}_k(m') \neq \operatorname{Enc}_{k'}(m')$.
In fact, is there exist a key which be equivalent only for special pl... |
That is something I never understood:
If you managed to brute force an AES encrypted text, how would you know you cracked it? After every attempt, you wold have to compare the text to an English dictionary right? That would take ages.
In the scenario of an AES encrypted program, you would get hexadecimal code every tim... |
I'm trying to figure out how to convert a message to a message representative (non-negative integer) in RSA. I think I understand how the OS2IP primitive (converting from message to integer). It involves finding the sum of all the integer representations of each byte multiplied by 256 to the power of the length of the ... |
From Wikipedia:
Blind signatures can also be used to provide unlinkability, which
prevents the signer from linking the blinded message it signs to a
later un-blinded version that it may be called upon to verify. In this
case, the signer's response is first "un-blinded" prior to
verification in such a way that ... |
I know that PGP provides an hybrid scheme of encryption which can ensure both the encryption of a message and the authentication, but how it stores the secondary data, such as the object, the sender, the receiver, time, etc. on the server? Are they encrypted or stored in plaintext?
|
In the group $\mathbb{F}_p^*$, Bob reads Alice's parameters as $p=234917$ and $g=281$ and uses a secret key $b < 400$ such that $h_b = g^b = 92646$.
Note that $p-1 = 2^2\cdot 11\cdot19\cdot281$
$281^{2\cdot11\cdot19\cdot281} \equiv 1 \mod 234917$
and that
$19452^{281} \equiv 1 \mod 234917$
Find $b$.
281 is too large fo... |
I know that block ciphers encrypts data in the shape of specified blocks and DES also belong to block cipher family. I totally understand the procedure of DES, but I am confused that is DES take all the blocks of 64 bits of any plaint text and apply the process to all of blocks at a time or it encrypts first blocks the... |
I am a bit new at cryptography, I tried to recover data from an old app database, I got the key and the type of encryption, it says "AES/CBC/PKCS5Padding", I used this online tool http://8gwifi.org/CipherFunctions.jsp to decrypt some strings, it decrypted but I got some characters at the beginning of my data, for examp... |
According to this primer on elliptic curves by Ars Technica, when composite numbers get "too" big, they become easier to factorize with Quadratic Sieve and General Number Field Sieve.
While this is not explained in detail on the site, it is a common understanding that RSA encryption is in a squeeze trap where the RSA m... |
I got a question about the HKDF Scheme by Hugo Krawczyk. On the following link you can find a small explanation of the HKDF-Scheme and some short informations. The HKDF specification itself has been published as RFC 5869.
I got two questions about the short informations. It is said that:
Research results obtained in... |
I am using AES to encrypt my data. I have only 128 bit block that I am encrypting using AES. I am using AES in CTR (counter) mode, since it is always to advisable to use block ciphers along with modes of operation… but I think this is generally the case when you have more than one block of data.
Should I also be using ... |
I'm writing a document and I am making an important statement in it, which may be used for strategic decision regarding data-management (possibly from never handling sensitive information online to allowing some to be). I am certain of that statement, however I would like encryption specialists to confirm, infirm or pr... |
How many unique elements are generated from the following equation?
$$i = (g^x \bmod p) \bmod n $$
where:
$g$ has order $q$
$q$ and $p$ are prime numbers
$q\mathop{|}p-1$
$n$ is integer number more than 2 (could be even or odd number)
In part $g^x \bmod p$, it will generate $q$ unique numbers. But I am getting confus... |
Gilles made the following comment here:
using authenticated encryption does not guarantee integrity, only authenticity. You can't detect a rollback.
From what I gathered:
Authenticated Encryption provides authenticity of the data see here.
Authenticated Encryption is basically computing a MAC at the same time as yo... |
I want to give an introductory talk on the Diffie-Hellman key exchange. Along the way, I will mention that there exist groups, like $(\mathbb Z/p\mathbb Z)^\times$ for which it is believed that the discrete logarithm problem (DLP) is hard. Trying to anticipate a question from the audience, suppose someone asks:
Are th... |
I know the question of "how many iterations should I use with PBKDF2" is asked quite often, and the answer is typically "test and see what's practical."
However, my key derivation will be taking place on theoretically any client, and does not happen on the server side. So it could be on an iPhone, Android, PC, Mac, Web... |
Given that hash functions are inherently irreversible, would they not then be useful in applications where it's desired to overwrite sensitive data? (i.e. Darik’s Boot and Nuke)
Specifically, why should hash functions not be used for data clearing?
|
Is there a way to create a homomorphic encryption function F such that given an input it would produce an output and also cryptographically sign the input and output? More formally, an F such that: F(x, S) = y | sig(x | y), where:
x is the input
S is an optional publicly known "helper" state
y is an output of some com... |
Say I want to encrypt short messages via radio to a friend. Would a series of key streams based on 36 characters (alphanumerics) generated by a CSPRNG like CryptGenRand and applied to the plain text provide adequate unpredictability? As with a OTP, each message would use a different stream.
My (limited) understanding h... |
I want do detect illegal modification of a string by using HMAC-SHA256 or AES/CBC/PKCS5Padding, with low calculation cost.
Which is the best answer?
I plan to save data in a DB with one of the following format
| METHOD | original STRING | VALIDATION BY |
|--------------------------|----------------... |
Are there any "smart", useful ways when doing first contact in Public-key cryptography? Besides physical contact.
Example: SSH has the "VisualHostKey=yes" (but this also requires to know the image...)
Visual Validation of SSL Certificates in the Mozilla Browser using Hash Images
https://www.cs.cmu.edu/afs/cs/user/mjs/f... |
Let's say someone has a list of names, e.g.:
'Batman'
'Batman'
'Super Man'
I am auditing this list, but I'm not allowed full access to all names. So they must be encrypted.
I should be able to:
Determine that one name appears twice in the list, and that one appears once
Get a clear text name (from the list owner) and... |
I've recently written an answer on how to find the factorization of a $n$ if we can find the order(s) of elements in the associated group $\mathbb Z_n^*$. This also lead me to Shor's algorithm which does basically just that: Find the order and then compute the factorization from that.
Now, probably for a learning exper... |
I have been dabbling a bit into encryption in C++ using Brian Gladman's implementation found here:
https://github.com/BrianGladman/AES
I also found some example code that uses this library found here:
http://forums.devshed.com/programming-42/aes-encrypt-decrypt-687368.html
The relevant bits of code are as follows:
void... |
Trying to understand a solution from this paper:
Summary:
$E'_K=0||E_K(m)$ and $D'_K(0||c)=D_K(c)$ and $D'_K(1||c)=1$
IND-CCA secure (how?) as $1||c$ and $0||c$ are are easily decryptable
Not authenticated because $(1,c)$ is easy to decrypt because it will equal to 1. So, an adversary can append 1 to any ciphertext s... |
The link says $n$ has a primitive root if and only if $n$ is of certain form ($n=ap^k$ where $a=1$ or $a=2$ if $p$ is an odd prime or else $a=1$ and $k\leq2$ holds).
In particular $n=pq$ or $n=pqr$ where $p,q,r$ are not all equal primes are disallowed.
Yet in here discrete logarithms modulo such $n=pq$ or $n=pqr$ forms... |
Can multiple parties using the same snark protocol, the same verification strings, inputs etc, generate separate proofs and then combine the proof strings somehow to get a proof of the desired strength?
I am interested in whether this is possible in theory, and also in practice using libsnark.
|
Modern x86 CPUs often have the RDRAND and RDSEED instructions for hardware generation of random numbers. I just don't understand the difference between them.
Intel has this document: https://software.intel.com/en-us/blogs/2012/11/17/the-difference-between-rdrand-and-rdseed
But I don't understand how this affects the u... |
All mathematical description of encryption functions assume, despite the use of the word plaintext, that the message to be encrypted is a sequence of numbers. For example RSA with $n=pq$ assumes that one wants to encrypt a number $x$ less than $n$ than a message consisting alphabets. It says encrypted form of $x$ is $... |
What data does a CA sign?
I know that in a certificate there is plenty of information such a the serial number of the certificate itself, the X.509 version number, the user public key, the asymmetric algorithm to which the key belongs and its size, the user ID, the validity of the cert (both beginning and expiration da... |
I design encryption for a network protocol with restrictively low MTU. I'm aiming at 128 bit strength; AES-128-CCM would add 128 nonce bits and 128 MAC bits to each packet. Such MTU reduction by 32 bytes is not acceptable and I must come up with a solution which adds smaller overhead.
The protocol messages do not repea... |
Given a Polig-Hellman (is that really the name for that?) system with
$$C = M^k \bmod p$$
where $M$ is the message, $C$ is the ciphertext, $k$ is a (secret) key (any integer relatively prime to $p-1$), and $p$ is a large public prime.
Encrypting twice like this
$$(M^{k_{A}})^{k_{AB}} \bmod p = (M^{k_{B}})^{k_{BA}} \bmo... |
I would like to understand better what happens during establishment of SSL/TLS secure connection.
The Client wants to establish a connection - ClientHello
The server answers with a ServerHello. This includes a randomly generated number and a server certificate
The client creates a "pre master secret" and sends it encr... |
Explaining the choice of the Salsa20 constant Bernstein explains:
[...] shifting the entire Salsa20 hash-function input array along the diagonal has exactly the same effect on the output.
The Salsa20 expansion function eliminates this shift structure by limiting the attacker’s control over the hash-function input. In ... |
While researching the topic of random number generation, especially practical aspects of using TRNG devices on different platforms, I found this code in MacOS kernel sources.
int
write_random(void* buffer, u_int numbytes)
{
#if 0
int retval = 0;
prngContextp pp;
lck_mtx_lock(gPRNGMutex);
pp = c... |
I am trying to solve something and I have but I have no idea anymore. Maybe anyone of you has an idea/solution/hint.
Given is a block cipher $F$ with key length $n$. It looks like this:
$$c = ENC_{k1}(DEC_{k2}(ENC_{k1}(m)))$$
with key length $2n$. I have to figure out a key recovery attack with $O(2^n)$. There is an ad... |
I understand the public key and the private key are generated at the same time. The payload is encrypted with the public key. Sender Alice sends public key $[n,e]$ and cipher text $C$ to Bob.
Now is Bob recomputing the private key $d$?
If Bob is computing the private key $d$, can a "Man in the Middle" who gets the pub... |
I have a school assignment where the problem lies in finding the cycle set of two different polynomials.
I tried to look up different tools on how to solve these problems, but I have a hard time finding it.
If anyone were so kind to help me, solve but also, understand the way to figuring things like this out.
The probl... |
NOTE: This question originally conflated a "digital signature" and a "MAC", which I've since learned are not the same thing. Any references (in the answer or any comments) to a "signature" should be read as a "MAC".
I'm experimenting with auth tokens and I'm trying to wrap my mind around the best method.
Goals
Upon ... |
At the start of each of the SHA-0 through -2 algorithms, the initial state is set to certain constants. I'm curious where the initialization values in SHA-224 are from.
MD5's initial values are simple increasing and decreasing patterns of hex digits.
SHA-0's and SHA-1's values are the same as MD5's with one additiona... |
Say you have an integer that is produced by multiplying two random numbers
$$x_1 = a \cdot b_1 \bmod(p-1)$$ where $a$ and $b_1$ are relatively prime to $p-1$ and $p$ being a large prime.
Knowing $x_1$ leaves you with $p-1$ pairs of numbers for $a$ and $b_1$, so guessing the correct factorization is hard (right?).
Do yo... |
In a Server Key Exchange message, isn't it supposed to send both the public key's parameters which are for DH: the g(generator) and p(modulus), but the message only contains one public key called Pubkey: so is that the g, p or both, or is there a fixed variable like there is for the RSA public exponent which is 2^16+1?... |
I am studying the RC4 stream cipher, particularly when it used to be applied in the TLS/SSL protocol.
Is it safe to say the KSA acts like an extractor taking in the shared secret key, k (between 128bits and 256bits) and then blows it up to a scrambled 256 byte array?
Then this is essentially used as a "seed" for the P... |
PBKDF2 allows you to choose an output size as well as the internal hashing function used.
My question is, do these two sizes need to match?
For example, if I'm using PBKDF2 with SHA512, does my output size need to be 512 bits?
I'm a little confused because WebCrypto and CryptoJS allow you to specify SHA512 as the hashi... |
I think my limited understanding of DH might be messed up - what's wrong with this scenario?
C wants to connect to S.
C has an ECDSA public key that it trusts belongs to S.
Here's what happens:
C connects to S.
S sends its part of the DH key exchange, signed to prevent tampering*.
C sends over its part of the DH key... |
I'm trying to understand the MixColumns operation in AES but I have a question that I just can't figure out (it's probably something very simple but I can't find the answer).
The textbook explains that if you want to do a multiplication by 2 that can be implemented as a 1-bit left shift followed by an XOR.
How do I kno... |
I was reading how AES can be used for 64 bit data. Than i came to this answer :Is it possible to implement AES with a 64-bit I/O block size?
The answer here is given that by running AES in counter stream mode 64 bit plain text produce the 64 bit cipher text. But i can't under this point when 128 bit cipher text produce... |
We want to generate strings that can be used as passwords (storing later will be done with ex.: bcrypt, but these are the literally meant passwords).
On a Linux machine, the two generation methods are:
head -c 8192 /dev/urandom | md5sum | cut -d' ' -f1
head -c 8192 /dev/urandom | tr -cd '0123456789abcdef' | cut -c-32... |
This is a setup to produce a secret key for symmetrical encryption with TweetNaCl:
1) K1 consists of 32 random bytes
2) K2 consists of 32 random bytes
(By "random" I mean "obtained from /dev/urandom")
3) KC is the concatenation of K1 and K2
4) K consists of the first 32 bytes of the SHA-512 sum of KC
Questions:
a) Is i... |
I am stuck with AES-CFB decryption.
Assume I encrypted plaintext helloworld (10 bytes) using AES-CFB.
Now I want to decrypt the second byte e individually, that is I don't want to decrypt the first bytes or any other bytes except the second one.
Is it possible to do that without decrypting the first byte?
I did my fa... |
Consider a bilinear pairing $e:G_1×G_2→G_T$, and $p^2q^2$ be the order of $G_1$ and $G_2$, where $p$ and $q$ are prime integers.
Suppose that $g_1$ and $g_2$ are generators of $G_1$ and $G_2$ respectively, and $a$ is a random integer. What is the output of $e(g_1^p, g_2^a)$? Is it equal to $(g_t)^{ap}$?
What is the or... |
In The Galois/Counter Mode of Operation (GCM) by McGrew and Vega (PDF) it's stated that:
An initialization vector IV , that can have any number of bits between
$1$ and $2^{64}$. For a fixed value of the key, each IV value must be
distinct, but need not have equal lengths. 96-bit IV values can be
processed mor e ... |
In this question on StackOverflow https://stackoverflow.com/questions/31248777/can-pkcs5padding-be-in-aes-gcm-mode it's said that GCM doesn't require a padding: why?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.