instruction
stringlengths
33
27.2k
I'm basing code on: https://wiki.openssl.org/index.php/EVP_Authenticated_Encryption_and_Decryption#Authenticated_Encryption_using_GCM_mode If I send the same plaintext twice, encrypting each with a different key and IV, am I compromising the strength of the encryption? (Eve would have access to the two ciphertexts of e...
I am trying to test my understanding on ECDSA Signature r|s to ASN.1 DER Encoding for NIST P-256. I have r|s and when I convert this into ASN.1 DER in Java. I get following format: 0x30|b1|0x02|b2|r|0x02|b3|s b1 = Length of remaining data b2 = Length of r b3 = Length of s For example, suppose: r|s = b2b31575f8536b...
I'm computer guy having trouble with cryptography. I recently read the BGV Homomorphic encryption paper which was constructed under both LWE and RLWE assumptions. I was implementing Threshold version of BGV encryption [AJW12] using HElib optimized under the RLWE assumption, and I found out that [AJW12] proved the secur...
I'm looking to use group signature that is scalable in terms of the size of the signature is independent of the number of the group members. Two question- 1- Is [1] considered an up to date, efficient and secure scheme? 2- In case of new joining member, does the signature needs to be changed? (to also to reflect the ne...
After reading through Lindell's excellent tutorial (https://eprint.iacr.org/2016/046.pdf), I wonder about the following. To make a protocol secure against fully-malicious security, it seems that forcing parties to commit to their input and then prove knowledge of that input (using a zero-knowledge proof of knowledge) i...
I am in an environment where I have unique IDs for a list of resources. I am trying to design a system that takes that ID as an input parameter and produces a consistent output for a given resource. I am trying to obfuscate which ID led to a given output, but both the input IDs and the output will be public information...
Given a SHA1 hash, is it now possible to "practically" find the source material that was passed through SHA1 now that the Shattered paper has produced the first "practical" collision? As a follow on question - if I have the SHA1 Hash and the Source document, can I find/produce the 2nd document using the Shattered algor...
What is the link/relation, if any, between Zero Knowledge Proof (ZKP) and Homomorphic encryption?
--- this has been edited as I realised the question was silly. replaced with helpful information --- I want to confirm the following: Given ciphertext "AGHTDIX... [cont.]" (C) and crib (a word which I know exists in the plaintext) "WITH" (P) I am attempting to find the key (K) by shifting "WITH" one spot down the text ...
A single theorem adaptive non-interactive zero-knowledge proof (P, V) for a language L is a proof system that satisfies Completeness: If a string $x \in L$ (and P has the witness), the verifier V will accept with high probability. Soundness: If $x \notin L$, the verifier V rejects with high probability. Zero-knowledge...
Suppose that $G : \{0,1\}^k \rightarrow \{0,1\}^{2k}$ is a secure pseudo-random generator. Describe what is wrong with each of the following attempts to build a pseudo-random generator with $k$-bit seeds and $4k$-bit outputs: (Here $s$ is seeds and $\mathbin\|$ means concatenate) 1) $G_1(s) = G(s) \mathbin\| G(0^{k})$...
A robust implementation of any cryptosystem (E.g., AES) has a comprehensive cryptanalysis research/attacks on it. Are there any successful cryptanalysis research/attacks on zero-knowledge proofs?
I was reading in Whatsapp group chat the sender encrypts a key individually for each memeber. And everyone invalidates their key whenever anyone leaves the group. Whatsapp also limits group size to 256 members, making the above feasible. Can we do better? To support significantly larger groups? While maintaining end to...
I've been to https://docs.google.com/spreadsheets/d/1mOTrqckdetCoRxY5QkVcyQ7Z0gcYIH-Dc0tu7t9f7tw/edit#gid=1194752368, http://www.righto.com/2014/09/mining-bitcoin-with-pencil-and-paper.html, and https://en.wikipedia.org/wiki/SHA-2#Pseudocode (the pseudocode is for sha256) The use of those links, not withstanding, I can...
I want some notion of a secondary key that behaves like this: Given a public/private key pair, it is not the private key but rather it is once-removed from it. Like the original private key, it is also not public. Unlike it, it was made for a specific purpose (a string) and has expiration. The secondary key can produce...
I was wondering if there are major pros or cons of choosing the Paillier algorithm over RSA except for Pailliers being additively homomorphic and RSA multiplicative?
I have a naive question, what is the nomenclature of exponentiation mean in ECC? I was reading about exponential ElGamal, what does it mean if a generator point $G^x$ ? What does $G * \ldots * G$ actually mean? I know what point double and point addition are, they are inline with scalar operations with the base point....
I am doing a project on dicom images. I will be encrypting the DICOM image using AES-GCM algorithm. Before encrypting the DICOM image, i thought of taking FFT. Will it provide an advantage during encryption? if so can you explain?
this is something that has always nagged at me and I've wanted to know the answer to. Does AES create it's own shared secret symmetrical key after the DH process has completed? I'm not as familiar with it as i am with know the process of say SSL (RSA,AES) where the public key encrypts the AES symmetrical key and then s...
I`m reading the PDF "The Galois/Counter Mode of Operation (GCM)". In section 4.1 on the optimization of multiplications with tab, in algorithm 3 I have the following questions: A vector called M with 128 bits is created, then the value of H is copied into that vector, now M [128] is the same as H, is not it? Or is it ...
It turns out that what I was attempting to do was create a form of ECDSA threshold signature protocol by just giving away multiple public keys and then having the two parties solve for the private. Original Question I am currently working on building an application and I have a question about the triviality of derivin...
I have the following set-up: Bob has an RSA Cryptosystem with a large modulus $n$ for which the factorization cannot be found in a reasonable amount of time. Alice sends a message to Bob by representing each alphabetic character as an integer between $0$ and $25$ (that is, $A ↔ 0$, $B ↔ 1$, etc.), and then enc...
Why Does CTR mode encryption not use ciphertext stealing?
How to decrypt this file: https://drive.google.com/open?id=1gZCujDYmEL-FZ5o_xBUS-Ng5979HSsZ7 Given that the only information available about it are: It has been created ‎on 21/3/‎2018, ‏‎9:05:15 AM The plaintext of the file is probably starting with "\documentclass[12pt]{article}", and it's a latex file The code used ...
I am sorry if this is a naive question but is there any justification for the way that s is computed in the DSA signature algorithm: $$ s = k^{-1} * (rx + m) $$ This looks to me like a very arbitrary combination of $k$, $r$, $x$ and $m$. Is this just one particular way that's found to work or does it actually have some...
I have been going back and forth between part 2 and part 4 of the Explaining SNARKs series. In part 2, it is claimed that Bob has an idea about the polynomial and want to test whether Alice knows it by sending her $(g, s.g, ..., s^d.g)$ and checking the answer $P(s).g$. In part 4, it is claimed that now Alice return 2...
I reviewed all the curves in http://www.secg.org/SEC2-Ver-1.0.pdf . All the secp*k* curves have the $a$ parameters as 0 and those are the only ones with the $a$ as 0. Is this a defining requirement of a Koblitz curve - that the $a$ parameter must be 0? http://www.secg.org/SEC2-Ver-1.0.pdf#page=10 says the following: T...
Fixed point means when Sbox Input is equal to Sbox Output whereas Opposite Fixed Point means when Sbox Input is complement of Sbox Output. How does Fixed and Opposite Fixed Point affect the strength/ security of Sbox?
I understand that public key is a pair of $(e, N)$ where $N$ is product of two primes and $e$ is encryption key. I understand that $N$ is usually unique for an entity. For example, Facebook, Google, etc. have $1028$ or $2048$ bit $N$ that they publish. What about $e$? Is it also unique or do these entity give different...
I'm looking for an algorithm which allows verifying a signature of a plaintext message but while only having the encrypted message. The requirement is for Alice to send Bob a plaintext message (M) which is signed (S) by central authority (CA), the message should be encrypted (E) to Bob. Anyone should be able to verify ...
Cryptographic algorithms are designed using an irreducible polynomial. Irreducible polynomial generates entire field and multiplicative inverse of all elements (less zero) exist. A sample cryptographic algorithm comprises of modular operations such as Multiplication Modulo 2^32, however 2^32 is not a prime field. Since...
Is there a difference between cryptography and cryptology, if any? An internet search suggests that both terms can be used interchangeably.
Recently, I started doing research about Lattice Based Cryptography. and searched on YouTube a lot of public talks or seminars about it. But is there any course video (graduated course) related to it?
I have an assignment for proving the correctness of both ElGamal and exponential ElGamal homomorphic features (multiplicative and additive respectively). I have managed to prove the former but am struggling on proving the latter. I have reached the point where adding two ciphertexts $c_1$ and $c_2$ to obtain $c_3$, whe...
The core of the Salsa20 family of stream ciphers is a hash function that takes a 64-byte block, using it to generate a pseudorandom 64-byte output. The 64 bytes contain space for a 32-byte key a 16-byte constant an 8-byte counter an 8-byte nonce These ciphers are intended to be used with 32 byte keys, but they can a...
So I have been trying to learn a bit of cryptanalysis and breaking pseudorandom generators as of recently, but I have run into a roadblock in my learning as I cannot crack this one problem. Basically it is a variation on an LCG, but I cannot figure out how to solve it, even though I am pretty certain it is weak, I ju...
I am following this paper which comes highly recommended as a secure Registration/Login system over TLS which uses client side computation for the Password Processing Function (PPF). What my main question is about is how the design prevents account enumeration (an attacker finding out if usernames are valid on the serv...
I'm trying to work out which AES cipher is best to use. I'm working with the OpenSSL ruby gem. While testing the various options I noticed that most of the ciphers result in partial or even full decryption regardless of the IV value. I'm just wondering if this is something I should be concerned about, or even if it is...
I've seen many answers here and many articles that says we can recover the private key from reused R signatures. But, what if the r,s signatures are different in transaction of bitcoin then is there a way we could find the ephemeral Key k used in both the cases and find the private key?
Please explain are there any reason under the hood to place "Next Header" field in ESP trailer instead of ESP Header ?
(I asked in stackoverflow and I should ask my question here not there, sorry about that) The graph shows CBC- with cipher-text stealing and (b) is the block length. The output cipher-text is c1,...,c4 How is the decryption for this graph? I hope that someone can explain it to me with a graph because I checked the expla...
Let $K$ and $M$ be AES secret keys. The purpose is to wrap $K$ using $M$ to allow $K$ to be used at a later time (see, e.g. NIST SP 800-38F, section 3.1). One method to achieve this goal is to use $M$ with an Authenticated-Encryption algorithm such as AES-CCM or AES-GCM. Another way is Encrypt-then-MAC such as AES-CBC ...
I've been reading some sci-fi and there is a frequent mention of decoding alien signals. From what i read historically in ww2 for decoding enemy message the allies would transmit fake information and then listen to the enemy communicating that fake messages in encrypted form , this enabled the allies to make sort of a...
IDEA uses Mix Mode Modular Arithmetic that includes Addition Modulo $2^{16}$ and Multiplication Modulo $2^{16}+1$. If Multiplication Modulo with $2^{16}$ is used instead of $2^{16}+1$ (where $2^{16}$ is not a prime field) how this modification affects IDEA (specifically Decryption & Probability distribution).
The story is often told that Histiaeus tattooed a secret message on his slave's head, waited for his hair to grow back, then sent him off to Miletus. Why would he have done this? The story is usually cited as an early historical example of steganography. But a message in someone's memory is less obvious than a message ...
I wrote a litte random generator using a geiger tube. I use a 16bit timer that overflows every ~1ms; when i get a reading form the geiger (~36count/minute), i save the current timer value as "random number". But if run the test ent i get a completly different result for the chi-squared-test, in binary mode is fine, but...
This question follows directly on from How do I explain zero knowledge proof to my 7 year old cousin? Most of the simplistic answers there suggest that proof is obtained iteratively, slowly reducing the probability of Peggy simply randomly going through the cave. Or counting leaves over and over. The Wikipedia page s...
So far, I have been able to research on what it is: authentication; authorization; using resource authd. I still have not come across a definitive answer or source which explains: Why do we use authd? When to use it? How does authd work? Can anybody help me answer these questions?
I'm reading A Gentle Introduction to Yao's Garbled Circuits, and I came across this passage: Note that in order for this to work, Evan needs to know when decryption succeeds, and when it doesn’t. Otherwise, there’s no way for him to know which ciphertext yields the correct answer. So, simply XOR-ing the key with...
The advantages and properties exhibited by XOR are also exhibited by XNOR, like the ones mentioned in many answers like this one Information is preserved. $c = a \oplus b$. One may recover $a = c \oplus b$ (and $b = a \oplus c$). Information is hidden. One cannot know anything about the inputs from the outputs. I fou...
Link to encrypted tex file: https://drive.google.com/open?id=1gZCujDYmEL-FZ5o_xBUS-Ng5979HSsZ7 This is my attempt at solving the problem: /* The ISO/IEC 9899:1990 edition of the C standard */ #include <stdio.h> #include <time.h> #include <iostream> //#define RAND_MAX 32767 static unsigned long int next = 1; int rand...
I'm working on a web application where passwords must be hashed on the client before it can be send to the server. This is because the user's raw password is used for cryptography purposes and can't be sent anywhere. My initial thought was to use a SHA algorithm, but then I was wondering if maybe using something like a...
Sorry if this is elementary, but is there such a thing as a dynamic length (output) hash function? Something that would be a fast way to calculate hashes and output different lengths of strings for the output. This may give away some of the length of the message, and could be undesirable for many other reasons, but wo...
I'm looking to use AES-256 GCM to encrypt and authenticate a file containing sensitive information. I am a bit loss on where to store the nonce that is required for GCM. Would it be adequate/safe to store the nonce unencrypted at the beginning the the encrypted file?
Many sources claim that (if possible) a length of MAC should be as long as possible. So it should have the same size as size of the block of used cipher. However there is the following note in Bouncy Castle source codes (CMac.java): "Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), or 16 bits ...
We are looking to implement a simple password based key agreement scheme. Part of this is deriving a symmetric key from a common passphrase known to both parties involved. This symmetric key is then used to encrypt an ephemeral public key A and the resulting ciphertext is then sent to the other communication partner wh...
Transport mode is allowed between two end hosts only; tunnel mode is required when at least one of the endpoints is a "security gateway" (intermediate system that implements IPsec functionality, e.g., a router.) But in case all addresses are public and scalability is not an issue, why transport mode IPsec SAs cannot ...
In chapter 2 of Katz's Introduction to Modern Cryptography there is a formal definition of an encryption scheme. As part of this definition, the decryption algorithm is required to be perfectly correct, and thereafter the book assumes the decryption algorithm is deterministic and never outputs a wrong decryption. Thro...
Is it possible to create a function that varies with time but is also useful when encrypting information that is meant to later be decrypted? Or in other words, we have the function $T(t)$ where $t$ is the input and the output is a function $f(x)$ where $f$ is an encrypting function that takes $x$ as input, $x$ is the ...
My software uses a TRNG (entropy source) which is part of an MCU. A check of random numbers generated by my software, carried out by a testing authority revealed a problem, which I have to examine now: They ran my random numbers against NIST Test suite: https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication...
Suppose Alice has encrypted some plaintext $P$ to Bob. Bob wishes to re-encrypt this information to Charlie via proxy, in such a manner that: The proxy cannot obtain $P$ The proxy can prove that Bob has provided a valid re-encryption key, meaning that Charlie will be able to obtain $P$ by decrypting with his private k...
If Alice were to choose n to be a prime, instead of the product of two primes, what exactly would go wrong in the RSA cryptosystem? How would Bob decrypt her message?
I need to compute an isogeny from $E: y^2 = x^3 + ax + b$, given a generator point for its kernel subgroup, using Python. The point has smooth order. I need both the parameters for the curve and polynomials for point mappings. I have already read about Vélu's formulas, but it seems it will take a lot of time to compute...
I'm wondering why Ring-LWE based homomorphic encryption (somewhat homomorphic encryption, not fully) requires low-degree polynomial in order to avoid decryption error. For example, a plaintext $m$ is an element over some polynomial ring, i.e. $m\in \mathbb{Z}_t[X]/(X^N+1)$ where $t$ is a prime and $N$ is a power of two...
Every week Bob updates his public RSA modulus $n=p*q$ and encryption exponent $e$ by picking a new pair of primes $p$ and $q$ and a new exponent $e$. After several weeks, bob becomes lazy and decides to keep the prime $p$ fixed and only updates the other prime $q$ every week. Eve hears about this. How can she ...
In Bellovin's ESP Attack, it is stated that: If $L_A$, $L_B$ are using UDP, attack is easier: Wait till session ends Allocate $L_B$'s UDP port to $X_B$ Replay all packets So, how does attacker know the UDP port of legitimate user $L$? Isn't it encrypted (because the UDP header encrypted)? How can the attacker obtai...
I've been recently working on a (supposedly) TRNG. I'm still at the beginning of the project, so it is certainly not cryptographically secure yet, for now I'm just playing around. In fact, I've already discussed the project and the chi square results here in question: Random number generator issue. At this early stage...
I have a toy cipher that comprises of Mix Mode Modular Arithmetic (bit similar to IDEA including, Addition Modulo $2^{n}$ , Multiplication Modulo $2^{n}$ , Subtraction Modulo $2^{n}$ and circular shifts). I want to apply Algebraic Cryptanalysis on my toy cipher. For this purpose, i want to estimate System of Equatio...
elliptic curve reduces key sizes thus reducing storage and transmission requirements and also provide the same level of security. Symmetric encryption such as AES needs to increase its key size to ensure the same level of security in a post quantum crypto world. But Can we apply elliptic curves to reduce key sizes in ...
I'm doing an exam in computer security and I encountered this problem which I'm unsure of how to attack properly. Should I get down and dirty with the Hash function on paper or is there a more general approach to making these kinds of security judgments? The question is as follows: Let $M = B_1, ...,B_n$ be a message c...
Situation: A file format contains a tree-like data structure; parent nodes can find children and child nodes can also find their (single) parent. To protect confidentiality, the nodes in the file are encrypted with AES-XTS (one node may be more than one AES block, ie. more than 16 bytes). For authenticity, a HMAC is us...
I'm quite thrilled about this question I got for homework, even though we were given the answer to the problem. It goes like this: Let $\mathcal{M}$ be the set of plaintexts of a symmetric encryption scheme. Prove that if the scheme is perfectly secret for some distribution $D_{\mathcal{M}}$ over $\mathcal{M}$, then th...
Algorithm: AES - CBC mode with PKCS7 padding KeyValue: 10a58869d74be5a374cf867cfb473859 IV: 00000000000000000000000000000000 Plaintext: 00000000000000000000000000000000 Expected ciphertext: 6d251e6944b051e04eaa6fb4dbf78465 Three steps are used to compute the CBC Encrypt as mentioned below: CBC_Start(Key,IV) CBC_Upd...
There is a supposed NIST tool called SP800-90B_EntropyAssessment on that Git thing. It's designed to be used in accordance with NIST's Recommendation for the Entropy Sources Used for Random Bit Generation. Essentially the tools measure entropy in datasets from entropic data sources. It's meant to output 0 - 8 bits/byt...
In Appendix G of the Hawk paper, where it talks about financially fair SFE, it mentions that it's possible to run a SMPC protocol where, at the end, each party has a share of their own output y, and a share of a nonce ρ, where ρ must be reconstructed in a fair exchange, and the party obtains their output by computing x...
I was reading the original BGW paper. Great paper. I'm confused about Theorem 2, though. The Theorem states, "There are functions for which there are no n/2-private protocols." The proof is simply that two players cannot compute an OR without one of them leaking information. But the way I see it, that isn't an MPC prob...
I've recently become interested in simulation sound extractable zero-knowledge proofs for use in UC-secure protocols. I've also become interested in the recent instantiation of PCIPs called zkSTARKs. Are zkSTARKs simulation sound extractable as they are described, or would they have to be transformed first - sort of li...
Definition: The $\operatorname{XOR}$ count of an element $\alpha$ in the finite field $\operatorname{GF}(2^q)$ is the number of $\operatorname{XOR}s$ required to implement the multiplication of $\alpha$ with an arbitrary $\beta$ over $\operatorname{GF}(2^q)$. Example: Consider we want to compute the $\operatorname{XO...
I am searching for a algorithm to verify that a short message (size of about 20-30 bytes) was created by a specific device/user. The device/user can be partially offline. Signing the data using rsa with 1024 bit is not possible since the content of the message will get to big. The size of the signature should not exce...
It seems that, with public-key cryptography, there is no need to use private-key cryptography. But obviously, both public-key cryptography and private-key are taught in cryptography classes. Can anybody let me know when private-key crytography is useful in practice? If so, can it be replaced with public-key cryptograph...
How does tail cutting and precision of discrete Gaussian sampling implementations affect LWE / Ring-LWE security? Is there a rule of thumb or guideline for choosing the tail cut and the precision for a given standard deviation? Tail cutting refers to chopping off the “tail” portion of the distribution ($|x| > \beta \si...
I'm trying to solve this question related to one-time pads and perfect secrecy: My solution is: I assumed that the current message space is $M = \left\{ 0,1 \right\}^l$ and the new keyspace after removing $0^l$ from the set is $K = \left\{ 0,1 \right\}^l - 0^l$. Since clearly $|K| < |M|$, the new scheme is not perfec...
Are there any block-cipher modes (or symmetric encryption schemes in general) that are fully-deterministic, meaning same inputs lead to the same outputs (like for all modes with constant IV) and satisfy any notion of security? ECB would for example accomplish the first but has no security properties at all) And more sp...
PBFT and most consensus algorithms are more complicated than a simple voting scheme. By simple voting I mean the following: we require all nodes to sign their local copy of the state and send this signed message to all other nodes. Each node then collects messages from all other nodes, and accepts the state if more tha...
I think the question was asked somewhere else but not answered very precisely. Quoting from the "Handbook of applied cryptography": Identification based on PK decryption and witness. Consider the following protocol: $A \leftarrow B:h(r),B,P_A(r,B) \quad (1)$ $A \rightarrow B:r \quad \quad \quad \quad \quad \quad (2)...
How long time would it realistically take to crack each of following scenarios and how many combinations does each scenario consist of? Mnemonic Phrase, it is not known if we are looking for a pass-phrase of 12, 13, 24 or 25 words Scenario 1: There are total 90 words shown on a single sheet of paper. Scenario 2: There...
What is the difference? I found it quite hard to check for integrity using Gpg4win. Checking for hash was easy with Online MD5 & SHA1 Hash Generator For File. Is there any advantage to use Gpg4win? I often see that software developers leave their PGP and signing keys for verification and quite few leave a hash for that...
I am developing internal standards for IPsec VPN setup on SonicWall firewalls, and I have been learning about IKEv2. When IKEv2 "mode" is selected, the UI disables the DH Group, Encryption, and Authentication fields, and I can't find what values are used, anywhere in the documentation. Does IKEv2 have some mechanism ...
There is test data derived from pi that is supplied by NIST for validating their entropy measurement formulae listed in NIST's Recommendation for the Entropy Sources Used for Random Bit Generation. The data is of the following hex format (one varying bit per byte):- 01 01 01 00 00 01 00 01 00 00 00 01 01 00 00 00 01 0...
I am trying to understand the wide trail design strategy. I have read the paper (paywall-free preprint) which describes it from the point of view of AES. From what I understand, it is a technique to increase diffusion in a particular way to resist differential and linear cryptanalysis. My background is in information s...
Given an insecure channel, what are the pros and cons of using Diffie Hellman to generate a symmetric shared key and then send encrypted data with this key, or simply use Shamir's three-pass protocol with symmetric ciphers for Alice and Bob to each supply parts of the key to one another?
Finding the public key given the private key $d$ and the prime numbers $p$ and $q$. $$p = 3092551601$$ $$q = 3490383433$$ $$d = 10719928016004921607$$ Since this is RSA, here is my thinking. In order to find the public key $e$ it must satisfy this equation $$d\cdot e=1 \mod \varphi(n)$$ Since I am looking for $e$, $$(...
Doing some research about cryptography, I've read many times that, when using RSA 1024 and PKCS#1, the size of the payload cannot be bigger than 117 bytes. This payload cannot be bigger than the modulus size, which is the key size in bits / 8 (1024/8 = 128 - bytesFromPKCS1 = 117). But why does this limitation exist? I...
Based on my knowledge, all digital signature algorithms use a hash function to sign a message, and then encrypt the hash result. So why do these algorithms not use a checksum instead of a hash algorithm? By the end, both are going to encrypted, correct? A checksum is faster than a hash algorithm.
So I wish to encrypt a string using AES-256 and want to provide the user to specify the password for unlocking the string. I plan to use sha-256 to hash to users entered password and use this as the key. Is this secure? and is their a better way of doing this? Edit: it would be nice if people left a comment about why t...
The background: We assume that coin ownership and payments are recorded on a public ledger. Suppose Alice wants to publish some information to let her receive coins from anyone. But she does not want to receive coins at a publicly known fixed address. Instead, she wants the payer to generate a unique destination addre...
This question concerns the conditioning and output of true random number generators. It refers to NIST Special Publication 800-90C, Recommendation for Random Bit Generator (RBG) Constructions. It defines an $ n $ length bit string as having full entropy (ideally random) as:- ...if that bit string is estimated to cont...
I need to clarify if my understanding is correct. if I am using 4.2 GHz CPU -one core only- that means: 4.2 billions hertz = 4.2 billion operations per second. (about 2^32) So: 32 bit key : 2^32 \ 2^32 = 1 second 64 bit Key : 2^64 \ 2^32 = 2^32 = 4294967296 seconds = 136 Years My Questions: 1) Is my way of calculation ...
I am trying to understand the KRACK on WPA2. But in their paper (PDF) it just simply states that By forcing nonce reuse in this manner, the encryption protocol can be attacked. But I cannot find an explanation WHY this is possible. I.e. what exactly happens, that when a nonce is reused, the encryption protocol can b...
Suppose I wanted to upload a text file to a malicious cloud storage provider. Would the file be more secure against decryption if AFTER encrypting it (say with the AES scheme), I flipped certain bits of the ciphertext, for example according to the scheme below: 010010001000010000010000001... Obviously the cost of "sto...