instruction
stringlengths
32
27.2k
Same message sent to two users encrypted with textbook RSA, known $n$, $e_1$, $e_2$, $c_1$, $c_2$. Show how the attacker can recover the message. Problem statement Consider an RSA system with $n=143$, $e_1=7$ and $e_2=17$. Suppose the same message $m$ was sent to the two users above and the attacker observed the ciphe...
I'm following this (Chinese Remainder Theorem and RSA) post, but I don't understand how $(c^d \bmod n) \bmod p = c^d \bmod p$. Being told that it's because $n=pq$ is not enough for me to understand. Could someone please elaborate on that to help me fully understand what's going on here? Any input would be GREATLY appre...
In this paper: Public-Key Identification Schemes Based on Multivariate Quadratic Polynomials it is explained in Theorem 2 that the 3-pass protocol is statistically zero knowledge when the commitment scheme Com is statistically hiding. Then, there is a proof Proof sketch. The fact is that after that it is explained that...
Q0 : Is the precomputed key stream vulnerable to side-channel attacks like a lookup table for exemple ? I don't think it is because a lookup table is accesed very often, that's what makes it non constant time. Q1 : If the precomputed key stream is very large like a few MB, it may be paged out to the disk, can another p...
Is it fine if algoritm will have $32$ 128-bit numbers that will be nothing-up-my-sleeve numbers to initialize key schedule? As I know from wikipedia the Hasty Pudding Cipher was criticized for its performance on smartcards. Specifically, some comments pointed out the difficulty of keeping over 2KB of RAM for the key ta...
I want to implement RSA algorithm using C language. I have read the size of primes in RSA like p and q are 2048 bits long. How to declare such 2048 bit values in C. As i know that the data types like int , long ,long long int even are less than 64 bits. Please suggest.
I originally posted this in the security.stackexchange forums but then I was directed to this one which seems more befitting for my question. I am writing a C# .NET application. For my application the following requirements should be met: The data of the users should be stored encrypted in the database Users can share...
I'm trying to verify an RSA-PSS padding in an Ethereum smart contract The code to compute the MGF step (i.e. calculating many SHA1 hashes) is very expensive in terms of computation costs (gas) on Ethereum. How insecure would it be to receive the MGF calculation result as input, and just verify parts of it by calculatin...
I am designing a service which identifies records with public keys. All other fields are encrypted with that public key and protected by a HMAC. For authentication, I am thinking about signing requests to the service with the same (RSA?) private key which is also used for decryption (a timestamp will also be included i...
Generally speaking, Magma is faster than Sage on several crypto-related computations, however, I have encountered a DLP instance where Sage is significantly faster than Magma. Take the DLP over $GF(p)$ defined as: > p := 6361543437356954559572346626686588717116516698890765462106447; > g := GF(p) ! 116998224552765598568...
I am looking at Unruh's transform (ePrint 2014/587) and in particular the definition in §2.2 for computational special soundness in sigma protocols. Let $\cal{R} \subset \cal{X} \times \cal{Y}$ be some relation, with statements $x \in \cal{X}$ and witnesses $w \in \cal{Y}$, and $\cal{L}_{\cal{R}}$ the associated langua...
I have a trivial question, and I hope someone can help me. I am reading several papers on formal security proofs based on the indistinguishably game. Specifically, the adversary is challenged in an experiment to distinguish between the real key and a random generated string. We flip a coin, say $b$, and if $b=0$ the ou...
Consider $x^e \equiv a\pmod n$, given $n$, $a$, and $e>2$, with $n$ being a composite integer and unknown $x$. Can a hypothetical function $f(a)=x$, an $eth$ root extractor, be used / adapted to factor $n$, in the same way that the multiplicative order of $x \space modulo\space n$ can be used to factor $n$ like in the ...
Suppose you have a secret list of n distinct integers. How would you sort this list in a way that is not vulnerable to timing attacks? I tried looking up "constant time sorting" and other related queries but that expectedly lead nowhere.
I came by the following question: Consider the following variant of ElGamal encryption. Let $p= 2q+ 1$, let $G$ be the group of squares modulo $p$ so $G$ is a subgroup of $Z_p^*$ of order $q$, and let $g$ be a generator of $G$. The private key is $(G, q, g, x)$ and the public key is $(G, q, g, h)$, where $h = \> g^x...
If we have a set amount of usable characters, but no other restrictions on the potential characters in a completely random fixed length password, we can easily calculate the entropy by doing: $\log_2(c^{n})$ or $\log_2(c)*n$ with $c$ being the number of possible characters, and $n$ being the length of the password. How...
Let $(Gen,S,V)$ be a secure signature scheme (existentially unforgeable under a chosen message attack) with message space${\{0,1\}}^n$. Generate two signing/verification key pairs $(pk_0,sk_0)\gets Gen$ and $(pk_1,sk_1)\gets Gen$. Is the following a secure signature scheme? Show an attack or expl...
Can someone help me in gaining an understanding of the reliability of random.org being used by a University to select student applicants to extend invitations to?
So let's say that we have encrypted some data using symmetric encryption in this case AES. And we want to change it to homomorphic encryption but without decrypting the data and encrypting it again using FHE. Do you know if this is possible in any way?
I was wondering if it's possible to prove an equality of openings between $3$ Pedersen commitments $P\cdot Q$ and $R$ when $P, Q, R$ have different commitment keys. Suppose that commitment $R$ commits to $a+b$ and $P$ and $Q$ commit to $a$ and $b$ respectively. How can we prove, that $P$ and $Q$ combined commit to the ...
While studying Curve25519 I read about the small subgroup attack in chapter 3. So far i know, that you need a point with a small subgroup to do such an attack. Curve25519 has a basepoint with prime order, therefore it is resistent. My question is: How does such a small subgroup attack work? Can you give me an example? ...
Is the following statement correct? Let $F$ be a OWP. Then the inverse $F^{-1}$ of $F$ is also a OWP.
If I store 12 word seed in the email like gmail and my phone as well but change 3rd and 7th words in the seed for example with other bip-39 words and remember it, would that be safe? I can't think of a way for someone to be able to efficiently brute-force it.
I know, it sounds dumb. Very dumb in fact. But regardless, I want to actually begin doing security research on cryptographic algorithms (SHA, RSA, ECDSA, etc.). I would prefer that this question be focused on auditing and finding vulnerabilities in the actual algorithms themselves. What resources should I begin looking...
The paper Algebraic MACs and Keyed-Verification Anonymous Credentials, includes a way to instantiate a NIZK proof with algebraic MAC. This is given in Appendix E where this NIZK is a part of the Show protocol. I understand the proof generation given in E.1, where the protocol outputs proof P. The hash $c$ in P is given...
I am trying to implement RSA algorithm. I got a code in python. When I run it, it takes more than 10 minutes even when the primes are within 100 and message size is 8 decimal digits. Plese suggest what may be the problem in the code. # Write Python3 code here from decimal import Decimal def gcd(a, b): if b == 0...
I need to generate one 160-bit HMAC-SHA1 key for each user in my system. Can I use the username as the input to PBKDF2 function to generate the key? Is it safe to use known values like username as inputs to PBKDF2? Or should the input to PBKDF2 function be random? If random, then how random?
The process of verifying integrity through MAC involves two separate algorithms (as mentioned here). On the server side, a signing algorithm runs which calculates the MAC of the message using the shared key, while on the client side, a verification algorithm runs which uses the secret key, the received MAC and the mess...
Background: There is some interest in encryption schemes meant for humans to perform without computational aid. (Relevant questions here, here, and here.) People often cite the VIC pen-and-paper cipher, the Schneier Solitaire cipher, or more recently the LC4 cipher. These would be useful in the context of, say, two peo...
In RSA, $C=M^e \bmod N$ and $d=e^{-1} \bmod φ(N)$ are used for encryption and signatures. What is the exact definition of $x^u \bmod k$? Also, what is the difference between $$x^u = y \bmod k$$ and $$x^u \equiv y\bmod k$$
Let $F : \{0,1\}^n \times \{0,1\}^n \rightarrow \{0,1\}^n $ be a PRF. And let the encryption function be $Enc{_k}(m) = r\mathbin\| (F{_k}(m\bigoplus r)$ , r being a random value. Im trying to proof that this scheme is not CCA-secure, however I'm already failing at finding a correct decryption. Since a PRF is not invert...
Does the key generation time affect the CPU load in a mobile phone, an embedded device? I am searching on Google for info, but I am not fully sure that I have concluded to something.
Recently, I attempted to implement the HQC Post-Quantum KEM in (almost) pure python. In the scheme specification whitepaper, it states the following: Here is a simplified version of the function I used to calculate the vector product (the actual function is implemented using bit-twiddling but this makes it more readab...
EdDSA has currently two signature schemes: Ed25519 and Ed448. Ed25519 is the EdDSA signature scheme using SHA-512 (SHA-2) and Curve25519 Ed448 is the EdDSA signature scheme using SHAKE256 (SHA-3) and Curve448 Is it possible to use EdDSA with a custom algorithm (signature scheme) for instance a different curve and ...
For a while, I was experimenting with optimization of several crypto implementations with SIMD (Single Instruction Multiple Data ) made available by C compiler extensions. Since, crypto implementations are all about constant time and fast execution, they are optimized to do the same. SIMD has gained massive importance ...
The Universal Accumulator paper mentions the following for updating non-membership witness upon member deletion. Choose $r$ such that $a\hat x − rx ∈ Z$$2^l$ What is Z$2^l$ and how can we efficiently evaluate $r$? I suppose we need to brute force search by guessing values of r, is there any room for optimization here...
For small public exponent e, private exponent d should be less than but close to modulus n. Is there any particular test, applied in common implementations, to verify that? If so, what would be the threshold? I have noticed that using Python's Crypto.Util.number.getStrongPrime (docs): key_size = 2048 prime_size = int(k...
I'm fairly new to the fundamentals of post-quantum cryptography. So, please forgive me for such a direct question. Searching Google opened up a whole lot of amazing ideas that are thought to be quantum-safe, and there were many confident submissions made to NIST. I've heard of SIDH, lattice-based cryptography, etc. ...
I am new to cryptography but I want to learn about it. I would like to get from you a list (possibly ordered) of "must have and read" book titles. Best regards
When generating a prime $p$ for use in an RSA modulus with public exponent $e$, it is necessary that $\gcd(p-1,e)=1$. When $e=3$, and since $p$ is a large prime, that implies $p\bmod e=2$. Assume an RSA key generation procedure for 1024-bit primes used for a 2048-bit modulus is written to always generate primes with $p...
How do the communicating parties using Finite Field DHE agree on the values of the $p$ and $g$ variables? Are their values fixed for each DHE group? Reading through the TLS 1.3 RFC (8446), the client and server (using the key_share extension) only exchange: DHE named group and The value of $Y=(g^X \bmod p)$ But the...
Let's say we got a one way function (OWF). Such a function takes 512-bit input and gives 256-bit output. And let's say we can easly invert some specific inputs. There is exactly $2^{256}$ such blocks which can be easily invert. It is still very small number if we consider $2^{512}$ possible inputs. And as wikipedia wro...
Suppose A and B communicates where A makes B some payments by sending signatures as the following, $$ \sigma_1 \leftarrow Sign(v_1, sk_A), \sigma_2 \leftarrow Sign(v_2, sk_A), \dots \sigma_n\leftarrow Sign(v_n, sk_A).$$ That is, A has made B $n$ payments where he paid $v_1$ in payment 1, $v_2$ in payment 2 and so on. ...
$G$ is a multiplicative cyclic group of a large prime order $p$ and $g$ is a generator of $G$ Theorem 1: Given $g^{b^{-1}}$ and $ab$, it's hard to compute $a$ or $b$, where $a$ and $b$ are randomly picked in $Z_p$ Theorem 2: It's hard to distinguish between the following distributions: $(g^{b^{-1}},ab)$ and $(g^{b^{-1...
I have a list of M=10,000..100,000 items and 32 bytes of sha256 H. I want to choose N=10..100 items (without order). Is there an efficient way to do this? Or should I use something like (sha256hmac(n, H) & 0xFFFFFFFFFFFFFFFF) % N and skip duplicates. (Where n is 0..N-1.)
Why MQV is said to be an “authenticated Diffie-Hellman” protocol? The process in the picture shows nothing about authentication. Besides, a man-in-middle can impersonate B to negotiate with A, because A does not verify the identity of B.
To introduce the notation for the question, consider a one-time signature algorithm: There are a private signing key $sk$ and a corresponding public key $pk$, generated by $Gen(seed)$. To sign a message, use $sig = Sign(sk, m)$, and verify the signature by $Ver(pk, m, sig)$. The one-time signature works as usual, wit...
Is it possible to get the public key from PGP message in PEM(Base64) format? Here is the message: -----BEGIN PGP MESSAGE----- hQEMA1W24kYEriipAQf9FEOPPTiqBj9kDSqCWTJmCvceU3n9oEqA7umKFYWG60nv nWEk09AvrYK1dakfYVTKlolqV6kkxoQqt5DlsQ6YOa7I4Xfy58l9yzJQlf1KU/xN vp3sBb8FHCkT789hZ8h9On/GoFFaDTp2rHB63ylLzcPNedlYdUS2DtooZQkt6g0...
I have a problem understanding the proof of the corollary of Advanced Composition Theorem Advanced Composition: For all $\varepsilon,\delta,\delta' \geq 0$ the class of $(\varepsilon,\delta)$-differentially private mechanisms satisfies $(\varepsilon',k\delta+\delta')$-differential privacy under $k $-fold adaptive compo...
Why is AES secure? Apparently there is no answer - Why is AES resistant to known-plaintext attacks?. With this in mind, one would obviously want a cipher that is mathematically provable to be resistant to KPA. How would one go about constructing such a cipher? Has it been done? Can it be done? Is someone doing it? Why ...
Is it acceptable from a security point of view for an MPC protocol to use non-post quantum cryptographic primitives? Note that except for secret sharing, which provides information-theoretic security, many primitives are based on computational security. I am interested in general (system level) and specific (individual...
As far as I know, FIPS requires a set of self tests (POST) to verify the cryptographic algorithms permitted and the integrity of the module. These tests are performed at run-time, so OpenSSL does a HMAC-SHA1 of the code loaded in memory and compares its output with the HMAC-SHA1 computed at build time. I think that an ...
Alice would like to make public a proof that she is friends with Bob that has the following characteristics: Creation of the proof requires the agreement of both Alice and Bob Anyone who is also friends with Bob can identify Alice as a mutual friend of Bob Anyone who is not friends with Bob learns nothing from the pro...
I am trying to manually create a GPG Public Key (see here). I am able to generate a GPG Public Key with a correct hash, but fail to RSA-sign that hash in a way that is accepted by the GPG CLI. For the GPG Public Key I have created see here. To sign the hash I am using a private key on a PKCS#11 HSM. The HSM supports va...
Consider a connection protocol where, after jumping through several other hoops, Alice and Bob know each others' public keys; and they now want to do a RSA-handshake-kind-of-thing to come up with a symmetric key for subsequent communication. Alice randomly generates a 32-byte secret seed s_a, and Bob generates s_b. Th...
One of the authentication methods in SSH involves the client signing a message with its private key and sending it to the server for verification. RFC 4252 (page 9) says: The value of 'signature' is a signature by the corresponding private key over the following data, in the following order: string session...
I'm trying to understand how the identity point is represented in a group of prime order. What I think is correct: If the group has even order, then the identity point is in the group, because the identity point has order 2. If the group has prime order, like elliptic curves such as secp256 then the identity point can ...
I have a ciphertext which has been padded with spaces from left the message is 31 bytes long and e = 3 how can I recover the message with python code .
It is an implementation of the bls12-381 algorithm known as pairing-friendly, at GitHub. Looking at this, the pairing parameters are $G_1$ and $G_2$, $G_1$ is the point of $F_q$, $G_2$ is the point of $F_{q^2}$. However, some papers describe it as follows. Bilinear Map Let G1, G2 be two cyclic groups of prime modulo p...
I have a message m="hunter". Let's say we pad it with 2 spaces from the left making the final message as m_dash=" hunter". We are given with c where c=pow(bytes_to_long(m_dash), 3, n) and n(1024 bit). n is too big to be factorised and therefore we can't get the totient and thus 'd'. And because of that we can't recove...
Should you pad messages encrypted with stream ciphers? The obvious answer seems to be yes, right? It obviously leaks the exact length of the plaintext. Consider a situation where an adversary knows a user will send either $m_0$ or $m_1$. Suppose further that the adversary observes the decryption of $m_0$ and $m_1$-- ...
Is Computational Indistinguishability quantifiable? I know that the success probability should be negligible, which however seems to be somewhat ambiguous. Is it possible (and usual) to say that given encryption scheme is said to be something like it is computationally secure with some probability? I've been using an I...
Curve25519 is a pretty secure way to exchange a key. In the original Paper and on SafeCurves a lot of attacks and security aspects are mentioned: Attacks: Brute force: This one is theoretically possible but not practical Small subgroup attacks: Pohlig Hellman and Lim Lee attacks are useless against Curve25519 mostly b...
Here is some information we got : We know the value of $n$, with size $1043$. We know the value of $p$ (size $20$) and $q$ (size $1023$) as the factors. $e = 65537.$ $\varphi(n)$ = $(q-1)(p-1)$ When I calculated $\gcd$ and $\text{modinv}$, I got : $\gcd(e,\varphi(n)) = 65537$ $modinv(e,\varphi(n)) = 1 $ So we can tell ...
I seeing a paper about Elliptic curve based proxy re-encryption. And I want to implement this through BLS12-381 Curve. However, When looking at the documentation for paring or the library, the value of $F_{q^{12}}$ is output as the output of pairing. The paper requires: Let e : $G_1$ × $G_1$ → $G_2$ be a bilinear map,...
In the McEliece cryptosystem, is choice of the code known to the attacker? And if a structural attack succeeded and the attacker found the generator matrix of the code, how did the attacker decode the encrypted message?
I implemented an application using partial homomorphic encryption for outsourced computations. To get an efficient bandwidth, I am thinking to apply (DES) symmetric algorithm to encrypt the message instead of HE before uploading it to the cloud. Can I perform DES decryption operations (permutation and S-boxes) on homom...
It seems like that the construction of the LWE problem: $As + e = b$ resembles how neural nets work: $Ax + b = y$. In LWE, we are given the problem instance $A$, and the product with errors $b$ and are challenged to produce the secret vector $s$. Is it similar to the problem in ML where we are given the coefficient mat...
For any $n$-dimensional lattice $L$ and $r > 0$, a point sampled from $D_{L,r}$ has Euclidean norm at most $r\sqrt{n}$ except with probability at most $2^{-2n}$ (where $r$ refers to the standard deviation of the distribution). I came across this statement in the paper On Ideal Lattices and Learning with Errors Over Ri...
I have been studying several CLPEKS (CertificateLess Public-key Encryption scheme with Keyword Search) schemes and I understand the security assumptions and the several types of security models used for the security game between the Challenger and the Adversary. The paper I'm reading is titled "Certificateless searchab...
There are some vulnerability such POODLE, that allows the attacker to gain access to encrypted blocks of data and then gain exposure to plain text information using side channels. Another vulnerability is TLS 1.2 which allows the GOLDENDOODLE attack to breach outdated crypto methods. Is TLS 1.2 still secure and reliabl...
I understand that a second pre-image attack on the Merkle tree works by creating another Merkle tree using the intermediate nodes as the leaf nodes, and this will lead to the same root hash (public key) being constructed 1. However, I thought that there are two steps to verifying the signature. Assuming, Winternitz is ...
Let's consider hashing of odd 256-bit number $L$ with 256-bit odd key $K$: $z = (2^{256}-L) \cdot K \bmod 2^{256}$ $z$ is the hashed number. If $K$ is selected randomly is it secure to hashing numbers this way? It is as far as I know just linear congruential generator, they are not secure. But this is slightly differe...
I read this paper Herding Hash Functions and the Nostradamus Attack, 2005 of Kelsey and Kohno on herding attacks but I do not understand how it works. Would anyone be able to give me a summary of how herding attack as well as the diamond tree structure works? It is mentioned "In the diagram, the attacker starts with ei...
This could be a question for CodeReview.SE, but I thought it might require non-trivial cryptographic knowledge to merit it on-topic here. The C language is chosen as it's a common language for implementing cryptographic algorithms. Also, as we're choosing C, the primary platforms under consideration are PCs, smart devi...
AES/ECB is commonly considered "weak" to the point that some static analysis software identifies it as not secure and suggests using AES/CBC instead. The question is: what if size of encrypted input is always less or equal 16 bytes? I suspect AES/ECB will be as good as AES/CBC in this case... The other question is: wil...
As far as my understanding of the ECDH goes, after systems are encrypted using ECDH protocol, any data that comes out of the first system will be encrypted and can only be decrypted at the receiving end. Literature says that ECDH is used for the purpose of key exchange(when data is encrypted using symmetric encryption ...
On a wiki page, archived by now, Mozilla switched from recommending self generated DH groups to the ones predefinded in RFC 7919. The recommendation was accompanied by the statement These groups are audited and may be more resistant to attacks than ones randomly generated. Unfortunately, this – often cited – statemen...
We're building an ingame GPS system where only 5 lines of code are executed a second. We're starting to face problems with people spoofing the satellites we use to triangulate. Is it feasible to filter out these messages with such low computing power, and if so, how?
Of course, padding is superfluous when AES with CBC is used if you know that the plaintext length is a multiple of the block size. But does the padding precipitate a weakness in the encryption? Because due to the padding at a block length of 16 bytes, you always have the last block containing just 0x10. So, to my under...
One of the most important attacks on Elliptic Curve cryptography is Pollard's Rho method. The effect on security can be seen on SafeCurves. This attack is pretty old and there has been a bunch of optimizations. Some of them are listed here on page 8. My question is: What is the newest/best optimization for the Pollard'...
It is stated in Winternitz One time signature security that MD5 is not safe for Winternitz due to collision attack. Given that WOTS generates multiple, say 32 private keys then hashing them a number of times to obtain 32 public keys. How does a collision attack from MD5 break the Winternitz OTS? Does this mean I have ...
My research is to propose highly secure MPC protocol with some conditions. Especially, I want to consider that security against malicious (active) adversary dishonest majority setting information-theoretic security I know SPDZ family that achieve 1 and 2 above and some protocols that achieve 1 and 3 above. Could you ...
More precisely, and as for RSA, is it really true that it is not feasible to recirculate one of the keys knowing ONLY the other with the Elliptic Curves, as for RSA? Or does ECs work differently on this issue? I mean only mathematically (I'm not talking here about OpenSSL's deceptive abilities to keep items in a file ...
We have a main database where certain properties are PII and want to setup a read-only replica so other parts of the business can able to access (e.g. analytics) We'd like those PII properties to be encrypted, so those with access to the read-only replica of the database would not be able to make sense of any PII. We'v...
I'm trying to understand the implementation of elliptic curve point multiplication. I can easily understand the naive double-and-add algorithm, but I'm struggling to find a good explanation / example of the window method, or indeed of the wNAF method. The canonical reference seems to be this Wikipedia page, in which i...
Lets say we have a message 'm'. We encrypt 'm' using a stream cipher or any other type of cipher with cryptographic security that produces an output equal in length to the length of 'm'. Then if we keep on on re-encrypting the output with same cipher (but different key each round) for eternity, what are the chances of ...
I have recently written an implementation of Serpent and was testing it against known vectors to no avail. Using 256-bit key, I compared my encryption to the test vectors located here: http://www.cs.technion.ac.il/~biham/Reports/Serpent/Serpent-256-128.verified.test-vectors For some reason, I match none of these test ...
I'm trying to use HMAC with AES modes that do not require any sort of padding. Although I am aware that modes like AES-GCM and AES-EAX already provide authentication, I want to know if HMAC is suitable with the modes that do not provide any authentication. This is what I tried: The code from Cryptodome.Cipher import AE...
I'm trying to generate AES256 key from user input password. The size of the password can be anything from 4 bytes long to 32 bytes long but let's assume it is the smaller one. My API support either : SP800-108 HMAC in counter mode, SP800-56A, PBKDF2 or CAPI_KDF According to several articles I read, the common PBKDF2 su...
Given an x-coordiante of a point on the SECP256K1 curve, is it possible to calculate the corresponding y-coorindate? (Assuming the point is a verifying public key that complies with the Bitcoin standards.) I am new to the cryptographic realm so please forgive me if the question is naive. From what I know, the public ke...
In the information-theoretic model with active adversaries, it seems to be well-known that no protocols with exact reconstruction of the secret exist for the task of verifiable secret sharing (VSS) when $t \geq n/3$. However, one can lift the number of tolerable cheaters by allowing for a small error probability during...
Is there an algorithmic, mathematical, technical or implementation "hack" to recover the private key or is it definitively encrypted without any particular mathematical property, like any message M?
Given an RSA public key $(n,e)$ and the textbook-RSA encryption $c$ of a valid matching private exponent $d$, computed as $c\gets d^e\bmod n$:  can we factor $n$ ? Assume $n,e,d$ are per PKCS#1v2.2. If that helps, additionally assume any common (or not overly unlikely) condition helping towards a solution, e.g.: $n$ p...
I am using group P-256 on OpenSSL with C++. My understanding was that, if you have a point $xP$ and then calculate (xP)^(-1) with EC_POINT_invert(group, xP_inv, ctx), then when I calculate: xP + (xP)^(-1), or EC_POINT_add(group, result, xP, xP_inv, ctx); The result should be the identity right? But when I print it, it ...
I'm not familiar with algorithm complexity so I'm asking here. I need help determining degital signature complexity, I did some research and all I found is complexity for the D.S.A only: ( ) =(2 ). ( Verification) = (3 ). I'm using RSA Signature and SHA-2 hush function.
According to the definition, an $\varepsilon$-universal linear hash function family, given a field $\mathbb{F}$, is a set of linear transformations $\mathcal{H} \subseteq \mathbb{F}^{m,n}$ such that for any $\mathbf{v} \in \mathbb{F}^n \setminus \{0 \}$ if $H \sim U(\mathcal{H})$ $$ \Pr[ H \mathbf{v} = 0 ] \leq \varep...
Hoepfuly a simple question. Given a group where the CDH problem is hard, if the adversary sees a public key $g^x$, is it easy or hard for the adversary to compute $g^{x^2}$? My intuition says it should be hard, but I don't know for sure.
I am trying to estimate parameters for LWR $(n,q,p)$ instance using the LWE estimator. My $q,p$ are $283,256$-bit prime numbers and I am trying to find required $n$ for 128 bit security. For this, I need to know the $\alpha$ to be used in the estimator. In the paper introducing LWR, the authors mention the analogous er...
Authentication aims to validate the legitimate identity. The authenticated key exchange aims to establish a secure common session key. But can we say that password authentication scheme contains the registration phase, the authentication phase and the authenticated key exchange phase? Normally, we should separate these...