instruction stringlengths 32 27.2k |
|---|
I am trying to understand the simulation-based security proofs (as well as the UC framework), I find that there is a basic assumption when proving the security, i.e., the simulator could extract the secret input of corrupted parties, even if the corrupted parties' input is encrypted or in secret shared form. I have two... |
I recently had a variant of the following problem in my cryptography course and I had trouble solving it and was looking to get some help.
Given the symmetric key cryptosystem: $\text{KG, Enc, Dec}$ where $\text{KG}$ is a key generator that produces a random key in the space $Z_n = \{1, 2, 3, \ldots, n-1\}$, $m$ is a ... |
There are server programs and client programs.
Prepare two keys (A, B) for AES.
The A key creates an encryption table in advance with WhiteboxAes.
The B key creates a decryption table in advance with WhiteboxAes.
The client uses the A table, encrypts the data with WhiteboxAES, and sends it to the server.
The server de... |
I want to make a Diffie Hellman key exchange code using Python, but I'm afraid of just randomly picking $g$.
I read on the answer of Thomas Pornin to this question How does one calculate a primitive root for Diffie-Hellman?, that if you use a strong prime, then every number on the group (except $1$ and $p-1$) would hav... |
I asked this on Stack Overflow but I was told to ask here.
I'm writing a program that decrypts text encrypted using a Vigenere cipher. It's been working very well so far, but my current issue is that I need an effective way of checking if a string is decrypted. So far, I've been checking how many times the string conta... |
I'd expect a 192-bit nonce derived from a 256-bit nonce by computing the SHA-256 hash and then truncating it to 24 bytes to behave like an approximately uniformly randomly generated 192-bit nonce and hence be good enough for using it e.g. as a nonce for XChaCha20-Poly1305 encryption. Is this correct? If yes, could mayb... |
I'm planning to use ChaCha20 just as a CSPRNG. Key is random (taken from strong initial entropy source) and will be constantly replaced via DJB's fast key-erasure scheme. What should I use as the nonce? Does it matter? Is it safe to just use zero?
|
In the wiki article, it says "An ASG comprises three linear-feedback shift registers, which we will call LFSR0, LFSR1, and LFSR2 for convenience. The output of one of the registers decides which of the other two is to be used; for instance, if LFSR2 outputs a 0, LFSR0 is clocked, and if it outputs a 1, LFSR1 is clocked... |
Packing multiple plaintext messages into a single ciphertext block is known to increase the effeciency of homomorphic encryption. Can someone let me know if this technique can support large data ? For example, there is packing technique 1 that transform a binary vector to a polynomial of ring. However, the packing tech... |
Security of lattice-based schemes in the NIST Posto-Quantum Project often relies on the complexity of dual attack. Complexity of this attack depends on the running time of lattice basis reduction algorithm like BKZ$-\beta$, where $\beta$ is block dimension of BKZ-like algorithm.
I am looking at candidate CRYSTALS-Kyber... |
Let F be a deterministic compression function that takes fixed length 128 bit inputs and outputs 8 bits. Each input to the function has 128 bits of entropy, does that mean that the output byte has 128 bits of entropy ?
|
In an application we need some way for a user to authenticate, but have the challenges of very restricted functions to use.
Each user has got a 16bit-number he can't change. We want to calculate some individual "secret" for some of the numbers that allow users to have higher access rights. The aim is to make it as hard... |
I have code encoded in GF(7) with primitive 5
Сf(4,1,0,4,5,5). (last four symbols is redundancy)
While decoding using DFT we use formula
$$
С_k=N^{-1}*c(z^{-kj})
$$
example:
$$
C_1 = c(5^{-1*j})/6 = (4*5^{-0*1} + 1*5^{-1*1} + 0*5^{-2*1} + 4*5^{-3*1} + 5*5^{-4*1} + 5*5^{-5*1})/6 = (4 + 3/15 + 24/750 + 20/2500 + 25/1562... |
I've been looking for a fast, powerful and robust algorithm for encrypting large files with authentication .
I would like to implement the algorithm on my own without using third party software. I've used different modes of AES but the software implementation is prone to side channel attacks. Besides the most commonly... |
Pardon me if this question seems a bit obvious, but if someone has a key to your encryption, knowing what type of encryption you are using (or running outputs against a lot of common encryption types) gives them the opportunity to reach your data using said key. So wouldn't it be better if you encrypted according to a ... |
If I feed 128 bits of randomness into AES-CTR as its IV / nonce / initial counter, what will happen if I feed in a random 128-bit integer that overflows and wraps around?
I've written a test for this and found that at least some CTR implementations do the expected thing and wrap the entire uint128 around, but is it pos... |
This may be a naive question:
LWR assumption states that for ${A} \stackrel{$}{\leftarrow} \mathbb{Z}^{m \times n}_q, s \stackrel{$}{\leftarrow} \mathbb{Z}^n_q$, given $(A, \lfloor A\cdot s \rfloor_p$), it is indistinguishable from $(A, u)$ with $u \stackrel{$}{\leftarrow} \mathbb{Z}^m_p$.
There seems to be no specific... |
I am trying to understand how much the output of elliptic curve based cryptosystems (for example elliptic curve ElGamal) is smaller than the ordinary public key cryptosystems.
I know that the security of a EC key size from a moduli of 160 bits is about the security of an RSA cryptosystem with a 1024 bits moduli. But m... |
When i studied the Applications where Curve25519 is used, i found out, that it is mostly used for the key exchange. Examples are the Signal Protocol and Threema.
I know, that Curve25519 has a pretty fast arithmetic, so my first idea was, that it is used to decrease the server load. Am i right with my idea? Can someone ... |
Suppose we need a PRF whose output space is 255bit.
Then, what I can do with AES with 128-bit security is producing 2 AES blocks that are of 256-bit.
Then, I will remove the most significant bit of one block so that I have 255-bit output.
Is it secure if I remove the top-bit of the one block to make it 127-bit?
|
Let's suppose $A$ is sending a message $m$ to $B$ using asymmetric cryptography.
To guarantee the authenticity of a message, $A$ encrypts $m$ with $A$'s private key: $E(m, k_A) = m_A$.
Then, $A$ sends $m_A$ to $B$.
$B$ can check that $m_A$ was sent by $A$ using $A$'s public key $p_A$, by doing $D(m, p_A) = m$.
If the ... |
The initial hash values (IV) of SHA256 are fixed. However, let's say I modify the SHA256 hash function to allow the attacker to use arbitrary IVs rather than fixed IVs. What kind of weaknesses would this cause? Would it be easier to find collisions, preimages, etc? Would it be possible to insert backdoors?
So far, I've... |
I originally asked this question on the information security stack exchange but I think it's better suited here.
I'm trying to calculating the unicity distance for a cipher applied to a language I wrote and I'm having trouble understanding the concept of redundancy in a language.
From this book
The redundancy of a la... |
I'm trying to do the following assignment:
Let $G:\{0,1\}^n \rightarrow \{0,1\}^{n+1}$ and $G':\{0,1\}^n \rightarrow \{0,1\}^{n+2}$ be two pseudorandom generators. Prove
that the function $G'':\{0,1\}^n \xrightarrow{}\{0,1\}^{2n+3}$ defined
by $$G''(s_1, \dots, s_n) = (G(s_1,\dots,s_n),G'(G(s_1,\dots,s_n)))$$
is... |
So I'm trying to understand how the key exchange with Curve25519 works. I read the original Paper from Bernstein "Curve25519: new Diffie-Hellman speed records", but I still got some questions. First of all, this is graphic, how the key exchange should work:
So Alice and Bob create their own secret key by randomly choo... |
I dont know is this question more like reverse-engineering or cryptographic.
Why governments are hunting for encryptions keys? Aren't they delievering by the network the same as the encypted messages? What doing it end-to-end encrypted?
|
In several countries there are currently ideas to track the spread of HCoV-19 by use of mobile location data. A good knowledge of the virus' spread throughout communities and countries will certainly be a huge benefit to everyone, as it provides data that allows fast and decisive, but ultimately localized, action. Howe... |
I am looking for a primitive or a construction that meets the following requirements. Is such a construction (a) theoretically possible, and (b) in existence right now?
Given are:
a long secret $X$
a authenticated cipher that takes a key $K$ with encryption function $\mathcal{E}_K$ and decryption function $\mathcal{D}... |
I have been looking for a concrete example of GMW protocol for two parties. I was trying with the following example for computing $XOR$ of two parties:
A's secret bit is $a = 0$, B's secret bit is $b = 1$.
A chooses a random string of length 2, namely $a_1a_2 = 00$, so that $a = a_1 \oplus a_2 = 0 \oplus 0 = 0$. B doe... |
This is a question just out of curiosity, as I am a newbie to Post Quantum Cryptography. I have read several articles where they emphasize that current standardised symmetric encryption algorithms (that uses 256 bit keys e.g. AES) are Quantum resistant by default. But security of AES 128 can be compromised by Grover's ... |
I had find a paper about VMAC algorithm:VMAC: Message Authentication Code using Universal Hashing.
Now I want to implement this algorithm, But i don't find test vectors about it.
Who can give some advise? Where can i find it's code ?
|
If I have just the (r,s,v) values of the signature and the message hash, what is the most efficient way to determine if a valid public key exists?
I do not need to know the public key, just that the signature and message hash recover to a public key.
Lets say with the notation:
, are the values from the signature.
ℎ ... |
New to cryptography, I'm trying to learn the program Veracrypt, and I'm now trying to understand the history of hash functions and how it applies to Veracrypt.
So this is what I understand so far, the NSA made SHA-2, which is one of the hash functions that Veracrypt can use for its "key derivation function," and the NS... |
I have concerns regarding truncated SHA-256 hashes in an application I am building at the moment:
Nomenclature
secret - the full 256-bit SHA-256 result of hashing 16 random bytes
public - a unique identifier for an object.
hash - the output of SHA-256(secret || - || public)
prefix - the first 8 characters (32-bit) of h... |
Gimli is a 384-bit permutation that makes use of an internal 96-bit permutation which works on columns. Every 4 rounds starting from the 1st a "small swap" is performed and every 4 rounds starting from the 3rd round a "big swap" is performed, these work on the first 32-bits of each column (see https://gimli.cr.yp.to/li... |
I don't understand why Q keeping pairs of instead of m like mac-forge solves the problem of generating a new tag on a previously authenticated message. Say, a previously authenticated message for "Cat" is tag 90, Adversary can retrieve (Cat, 90) from the query. However, if Adversary is able to successfully forge a new... |
I was wondering if there is a commonly used library in Python (or another common language such as Java, C++, etc.) for fully homomorphic encryption over multiplication and addition that also supports floating point numbers. This means that if our encryption function is $f$ and our decryption function is $g$ and we have... |
I am planning to implement an e-voting system based on hyperledger fabric blockchain, however, I came across many criticisms from well-known security experts like Josh Benaloh and others. The problem is I couldn't find any proof that the e-voting is definitely insecure. In my opinion, I think Blockchain can be consider... |
Is it possible to know if two geographic locations are within a certain distance of each other without revealing the location?
I'm thinking about contact tracing during the COVID-19 outbreak. Assuming users have an app that records their location history, more specifically where the stopped and spend a few minutes. Whe... |
I am currently saving hashed passwords for my website. Passwords are salted and then hashed using SHA3-512. I understand the security level of SHA3-512, as it is for all Keccak algorithms, is half the capacity (as it is explained here) , so 512 bits in this case.
My question is, how does re-hashing the resulting hash ... |
For example, given:
p = 173, q = 149, e = 3
Using phi(n) gives d = 16971
While using lambda(n) gives d = 4243
Both values satisfy the checking equation (de)%phi=1, so are both correct, and if so, is one better than the other?
|
I'm searching for a way to backup a secret that only the end user knows the information with 2 trusted hosts.
But trusted hosts shouldn't have access to secret at any time.
First basic version :
Alice encrypt secret using Server A public key
Alice encrypt encrypted secret using Server B public key.
Alice store this do... |
I'm kind of new in this field and I've been trying to learn it.
I'm now facing an issue where I have a couple of packages encrypted with AES-128 GCM and I have the key that was used to encrypt these packages. However, I dont know the nonce or the H.
Is there any way for these packages to be decrypted? or is the nonce... |
In paper Lattice Signatures Without Trapdoors(Lyubashevsky2012), $n$ is the security parameter, why the authors set $n$ as 512 but not 80/100/112 to get 80-bit security/100-bit/112-bit security?
|
Are there conditions on the definition of cryptographically secure pseudo random number generators that require distinct seeds to generate distinct (periodic) sequences? What if a generator has the property that two distinct seeds generate the same sequence, but the generator is provably secure? Can this property be ig... |
so I have to find all generators for modulo p. And I thought: isn't there are rule for it? As far as I remember, every number from {1,...,p-1} is a generator because p is a prime. Is that true? Or am I mistaken? What is the rule called?
Or how else do you find generator elements quickly? Do you really have to take each... |
This happened during a discussion of RNG entropy, and the difficulty of verifying the level of entropy in a long sequence of bits (e.g. a private key.)
A colleague of mine told me about a website that, given a sufficient quantity of output from an PRNG, had been able to deduce which application the PRNG was from. As an... |
Why do ed25519 signature verify functions accept 96-byte signatures? Take this piece of code for one example: crypto_sign_ed25519_open() requires that signatures be at least 64 bytes (512 bits) but will accept longer ones, and get_hram() will include extra bytes at the end of the signature in its hashing step if they a... |
I have a question concerning the paper by Blum, Blum, and Shub introducing the $x^2 \mod N$ Generator. It is clear that the outputs of the generator pass statistical tests for randomness: the larger the $N$ value the more uniform the output looks with more iteration. But it is unclear to me how the authors proved the ... |
NORX replaces all the additions of the Chacha20 quarter-round function with the non-linear $x \oplus y \oplus ((x \land y) \ll 1)$ operation. Gimli supposedly improves on it with $x \oplus y \oplus ((z \land y) \ll 1)$, adding a third input $z$ because as they claim it removes the need for the additional xor that NORX ... |
With RSA PKCS#1 v1.5 it is possible to verify that the signature was generated by the correct private key without actually having access to the data. You just perform the modular exponentiation with the public key to retrieve the padded hash. Then it is possible to verify that the message was padded correctly. Moreover... |
Let's say I've got some securely-generated random data I want to encode as words, 32 bits of it. My wordlist is 2048 words, so each word encodes 11 bits of information. I write a routine to pack these 32 bits into the lower 11 bits of 3 16-bit types and zero the upper 5 bits of each. For the last one, I pack in the ... |
As far as I understand a hash transforms data into a fixed length representation. For example, a random function returns 8-byte numbers and a hash function has a block size of 32-bytes. If I now generate the hash of each random number, would the resulting hashes be an evenly distributed set of random numbers with a len... |
If we have $H(X) \rightarrow Y$
and it is collision resistant.
Can we say that $H$ is also one-way? And if that is true can you give me an example?
|
Seems Yes. People always tell us, it is very hard (or almost impossible) to recover an encrypted hard disk.
But after a second thought. I think this is not true.
Given that we know the KEY, and the method/algorithm of decryption, the decryption(key, encrypted_data) should be no different from plain text.
For example,
... |
Same question asked here in 2014 but since a lot has changed since then, I would like to get feedback from experts on the latest best practices.
The problem
Our requirement is to provide the merchants with a card fingerprint which uniquely identifies a card number. By using this fingerprint the merchant could check, fo... |
This is motivated by this question about the recovery of (corrupted) encrypted files, and in particular the statement (in the answer):
But If I know the algorithm and the key and I make a custom software to decrypt the contents of the file no matter what, I might get a decrypted JPEG that may be partially viewable/clu... |
Need some help. I am not versed in hashing and just started programming with PHP and currently need to hash some strings but required it to be unique. Found that OpenSSL can hash with SHAKE128 but without the option to select the lengths of the output. Notice that every openssl_digest function with shake128 hash output... |
For any cryptographically-secure pseudo random generators, do we need a secure random seed for those?
If the seed is predictable, then everything is broken due to the deterministic propetry of the algorithms.
|
Every day, I must backup my server's files, encrypt the backup, and upload it to untrusted cloud storage (dropbox, s3, etc.)
I've spent time on security.stackexchange where I discovered the typical approach is:
encrypt the backup with random one-time symmetric key ("session" key), for speed
encrypt the session key wit... |
So I've been studying RSA for a class and I'm having a hard time understanding how it works.
Why do we choose the value of e such that e is relatively prime to the totient (as opposed to just being relatively prime to n?) How does e being relatively prime ensure that there is only one possible value for d? And are th... |
I see Chacha20Poly1305, XsalsaPoly1305 and AES GCM usually used and mentioned in literature and implementations as AEAD cyphers. My question is that Poly1305 provides authentication and Salsa20 provides encryption, a combination of both can be considered AEAD or not? Even though it is not a standard, does it technicall... |
In lattice-based crypto, we always need to sample 'noise' from Gaussian distribution, but how to measure the bound the noise? For example, if the Gaussian distribution is D_{u,\sigma}, where u is the meaning value and \sigam is the standard deviation, and we sample e \gets D_{u,\sigma}, then how to get the bound of e, ... |
this is the first time I write here.
I'm studying a library to encrypt/decrypt with RSA algorithm.
In an example given by the library I found this:
/* RSA 1024 Test Vector 1 */
const uint8_t T1_Modulus[] =
{
0xa5, 0x6e, 0x4a, 0x0e, 0x70, 0x10, 0x17, 0x58, 0x9a, 0x51, 0x87, 0xdc, 0x7e, 0xa8, 0x41, 0xd1,
0x56... |
I am interested in creating a cryptocurrency that keeps the sender, the receiver and the amount private and does not require a trusted setup.
I have already read the Zerocash protocol but It uses zk-SNARKs which require trusted setup.
I have also read the Bulletproofs protocol which creates short proofs and without a ... |
I'm aware that symmetric is faster than asymmetric.
I want to test this, but my (obviously incorrect) tests show the reverse.
Symmetric test:
#!/bin/bash
echo create random 100Mib binary file
head -c 100M /dev/urandom > blob
echo encrypt
time gpg --symmetric --batch --passphrase 123 --output blob.gpg blob
echo decry... |
If the public key in a RSA system is $(n,e)$ with $n=pq$, $p$ prime, $q <p$ a Carmichael number and $\gcd(e,(p-1)(q-1))=1$ then if $d$ is the inverse of $e$ modulo $k=(p-1)(q-1)$, I want to show that for every $0<M<n$ we have that $M^{ed}\equiv M (\hspace{-2mm}\mod n)$.
I've managed to prove it is true if the $\gcd(M,n... |
let's say we are given a classical RSA encryption scheme, though we would like to "reverse" the task:
Given two messages $c, m$ choose $p, q, e$ such that $p, q$ are prime and $c ^ d \equiv m\pmod N$ with $d \cdot e \equiv 1 \pmod{(p - 1)(q - 1)}$; $N = p \cdot q$.
I was wondering how one could approach this problem? I... |
Decaf is a point compression method that builds a prime-order group for (twisted) Edwards curves and Montgomery curves with cofactor $h = 4$ based on the Jacobi quartic [H2015]. The promise is to eliminate the cofactor when only operating on points decoded from Decaf. Ristretto then extends this approach to curves with... |
I want to use 2 semi trusted servers, to decrypt a secret for a user but I don't want those servers to have access to the plain text.
Those server need to be able to "partially" decrypt and let the user finish the decryption.
One way could be :
User crypt a secret with server A
User crypt result with server B
User dec... |
I am using node-jose to convert a particular JWK to a PEM, and then ... converting that PEM to a JWK.
The resulting JWK has the same e, but different n than the original. Should I be surprised?
I have read in another answer here that
there are varients of RSA for which a public key might not meet these assumptions; ... |
How is the unknown bits (annotated by red arrow in figure below) come in the OUTPUT after round 1 and round 2 ?
Following is the pictorial representation of SIMECK round function operation.
Ref: Research Paper (figure 3)
|
Recently, I have been learning chaos-based cryptography. Is the Chebyshev map-based encryption algorithm quantum-resistant?
|
I'm analyzing the transmitted data from the apple Smart Keyboard to the iPad, and I have troubles arriving to a conclusion:
When I press a key, the keyboard transmit two blocks of data: the identification address (I think, it is always the same) and the key data divided in 4 bytes. It sends the same information when I ... |
I'm having some issue understanding the mechanism of electronic signature and how implementing it
Here what I understood, correct me if I'm wrong:
(Client is here an android or ios device. Server is a web server.
AWS S3 is used to store the document)
A - Init:
Client :
generate signing RSA private/public keys
genera... |
There is a file A and a file B.
If I have only HASH(A) and HASH(B) are there any non-trivial hash functions for which I could calculate both HASH(A ++ B) and HASH(B ++ A) without knowing A and B?
Can this be extended further?
Are there hash functions where, if I know HASH(A ++ B) and HASH(B), I can find HASH(A)?
(By ... |
I'm currently doing the cryptopals challenges and for it's first set of problems it tells you to use frequency analysis of occurring letters to determine the likelihood of a key guess being correct and yielding legible english.
I was wondering, would calculating the entropy of the resulting plaintext not serve the sam... |
What is the difference between cfb and cfb1 and cfb8 ? like openssl's aria-128-cfb and aria-128-cfb1 and aria-128-cfb8
edit: interestingly enough, there's also references to a cfb128 (example)
(title says it all but CSE won't let me post a question without a message body)
|
I am looking for a proof for the following two claims from "Serious Cryptography" by Aumasson.
NM-CPA implies IND-CPA. [...] IND-CCA and NM-CCA are equivalent notions that imply the presence of the other.
where IND-CPA/IND-CCA and NM-CPA/CCA are defined as indistinguishability and non-malleability under chosen plaint... |
I have a set of users in my system, each having a private/public keypair of a digital signature scheme. I also have an accumulator in my system, where all the public keys of the users are accumulated.
A user needs to anonymously prove to a verifier that she knows the private key corresponding to some public key that is... |
I want to create a NIZK proof of a multi-exponentiation via Groth-Sahai proofs. In the lectures of Jens Groth in a winter school of Bar-Ilan University, he shows a way to transform multi-exponentiations to paring product equations.
My problem is as follows. Let me take a pairing in the first form ($e(A_j,h^{y_j})$) I ... |
I'm attempting to validate an Authenticode signature (generated by signtool /fd SHA256 /f <code signing PFX> /p <PFX password> test.exe), and I've run into an issue that I've narrowed down to a single point of confusion.
For the command above, if I hash test.exe before running the signing operation, for example using G... |
I am using CAPI Engine in OpenSSL and I did some test. When I use TLS 1.0 or 1.1, during handshake and RSA signing, PKCS padding is chosen. When I use TLS 1.2, RSA signing uses PSS padding.
What affects the choice among paddings?
How client knows what padding was used?
When is padding assigned to RSA structure?
|
In light of current events (Zoom getting strong headwinds for using AES-128 in ECB mode), I was wondering what the general approach is to packetized data encryption, where the packet length (UDP for video over internet: > 1200 B payload)
Is it really just a block cipher in ECB mode, so that each packet can be decoded ... |
I was able to find the irreducible polynomial used in AES128-GCM: $x^8+x^4+x^3+x+1$.
But I cant' find the one for AES256, I'm searching in OpenSSL implementation of AES256 but with no luck so far.
|
In Serious Cryptography by Jean-Philippe Aumasson on p. 46, paragraph "Provable Security", it says:
Provable security is about proving that breaking your crypto scheme is at least as hard as solving another problem known to be hard. [...] This type of proof is called a reduction [...]. We say that breaking some cipher... |
In feistel cipher , does it matter that number of rounds ? is using more rounds will give the best result?
or it's all about the key size ?
|
I'm a bit confused why it's hard to break Diffie–Hellman
Let's take the example
ALICE has G, a, and n
BOB had G, b and n
Eve (the third party) succeded to intercept G, n, $G^a, G^b$
ALICE generate the key G^(ab) mod n
BOB generate same key G^ba mod n
What I don't understand is why Eve cant' get a or b by knowing G^a a... |
The question that I am trying to answer is as follows:
10.14. The parameters of DSA are given by p = 59,q = 29,α = 3, and Bob’s private key is d = 23. Show the process of signing (Bob) and verification (Alice) for following hash values h(x) and ephemeral keys kE:
h(x) = 17,kE = 25
h(x) = 2,kE = 13
h(x) = 21,kE = 8
I ... |
Given the letter-number cipher: a=00, b=01, c=02, etc., encrypt the word 'hi' and decrypt its ciphertext using RSA. The public key is (5,35) and the private key is (29,35).
I know that 'hi' is represented numerically as 0708, and encrypting it using (0708^5)mod35 gives 8 as the answer. My instructor then said that I ... |
I'm creating a password management application and I'm considering using the following procedure to keep passwords safe:
Asking the user for raw_password, for example "MyLongMasterKeyPassword"
Generating master_key from raw_password with Scrypt and a random salt
Storing the salt (kept public)
Asking for raw_message (t... |
I'm trying to establish E2E secured channel with nearby devices (using WiFi direct).
Obviously, I wouldn't like to rely on internet connection. Can I use the signal protocol without a server?
1)Will it be secure to just publish the prekey to the other peer, and after the key-exchange compare the keys' fingerprints?
2) ... |
As we known, a homomorphic signature scheme consists of the usual algorithms $(\text{KeyGen} , \text{Sign} , \text{Verify})$ as well as an additional algorithm $\text{Evaluate}$ that “translates” functions on messages to functions on signatures. If $\sigma$ is a valid set of signatures on messages $m$, then $\text{Eval... |
My teacher challenged us to find out which seed was used to generate some random numbers. I would like to know if it is possible to decipher the seed using the generated numbers (break the linear congruence algorithm). If possible, I ask you to explain how to do it.
|
I spent a lot of time looking for an answer to this question, but the majority of answers never explicitly explain why the client's public key is never used; it's always the server's public key that's used in SSL encryption. Similarly-phrased questions (such as this, this, and this) don't actually explain why the serve... |
Consider the Type I lattice trapdoor in [GPV08]: https://eprint.iacr.org/2007/432.pdf
Suppose a PPT adversary is given the LWE trapdoor function in the picture:
$g_{A^\top} (s,e) = A^\top s + e = b (\text{mod } q)$
Let T be a type 1 trapdoor for A.
Now a PPT adversary is given an oracle that does the following:
On in... |
Consider 3 entities A,B and C. I want A to be able to encrypt a document that can be decrypted only when keys of both B and C are combined. This question talks about a similar problem, but it uses AES.
In my usecase, I don't want the keys to be shared across the entities. There is one solution that was coming to my mi... |
I am new to cryptography, I am very interested in cryptography, thank you for your answer.
|
I've seen from the SafeCurve criteria that one should try to avoid small complex multiplication field discriminant as it can speedup the discret log computation via the Polard Rho method.
However, I cannot find any information about how this additional information can improve the rho method. Especially, the SafeCurve p... |
I have generated one RSA-2048 signing key and one DSA-2048 signing key, using gpg command
gpg --full-generate-keys
I would expect the key to have size 2048 bits, however, running the command
gpg --export-secret-keys <key-id> | wc -c
gives a size of 1353Bytes for the RSA private key and 1103Bytes for the DSA private k... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.