instruction
stringlengths
32
27.2k
Basically I am trying to understand the difference between server salt and client salt. I know that the client salt is used to make encryption harder for hackers, but I can't seem to grasp the concept of a server salt. Does anyone know?
Actually, I'm reading the description about Zerologon attack from the original whitepaper document. In there, Tom Tervoort mentions these sentences: So I tried to come up with some chosen-plaintext attacks myself and figured out something interesting: for 1 in 256 keys, applying AES-CFB8 encryption to an all-zero plai...
So hypothetically I have a an arbitrary block cipher operating in CBC-MAC mode that makes use of a public and static $IV$ as well as a static key $K$. I want to be able to that this won't be preimage resistant using a proof for an arbitrary single-block message $P$ that hashes to a given digest $T$. So far I've gotten ...
I have a question regarding pitfalls of using only encryption. Suppose Bob and Alice want to flip a coin over a network. Alice proposes the following protocol. Alice randomly selects a value X ∈ {0,1}. Alice generates a 256-bit random symmetric key K. Using the AES cipher, Alice computes Y = E(X,R,K), where R consists...
Recently, Boyle et. al. proposed silent OT extension. In the paper, silent OT, it seems that a GGM based PPRF used as building blocks. However, after reading the paper, I have two questions that are not clear: For $t$-points PPRF, the authors proposed to have $t$ independent single point PPRFs to be constructed such t...
I'm reading rfc5652, there are different references of the two algorithm identifiers. For example in this ASN.1 structure: SignerInfo ::= SEQUENCE { version CMSVersion, sid SignerIdentifier, digestAlgorithm DigestAlgorithmIdentifier, signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL, ...
Regular hash functions like SHA-256 have a variable length input and measure security against collision attacks in bits. For SHA-256 this is 128 bits. When I limit the input length of SHA-256 to for instance a fixed 8 bits, the chance of a collision drops to zero (with SHA-256 there are no collisions possible with only...
The secure third party R generates key $k_1$ to communicate with A and $k_2$ to communicate with B. A requests a key with which to communicate with B. R generates k un and encrypts: $E_{k_1}(k) = s1;\ \ E_{k_2}(k) = s_2; \ \ E_{k_2}(p_A) = s_A$ R sends to A $\ s_1$ and $[s_2, s_A]$. A deciphers his key: $E^{−1}_{k_...
I'm working on small RSA project in university. At this moment I have done this: An array of prime numbers is generated from selected range. $p$ and $q$ selected randomly from this array $n$ calculated $\phi(n)$ calculated $e$ calculated $d$ calculated What do you think about $e$ and $d$ in that case? $p = 29$ $q = ...
XTS is suitable for disk encryption while GCM doesn't. Both require the same number of block encryption calls. Both are parallel in encryption and decryption. XTS is actually even faster in openssl implementation (openssl speed -evp aes-256-xts/gcm), not sure why. Why even bother to use GCM instead of XTS?
I'm reading from Cornell , I know for a single permutation, I can find the ciphertext length (100), divide in some key lengths (10x10, 5x20), then try all permutation (10x9x8... 5x4x3x2x1). then find anything legible. Is there any case the above method will not work, and is there any better method to crack this permuta...
I'm dealing with a website that loads a javascript file which eventually sets an AES hash/value (whatever it's called) as a cookie. The file is heavily obfuscated making it hard to understand certain things within. Anyways, I have reversed enough of the file to understand that they are using the cipher block chaining m...
How does a hybrid argument work relating to PRG's? I am working on a homework assignment where the problems say to use a hybrid argument to prove/disprove that something is a secure PRG, and I can't find an explanation of this idea anywhere online or in the notes which makes sense to me. I think the idea is to have a s...
I started thinking about P vs NP after reading another question on this stack exchange. Here I propose a proof that relates P vs NP to the existence of a secure block cipher in the elf model. Let's say I have a (normal) Turing machine and I want to model a nondeterministic machine with it. According to certain models, ...
In Discrete Log based Cryptography, one of the core operations that one, has to perform is modulo exponentiation. There are many algorithms to choose from, especially, when considering my point of interest "scalar multiplication" of a point (generator) of an Elliptic Curve. The most fundamental algorithm is the double ...
I'm learning about Elliptic curve cryptography. If I understand right, ECDSA and other algorithms used in ECC are dependent on the curve chosen. So, before you want to use ECDSA, you first have to choose a suitable curve. Pairing-friendly curves are a special kind of elliptic curves that have properties that allow for ...
I can't be the first one to think of this and there must be a reason nobody design cryptosystem off this problem. Let's define MECC as matrix of elliptic curve points, and MI as matrix of non-negative integers. Given a MECC $G$, MI $v$, and MECC $P=v\cdot G$. How would a quantum computer calculate $v$ from $P$ and $G$?...
Let's suppose and scenario like a secret voting scheme, at the ID verification step. Considerations: There is a public list of identities of people who are able to vote (ex, people who live in a certain town). The identity confirmation process is entrusted to a central server (Bob). Users send requests remotely and de...
I'd like a sample of true random data from a source that has a known entropy. It's not easy to even produce true random data in sufficient quantity --- much less know the entropy of the source. For instance, my only chance at grabbing true random data is waiting for /dev/random. I'm spinning my hard drive and using t...
How to avoid differential cryptanalysis attacks when you are inventing new cipher? Let's say you have a $16$-round $128$-bit cipher vulnerable on differential cryptanalysis attacks. Now let's say you will add between every round: bitwise NOT (optional you make it ot not - randomly), xor with $128$-bit subkey, moving b...
Being a physicist, I know very little about cryptography. In fact, the main two practical aspects I've learned so far are: Unless you're an expert, 1. Don't try to invent new cryptosystems and 2. Don't implement cryptographic algorithms yourself if you can avoid it. I need an implementation of information-theoretically...
-- Hopefully this question fits here -- Time and time again, there is always one person who asked about creating their own encryption standard/cipher, and we all agree to stop them early on because we all agree that it is very unwise to do so (such as preventing unknown or invisible weakness in their standard, etc.). M...
I have difficulty understanding the difference between two cyphers that both use Vigenere table and transposition, here is examples of both: The key for the system is the key pair $k_1, k_2$, where $k_1 - $ slogan (witch contains no same letters) and $k_2 \in Z_m $. Then transposition rule can be defined as: $$\phi(k_1...
Although I had a security course in school a long time ago, I am effectively new to cryptography. I have an encrypted text, the encryption key of 44 characters, the encryption method, (Fernet, which uses AES), the mode (CBC), the length of the key (128-bit), the padding (PKCS7) and the authentication (SHA256). The onl...
If we encrypt a plain text using Double DES but with same key K1, Can we get the same result as if we would encrypt the plain text using single DES but with different key, say K2. What I'm asking is can we achieve this for same size of K1 and K2 : DES(K1,DES(K1,m)) = DES(K2,m) What would be effective key bits for the ...
Let's say we have transformer(?) A = $\{0;1 \}$, B = $\{0;1\}$, $Q = \{q_0,q_1,q_2\}$, where A - plaintext alphabet, B - encryption alphabet, Q - the set of states. The functions of the rotor are described as: $$q0 ◦ 0 → q0 \ \ \ q0 ∗ 0 → 0 \\ q0 ◦ 1 → q1 \ \ \ q0 ∗ 1 → 1 \\ q1 ◦ 0 → q2 \ \ \ q1 ∗ 0 → 2 \\ q1 ◦ 1 → q...
It's common to use a salt before hashing a password in order to prevent an attack by rainbow tables. Would it also work to encrypt the password for instance by RSA encryption - by a permanent RSA private key stored on the server - before hashing? In other words: $hash = SHA(RSA(password))$ For me this looks secure beca...
I think a simple question but here it goes (and sorry for my lack of math notation skills): Given input I, a fixed factor X and fixed modulo Y and N iterations, does the process need to be performed consecutively in N steps, or can it be sped up? I=12345 X=655573 Y=54321 for N=0; N < 10000; N++ { I=(I*Y)%X }
In proof of CPA-security of encryption scheme $(r, F_k(r)\oplus m )$ where: $F_k$ is a keyed function $r\in_R\{0,1\}^n$ is a random number, on page 85 of Introduction to modern cryptography we have The value $r^*$ is used when answering at least one of A’s encryption oracle queries: In this case, A may easily determ...
How can we prove that no DES key makes encryption the identity function? That is: $\;\forall K\in\{0,1\}^{56}\quad\exists M\in\{0,1\}^{64}\quad E_K(M)\ne M$ Note: anyone disproving this proposition would gain instant celebrity, which is a meta-proof that this proposition is true, but not an acceptable answer! That pro...
Let's assume we encrypt a 50000 bit plaintext with 1024-bit RSA and public exponent $e$ = 3: How big will its cipher be? When we increase the exponent to let's say $e$ = 216 + 1 = 65537, how big will its cipher be then?
Given an SBox, how can I generate its component equations (in ANF)? given in this link: https://en.wikipedia.org/wiki/Algebraic_normal_form For example, let's say I have this SBox: $$\{1, a, 4, c ,6 ,f ,3, 9, 2, d, b, 7, 5, 0, 8, e\}$$
According to ssh_config(5), HostKeyAlgorithms “specifies the host key algorithms that the client wants to use in order of preference ... The default for this is: ecdsa-sha2-nistp256-cert-v01@openssh.com, ecdsa-sha2-nistp384-cert-v01@openssh.com, ecdsa-sha2-nistp521-cert-v01@openssh.com, ssh-ed25519-cert-v01@openssh.com...
I'm new to cryptography. I've been experimenting with getting Windows hashes to see whether it's possible to reverse engineer. The following hash is what I got from my test laptop. What can you identify here and what is possible to do with this kind of hash. However, I'm not solely interested in extracting the password...
So I was researching Initialization Vectors (IV) and even took a look at this thread... What is the main difference between a key, an IV and a nonce? ,but I was hoping that I could get some clarity. Everyone keeps saying they IVs need to be public because the recipient of a cryptographic message will need to first decr...
since the public key is calculated as Y=(alpha^private-key)mod(chosen prime) and alpha is a primitive root of prime, when Y becomes public then private key can be calculated easily right? since there is a unique private key less than chosen prime that will satisfy the equation. I think I'm missing something here. Pleas...
In the article How Does the Blockchain Work? the writer makes the following statements: Since only you should be able to spend your bitcoins, each wallet is protected by a special cryptographic method that uses a unique pair of distinct but connected keys: a private and a public key. If a message is encrypted with a s...
I'm familiar with RSA for asymmetric encryption. I also understand it's only supposed to encrypt small amounts of data (smaller than the key) so for encrypting arbitrary data I would typically generate a one-time random key, encrypt just that random key with asymmetric encryption, and then encrypt the actual data using...
Taking a graduate computer security class, part of our current assignment is to crack 50 Unix md5crypt password hashes, due on Thursday, October 8th (in eight days.) I've managed to crack 49 out of the 50 passwords using hashcat, but the last password seems borderline impossible within the time given to us. The hash fo...
My question might be quite beginner, so please pardon my ignorance :) So, assume there are 10 parties, each with their own keypairs. There is a message $M$ that is passed from one party to the next. Each has to sign the message with their own private key, append the signature, and send it to the next guy. As you can se...
My symmetric block cipher works kind of like a stream cipher, but it works on $128$-bit blocks. It generates a $128$-bit block in every round. And at the end of the round, I have to slice it into two blocks and add them together. I mean after each round we take first $a$ bits and second $b$ bits of $128$-bit block and ...
Imagine a database containing hashed (HMAC) Primary Account Numbers (PANs ) and associated identifiable information (e.g. transactions). Consider a data breach. Prior to the breach, an attacker made specific transactions to make it easy to identify one or more hashed PANs. Could the attacker then work out the SHA256 ke...
Is there any theoretically safe notion of white-box? I have been reading about white-box [1, 2, 3] recently. It seems white-box deals with code obfuscation and its not known whether a perfect white-box exists. I am curios about theoretical notion behind this. For a stream cipher, the theoretical notion is PRF. For bl...
a. A nonce may or may not be predictable. b. Use of timestamps requires fewer numbers of messages compared to nonce-only authentication protocols. c. Server keeps track of nonce it has used in the past. d. Timestamp based protocols are sensitive to clock skew. From the above options which option are true about the ques...
I am new to cryptography. I have a package to be shared with Bob which is something like below: Package contains: data.zip and Application where, data.zip is encrypted Application will have logic to decrypt the data Bob will run Application and it will decrypt the data.zip. Now for the decryption key, I understand ...
With reference to Jan Camenisch and Anna Lysyanskaya's paper A Signature Scheme with Efficient Protocols, in proceedings of SCN 2002, I need some help to understand How to verify that $C_x$ is a commitment to an integer of length $l_m$. $$C_x = g^x * h^r$$, where $x$ is the secret and $r$ is the randomness; $g$ and $h...
I would like to use AES-CTR to encrypt the same plaintext with the same key more than once (on different machines). I'm wondering whether I should try to use the same IV each time, or whether it's safe to use a random IV for different instances of the same plaintext. Using the same IV would require a deterministic meth...
What encryption mode should I use to protect a packet, such that the payload of the packet is encrypted, but the integrity of the entire packet, including its header, is protected?
Just a small question. Since in LWE the error is rather small, is there a problem with replay attacks? What I mean is that if we use the typical scheme of Regev [1] to encrypt a vector m, but this vector is sent, e.g. 1000 times, then an eavesdropper may perform a simple voting scheme to approximate the original messag...
I need to use some kind of authentication of the client during my key exchange process. During my research, in this article I learned about identity-based key exchange and authentication, and I was very interested in the idea. However, when I started to search for some protocols I could not find anything further than...
I am by now perfectly aware that "Bletchley Park had much more available to them than 'Bombes,'" but I'm finding it difficult to find on-line explanations of their many other types of "rapid analytic machinery" which are not shielded by "paywalls." No, I really am not interested in paying $75.00 (USD) for access to a ...
I want to reduce a multi-precision integer $x$ modulo a prime $p$, very fast. Performing the traditional Euclidean division for only calculating the modulo, is inefficient and modular reduction is at the heart of many Cryptographic primitives like Elliptic Curve Cryptography. There are other methods to perform the afor...
I have got the following documents: (1) The plaintext (2) The ciphertext (3) The python program used to encrypt/decrypt the text My goal is to find the key that was used to encrypt the plaintext into the ciphertext. I have tried using pkcrack on my MAC OSX machine (which took a few hours to run), however that failed an...
I understand why s-boxes are needed in general especially when ECB mode is used(because of using the same key for encryption of other blocks)but I wonder if it's still relatively secure if we omit S-boxes substitution step in these circumstances using AES-CTR mode to make sure the same key with the same blocks will en...
all, I have a very fundamental question on Secret Sharing schemes such as SPDZ families. As far as I can see for now, SS schemes always assume a certain variable range. For example, suppose the bit length of the variable is $k=32$ and its underlying operational domain is in $p$ ($p$'s bit length is $l=128$), then, all ...
I currently implement the AES(128,192,256)(ECB,CBC). Does the type of padding affect security? I just want to fill the blocks with null bytes.
If I understand correctly, for RSA to work we need the message(cleartext) M $\in Z_n$ and gcd(M,n)=1. That is M coprime to n. This is to fulfil the requirement for Eulers theorem. How does RSA make sure this is the case, and wouldn't this mean that some cleartext cannot be encrypted? Thanks,
I'm new to universal composability. I'm trying to define a protocol, $\pi$, in UC. The protocol involves 3 parties: A, B, and a smart contract $C$. Parties A and B interact with each other and with $C$. Each party, including $C$, makes calls to multiple primitives (e.g. symmetric key encryption: $Enc$, commitment schem...
I saw that non-negative integers with the addition operation cannot be the Diffie Hellman group. I'm having trouble understanding why it cannot be the DHKE group. To be DHKE group, there are five properties to be held, The operator is closed associativity identity element exists inverse element exists commutativity I...
Let's say someone implements 3DES with three separate 56-bit keys and an attacker is attempting to execute a MITM attack. Here is the encryption plan designed to attempt to disrupt the MITM attack, or at least make it more expensive. You grab 192 bits of plaintext and shuffle them into three 64-bit blocks, intermingli...
I've been reading How to estimate the hardness of SIS instances? and following some of its sources, and I want to confirm a few things. LLL algorithm runs in polynomial time, but isn't capable of producing arbitrarily small basis, and is therefore not very relevant in cryptanalysis in most lattice-based schemes. Is tha...
Here is a GPG message, signed and encrypted (strictly for demonstration, with test keys): -----BEGIN PGP MESSAGE----- hQGMAyxbH69MHihtAQv/Z5FROYmcGwAWeomk+1b1ps4EQaLkUDU+iYKzhEojEDJa pxbZB5yUsLlrEmJXMis3Jt4eSMvRpj6xUVR9cJHbWPAOTK1S6PMASquFIagNY0c7 dIoShPSlPDjSb1Vi/0drqZUoEkjeB3fnqRb3ECTwBbU24Ygq/MD5Jtf0pGLmcXxT ZAM4Sb...
I'm using RSA public key private key for sending AES key from each client to server application. then i'm using this AES key and IV for communicating between client and server. what should i do for this MITM attack scenario?? client[encrypted text] ---> Server the MITM can use this encrypted text again to send it to ...
I understand that AES in GCM mode produces an authentication tag that is used to ensure that a tampered with cipher text is not decrypted. However, if I pass the wrong key will AES in GCM mode detect that I am using the wrong key and give me an error message or will it give me back garbled data because I used the wrong...
I understand that it is important to check how hard it is to attack RSA keys, but I assume at some key size attackers would not even try. Real attacks are carried out by exploiting mistakes in the whole process, not the cryptography. The maximum key size attempted would obviously depend on the value of the protected se...
When using AES-GCM I know that I am supposed to use a new initialization vector every time I call the AES-GCM algorithm with the same key. What are other rules must be followed to use AES-GCM correctly? I am looking for a bullet point checklist with advice that I can follow as a developer, and the consequence of ignor...
I am using AES to create a secure tunnel for transmission of data. As the symmetric key encryption will require the same key to encrypt and decrypt, so we need to generate the exact same key for the decrypt process. Is there any possible way for me to generate the exact same key for both side?
Let $\lambda$ be a statistical security parameter. Consider a security proof that is based on hybrid argument, where there are polynomially many (say, $n = p(\lambda)$) hybrids, $H_1, ..., H_n$. Any two hybrids $H_i$ and $H_{i + 1}$ can only be efficiently distinguished with probability $2^{-\lambda}$. So, by iterating...
The RSA cryptosystem makes use of $n=pq$ where $p, q$ are large prime numbers. With quantum computing, factorization might become easier, so it will probably be useful to use much much bigger $p$, $q$ in the future. If I remember correctly, the source of large prime numbers $p$, $q$ in today's most commons RSA implemen...
I tried to solve SBox as given in this link I am trying to understand this paper SBox. In this on page no.4 the correct equation of given SBox is mentioned. I am not getting how to design ANF equation as given in paper.
There is a matrix $A$ that we don't want to be revealed, and there is a matrix $B$ that is known. Is there any way to calculate $A \times B$ without revealing $A$? $A$ can be encrypted. But we don't want anyone to know it, but we want anyone to be able to calculate the multiplication of it to another matrix. Is there a...
I hope this doesn't look like a silly question. In an age where our current cryptography is often impossible to crack when properly implemented and used, would we be able to decipher anything, for example if WWIII were to break out ? Similarly to how the Germans added some rotors to Enigma, what could be done against 5...
The NIST has a "SP 800-38D: Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC". This guideline is a base for AES-GCM from definition to security considerations. ( all bolds are mine) In section 8.2.1 Deterministic Construction IV In the deterministic construction, the IV is the con...
In discrete logarithm based schemes on finite field we have a prime number $q$ that divides $p-1$ and $q$ is to specify a subgroup with the order $q$. But why do we do that? Why do not we work on the group with the order $p$ and need a subgroup with order $q$. This is for security reasons (discrete logarithm calculatio...
I am having a struggle calculating (ii) and (iii), Can anybody help me with the calculation? RSA blind signature algorithm: Given two prime numbers: $p=11$ and $q=3$ The message to be signed is: $M=6$ The public key is: $e=7$ (i) List all the possible candidates of the blinding factor $R$. $n=33$ $\phi(33)=20$ $\{1,2,...
I am analysing an authentication protocol. In this protocol AES-GCM is used to encrypt part of the messages. Regarding the authentication protocol, I made the following observations: The plaintext that is being encrypted is always the same. It may be assumed that the plaintext is known by the adversary. Deterministic ...
I noticed that people use a random number in the RSA-OAEP padding scheme to avoid deterministic encryption. But in pkcs#7 people just use the padding size rather than some random bits. Doesn't it make AES deterministic?
Let $\textbf{a}=\left[10, 32, 57, 81\right]$ and $x=\{0, 1, 2, 3\}$. Then multilinear extension of vector $\textbf{a}$ is the polynomial, $f_\textbf{a}(x_2, x_1) = 10(1-x_2)(1-x_1) + 32(1-x_2)x_1 + 57x_2(1-x_1) + 81x_2x_1$, where $x_2$ and $x_1$ is the second and first bit of $x$ respectively. Thus, $$ x = 0, f_\textbf...
Assume that bits $A$ and $B$ each have .5 bits of entropy per bit. The two-bit result of the concatenation $A‖B$ has 1 bit of entropy total, and it retains the entropy density of .5 bits of entropy per bit. How many bits of entropy would the single-bit result of the exclusive-OR of $A$ and $B$, namely $A⊕B$, have per b...
What will be the mac size of AES CBC-MAC if there are suppose 10 blocks in the AES CBC-MAC? Will it always be 128 bits MAC size for no matter how many numbers of blocks?
does aes-cbc-mac guarantees integrity, authenticity and confidentiality? does aes-cmac guarantees integrity, authenticity and confidentiality? because I only know that aes-ccm guarantees all i.e. integrity , authenticity and confidentiality..
I know that HMAC supports or guarantees both authentication and integrity, but does it also provide confidentiality?
I am new in cryptography. I need to compute a hash of a string value represented as follows: $name||i$ where $i$ is an integer. I use the following pseudocode: message = []byte(name||i) hashize = 1536 // Using SHA256 full-domain-hash with 1536 bits hashed = fdh.Sum(crypto.SHA256, hashize, message) Print(hashed) Here t...
While reading about AES-GCM, I discovered there is a multiplication over $\operatorname{GF}(2^{128}$). My question is about its cryptographic properties, such as: Take a random element $X$ from $\operatorname{GF}(2^{128}$) (which is not $0$ or $1$). Multiply it with a constant $Y$ (say, the plaintext, which is defined...
This question follows-up from this question/comment. Suppose, you are given $X \odot Y$, where $X~(\neq 0) \in \operatorname{GF}(2^{128})$ is random, $Y~(\neq 0) \in \operatorname{GF}(2^{128})$ is random, and $\odot$ is a multiplication over $\operatorname{GF}(2^{128}$) with some modulus. As explained in this answer, t...
PALISADE offers a pool of Homomorphic Encryption schemes and it is stated that "PALISADE is a general lattice cryptography library ...". My question is rather simple: are all homomorphic encryption schemes based on lattice-based cryptography?
I'm looking for differentials in my kind of toy encryption scheme. I can't find any. Let's consider linear congruential generator: $X_{k+1} = a \cdot X_{k} \mod 2^{128}$ Such that $a$ is some number which for every 128-bit input $X_{k}$ from $0$ to $2^{128}-1$ will give us different output $X_{k+1}$ from $0$ to $2^{128...
As far as i understand, a encryption system is forward secure if new session keys are generated for each session, which is also part of what wikipedia says about forward secrecy: By generating a unique session key for every session a user initiates, the compromise of a single session key will not affect any data other...
How can we exhibit an AES-GCM ciphertext, including IV and 128-bit authentication tag, and distinct keys $K_0$ and $K_1$, so that decryption succeeds for both keys? What degree of control do we have on the respective plaintexts obtained by such decryption? Can that extend to the point that this nightmare (referring pag...
I am reading https://en.wikipedia.org/wiki/Curve25519 and it states Also in 2018, RFC 8446 was published as the new Transport Layer Security v1.3 standard. It requires mandatory support for X25519, Ed25519, X448, and Ed448 algorithms.[24] I understand from various answers on this site that the ECDSA is a different al...
My misunderstanding is all about the parity attack mentioned in "Cryptography Engineering by Ferguson, Schneier and Kohno". Most modern block ciphers have a 128-bit block size, but they operate on 32-bit words. They build the encryption function from many 32-bit operations.This has proved to be a very successful metho...
Let $p,q$ be odd primes, $n:=pq$ and $a,x \in \mathbb{Z}/n\mathbb{Z}$ be quadratic residues such that $x^2 \equiv a \pmod n$. I have understood the proof that calculating the least significant bit of $x$ is computationally as hard as deciding the Quadratic Residuosity Problem and I am aware of the fact that it is even ...
I have seen Curve25519 and X25519, Curve448 and X448. I've seen a small note in this answer (Historical note: Originally, X25519 was called Curve25519, but now Curve25519 just means the elliptic curve and X25519 means the cryptosystem.) Is it a standard to say CurveABC is the Elliptic Curve and XABC is the cryptosys...
I want to encrypt 1000s of old files on old hard drives before uploading them to the cloud. I'm planning to use AES-GCM with only one or a few keys. (I'm using Apple's CryptoKit library which provides this algorithm and a few others.) It would be convenient to encrypt and store the files individually, so I could downlo...
I don't quite know how to even ask the question for what I have in mind; but succinctly, I'm looking for some publicly implemented cryptosystem where messages for a user with id U can be sent to U using nothing but a single system-wide public key and knowledge of U. I have an unusual situation where I've been asked to ...
In a cryptographic application, two types of (pseudo)random bit streams are needed: a stream $A= a_{1}a_{2}a_{3}\ldots$ in which $\Pr[a_{i}=0]=\Pr[a_{i}=1]= 1/2\ \forall i$ and a stream $B= b_{1}b_{2}b_{3}\ldots$ in which $\Pr[b_{i}=0]=2/3; \Pr[b_{i}=1]=1/3\ \forall i$. Propose the following constructions: Given a g...
In TLS 1.2, say a session ticket is created for the current session (Session Tickets RFC 5077), and the current session uses the Encrypt-then-MAC extension RFC 7366 (I.E. both client and server offered the extension in their Hello). When resuming a session with that session ticket, is the use of Encrypt-then-MAC implie...
Imagine Alice has trained a machine learning model. She wants other people like Bob to be able to use her model for prediction, but she doesn't want them to know the actual model. She wants the model to be private. Is there anyway to predict with a previously trained model without knowing the model itself?
I am looking for a cryptographic hash function optimized for speed on short inputs, in order to implement a pseudorandom generator with expansion factor 2 (e.g. takes 16 bytes of input and outputs 32 pseudorandom bytes). Here are some natural candidates I tried: SHA256: good baseline Blake2: designed for speed on larg...
In RSA, given only $(n,e)$, where $n =pq$ and $e$ is the public exponent, it is hard to find $p$ and $q$. It also seems hard to find $d$. So we came up the RSA conjecture that is RSA defines a trapdoor one-way permutation. Namely, given, $N,e$ defining $f,x \mapsto f(x)$ is easy; $y \mapsto f^{-1}(y)$ is hard; but $f^...