instruction
stringlengths
32
27.2k
Although this question maybe looks silly, I have searched similar questions in this forum and googled it but got no desired answers. IND-CCA security has already been deeply studied in public cryptography. And it is also known that some symmetric constructions (e.g. CBC model) are not IND-CCA secure (for example, see t...
Optical discs are prone to damage, and for this reason, they usually store data encoded with an error correcting code. While day-to-day use for optical storage media has diminished in recent years, they continue to be used for distribution of movies and TV shows, given they have special value to collectors. In such app...
When we pick $e$: $$e \in \{1,2,3,4,...,\phi(p\cdot q)-1\}$$ where $\gcd(e,\phi(p\cdot q))=1$. Similarly when computing $d$ which is the modular inverse of $e$ (the private key) we use the extended Euclidean algorithm as $$\operatorname{EA}(e, \phi(p\cdot q))$$ so that $$e\cdot d \ \equiv \ 1\pmod{\phi(p\cdot q)}$$ So ...
Suppose I have a physical object A. Another person also has some rights over the object A. After some litigations, a schedule has been made under which object A will be passed for some time to the other person (e.g. if I possess A then I must give it to the person at a specific time and then after some agreed upon time...
What is the Lenstra–Lenstra–Lovász lattice basis reduction algorithm about? How is it applied to solve for $x\pmod m$ a system of modular inequalities $(u_i\,x+v_i\bmod m)<w$ for $0\le i<n$? I'm aware of this related question, but would like something introductory and detached from a Linear Congruential Generator. I un...
Does a sigma protocol have an adversary advantage of zero for soundness? Or is this affected by the probability distribution of the indistinguishability of the simulator? Will in that case using the Fiat-Shamir heuristic affect the adversary advantage?
Does there exist a cryptographically secure hash function (or keyed PRF) that can take, as a parameter, the number of 'hot bits' in the output? And if so, what is the name? The goal here is to produce a cryptographically-secure pseudorandom bitmask with a fixed number of bits in the mask. E.g. $\text{some_magic_hash}(x...
Is there an encryption scheme such that you can encrypt some data (such as an image) once, generate multiple decryption keys that can decrypt the ciphertext (so far this is just shamir's secret sharing, but wait for it!), and when the data is decrypted it comes out slightly modified/"watermarked" in a way that reveals...
A 2nd preimage attack is possible on the standard Merkle tree as pictured below. I'm aware that we can add identifiers (to differentiate nodes) to the input of each hash as discussed in the link. If then using a good hash function, it should be resistant to any kind of attacks. However it would be preferable to have ...
I understand that asymmetric encryption is fundamentally deemed useless under Shor's Algorithm, and understand that symmetric encryption is somewhat quantum-resistant as long as the key-length is equal or above 192-bits. MACs are symmetric cryptographic primitives, however, I have heard that they may be insecure due to...
This is a question from reading the paper 'Coin Flipping by Telephone - a protocol for solving impossible problems'. The fact that the coin is unbiased is based on the fact that if n is a product of two primes, then there should be exactly four solutions to the congruence $ x^2 = f^2 \pmod n $. What if Alice is malicio...
I've been looking around for any studies done on this topic with respect to memory-hard password hashing. I'm inclined to simply impose no extra overhead by default, to be honest, but I'd really like to know what the industry standard recommendations might be.
We already know that every authenticated encryption scheme is CCA secure, I was wondering about the converse. I believe it is not true, and I am finding trouble to construct a scheme which is only CCA secure but is not an authenticated encryption. How to show the existence of an encryption scheme which is only CCA secu...
I feel DSA is vulnerable if k is randomly selected over a small set, example, {1,2,...,2^16 -1}. I am trying to come up with a program where I assume I have the public parameters (p,q,g) , public key : y, message m and its signature pair (r,s) signed with x and k. We also have hash value h (where h=SHA-1(m)). I want to...
I need to encrypt big files using AES-GCM, potentially 10 GB or more. For memory (RAM) reasons, I need to processs them by blocks (let's say 16 MB), rather than doing encrypt(plaintext) in one pass. By reading the answers of this security.SE question: Should I chunk or not for AES-GCM file encryption, I have the feelin...
I am just learning about RSA encrytion and I am somewhat confused. First two prime numbers $p$ and $q$ must be chosen and multiplied to get $n$. Then we compute Euler function $\varphi (n) = (p-1)(q-1)$. The public key $e$ is generated by choosing a random number that fulfills the condition $gcd(e, \varphi(n)) = 1$. An...
I'm working on a document-editor project, and I would like to add a feature to lock tracked changes, similar to Microsoft Office. The goal is to allow one user to lock tracked changes with a password, which would allow other users to only edit the document with tracked changes. Any edit to the document that is not tr...
I have been trying to come up with a proof of the following statement, Suppose a cryptosystem achieves perfect secrecy for a particular plaintext probability distribution then Prove that perfect secrecy is maintained for "any" plaintext probability distribution. Well I know that the perfect secrecy scheme is independen...
Let's say $\mathrm{Hash}(A\|B)$ is a hash of two concatenated strings, $A$ and $B$. Suppose I am trying to figure out $A$ from $\mathrm{Hash}(A\|B)$, I know $B$ but not $A$, I want to brute force to find $A$. Let's ignore practical reality for a moment. If I also know $\mathrm{Hash}(A\|C)$, $\mathrm{Hash}(A\|D)$ etc, a...
What are the tests which a regular PRNG would fail but a CSPRNG would succeed? Is it just the next-bit test or are there multiple other tests which a PRNG which is not a CSPRNG would fail? Would a PRNG which is not a CSPRNG pass the Chi Square tests?
Assuming I am using different secrets/keys for each MAC pass, does running both MtE and EtM creates any vulnerability? This is what I mean about doing MtEtM: K0 ≠ K1 ≠ K2 addMAC(msg, K) = msg || MAC(msg, K) ciphertext = addMAC(encrypt(addMAC(msg, K1), K0), K2) If I understood correctly, EtM has the advantage of ensuri...
If a standard encryption scheme involves a nonce, as most do, can the nonce be used to hide another small message? That is, the nonce (rather than being randomly generated) is a hidden message XORed with another secret key. As long as this other secret key is hashed/random and unique for each message, this is equivale...
I am using the python hmac module to generate an authentication code. Given a key, message, and hash function (I am using md5), the library returns an authentication code as a python bytes object. I am using the first N bytes of the code, i.e. digest[0:N] if digest is the variable storing the code. How do I unambiguous...
If I let the authentification tag aside (which is important), encrypting with AES-GCM and a fixed key and nonce: import Crypto.Random, Crypto.Cipher.AES, numpy as np key = bytes.fromhex('7d29ccf69c671775e17d4b9dd6485fd8') nonce = bytes.fromhex('04972c7927042af0ee10c7e6ac56ddd3') cipher = Crypto.Cipher.AES.new(key, Cryp...
If we note all multivariate schemes restrict themselves to polynomials of degree 2. I was wondering why they do it. After looking on the internet, I came to know that they do it for the efficiency. My question is how working with degree 2 is more efficient?
HMAC was introduced in [1], as a MAC that has its security proof based on the properties on the underlaying hash function. The hash functions considered in that paper were ones based on the Merkle-Damgaard paradigm where in most cases, block sizes that messages're chunked into are greater than the output length of the ...
I'm wondering if decrypting with a wrong key is the same a encrypting in a different way. For example if I encrypt the message "hello" with Caesar cipher with key = 3 it will give the message "khoor" but if I decrypt it with key = 2 the result will be "ifmmp". So we can say, decrypting a message encrypted with Cesar cy...
Reading this paper Forward-Secure Digital Signature Scheme I discovered the notion of key evolving signatures. The intuition behind these signatures is clear: one uses different private keys to generate keys in different periods of time, while maintaining the same public key. The paper stresses that whenever a secret k...
I read from here that, https://www.rfc-editor.org/rfc/rfc7296 it mentioned, 2.15. Authentication of the IKE SA the initiator signs the first message (IKE_SA_INIT request), starting with the first octet of the first SPI in the header and ending with the last octet of the last payload. Appended to this (for purposes of...
Pretty much every cipher or hash I've seen has multiple rounds the are designed to be run serially one after the other. Has anyone ever designed a fully parallel cipher or hash? This would be one where all rounds are executed in parallel and then the results are combined in some way such as addition or XOR. It's mostly...
A and B share two secrete keys: [keyA] and [keyB]. A sends this to B. AUTH_A = prf(KeyA, ID_A) B sends this to A. AUTH_B = prf(KeyB, ID_B) Does above scheme provide mutual authentication? I think so because prf is just a key hashed function, as only A and B know the secret key, attacker cannot forge the message or lear...
I know China has SM3 and SM4 commercial cryptographic hash and block cipher standards, and I know Japan has Camellia block cipher and Korea has SEED. Do Japan and Korea have an industry standard for hashing? Are they available online (either paid or free)?
Assume a collision-resistant hash function $h$ which compresses sequences of length $2n$ to length $n$. It must be examined whether the hash function which compresses seqs. length $4n$ to $n$: $$ h_1(x_1 || x_2 || x_3 || x_4) = h((x_1 \oplus h(x_2 || x_2)) || (h(x_3 || x_3) \oplus x_4)) $$ is collision-resistant or not...
I am working on a cSHAKE-128 & cSHAKE-256 implementation that takes advantage of a number of hardware accelerators I have at my disposal, specifically for SHA-3 256/384/512 and SHAKE 128/256. cSHAKE 128 is defined as follows: 1. If N = "" and S = "": return SHAKE128(X, L); 2. Else: return KECCAK[256](bytepad(encode_str...
I have been reading some papers on Image Encryption using ECC and chaotic systems such as 2D Arnold. What do they mean by 'Encryption ' and 'Decryption' time? How is it within 1 second? I tried implementing existing algorithms in Python using Spyder and got time around 30-40 seconds. What exactly does the encryption ti...
I saw this question in a paper and was not able to solve it. Assume that we are given an efficient algorithm called RSA_break() that can decrypt, without the knowledge of the private key, 1% of all possible ciphertexts encrypted using the public key (n,e) in RSA. Basically, for a single ciphertext, RSA_break() will det...
Thanks to a certain pandemic going around I was wondering whether there is any cryptographic way to remotely deal cards without the dealer being able to know them and without requiring to trust a server for that. My first impulses involved secret-sharing and zero-knowledge-proofs but that is probably not even related.....
I am reading DJ Bernstein's paper on the Poly1305-AES mac (https://cr.yp.to/mac/poly1305-20050329.pdf). I understand that AES is needed to provide the array s. In its paper on page 5 we can read: reads AESk(n) from s[0], s[1], . . . , s[15] I understand that n is a nonce and k is the secret key. What I am not sure ab...
I thought that encryption works as follows - it is about changing the thing we want to secure using an algorithm and using the password to mathematically change the secured content so it is unreadable. If something is encrypted using a password then doesn’t it mean that the password is the only thing that can be used t...
I am confused about the distinction between RSA and ECC (Elliptic curve) regarding encryption and would appreciate it if someone could confirm whether my understanding is correct. To encrypt a large file using RSA: Generate a random symmetric key Encrypt the file using the symmetric key (AES, for example) Then encrypt...
I have read about the concept of perfect secrecy and statistical distance. The perfect secrecy is impossible to be implemented on real world scenario. So the cryptosystems used at various websites will have certain advantage which will be negligible. Is there a list stating the advantage of various cryptosystems like A...
Assume that we have the following signature scheme CL Signature: Choose a cyclic group $G = \langle g \rangle$ of order $q$. Uniformly and randomly choose two elements $x,y \in \mathbb{Z}_q$, and compute $X = g^x$ and $Y = g^y$. The secret key is $sk = (x,y)$, while the public key is $pk = (q, G, g, X, Y)$. On input a...
I am running a server that is receiving packets. Each packet is signed with an RSA 512 SHA-256 digital signature. I have a public key and exponent that I use to verify the digital signatures. I'm currently trying to do this in Python using Cryptodome. I am able to verify signatures but am unable to get the original has...
Can private key used in ECDSA be discovered when many signatures of different messages were collected (1M+) or may signatures of the same message were collected? Will small nonce bias be easily exploitable?
If we have two commitment schemes Com1 and Com2, which are possibly defective (in the sense of not satisfying hiding or binding properties), is it possible to construct a commitment scheme which does satisfy those properties? Specifically, in the following scenarios: Both Com1 and Com2 satisfy the hiding property, and...
What's the purpose of a passphrase in hybrid cryptography? can it actually be used for authentication or if i put in another signature algorithm will it be like, two authentications?
Hypothetical. Lets say you have an application where you generate a master key from a user password using PBKDF2 (static salt) and then use the master key to derive two passwords keys for an encrypt-then-mac scheme using HKDF (unique salt per encryption). The password would be shared by two individuals, who would then ...
I'm working on the curve secp256k1 and I've private key $k$ and public key $P = [k]G$. I look for solutions to the following problems; What is the inverse of a scalar $k$ in ECC? If I'm only missing $G$ but know all parameters of the curve can I find $G$ from $k$ and $P$?
Considering public message M and private key K, would it be safe to create the MAC tag this way: $$MAC(M,K) = AES(m_1) \oplus AES(m_2) \oplus \cdots \oplus AES(m_n)$$ when $m_1,m_2,\ldots,m_n$ are n blocks of fixed size (let's say 128). I can't prove that it's secured although my intuition says it is.
In this paper the author suggests using a variant of Diffie-Hellman which involves floating-point numbers of arbitrary size in the generation of a shared secret. There are no primes, calculations are performed$\bmod{1}$ In simple terms: Alice picks $x$ (a decimal number) and $a$ (a random integer). She generates $a'=...
I just started learning about cryptography and specifically RSA, and the texts I have read don't have a proof or explanation for why RSA is unsafe if you can factor N=pq, it merely asserted this. Is there a formal reason for this? Thank you in advance :)
I have a simple calculation. Its inputs should be very hard to discover, but I want to be certain, hence the question. Start with value $A$, a known 1024-bit number. Input $I_1$ and $I_2$ are 512-bit numbers, and their hashes are known as $h_1 =Hash(I_1), h_2=Hash(I_2)$. Output $O$ is the result of $O=(A\cdot I_1)+I_2...
The theory for right to left modulus exponential technique is very straight forward if the explanation is using a small modulus n number. For example, $$3^{77} \bmod 11$$ In this example, we know that the remainder will be always less than 11 which the maximum remainder in this case will be 10. Hence, when we are imple...
(Sorry in advance for my blurry thinking on this: I'm a programmer, not a cryptography expert.) I have a Client/Server web application. The Client needs to be able to alter the local state in ways that the program's code allows, but should not be able to "open the hood" to tamper directly with code or data itself, and ...
I have two messages $m_1$ and $m_2$ and a result ciphertext $c$, one-time pad was used to create the ciphertext $c$, is it possible to know which message was used to generate the ciphertext $c$?
I got this idea to use the features of the one-time pad, an encryption technique that provably cannot be cracked, but this time applied to encrypt a private key. A possible application could be to encrypt the private keys of a bitcoin wallet, or any other random private-key data. It fills a similar market as the famili...
It's well known that state of a Mersenne twister is quite easy to recover after you observe enough samples. But what happens if we pipe blocks comming out of MT into SHA512 and give this as output. Since there is no mathematical proof that SHA512 is not invertible there probably wouldn't be a way to proove that MT stat...
Below is a function to hash a string into a number. I'm curious what would be the name of the below hash function and what would be best approach to create an unhash function to turn the number into a string (ex. 61752 to abc)? function hash(str){ const letters = "abcdefghijklmnopqrstuvwxyz" let h = 9 for...
I've been working for some time, on designing a constant time solution for dealing with the "point at infinity" for prime curves. So, far I'm using the Standard Projective Coordinates for doing fast, Point Addition and Doubling operations, and my implementation uses a "window" approach to do scalar multiplication. But,...
I am looking at an AES-CTR implementation (WebCrypto) and it takes an initialization parameter count which is an array of 16 bytes. It then asks you to specify length, or how many bits are dedicated to the counter (the rest will act as a nonce.) So if you specify e.g. length = 32 the block input will be nonce (96-bit) ...
One reason why One Time Pads are impractical is that sender and receiver need copies of the same random numbers. This can quickly exhaust the set of numbers if communication is frequent. Proposal: The set of random numbers kept by pairs of senders and receivers is only the seed values for a shared PRNG. If the seeds ar...
After reading a series of papers CL01 CL02 CL04, I feel like I understand the intuition behind the anonymous credential framework but I don't understand some details the mathematics behind it. I placed myself in a case example where this system might be useful, namely imagine that you want to prove to some organization...
If two or more encryption algorithms are used together, how do we compute the strength of the final encryption? And how would the application perform against quantum computers? The first two tables are accurate, correct? In the third table where we combine two encryptions together, can we calculate the key length? And ...
I've got the cypher text: cöimamiçknsyznhaczstş and a partial plain key: ?ğre??i I've used "?" instead of unknown characters. The question is: is it possible to find the whole key? I've read about given partial text and unknown key some people found the key and text. My problem is easier than others. I'm sure It can be...
Does a passphrase with high entropy provide the same level of security as the private key itself? General scenario: An attacker has access to a private key file that is protected with a passphrase that has the highest entropy imaginable. Does this provide an advantage to the attacker? A more concrete scenario: Synology...
To my understanding the LLL lattice reduction algorithm starts with a set of integer vectors $\{b_1, \dots, b_2\}$, which span a lattice, and tries to generate a new basis of shorter vectors of the same lattice. It first defines the Gram-Schmidt orthogonal basis $\{b_1^\ast, \dots, b_2^\ast\}$ (which is in general not ...
ColdBoot attack is introduced by Halderman et. al in 2009 Lest we remember: cold-boot attacks on encryption keys In their articles, they represent experimented that We found that the dimensions of the decay curves varied considerably between machines, with the fastest exhibiting complete data loss in approximately 2...
I read from PGP spec RFC 1991, section 6.1 (August 1996): The exclusion of the other fields ensures that detached signatures are exactly the same as attached signatures prefixed to the message. Detached signatures are calculated on a separate file that has none of the literal data packet header fields. Can anyone exp...
Nowadays, private key systems like AES have replaced RSA. Even for digital signatures, people mostly use ECC, so even if an efficient integer factorization algorithm is made, would it be a threat to digital security anymore? Or is this danger just an idea in the past?
To the best of my knowledge, most of the MPC protocol's are built on a ring $\mathbb{Z}_{2^\ell}$(usually $\mathbb{Z}_{2^{64}}$) or field $\mathbb{Z}_p$ ($p$ is a big prime), why? What is the difference between them? Examples: Ring examples such as ABY, SecureML. Field example such as SecureGWAS. Update: This paper...
I built an app that used AES encryption with 16 characters Key and IV. It seems it could easily be hacked, as someone did it in a day. I feel that I made a few mistakes Used key & IV which was only plain text length of 16 Key not hashed with SHA-256 It was an Android app ( Xamarin Forms) and I did not obfuscate the a...
Say I have SHA256 hash result that produced from 2000 bits inputs. For example, 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef (64 bit hex representation) is the SHA256 output. Theoretically, the collision is present as the number of bits of inputs is greater than the number of the SHA output bits. My...
I'm involved in the design of a communication protocol that requires mutual remote attestation of both communicating parties prior to exchanging any other data. We found several tools for symbolic security analysis of cryptographic protocols such as ProVerif, Tamarin or Verifpal. However, we barely have any experience ...
Suppose $y=f(x)$ and $z=g(y)$ such that $y\in L_x[a,b]$ and $z\in L_y[c,d]$, where $L$ is the usual sub-exponential asymptotic notation $$L_x[a,b] = \exp\left((b+o(1))(\log x)^a(\log\log x)^{1-a}\right)$$. Can $z$ be written as $L_x[a',b']$ for some $a',b'$? I think the answer is yes, based on the following (using the ...
I'm writing a web interface in PHP to generate keys. I'm familiar with gpg's command line options, particularly --batch. I'm also familiar with PHP's GnuPG API. I can't find a way to safely pass the user's password from the web interface to the gpg command line because gpg uses a pinentry program? PHP's GnuPG functions...
I have a question about the RSA signature. Let's say Alice has $(d,n)$ as the private key and $(e,n)$ as the public key. In order to sign a message $m$, Alice computes $y = m^d \bmod n$ and sends $(m,y)$ to Bob. In order to verify the signature, Bob computes $x = y^e \bmod n$ and accepts the signature if $x = m$. My q...
I have a key size of 128 bits. My message size is fairly short (e.g., 32 bits - and widely known). Although I am doing a SHA256, the result of the HMAC will be truncated to 128 bits. So my question is: is there a significant strength difference between the following? HMAC256(K,m) HMAC256(K,m||K) HMAC256(K,K) 'note tha...
I am starting a project where several categories of sensitive data have to be accessed within a table. Based on his role, a user can see clear text columns (not encrypted), accessible columns (decrypted for his role), and can't see the content of other columns (encrypted). This implements segregation of duty (for examp...
Is this a good practice ?. How good or bad is this compared to appending a timestamp to the actual data and hashing it as represented below. Signature = sign(sha256( File + Timestamp ))
I am currently doing my masters research on security of wireless sensor networks, the topic is "ENHANCING THE SECURITY OF WIRLESS SENSOR NETWORKS BY COMBINING GEOENCRYPTION AND LIGHT WEIGHT CRYPTOGRAPHIC HASH FUNCTION (LOCHA)" The encryption process will use MiniAES which IS same as normal AES with all component reduce...
Please forgive me if this is not the right place, however, I encountered this TLS implementation with a function that generates an ECDH key pair on an elliptic curve: In addition to the private key and a point on the curve, the function also needs random inputs. Why and for what are the random variables required? Why i...
Could I base a public and private key system on just using a hashing algorithm? For example: privKey = sha256( randomGenerator() ) pubKey = sha256( privKey ) Why do I need to use different algorithms? For example, RSA or ECC?
From what I've read I know that FHE requires "circuits" to construct functions and gates to operate on the FHE encrypted data. I've also read that these circuits are constructed from just addition, multiplication, and mixed multiplication. How does this work? How, only using those operations, can we construct a NAND ga...
If I encrypt my data using many different encryption algorithms (using different passwords) how will an adversary be able to decipher the message?
This is a very newbie question. SSL Pinning is "safe" in assumption that only the real server can decrypt the public key. By design, it should be almost impossible to find the private key from the public key. However, is it relatively easy to create a new certificate (private key) that generates the "same" public key w...
I am reading this to understand more on abelian group. I could not understand some steps. https://yutsumura.com/prove-a-group-is-abelian-if-ab3a3b3-and-no-elements-of-order-3/ "Taking the square of (**), we obtain: $$(b^{−1} \cdot a^{−1} \cdot b \cdot a)^2 = a \cdot b \cdot a^{−1} \cdot b^{−1}$$ how was this being de...
In his lecture on building Block Ciphers from PRGS, Dan Boneh says this Let’s start by finding out if we can build PRF from a PRG? Let $G:\ K \to K^2$ be a secure PRG Define 1-bit PRF $F:\ K \times \{0,1\} \to K$ as $F(k, x\in\{0,1\}) = G(k)[x]$ $\quad F$: if $0$ choose $G(k)[0]$, if $1$, choose $G(k)[1]$ I am unab...
Assume that we have the following signature scheme CL Signature: Choose two cyclic groups $G = \langle g \rangle$ and $G_T = \langle g_T \rangle$ of order $q$, that have a pairing $e$. Uniformly and randomly choose two elements $x,y \in \mathbb{Z}_q$, and compute $X = g^x$ and $Y = g^y$. The secret key is $sk = (x,y)$...
I'm curious if is it possible to recover a private key from insecure RSA implementation - each letter of the plaintext is encrypted separately (and no padding). Let's say I have plain-letters, cipher-letters (for every value of plain-letters), public key $(e, n)$. I know that it is insecure usage of RSA, but I want to ...
$$m^{ed} \equiv m \bmod n$$ $n =pq$, so by Chinese Remainder Theorem it is equivalent to $$m^{ed} \equiv m \bmod , m^{ed} \equiv m \bmod q$$ where $n=p\cdot q$ So how did 2 come from 1 by the Chinese remainder theorem? I know Chinese algorithm but How did $m^{ed} \equiv m \bmod p$ and $q$ come?
Let $\it C$ be a ciphertext such that we have no information about the type of symmetric encryption algorithm used to generate $\it C$. Let $\bf S$ be the source bank of most block and stream ciphers such as AES,DES,RC4 and so on. Let $s \in {\bf S}$. Question: Is there an algorithm, software, or method (especially bas...
In academic pursuits, we often have people (and their ideas) who are considered fundamental to the subject, such as Bayes and probability. In cryptography, it's obvious to see that the Diffie-Hellman problem is fundamental to modern key exchange algorithms. Can modern day symmetric encryption methods be similarly trace...
Referring to the standards of [BIP-39] and [BIP-44]: a 'master password' consisting of 12 words uniformly selected from a 2048-word dictionary corresponds to 128 bits of entropy, that is then used as a seed for the generation of keypairs in many wallet implementations. While not contesting the sufficiency of the offere...
The goal of this question is to allow a server/proxy to forward an encrypted message without being able to read it with this procedure being transparent to the original sender and receiver. Assume we have Admin RSA Keys $(e,d,n)$ and Bob RSA Keys $(e_b,d_b,n_b)$ where Alice wants to send a message $m$ to Bob with only ...
Let $\chi_\sigma$ be a discrete (or continuous) Gaussian distribution with standard deviation $\sigma$. Then, it is known that for $y \in \mathbb{Z}$, a statistical distance between $\chi$ and $\chi + y$ is at most $|y|/\sigma$. Similarly, I heard that there exists a similar result about Rényi divergence between $\chi$...
I'm trying to construct a no-query-secure MAC $II=(Gen,Mac,Vrfy)$ without using any cryptographic primitives such as PRF, PRG, has function, etc. My-attempt: I learned that a message authentication code (MAC) is no-query-secure if in the security game the adversary is not allowed to query for any MAC. I tried to get th...
I was reading this set of lecture notes on commitment schemes, where they define a commitment scheme $\text{Com}(b, r) = f(r), h(r) \oplus b$ as a secure commitment scheme. In this case, $f : \{0,1\}^n \rightarrow \{0,1\}^n$ is a one-way permutation, $h : \{0,1\}^n \rightarrow \{0,1\}$ is a hard-core bit of $f(\cdot)$,...
This is from Dan Boneh's Lecture where he talks about operating a PRF (AES, DES) in Deterministic Counter Mode. Dan Boneh says What we could do is we could use what's called a deterministic counter mode. So in a deterministic counter mode, basically we build a stream cipher out of the block cipher. So suppose we have...
I'm following well with using the shifting method to try out the Montgomery reduction (1st round). However, the computed result is actually equal to: $$XYR^{-1} \bmod N$$ while the final goal is to obtain the result of $$XY \bmod N$$ In order to get the final answer, I need to implement an extra step which is $$(XYR^{-...
I'm working at understanding the Wesolowski and Pietrzak RSA group based VDFs (verifiable delay functions). These basically work by requiring the prover to do a bunch of repeated squaring within a semiprime group G of unknown order, and then computing a proof that a verifier can check without having to do the time cons...