instruction
stringlengths
32
27.2k
I'm analysing how different components of AES influence its security. However, I cannot find a good explanation to what happens if the MixColumn step would use the identity matrix. Intuition tells me, that then AES won't be secure, but why?
Is it practical to make a PRNG cryptographically secure if I shuffle the randomly generated numbers (say 256-bit) several times before hashing it, even if a hacker knows when I generate the numbers? Note: They say PRNG is not cryptographically secure because the generation depends on the state of the generator, that it...
I'm trying to understand the difference in output of AES decrypt (GCM mode) using Webcrypto and Cryptodome.Cipher.AES in python. from Cryptodome.Cipher import AES from binascii import hexlify, unhexlify key = 'E52BC6CEDC2E096584B1F57D3AE6A60724C7B301EECB975813819673E6D23126' iv = 'B5DDEDB80480A649D1763BE7' encrypted_da...
Quite strange question, but here goes: I don't quite understand how asymmetric encryption works. Take SSH for an example: The server will always be listening for commands, so anyone who has the public key (easily obtained as I understand (I might be wrong)) can send commands to the server and it would appear as if the ...
I am assuming that 2-key 3DES is equivalent to 2DES. I know the key size is 2x56 = 112 bits. Is this key size the same as the keyspace? e.g. Would the keyspace be 112 bits ($2^{112}$)?
So I have this question. I downloaded a .BMP off google due to .BMPs being not compressed. Just a 1024x768 .BMP image which its size os of 2.25Mb. I put the image in a steganography application.. inserted hidden text within it, encrypted and everything. How come the resulting image (Steganographied Image) is still 2.25...
I wish to encrypt potentially gigabytes of data on my pc, and I wish to be able to decrypt and use those files. However, I am a noob, so bear with me. My idea is to use openSSL to encrypt files with AES-256bit-CTR, since it's fast. I imagine I'd be using a super long password (at least 20 chars), I'd use the same salt ...
Suppose Bob wishes to send an encrypted message $M$ to 4 people $P_1,P_2,P_3,P_4.$ Each one has their own RSA key $(N_1;e_1),(N_2;e_2),(N_3;e_3),(N_4;e_4)$. The encrypted messages are $C_i=M^{e_i}\bmod{N_i}.$ The $e_i$ are pairwise distinct (per comment). How to decipher the original message $M$ ?
Question A Is the BLS signature scheme still secure if an adversary in addition to the public key $ pk = g_2 \, sk \in \mathbb{G}_2 $ also obtains additional information on the private key $ sk $, namely it also knows some value $ v = g_1 \, sk \in \mathbb{G}_1 $? E.g. is the adversary able to forge signatures under $ ...
I just figured out a way to create a RNG that may be almost as good as TRNG (true random number generator) and need some input to confirm/clarify. What if I use the IPv6 address of a visitor as a seed + the time recorded when the visitor executes a particular action at my website to generate the random numbers? IPv6 ha...
I'm implementing crypto in Node, following this article: https://lollyrock.com/articles/nodejs-encryption/ It defines: var crypto = require('crypto'); var algorithm = 'aes-256-ctr'; var password = 'd6F3Efeq'; // AKA passphrase Then, it uses the password/passphrase for encrypt and decrypt the strings. Now, here my ques...
I am trying to construct a simulator and an extractor for a zero knowledge protocol. I just encountered this text that explains the construction of the simulator. Does someone know of a similar text that explains extractor construction in depth? I need to construct the extractor and prove that it extracts with non negl...
When choosing the public key for ElGamal, $\alpha$ must be chosen as a primitive mod p. What if $\alpha$ is not a primitive root ? How will it influence the encryption and decryption ?
These 2 similar questions are from Paar's Understanding Cryptography. I could not see the answer so if someone can help I will appreciate: Question1: We consider known plaintext attacks on block ciphers by means of an exhaustive key search where the key is $k$ bits long.The block length counts $n$ bits with $n>k$ . ...
Suppose I have the witness $x$ and need to prove that I correctly computed $(g^x)^x$ to a verifier. $g$ and $g^x$ are public. The verifier asks me for $(g^x)^x$, but wants proof that I've given them the right answer. Here's my attempt at a solution: Let $X = g^x$ and $X' = (g^x)^x$ Step 1: Prover chooses a random $r$ a...
A cryptosystem can be entirely dependent on its underlying problem or it can have a reduction to other known problems. Solvability can be affordable if there exists a reduction of the base problem to another problem, and the last is feasible. I understand that a cryptosystem is provable secure if it has been well studi...
I have been given a 4x4 matrix and each entry is an 8-bit long byte. I have been given the 4x4 matrix that I need to multiply each column by of the first matrix by. $$\begin{pmatrix}2 & 3 & 1 & 1\\\ 1 & 2 & 3 & 1\\ 1 & 1 & 2 & 3\\ 3 & 1 & 1 & 2\end{pmatrix}$$ The method that I have been told to use seems confusing. I h...
I was looking at tahoe-lafs which accepts a file, encrypts it, does erasure coding on it which generates n shares and then distributes it over the storage servers. The distribution is Share 1 = Server A, Share 2 = Server B and Share 3 = Server C. Now If I want to make sure that the Server B has that data, how do I go...
Does SRAM-PUF require the microcontroller/system to be (1) on the same silicon piece and (2) to prevent access from dumping the SRAM in an uninitialized state in order to be tamper-proof? In SRAM PUF, there are two types of challenges that can be applied to the system. The challenge can be either the whole SRAM memory...
i would like to know why there is a problem of not using random x-coordinates in shamir secret sharing schemes. I consider that after evaluating the points in a polynomial $f(x)$, the share is composed by: $(x, f(x))$, where the $f(x)$ is secret and the $x$ could be public. So, why i always find in some literature that...
Question: Assume a variant of the OFB mode by which we only feedback the 8 most significant bits of the cipher output. We use AES and fill the remaining 120 input bits to the cipher with 0's: Why is this scheme weak, if we encrypt moderately large blocks of plaintexts, say 100-KByte? What is the maximum number of know...
Can someone give a clear definition of what a perfectly nonlinear function is? Can we say that AES s-boxes are perfectly nonlinear and why?
In CBC mode, the XOR operation is used to combine the previous encrypted block with the current plaintext, to be used as the block to encrypt. Apart from other known disadvantages inherent to the mode itself, usage of XOR creates a collision vulnerability, where if there's a collision in the output, and the plaintext b...
I want to store document hashes in a smart contract as a prove of a document (eg pdf contract - could be large, dozones of MB) related to a blockchain transaction. Is murmur3 128 hash functions a good choice for this? murmur3 is not a cryptographic hash function, but it as difficult as with cryptographic functions to c...
Suppose that $\mathcal{H}$ is a family of collision resistant hash functions. Given $h$, which was chosen uniformly at random from $\mathcal{H}$, it is infeasible for a polynomial-time adversary to find collisions for $h$. Now suppose that $h_1$ and $h_2$ are chosen uniformly at random from $\mathcal{H}$. Is it still i...
Suppose I have the following encryption scheme: for a message $m\in\mathbb{F}_p^*$, I generate the ciphertext = $(g^r,f^mh^r)$ where $g$ is the generator of a cyclic group $G$ of unknown order $n$ and $F$ is a cyclic subgroup of $G$ of order $p$ and $h=g^x$ where $x$ is the secret key. Since $G$'s order is unknown we r...
How would you prove that AES-GCM is secure against a chosen ciphertext attack (IND-CCA2), assuming that the attacker cannot forge AES-GCM MAC tags in less than brute force?
Currently, I started to learn about secure passwords in password file. The password file contains the hashed values for passwords. I know that the forward search attack for a password that if an intruder could have an access to password file in a system. Then he/she could hash the most common password and compare them ...
my use case is the following: Sharing a secret on the blockchain from one participant over a smart-contracts with revealing the secret only after some condition is verified (another participant has paid for it). Since every content on the blockchain is publicly available, I'm looking for a cryptographic way of exchangi...
My apologies if I get my terminology wrong - I am new to this stuff. I am writing a routine (in c) to encrypt plaintext. I am using TinyAES to perform a CBC on the plaintext and sending a (pseudo)random IV with the encrypted text. The user supplies a password (ascii) which I pad to key length with a known (constant) b...
In a non-interactive proxy re-encryption scheme, Alice, with the key pair $(pk_a, sk_a)$, needs to issue a re-encryption key $re_{a\rightarrow b}$ once she wants to share her secret message with Bob, with key pair $(pk_b, sk_b)$. In other words, Alice does: $re_{a\rightarrow b} = rekey(sk_a, pk_b)$. Let's say Alice wa...
I am using SSHA512 to encrypt email user's passwords. Manually doing this works using doveadm from dovecot. But I can't seem to implement this in my mail client. I can, however, use SHA512. Is SHA512 less secure than SSHA512?
Lucky13 is a timing attack against the MAC in the CBC MAC-then-encrypt ciphersuites. In the attack's page: The attacks involve detecting small differences in the time at which TLS error messages appear on the network in response to attacker-generated ciphertexts. My question is: Can a passive adversary perform Lu...
Hello people of StackExchange. It's my first time asking and I know little about Cryptography, so be gentle. My problem can be simplified to this: I can create a 2GB Volume that contains 1GB of text files and 1GB of photos. It has the password 123. Or I can create a 1GB Volume with 1GB of text files with the password 1...
I have the following ciphertext that I want to decipher: bnmkogt vgyhni uioopkm xswercvdf yuiogvbnm ghjy cftyhng tgeyjn xdrtygvc zsefx xdrgbhu tgbnmko tgbnmhyui yhnmko vbnmgyuiok So far, what I have done: Perform a frequency analysis. This suggests that no transposition cipher was used. I Also try all 26 ROT combi...
In Feb 2017, CWI and Google announced SHAttered hash collision attack on SHA1, which took $2^{63.1}$ work estimated 6500 CPU years, to achieve. Therefore, 64-bit should be considered now an insecurity. However, that's on the cloud computers of one of the largest tech company in the world, possibly taking hours if not d...
I am interested in learning and understanding cryptography and its application in every day life. One thing I can't seem to get my head around is encrypting plaintext using a block mode such as CFB. I want to use a Caesar block cipher in CFB mode to encrypt the following plaintext: lucozade with a key: 3. So in this c...
Given 2 (weak) hash functions, namely MD5 and SHA1 The fact that there exists 2 different inputs that will result in the same output under both hashing functions is explained in "Can there be two hash functions without common collisions?" I would like to quantify the probability of this type of inputs to be forged. Nam...
Assume we have a secure PRF $F$ which takes a key of length $k$, a message of length $l$, and outputs an output of length $o$. The task it to construct a secure PRF $G$ which takes the same input parameters, but outputs an output of length $2 \cdot o$, by using the first PRF. My basic intuition would be to construct so...
In section 4.1 of Leo Ducas and Daniele Micciancio's paper FHE Bootstrapping in less than a second, HomNAND has been computed as follows: $$ (\textbf{a}, b) = HomNAND((\textbf{a}_0, b_0),(\textbf{a}_1, b_1)) = (-\textbf{a}_0 - \textbf{a}_1, \frac{5q}{8} - b_0 -b_1),\ using \ 2t = 8 $$ Can anyone please elaborate how th...
I understand the output of a TRNG is almost impossible to reproduce, such a flipping a coin 100 times to produce a 100-bit sequence. However, it is also my understanding that a CSPRNG produces an unpredictable output. If they are both non-deterministic are they not the same? Are they not both producing unpredictable ...
I have a web application where I control the server, however, it should not have any knowledge of secrets that are exchanged between its users. This server holds RSA public keys of each registered user and can be trusted to deliver the correct public keys for each user when asked for them. A user's RSA public key is pr...
I am new to cryptography and have been studying for Dan Boneh's Stanford Course on Coursera, after going through encrytpion and decryption I've started the integrity portion of the Course. Sir brought up MACs and how they use a key to ensure that data is not tampered. If my understanding is correct, data that is known ...
In the paper Trapdoors for Lattices: Simpler, Tighter, Faster, Smaller by Micciancio and Peikert, they present the following theorem about the existence of trapdoor for LWE. Theorem 5.1: There is an algorithm $\mathsf{GenTrap}(1^n,1^m,q)$ that, given any $n\geq 1, q\geq 2$ and $m=\mathcal{O}(n\log q)$, outputs a matrix...
In Diffie Hellman key exchange, we have a large prime $p$ and non zero residue class $g \in F_p^x$ with a large order. An $a$ and $b$ are chosen in secret, and those are used to compute $A \equiv g^a \mod p$ and $B \equiv g^b \mod p$. Then the two communicating agree on value $g^{ab}$ via $A^b$ and $B^a$. $a=p-1$ wou...
The world of cryptography is starting to really intrigue me admittedly. I initially hated it because it looked too hard Mathematically but now it looks cool :) Got a good question for the experts and nerds on this forum. I got like a feeling that WhatsApp works by making use of public keys and private keys encryption. ...
When generating random data that is later tested for primality, should the random data include the value 0x0? I would have thought that primes that do not include zero's are a subset of the set of primes that do - and therefore make keys generated with no zero's easier to brute force? However my colleges are of the opi...
#include <sys/types.h> #include <stdint.h> #include <string.h> #include "sysendian.h" #include "sha256.h" /* * Encode a length len/4 vector of (uint32_t) into a length len vector of * (unsigned char) in big-endian form. Assumes len is a multiple of 4. */ static void be32enc_vect(unsigned char *dst, const uint32...
I have a very basic knowledge on time complexity and even less on programming, so please bear with me. I am interested to know the time complexity in big-O notation of some of the basic operations in symmetric ciphers. In particular: matrix multiplication (including permutation matrices) XOR of bit strings expansions,...
In Cipher Block Chaining (CBC) mode, each block of plaintext is XORed with the previous ciphertext block before being encrypted. What happens if I use the same IV instead of the previous ciphertext block? Is it vulnerable to chosen-plaintext attack?
It is recommended to use different keys for different purposes, such as encryption and integrity protection. As I see it, AES-GCM only requires one key as input. Two different keys are then generated from the provided key, basically meaning that one key is used for two different purposes! Should one, not, consider usin...
I have been reading up on RSA attacks and came across a problem that could be called a most-significant-bit (MSB) oracle attack. For the sake of clarity, let's define RSA primes $(p, q)$, private key d and the public key $(e, N)$ where N is the modulus. Now assume an oracle exists that will decrypt a given ciphertext $...
Is it possible for me to extract the hidden text off a stego-image without using the same application that the hidden text was hidden with. I used 5 applications that do steganography such as, SteganographyX, QuickStego, Xiao Steganography, SSuitePiscel & OpenStego. I only inserted hidden text in a .BMP image and did n...
Unlike the TPM 1.2 module, the TPM 2.0 specification allows the platform user to create own EK (Endorsement Key) using EPS (Endorsement Primary Seed) and EKTemplate and obtain a certificate signed by the Privacy CA corresponding to the public key. According to TPM 2.0 specification the manufacturer can install the al...
I know that the same message $m$ was sent to two people resulting in ciphertexts $c_1, c_2$. The public keys are $n_1$ and $n_2$, $gcd(n_1, n_2) = 1$. And $e=3$ in both cases. How can I retrieve the original message without brute-forcing it? I.e. the exponent $e$ is the same in both public keys, but the modulus $n$ is ...
I'm fairly new to cryptography and am starting to understand this weird art of Mathematics and theory. One thing I am trying to understand and do is encrypting a plaintext into ciphertext using AES in ECB mode. For example, I want to encrypt the following plaintext: "Lucozade". Would be great if someone could help me o...
I'm trying to find the n-th root of unity in a finite field that is given to me. n is a power of 2. The finite field has prime order. I know that if this were just normal numbers, I could find it using $e^{(2\pi ik/n)}$. I have no idea how to translate that into finite fields.
In this paper, Ueli Maurer uses a very cool model to generalize a number of results about broadcast, secret sharing and secure multiparty computation. Rather than talking about an adversary being either active (malicious) or passive (semi-honest) and having a threshold on the number of parties it controls, instead ther...
good evening guys, let us suppose that elliptic curve is given by the following equation $y^2=x^3-x+1 \pmod {127}$ on the following table message $9$ is converted to the point on curve if i insert directly into equation , we will get $9^3-9+1=721$ and $721$ mod $127$ gives me 86, so how 91 is given? what ...
I’m curious if there’s a zero-knowledge protocol for the following. Suppose a Passer-by is stopped by a Vigilante who has a list of wanted criminals. Can the Passer-by prove he has a valid ID and he’s not on the list without disclosing his identity? Assume the ID is a bunch of data signed by an authority in some way, a...
Is it possible to construct (even if we don't know how) a permutation for which an inverse must exist but is difficult to find (brute force required)? The one way permutation contains no hidden information (keys) or state - it's public. Or can it be proven that such a construct is not possible? In case I'm not specific...
OCB2 is proposed by Rogaway, Efficient Instantiations of Tweakable Blockciphers and Refinements to Modes OCB and PMAC , and it is standardized in ISO/IEC 19772:2009. The author also provided a proof by security reductions, that is, a break of OCB2 implies the break of the underlying block cipher. However, Akiko Inoue ...
Both DES and AES use key expansion to generate the round keys (for Feistel network or for the AddRoundKey operation). Each round uses a different key. Why do we need that? Why we cannot use the same key in each round?
There is a device that uses a secret key Sk to encrypt data. Assume this Sk is compromised. Could the following scheme be considered safe, in case we want to change the compromised Sk: We store some secret random number in the device- SRN. The new secret key would be equal to Sk = SRN xor RN, where SRN is the stored in...
Sorry if I missed with a community to ask. Recently I stumbled on a fact that the same cipher suite can be designated by two different IDs, and this is not a typo nor single occasion. For instance: http://www.thesprawl.org/research/tls-and-ssl-cipher-suites TLS_ECDH_ECDSA_WITH_NULL_SHA is 0x0047 and 0xC001 TLS_ECDH_E...
I would like to get some intuition on the security of the sponge construction. I'm referring to this diagram and notation. Let's consider the case where we have don't apply $f$ in the squeezing phase i.e. we simply take the bits in the r-space ($Z_0$ in the figure) at the end of absorption and call that the hash of o...
The following excerpt is taken from the “Cryptographically secure pseudorandom number generator” article on Wikipedia: CSPRNG designs are divided into three classes: those based on cryptographic primitives such as ciphers and cryptographic hashes, those based upon mathematical problems thought to be hard, and ...
With regards to user authentication... The server sends Alice a randomly chosen number. Alice signs the number and sends the signature back to the server. The server checks the signature using Alice's public key. If it's valid, the server accepts her connection request. Suppose that Alice uses the same private key to...
I am interested to identify the effect of replacing $\oplus$ with $\boxplus$ on basic balanced Feistel structures over $r$-rounds. Given: $F_\boxplus[L,R]= [S,T] = [R,L \boxplus f(R)]$ where $f$ is a PRF $[L,R] \in \left\{0,1\right\} ^{n} $ Q1 . In terms of CPA and KPA security, does $\boxplus$ replacement add security...
I'm now reading this paper Extending Oblivious Transfers Efficiently. I understand how to reduce an OT cost. OT extension is a method that replaces an OT with many base-OTs. But I'm still not sure how to implement each base-OT. How is this possible? Any references? I prefer more recent construction.
How to encrypt a file with RSA and AES-256 that anyone with RSA key can decrypt them?.
Consider the standard RSA-algorithm: We have chosen two primes $p$ and $q $ such that $n:=p \cdot q$ and computed $\varphi(n)$. We now need to choose the public key $e$ such that $$1<e<\varphi(n) \text{ and } gcd(e,\varphi(n)) = 1$$ If I am not mistaken there should be $\varphi(\varphi(n))-1$ many possible $e$'s ; we ...
The computational Diffie Hellman (CDH) problem for ${\mathbb{Z}}^*_p$ is given a prime $p$, a generator $g$ of ${\mathbb{Z}}^*_p$, and a pair $(g^i, g^j)$ to compute $g^{ij}$. The value $g$ is called the base. In cryptographic protocols the base is usually fixed in advance. This problem generalizes to other groups. For...
Let $\mathbb{F}_2=\{0,1\}$ be the field with two elements. I wonder if there is any known algorithm/construction that, given any $n\geq 1$, returns a boolean function $f:\mathbb{F}^n_2\rightarrow \mathbb{F}_2^m$ (for some $m\geq 1$) such that: $f$ is injective; for each $S\subseteq \mathbb{F}^n_2$, with $|S|<n$, the i...
I asked a question recently regarding the paper "Secret Sharing Over Infinite Domains" - B. Chor and E. Kushilevitz which describes a secret sharing scheme for real numbers in the interval $[0,1]$. I got a fantastic answer as to how to construct a $(k,n)$-scheme. However, I am struggling to implement the recommended sc...
In Montgomery Reduction, we need to compute $z = x y \text{ mod } N$ and the Montgomery Reduction of $x$ is $xR^{-1}$. Why should the choice of $R$ be $2^l$ where $l$ is the length of $N$ to the base $2$? Why cannot we have a larger $R$? This is a cross question with math.stackexchange.
I'm just curious where we can see a (original) formal definition of MPC. What (Where) is the formal definition of MPC? We have a bunch of tools to build a MPC protocol. Is oblivious transfer (or OT-extension) a part of MPC?
I would like to simulate the CBC IV attack where the IV is predictable. It's described in the answer to this question: chosen plaintext attack on CBC, predictable iv (Only "Yes" and "No" are valid messages and the attacker knows this) I am using 128-bit AES, CBC mode. Everything is in hex Key: 00112233445566778899aab...
I am working on a PGP scheme where a private key is created offline (and in volatile memory) and must be reused on very rare occasions to sign a piece of exportable data. The private key is locked using a random passphrase with ~256 bits of entropy, and the passphrase and resultant PGP secret key are written on paper ...
The Alternating Step Generator was proposed by Christoph G. Günther: Alternating step generators controlled by de Bruijn sequences, in proceedings of Eurocrypt 1987. It's perhaps the conceptually simplest CSPRNG producing bits at a constant rate. Its best-known cryptanalysis is by Shahram Khazaei, Simon Fischer, and Wi...
I'm given $N=p\,q$ and told that $44\,p\approx 17\,q$ (with the value given for $N$ some 49-digit integer 8124642558124642555899928124642555899924479992447). In RSA $p$ and $q$ must be prime. So how can I solve this equation? I'm using Maple, I began with s := evalf(solve(eqns, [p, q])) with eqns := {N = p*q, 44*p = 1...
I've encrypted a couple of 10 letters words from https://www.bestwordlist.com/10letterwords.htm using a key of 10 characters. This is done using Vigenere cipher. Decrypt the cipher and give the key Ciphertext: XRPEFGMHNL XDBEWUMHNL How we can decipher when we have only 2n size ciphertext where n is the key size Can yo...
I am trying to understand PRF's and PRP's. I have got a question where I have to decide whether $F(k,x) = (k \wedge x ) \oplus k$ (where $k$ and $x$ are simple $1$ bits (1 or 0)) is PRP or not. I am not sure if I understand PRP's correctly. As I have found: A Pseudo Random Permutation is a PRF that happens to have the...
I know that zk-SNARK takes in range of milliseconds to verify statements. But what about the time to generate the proof. For example, if I have a circuit that tests the There is key s.t H(key)=s Thanks for anyone offers help in this question since I need an answer to it urgently in my thesis.
I am trying to figure out why it is necessary S-box's to be nonlinear. I have been searching for some materials but was not able to find out clear proof why it means that if we use S-box in DES, it would also be linear. I was watching Coursera's course for Cryptography. I didn't understand where this matrix $B$ comes f...
I am struggling with understanding the difference between the two. From what I am putting together, they have different adversarial models, MPC adds the condition of collusion between parties i.e. election voting. I would appreciate if it anyone could provide both a simple and expanded explanation for this.
Can anyone help me understand key entropy the mathematics behind it and the uses for it? I understand most of it but I just want to understand what does $\log 2$ do like if I do. $\log 128 / \log 2 = 7$? The Professor has really confused me here on this one on what the $\log 2$ mean? formula; $Entropy = \log(Phrases)/...
Let $\operatorname{F}$ be a $\operatorname{PRF}$, how to prove $\operatorname{F^3_{k_1,k_2}}(x) = \operatorname{F_{k_1}}(x) \oplus \operatorname{F_{k_2}}(x) $ is aslo a $\operatorname{PRF}$?
While reading this document I came across the following problem. Assume you have $n$ clients. The clients need to generate random integers in $\mathbb{Z}_p$, say $T_i$ for $i \in \{1, \ldots, n\}$, such that $\sum_{i=1}^n T_i = 0$ in $\mathbb{Z}_p$. This integers are then used as secret keys, so if $n-2$ clients cooper...
I am trying to understand fault attack on RSA-CRT, and I found some example, which I don't know how to solve it. I know public modulus $N$, public exponent $e$, a value of faulty signature (where one of the two partial signatures was incorrect) and the value of correct signature. The message $m$ is signed by RSASSA-PK...
If someone ever demonstrates that P=NP, will it give us a polynomial factoring algorithm, or will it only tell us that such an algorithm exists, but we still have to find it?
I was wondering what is the conceptual difference between these two passive attacks on a network. I was reading about them on Wikipedia and they seem quite similar to me. Is there a difference?
Context Here's the usual proxy re-encryption scenario: Alice, with key pair $(pk_a, sk_a)$ encrypts a message $m$, producing $c = encrypt(pk_a, m)$ Alice saves $c$ on an untrusted storge provider (Dropbox, IPFS, etc..) Bob, with the key pair $(pk_b, sk_b)$ asks Alice to access $c$ Alice generates $re_{a\rightarrow b} ...
I am pretty new to the cryptography scene but I wanted to know if it is possible to use crib dragging on cipher text which doesn't contain words? This data would be encrypted using the same key with a one time pad and the data is encoded using base64 before it is encrypted. For example, key = [1, 2, 3, 4] message1 = [...
I'm sure this has been asked before. Its just too blindingly obvious. from wikipedia "Digital signatures, in which a message is signed with the sender's private key and can be verified by anyone who has access to the sender's public key." So lets say Bob sends Alice an unencrypted message, and Charlie overhears it. Wha...
Let's say I have an elliptic curve $E$ $y^2=x^3 + 486662x^2 + x$ over a prime field $GF(2^{255} - 19)$. My algorithm for computing $E(m)$ is as follows: I take the bits 1 through 32 of the message and plug that for $x$ in the equation. I then calculate the result, store it as $x$, and calculate the sign of $y$ using...
I have some misunderstanding about EdDSA conversion coordinates between Montgomery curve and twisted Edwards curve. In https://www.rfc-editor.org/rfc/rfc7748 I see that a base point for Curve25519 is Montgomery curve: U(P) 9 V(P) 14781619447589544791020593568409986887264606134616475288964881837755586237401 Twisted E...
I am trying to write a simple Mac program to factor primes. Nothing new, but I have a problem. The largest integer I can use seems to be 2^64, which is not that big. Did you hit any similar problem? If so, how did you solve it? Thanks in advance.
I am designing a challenge-response protocol to enable a client to authenticate to a server. The client has a private key, and a certificate (issued by a trusted CA). At this point in the protocol, the server knows who the client claims to be, but wants to prove it. My first attempt was: $C ← S : r_S$ $C → S : S_C (...
I've implemented vouchers module in my web project where I use it to generate redeem get etc... vouchers. since voucher codes are considered sensitive, I've considered to encrypt them using AES-GCM. but how can I query clear voucher code to encrypted one to check voucher validity in order to redeem later? I've thought ...