instruction
stringlengths
33
27.2k
Basically, the question above... I'm trying to implement encryption on the server, and I have another webserver that I can share a secret key with via TLS/SSL/HTTPS, so I do not really need asymmetric encryption. There are many many different algorithms, but I'm looking for one that has balanced encryption and decrypti...
NIST has specified a full Mode of Operation for Key wrapping. What are the pros and cons of key wrapping mode of operation as compared to CBC, CTR or authenticated encryption mode?
The common definition of security (for some cryptographic primitive) is to be secure against any PPT adversary (any probabilistic algorithm which runs in polynomial time). At the same time, we assume that underlying problem in this primitive is NP problem (the set of decision problems solvable in polynomial time by a t...
I am working on some security features that should be executed by the firmware of a consumer device whose communication to a server must be secure. Any exchange of data is based on symmetric cryptography, with keys created by "Elliptic Curve Diffie Hellman Key Agreement". For reasons of cost, a dedicated hardware secur...
In contrast to private keys, public keys don't need to be stored on a secure place. But what if somebody changes a certificate with a public key to just another one? To ensure certificate authenticity, its validation chain can be verified up to the root CA certificate, which could be an unchangeable part of the softwar...
When encrypting a small value $m\in\{1,\dots,100\}$ using textbook RSA, and since that is deterministic, an attacker could try every possible number to determine $m$. To prevent this kind of attack, one could select a big random number $x$, and send $x^e\bmod n$ and $(m+x)^e\bmod n$. What would be a problem with this e...
Math algorithms like Karatsuba and derivatives - do they have any applications for cryptanalysis of asymmetric cryptography algorithms? What if we have very fast multiplier? How can it help with extracting the secret key from encoded text?
I have an application that receives certain pseudo-random input values and computes their keyed hash using HMAC-SHA256. The hashing key itself is 256-bits long, generated at random by a CSRNG. Two questions: Which category does the hashing key fall under in NIST's 2016 Recommendations? Is it a "Symmetric Data Encrypti...
I am encrypting a DEK (data encryption key) with a KEK (key encryption key). The KEK is generated from a password using scrypt with default parameters and a 32 byte randomly generated salt. The encryption algorithm is AES-GCM. What are the implications for the IV in this case? Let's assume that the IV is initialized to...
One of the special matrix in $GF(2^q)$ is MDS matrix which can be used in the cryptography like mix column of AES. Two forms of MDS matrices are circulant and recursive. Which form of MDS matrix (circulant or recursive) is suitable for a cryptographic hardware implentation? Meaning: which of them is optimal?
Let $n=11, d=3, e=7$ and $M=3$. Encryption: M = BSK B -> 1 , S -> 18 -> k -> 10 M1 => C1 = 1^7 mod 11 = 1 M2 => C2 = 18^7 mod 11 = 6 M3 => C3 = 10^7 mod 11 = 10 C = 1 6 10 <=> 1=>B, 6=>G 10=>K Decryption: C1 => M1 = 1^3 mod 11 = 1 C2 => M2 = 6^3 mod 11 = 18 C3 => M3 = 10^3 mod 11 = 10 ...
Let $n = 7$. I try something like this: $$ n =p = 7 \rightarrow \phi(n) = 6 $$ I chose $d = 17$ and $m = 3$. $$ e = d^{-1} \text{ mod } \phi(n) = 17^{-1} \text{ mod } 6 = 5 $$ $$ 17x \text{ mod } 6 = 1 $$ $$ x = 5 $$ What I should doing further ?
There are many diagrams out there explaining how quantum key distribution works on a physics /optics and mathematics level. I understand these explanations fairly well so I'm not asking about the underlying principles. This is one of the few that actually features people on it (although they seem to be fairly incident...
F = GF(next_primt(2^80)) x = F['x'].gen() f = x^5 + x^3 + 1 H = HyperellipticCurve(f, 0) J = H.jacobian()(F) P = H.lift_x(F(3)) D = J(P) # divisor Is D the divisor? And can it be multiplied by a random integer to generate a secure parameter like the one used with elliptic curves? And if this is correct, wh...
On the group of multiplication modulo large prime $p$ of $m$ bits Given $$ b_1^k=g_1 \;\text {mod}\;p$$ $$ b_2^k=g_2 \;\text{mod}\;p$$ $$ b_3^k=g_3 \;\text{mod}\;p$$ $$ \vdots $$ $$ b_n^k=g_n \;\text{mod}\;p$$ How many pairs are enough to computationally solve $k$ of this discrete logarithm problem? I have this quest...
I am referring to the equations that have been discussed in Nicolas T. Courtois and Gregory V. Bard's Algebraic Cryptanalysis of the Data Encryption Standard (in proceedings of Cryptography and Coding 2007). I need a working algorithm or program that will give me all those equations or at least count the number of such...
To my understanding, they are the S-box, Rcon, plaintext and key. Are there any other inputs?
I recently found this paper eprint which estimates security of LWE instantiations using an improved Dual attack. However, I got confused looking at their example in this site. For example, in the case of NewHope their example gives states that minimum operation (rop) using dual attack is $2^{371}$, whereas the minimum ...
If two parties calculate an ECDH shared secret can they (with no security weakness) use this raw value directly as an encryption key, assuming the underlying key and ECDH sizes match? Also the situation I'm specifically looking at using static ECC keys, not ephemeral ones, but I would also be curious if using the raw E...
I'm trying to come up with a simple memory-hard function for a proof-of-work system to protect against spam. Is the one below secure? For a message M, append a random number R. Repeat until you find R1, R2 such that sha256(M++R1) and sha256(M++R2) share at least d binary digits. R1, R2 is the proof of work, which is se...
I have read this post and this post about how best to calculate a pseudo accurate entropy in bits of a password. I can do this fine for passwords of a uniform nature, such as 8 letters of an a-z range is: 26(a-z)^8(length) = 208,827,064,576 Then to bits: log2 (208,827,064,576) = 37.6035177451 = 38, So it's guassabl...
I'm very uneducated when it comes to cryptography. I have tried to find an answer to my question, but what I've read doesn't quite cover what I'm asking. I have thought up my own encryption algorithm (which I'm sure is nothing new) and I would like to know why this sort of algorithm is not used in terms of security, ef...
Does QUIC use a 96-bit MAC tag? If so, what are the implications regarding forgery of messages?
I am planning to use Argon2 in my Android app to encrypt some sensitive info that is only stored on the user's phone (in an SQLite DB) and not exported anywhere else. From documentation I see that Argon2d is more resistant to GPU based brute-force attacks compared to side-channel attack in 2i. Would this mean that in m...
I'm working with a Cortex M0 SoC that integrate an "RNG" (not specifically claimed as TRNG), that is however claimed to be "suitable for encryption". It works using thermal noise measurements. Knowing the whole SoC retails for less than $10, my wonder is: if it is that good, why isn't it more widespread? In particular,...
Short Integer Solution (SIS) is proved to be hard by reducing $\textrm{SIVP}_\gamma$ to SIS, i.e., if we solve SIS, then we can solve $\textrm{SIVP}_\gamma$. Is there any way to reduce an instance of SIS to an instance of $\textrm{SIVP}_\gamma$?
Why do we use RSA encryption for ANY text/communication/data encryption when everybody on internet is writing that AES-256 is much stronger than RSA-2048? If this is true, why do encrypted email services like Protonmail even use RSA encryption for their email communication when it is not as secure as AES-256? I have re...
What are the Pros and Cons of Block Cipher's Modes of Operations(ECB, CBC, CTR, OFB, CCM, GCM) in terms of Confidentiality Integrity CPA Restrictions on IV or Counter/Nonce Maximum number of Block which can be encrypted without compromising the security Speed Parallelism while encrypting and Decrypting
I want to know whether there is a difference between key exchange & key distribution in private key cryptography as well as public key cryptography? or is it the same term?
The NIST Specification Document for CCM Mode of operation 800-38C states on Page 13 The same key, K, is used for both the CTR and CBC-MAC mechanisms within CCM. is it secure to use same key? or one should prefer two distinct keys. One for CTR Mode and other for CBC-MAC?
CCM mode of operation combines CBC (for integrity and authentication) and CTR mode (for data confidentiality) The inputs to the CCM are A Valid Nonce N which is used in CTR mode Valid Payload P Valid Associated data A which will be authenticated but not encrypted A Vlaid Key K The CCM Algorithm works as Apply forma...
I have been recently working on garbled circuits for a course and I think I don't have the the proper background for understanding them. I don't know how to approach such problems. Here is an example of what I'm looking for. Other examples include the function for maximum of two entries each having 2 bits, the functio...
I read about SHA3 and would like to study its weak point, Are there any cryptographic attacks on SHA3-based HMAC?
I'm looking for some clarification on whether or not I'm correct in how I'm thinking about this. From my understanding of RSA, the public key gives you the value $n$ (large prime $p$ times large prime $q$) and the value $e$ (a value less than $n$ which is not a factor of $(p-1)(q-1)$). The way to try to crack a ciphert...
Suppose I have a secret 'X'. Which can be use as a seed to a deterministic random number generator to generate a number 'Y'. Is there any way to prove to others, that I have the secret 'X' which generated this number 'Y' without revealing the secret 'X' using zero knowledge proof, such as Schnorr's protocol.
I have generated two primes $r_0$ and $s_0$ with same bit size $\le 64$, then make another two primes as follows: choose constant $k$ and define $$r_i = r_0 + \alpha_i, \quad 1 \le i \le k, \quad 0 \le \alpha_i \le 1000$$ and $$s_i = s_0 + \beta_i, \quad 1 \le i \le k, \quad 0 \le \beta_i \le 1000$$ I have chosen $\a...
After spending a good hour searching I came across an article that explained that you can't reverse a hash value. How true is this? I need to reverse a base64 encoded Sha-1 email address but I can't seem to find a way without knowing what function was used to hash. Or is there an easier way of going about this?
When designing a protocol based on zero knowledge proofs, be it based on the discrete log problem, or on a Hamiltonian cycle in a graph, or something else, I assume there are security considerations, like there are security considerations in the use of conventional ciphers. For example, when using AES (or any block cip...
Short version: What is the inversion of $f(x) = x \oplus (x \lll 1) \oplus (x \lll 5)$ when the last 4 bits of $x$ are known? Long version: Hi, a friend a mine and I are giving each other crypto challenges to break. This time, he gave me a "one-way" function which is defined as followed: $R(x)= x \oplus (x \lll 1) \opl...
Quesstion: Suppose Peggy claims to have a Turing Machine (TM) such that when the tape starts with I the machine will halt with tape O for one or more (I, O) pairs. Peggy would like to prove to Victor that she know the TM, but would like to convince him via a Zero-Knowledge Proof (ZKP). Is there an algorithm $\Pi$ that ...
Normally trusted timestamping proves that certain information existed at or before a certain time. However, sometimes there is a need to prove the opposite; that something did not exist before a certain time. Consider that I want to prove by photographs that my house is in a good condition before I rent it out to someo...
I am generating a ciphertext by XORing the message bits with key stream bits of a stream cipher. But, if I know a priori that message bits contain a predefined number of 0's (say 60%) at unknown positions, then how to analyze the security of such system both mathematically and empirically. Can we analyze using hypothes...
I read your https://www.schneier.com/academic/paperfiles/paper-preimages.pdf And found there: «3.2 A Generic Technique: Multicollisions of Different Lengths» «Finding a Collision on Two Messages of Different Lengths.» «ALGORITHM:» «Steps:» THIS: "Build lists A and B as follows:" – for ...
I need to check integrity of high secure system value - in this case encryption key(s) I would like to create HMAC digest of this user encryption key (key is used in application as a key for AES-256 cipher) to check it's integrity. The encryption key is derived with a KDF from his password and salt, after every user's ...
I'm trying to figure out how notaries public in the USA could use Microsoft Word and the popular X.509 digital certificates to notarize a document. Lets make four assumptions about the state law: The notary gets to pick the technology; the state government does not restrict this. The notary and the signer meet in pers...
I've recently been linked by someone to this particular puzzle which seems to point to a hidden file within the image. The clue given to me was "anagram" although I could not make much sense of it. Steganography comes to my mind but despite several effort at cracking it, nothing works. http://securitystartshere.org/dow...
I'm searching for a cryptographic algorithm that produces the same result for the same input, and if in the input, at position k, there is XXXXXX, then in the output at position k there is always the field YYYYYY.
How would one go about using vanilla keyed Blake2B as a KDF with high-entropy inputs. Assume I don't have access to more specialized algorithms such blake2XB, HKDF, etc. Salt - high entropy per-encryption salt (32 bytes) IKM - high entropy static input keying material (32 bytes) Info - a personalization string for ...
I have a problem with a task from my university. We have two banks and these banks are sending data in ECB mode. Plaintext and ciphertext look like this: Plaintext: sender number | reciver number | amount Ciphertext: block1+block2 | block3+block4 | block5+block6 A hacker made exactly 17 transfers to your account, every...
Basic question about XOR and entropy - given a set $S$ of pseudo-random numbers in the range $[0,b]$, will XORing them produce a new pseudo-random number in $[0,b]$ or will the operation decrease the entropy? In the case that some numbers in $S$ not being random. e.g. selected according to some deterministic process - ...
By a “Diffe-Hellman-like” algorithm, I mean one that has the same API as Curve25519, etc (disregarding trivial differences such as the size of parameters): a function $$F: (P_\text{other}, S_\text{self}) \rightarrow \text{Shared secret}$$ where $S_\text{self}$ can be used arbitrarily many times with different values of...
In this paper (A simple provably secure key exchange by Ding et al.), I am trying to understand the correctness (which is given on page number 8) of the key exchange technique based on LWE. To understand the correctness of the scheme, there is a very important lemma (on page number 6). The lemma is as follows: Lemma...
A self-shrinking generator is a LFSR sequence processed with an algorithm that is different from von Neumann unbiasing. Does this imply that using von Neumann unbiasing instead would lead to an inferior result of security?
The following is a quotation from my cryptography course: Recent results on the discrete logarithm raise big concerns on the security of elliptic curves over a binary field. What are these results? Also, is characteristic three safe?
Use case: We need to establish a long-lived key. In this phase, it is unlikely attacker will either sniff or the modify communication, but we want to cover even this case. So we use Diffie-Hellman or ECDH with some kind of authentication (in order to prevent MITM) for the initial key exchange. We can also assume that b...
https://boardgamegeek.com/boardgame/166384/spyfall There are n players (n > 3), and n-1 of them know a secret string (the location). The nth player is the "spy", and does not know the location. The non-spies has to guess which player is the spy, and the spy has to determine the location. Players cannot communicate at a...
If I restrict the degree of each monomial to say 4 or 5 at maximum. Is it then actually possible to write down the I/O relations for an AES S-box?
Is there a formal definition for a protocol that expands keys that are pre-shared among 2 or more parties? How about an informal definition? Example: Alice and Bob pre-share a $n$-bit string $k$. After running algorithm $\Pi$ Alice and Bob have a common ($n$+$q$)-bit string $k'$, where $q>0$. In addition Eve learns n...
I know that a perfectly random unbiased and not reused OTP cipher is perfect. An OTP under cryptanalysis has a very strong bias (up to 30 % of symbols are represented by 5 out of 255 possible symbols) but no repetition could be found. This OTP encryption is theoretically vulnerable. May I know the possible sequence of ...
There's one thing in RSA that haunts me. In books there's just a statement, that $$ed \equiv 1 \bmod \varphi(n)$$ is taken from Euler's function somehow. And than we use it to get $$m^{ed} \equiv m \bmod n$$ I don't understand how we got $ed ≡ 1 \bmod \varphi(n)$. Could we take $ed ≡ 1 \bmod \varphi(n)$ somehow, if we...
I was looking at Time Capsule cryptography? and came up wth this idea. Question: Is there a way to store a secret such that the creator must update it or the secret will be decrypted and anyone can access it? Example: I use this algorithm to encrypt the message, $enc(M)$, now if I don't update, $update(enc(M))$, then $...
While reviewing a 'secure communication protocol' made by a colleague, I noticed a usage of AES-128 CBC that caught my eye. I think they are trying to implement a HMAC but have made some very questionable decisions. The steps look like this: The IV is initialized to be the same as a user's (plaintext) password with ju...
Is it possible to construct a collision-resistant function that hashes a set of values but also allows membership testing? Essentially, I'm looking for a pair of functions, $\text{H} : \{0,1\}^{**} \rightarrow \{0,1\}^*$ and $\text{M} : \{0,1\}^* \times \{0,1\}^* \rightarrow \{0,1\}$, where $\text{H}$ hashes a set of b...
Given $p = nq$, $n \not\equiv q$, and $\forall m: m ≡ m^{ed} \bmod n$, how can we show that $ed \equiv 1 \bmod \lambda(n)$? My idea was to show it using the $k$ exponent, but I got stuck. So: From Fermat's Little Theorem we know, that $$ m^p = m \bmod p $$ $ m^{\lambda(n)} = 1 \bmod n$ (Carmichael theorem) $$\forall ...
What does the "bits" in hash functions mean? I started studying hash functions but I still do not understand what the bits mean. What does it mean to say that MD5 is 128-bits or that SHA-1 is 160 bits? How is this calculated?
We have as a given: $gcd(j, p − 1) = 1$. $$γ = \alpha^i \beta^j \bmod p $$ $$ \delta = −\gamma j^{-1} \bmod (p−1) $$ $$m = i \delta \bmod (p − 1)$$ I want to show that $(\gamma; \delta)$ is an ElGamal signature for message $m$. In this book, they show an example: How can I take the proof that $(\gamma, \delta)$ signs ...
I've been taught that one-time pads are the only perfect encryption since the only way to recover the message is by knowing the key. For example, for a target bitstring of 100 bits, I cannot scan all bitstrings of 100 bits and XOR each with the target, hoping to recover the message. This approach will produce all mess...
Proof Okamoto protocol has zero knowledge if we constructing a suitable simulator I found the following schema of Okamoto: But I don't really understand —how can I construct such a simulator and create proofs?
Is there any research into digital cyphers that are easy for humans to decrypt, but hard for computers? One example is Captchas, though those are being increasingly broken by computers. However, Captchas are not quite what I have in mind. Captchas depend on human domain expertise, which could theoretically be capture...
In the ElGamal encryption scheme, the message $m$ is multiplied with the secret $g^{xy}$ Wikipedia. I don't understand the advantage of it. Why we can't just XOR our message with the shared secret? As far as I know, multiplication is costlier than the XOR operation. Also, both the schemes will be CPA secure but not CCA...
I want to modify this peer-to-peer communications software to allow parties to specify a shared secret key and have all communications encrypted with it. [The software uses tweetnacl.js for the cryptographic operations.] Re-using the exact same shared secret key for every message does not seem very secure. I have two q...
Is it easy to factorize a number of the form $n = t^{2} \cdotp p$, where $t$ and $p$ are large primes?
The question "Virtual key generation in Logical Key Hierarchy" asks how specific keys are constructed in LKH. Since I haven't heard of it and it isn't immediately obvious (not even from the linked RFC) what it does or how, can somebody provide a short explanation?
I've recently heard the claim that wide block ciphers avoid birthday bound problems. Trying to figure out what exactly "wide block encryption" is, a quick search turned up this paper which is trying to do the following: The focus of this paper is how to use a standard block cipher as a component to build a ”wide” bl...
I am reading HElib source code, and have a confusion about FindM function: static long ms[][4] = { // pre-computed values of [phi(m),m,d] //phi(m), m, ord(2),c_m*1000 (not used anymore) { 1176, 1247, 28, 3736}, // gens=5(42) ...... }; for (i=0; i<sizeof(ms)/sizeof(long[4]); i++) { if (ms[i][0] < N || GCD(...
Given that the five sub-functions that comprise SHA-3 are reversible an individual can produce specific outputs of their choosing. The following is to my knowledge an example of a free start collision in SHA-3(256). Both initial vectors violate the padding protocol outlined in FIPS-202. It’s understood that the next_bl...
There is a need for an Offline BLE device to Auth a Phone. I am planning to use challenge response somewhat outlined here. There is a small change. Instead of shared secret. I am planning to use a Public Key and Private Key. Basically as soon as the phone connects to ble device. Device gives a random message (at max 2...
I know that for HMAC/SHA there are default IV values. But if I want to supply my own IV (different from a default), there doesn't seem to be a way to implement it in — for example — Java. (At least, so far I hadn't found a solution in javax/bouncy castle. Looks like MessageDigest class isn't providing us with such meth...
How would you define a pairing on the - so called - curve "Four$\mathbb Q$? Since FourQ is a twisted Edwards curve, given by $E/\mathbb F_{q}:\ -x^2+y^2 = 1+dx^2y^2$, where $d\in\mathbb F_p(i), q=p^2, p=2^{127}-1$, we could check [1] and try to define such a pairing for values given by [2, section 2.1]. FourQ itself wa...
What is the idea behind a key-substitution-attack? We start from a given pair of message $m$ and signature $s(m)$. The signature can be verified by anybody in possess of the public key $y$: $v(m, s, y)= ok$ Now, by some mathematical magic (details are not relevent for the moment), an attacker shall be able to generate ...
I have 256-bit value (call it "{Secret Value}") and I would like to compute HMAC-SHA256 digest of this value to check its integrity, and second requirement is to minimize need of another artifacts for this process. I have an idea that do not need any other artifact but {Secret Value}: Compute PBKDF2 key from {Secret ...
In the encryption step of the RSA encryption to get the cypher text $C$ $C \equiv M^e \pmod n$ I am struggling to understand how we know that there only exists one $M$ that maps to a certain $C$? Does there not exist an $M$ and an $N$ such that $M^e \equiv N^e \pmod n$? How do we know this?
Why do HMAC/SHA IV's have a fixed value? I refer to the arbitrary H constants which are included in the algorithm prior to any data being fed in. Why aren't they exposed to the user, so one can decide on an IV and modify it accordingly (for example, in java they are provided at hash function specification, instead of b...
If a DSA implementation neglects to check $r' > 0$ when verifying signatures, what are the consequences? Creating a forged $s$ would seem to require solving for $k$ $g^k mod\ p = nq$ which is still a hard problem? Assume that all other range checks for parameters are being carried out (particularly $r' < q$)
So in OpenSSL you have the -engine tag for inputting your own entropy as a source for generating whatever. So if you wanted to generate a 2048-bit RSA certificate how much entropy would you need for it to be secure? Is 1 truly random byte or even one bit of entropy enough for generating a secure certificate? Do you ne...
I've already seen some topics on this matter, but I feel like my question hasn't really been answered. Given the following: AES must be implemented in hardware (i.e. using the AES-NI instruction set) to ensure the best protection against side-channel attacks that target the algorithm's implementation (because of MixCo...
From the paper Predicate Encryption Supporting Disjunctions, Polynomial Equations, and Inner Products, the vector of the secret key is generated from a polynomial $p(x)$. I understand the univariate polynomial, but what does the vector of a bivariate polynomial look like? For example: univariate polynomial $$p(x) = (x ...
I'm using an HMAC as a way to generate a deterministic challenge token for an authentication system. I've effectively got three string inputs plus a key: Client IP address (string, eg: "127.0.0.1") Client nonce (string, eg: "2325363F") Linux epoch (string, eg: "594077C6") My key is 256 bit (32 bytes) array. How shoul...
As I understand it, cryptosystems based on LWE/Ring-LWE are typically only IND-CPA, and fail to satisfy IND-CCA2. In fact, it appears that chosen ciphertext attacks could allow secret key recovery (!). What is the best known IND-CCA2 secure encryption algorithm based on (Ring-)LWE? What about key exchange?
I have the following homework question that im not sure about. Alice and bob are going to use the diffie-hellman key agreement protocol to agree on a key for use in AES. Explain briefly why they would need to use digital signatures and why they cannot use Message Authentication Codes (MACs) instead. I find the question...
Is there any existing website/code that can be used so that the user can do the following all within the browser and without transmitting raw text to any server? Paste in public key Paste in raw text (FYI it's about 40 characters long) Copy the resulting encrypted text? The ideal for me would even be that the website...
I have two, closely related questions: Can a really good attacker (hacker) use the public key for his advantage and break RSA encryption faster? My point is that in RSA "communication" public key is moving from server to client… If attacker will get this key and also encrypted data will be there any advantages or it i...
I want to run the SHA2 and SHA3 NIST algorithm test vectors provided in the zip files at the bottom of this page: http://csrc.nist.gov/groups/STM/cavp/secure-hashing.html#sha-2 I don't quite understand how the test vectors are encoded. For example, if I run the SHA2-256 algorithm on an empty string as so: import hashl...
I read that, in February 2017, a SHA1 collision was calculated for the first time. This, and earlier theoretical proof, means that SHA1 is officially cryptographicaly insecure. But, when using SHA1 in a protocol (SAML assertions in my case), both the protocol dictates a certain message format and the information in the...
Is there a specified size range for $p$ and $q$ when calculating $N$? For example, what size would $p$ and $q$ be when $N$ is 1024 bits?
In asymmetric encryption schemes, a public key is used by an outside source to encrypt data to be sent to the holder of the private key. It's my understanding that public keys are generated from the private key using a one-way, or trapdoor function, rendering it computationally infeasible to reverse-engineer the privat...
Assume I encrypt a message, A1, and save it. Later I replace the message A1 with a new message, A2. I do not trust the message storage. Now I want to read the last message. How can I verify that I've read the last message? An attacker can substitute the message A2 with A1 and I will not notice that. The first idea is ...
From what I understand, a physical source of true randomness could be achieved with a multi-core processor, by using clock drift between two or more cores. However, a processor is easier to manipulate than nuclear decay or thermal noise when it comes to true random number generation. My questions are: Are there any at...
I know that many lattice cryptosystems cannot be made $\text{IND-CCA2}$ or even $\text{IND-CCA}$ secure without substantial overhead. However, it seems that (when used as a KEM) that any $\text{IND-CPA}$ secure scheme can be converted to a secure-in-practice scheme by hashing the exchanged key before using it. The has...
I am confused to analyze time complexity of rc6 encryption. Please help me