instruction
stringlengths
32
27.2k
I'd like to know when a hash function is considered insecure. Clearly, if it is easy to invert then it's not secure at all. Apart from that, let's say I've found a bunch of inputs $x_1, x_2, .. ,x_n$ s.t their hashes are equal. Would this mean my hash function is insecure even though $n$ is much smaller than my input s...
For example, Schnorr signature is pretty similar to El-Gamal. And everywhere where Schnorr signature is explained (for example - on Wikipedia), there's said that there's Schnorr scheme which is actually interactive proof of knowledge scheme (or identification protocol). Then, applying Fiat-Shamir transformation, we get...
What is difference between Yao's "Garbled Circuit" and the "Garbling Scheme" given by Mihir Bellare, Viet Tung Hoang and Phillip Rogaway in "Foundations of garbled circuits"? I also want to know is it possible to use the garbling scheme / garbled circuit for multi party computation or it is only for 2 party computation...
Consider we implement remote service, which will be accessible via API(i.e. restful http or grpc). All users are authenticated via pgp keys and each user has pgp keypair. How to implement authentication for such a service? I see multiple approaches and I'm unsure which one to choose: Convert keypair to X509 certificat...
The Bouncy Castle source code (Java edition) has a ECPoint.normalize() function. It seems to calculate the modular inverse of a coordinate of a point on the curve. Without it point compression - for instance - seems to fail. It seems that usually this normalization is performed as part of Elliptic Curve calculations au...
I'm looking for a practical example for creating an EC Ring Signature, very much at the level of detail as found in the CryptoNote Whitepaper but with O(1). I saw Short Linkable Ring Signatures for E-voting, E-cash and Attestation, but I'm not sure about two things: Does it actually require a group manager or did I mi...
Let´s suppose that I want to send an RSA encrypted message to Alice, so I use her public key. Such a message contains a number only. If Eve intercepts the message, is it possible for Eve to alter the encrypted message (the number) so that, when Alice decrypts it she gets twice the original number? I can think of the fo...
I am a beginner in cryptography. I studied the RSA algorithm and now I want to solve an exercise. Cipher Text (HEX): 41A387CABD1C144C99E4B44CE2812A7696CE8A9B5941164741E91B82D89886700DD73A61C580BD75DFC0351D3D6BBF644408A77CB421A115C5 Public Key (e, n): (4049, 16395979) If: n = p*q z= (p-1)*(q-1) e*d mod z =1 And after...
Say Bob wants to tell Alice a secret message, then they start some message exchanges protocol. At the end, Alice will receive the secret message and can be convinced that the message was not produced earlier (and obviously not later) than the time they communicated. An attacker (Bob included) will try to win by forging...
A client is communicating with a server through https, which should provide them with the security they need. I would like to add an extra layer of security. The protocol would look something like : The 128-bit symmetric key is stored in the backend file on the server. Client connects to the server's IP address using...
Given $e,d,N$ such that $e \times d \equiv 1 \pmod{ \varphi(n)}$. Can we efficiently calculate $\varphi(N)$. $\varphi(N)$ will have multiples values. We need to eliminate those values that are higher than $N$ Odd and some other criteria Is there any efficient algorithm to find $\varphi(N)$.
The semantic security of Regev's cryptosystem [Reg05] is based on the LWE assumption and leftover hash lemma. This lemma implies that because $m \approx (n+1)\log q$ is large enough, so for uniform $A\in \mathbb{Z}_q^{(n+1)\times m}$ and uniformly random $x \in \{0,1 \}^m$, the term $Ax\in \mathbb{Z}_q^{n+1}$ is close ...
Say we have chosen $n=pq$, with $p=89,q=97 \implies n=8633$ and $\varphi(n)=88\times96=8448$. Also, if we want the encoding ($e$) and decoding ($d$) exponents to be equal, we need $$(e,8448)=1 \: \: \text{(relatively prime),}$$ $$ed \equiv 1 \pmod{8448} \implies e^2 \equiv 1 \pmod{8448}.$$ How do I go about solving som...
I need to store sensitive data in a particular column in my database (Postgres). I'm hosting with AWS, so I'm planning on using KMS to use envelope encryption. For example: To encrypt a secret: Generate a 256-bit plaintext data key. Generate a 256-bit random IV. Encrypt the secret with AES-256-CBC using the plaintext...
I posted a similar question but I see that I did it incorrectly. For this reason I post it again hoping not to cause any problem. I have the following situation: Alice often sends funny jokes to Bob. She does not care about the confidentiality of these messages but wants to get credit for the jokes to prevent Bob from ...
Background I'm trying to make sense of the error in implementations of LWE and R-LWE. In LWE and R-LWE error is added to vectors in lattices to make it computationally infeasible to recover any meaningful data. It was said here that using float operations in PRNG's aren't reliable enough across different environments....
Presently 160 bits of hash block width seems to provide adequate security against brute force attacks. The recent developments concerning SHA-1 have reduced the effort to force collisions by 5 orders of magnitude according to the latest Wikipedia edit. Other cryptographic primitives have been evolved to fix issues tha...
I am wondering why most textbook only explain Elgamal encryption using multiplication operation, i.e. $c = m\cdot g^{ab} \pmod p$ instead of addition modulo $p$, i.e. $c = m + g^{ab} \pmod p$? Is there any flaws or insecurity for the addition version of ElGamal encryption?
int mbedtls_gcm_starts( mbedtls_gcm_context *ctx, int mode, const unsigned char *iv, size_t iv_len, const unsigned char *add, size_t add_len ) { int ret; unsigned char work_buf[16]; size_t i; const unsigned char *p; size...
I am interested in learning more about NIZK proofs in the CRS model. The CRS must be random but 'trusted' by all parties. How does these data get generated both in theory and in practice?
How can I use an XML detached digital signature in Java when the URI where the file is being signed will not be the same as when the file is being validated? Specifically, the file to be signed is created and signed on one server, then shipped to another server where it should be verified. The URI is file:///.... Simil...
I ran the following Sage script from A.3. Base Points Section of rfc7748 for Curve25519 def findBasepoint(prime, A): F = GF(prime) E = EllipticCurve(F, [0, A, 0, 1, 0]) for uInt in range(1, 1e3): u = F(uInt) v2 = u^3 + A*u^2 + u if not v2.is_square(): continu...
Ed25519 is a signature or just elliptic curve? EDDSA is signature, what using curve ed25519?
Appending the length of the message when padding of a SHA-2 message is sufficient to satisfy the Merkle-Damgård construction. However the padding in SHA-2 also pads with 10* between the end of the message and the message length data. I know that 10* padding lets one turn non-block-aligned length messages into block-a...
In my introductory cryptography class. There is a line describe the construction of S-box in AES "The S-box of AES is constructed by combining a function $h(x)=x^{254}$ defined on $GF(256)$ with an invertible affine transformation." However, when I look into the Advanced Encryption Standard (AES) document , I can no...
In the Advanced Encryption Standard (AES) document: page 27 section 7.3.1, It defines branch number. It said " Let F be a linear transformation acting on byte vectors and let the byte weight of a vector be the number of nonzero bytes. The byte weight of a vector is denoted by $W(a)$. Definition: The branch num...
Given: An initial string (sBase) that is visible to EVERYONE sBase = "syLgETsPihVXBRuVR4eI" Several other strings that are only visible to ME sXOR1 = "48MjsK7SiNMGV7wxb3Kb" sXOR2 = "jokxnPZpUWmJfaL0BS1t" sXOR3 = "4KAh1TEAmtWFV6HvTUda" sXOR4 = "wOnlFV4vUiJkaESXX25X" sXOR5 = "77H6NQrcmrdHuThmBdTL" Assume: XOR sB...
I am studying Merkle Tree Construction for digital signature. I don't quite understand why we need collision resistant hash function for Merkle tree construction. There are few papers like XMSS that try to lower the requirement from collision resistant hash function to second-preimage hash function by introducing bit m...
I'm trying to find a simple way to explain M of N keys to end users, where 2 keys would unlock something. So far, all I found was this complex example where the key threshold was 1 (just one key of any lock will unlock this): Larger version here. Lacking any commonly accepted illustration, or image, is there any visu...
The use case is: I need to encrypt data such that only my own private key can be used to decrypt it, from a machine that only knows my public key. I'd prefer not to have to create and keep track of a sender key pair in addition to my own key pair. I understand that by setting the sender private key to "1" I will not be...
I'm wondering about the security of a hash-tree structure that mirrors the structure of another tree. In an ordinary Merkle tree the block hashes form the leaves of the tree, and all internal nodes are computed by hashing their children, but what if the data being hashed already conforms to a natural tree structure T? ...
TLS handshake message FINISHED contains a PRF computation using master secret over hash of handshake messages exchanged so far. The application data records can flow only after the TLS endpoint has decrypted and subsequently verified the contents of FINISHED message. What does the verification of PRF computation conta...
Why are hash functions (e.g SHA-3) so complicated when GCM apparently provides secure hashing and has a relatively simple construction? Is this purely about speed? I imagine that GMAC with a fixed key (GCM mode without ciphered data) is much slower, if you just need a key-less hash.
For practicing purposes I obtained some cipher and an OTP key. Now my task is to decrypt the cipher using this key. Both files are .bin files and when I open them with TextEdit there are a huge amount of "strange" symbols (which is obv., since its a cipher text). But my questions is: How can I get the plaintext using t...
It is well-known that SHA1 is broken. Collisions have already been achieved. Current algorithms for finding collisions leave a “fingerprint” in the collision files, which can easily be detected. It is claimed that brute-force would not be practical, since that would require $2^{80}$ time. However, I am not so sure if...
I have a system where some clients communicate with a server. every client has its own name and role and some other parameters that sends these info to the server in every message and the server uses those info somehow... All communications are encrypted with symmetric keys. I have a master key that only I and the serv...
I am having a task where I have to evaluate a commitment scheme. I checked already a few questions here, but they have not helped me :( I hope someone is able to help me out in that. What do I have? $commit_H$ - perfectly hiding and computationally binding $commit_B$ - perfectly binding and computationally hiding Here ...
In all algorithms I've seen that rely on pairings-based cryptography (some examples: snarks without PCPs, more snarks, sublinear ring signatures), a common reference string is required. Is this always the case? If so, what is it about pairings (or the algorithms that use them?) that means the CRS is needed? I know ZCas...
Can I create a secure hash function $h: E(\mathbb{F}_p) \rightarrow \mathbb{Z}_q$ (for some $q$) where $E(\mathbb{F}_p)$ is an elliptic curve on the finite field of $p$ elements? By secure hash function I mean: one way, strongly collision free.
What is the protocol for choosing blinding factor when RSA is applied with key blinding? (Related question: How would you find the Blinding factor R in RSA blind signature algorithm?) Since blinding factor R should be randomly chosen, who has control over how R is chosen - the client (public key user), or the server (...
I have a short question. Besides PKI, Web of Trust or secure out of band communication. Is there any other way to verify the public key of a communicating party? In other words, let's assume an active adversary with MiTM capabilities. When we are doing a public key exchange, you have to rely on a trusted third party or...
How could you improve entropy on a router running Linux kernel 2.6.x without TRNG or RTC ?
Consider the IND-CPA game between a challenger $C$ and an adversary $A$ for a given public-key encryption scheme $PKE$: $C$ generates a key pair $(pk,sk)$ based on some security parameter $n$, and publishes $pk$ to $A$. $C$ retains $sk$. $A$ may perform a polynomially bounded number of encryptions or other operations...
Suppose Alice, Abigail and Anna all have public keys with exponent e = 3, which Bob uses to encrypt the same message to send to each of them. Show how an attacker can obtain the key by intercepting these encrypted messages. I have the answer for this question which says: Bob sends $y1≡x^3\mod l,\ y2≡x^3\mod l,\ y3 ≡x^3...
I am analyzing an existing end-to-end encrypted, cloud based service (e.g. email, file storage or chat) which also has a public cloud based address book (for managing contacts) so that users of the cloud service can communicate securely between themselves (e.g. send email, share data or chat). To log into the cloud bas...
I was reading here:second discrete log meaning in the solution and also here:key generation, first point where the say given $G$ (or its description). My question is what does this description includes? For example here he is making the differentiation that in Elliptic Curves this group description makes it harder to s...
When calculating the initial values of p,q,n, etc. in RSA, what base are the numbers? Are the numbers stored in binary, hex, or just simple base 10 when doing the modulus calculations? Additionally, when it does encryption by block, what does that look like?
I've been given a AES-CBC-MAC, a message and the IV. I don't know the key. Given a second message I am supposed to derive the IV and create a valid MAC. I believe I've successfully created the second IV, (Message1 XOR IV1) XOR Message2. However I'm not able to create a valid MAC - but this is where I'm unsure if I hav...
The first part of the classical description of XEX is $X = E_{k}(I) \otimes \alpha^j$ What I see a lot in sample code on the Internet is that you start with $T_ = E_{k}(I)$ and use that for the first block of the message. You then take $T$ and left shift it one bit. If the carry from that operation is a 1, then you XOR...
I've given a curve E5(2,3) over Zp. How to check this curve is Elliptic or not? I know the curve formed by this will be: (y2) mod 5 = (x3 + 2*x+3)mod 5.
I have designed an random encryption in public key setting. I am convinced about its security guarantee but I need a formal way to prove its robustness. How can I prove the security of this random-public-key-encryption algorithm? Any proof method such as induction-method, proof-by-contradiction-method or anything else?...
I was looking at the responses posted on the following question: How is digital signature different from a message authentication code (MAC)? I read the following comment to the first answer: So simply speaking, MAC cannot be used to verify sender authentication because it only protects the message integrity. Alright,...
Shamir secret sharing splits into t number of shares with a t-threshold. However, I can find no information online if this scheme provide integrity (or authentication for that matter, which I assume it does not). Can an adversary forge a share? If not, what hard problem is he faced with. Is it due to the share should ...
I am new in cryptography and I wonder whether there is any hardness assumption in cryptography where computation of $g^y$ is hard given $g^x, g^{x+y}$ ($g$ is group generator, $x$ is selected randomly while no restriction is on $y$).
I saw the several articles about MDS matrices. They said that, one goal of MDS matrices is to protect the block ciphers against linear and differential attacks. My question is: For example in the case of linear attack, is constructing the bias table of MDS matrices behavior impossible? Or the values of biases are such ...
I got stuck on this question during my exam revision. Consider the linear secret-sharing scheme for four players $P_1, P_2, P_3$ and $P_4$ based on the matrix $$ M= \begin{bmatrix} 1 & 0 & 0 & 0 \\ 1 & 2 & 3 & 3 \\ 0 & 1 & 5 & 5 \\ 1 & 4 & 3 & 6 \\ 0 & 5 & 2 & 4 \\ \end{bmatrix}$$ whose entrie...
I have multiple RFID tags which I want the data stored on them to only be read by certain users when scanned. What I did was basically to encrypt the data with a key using CBC mode, take the encrypted hex data and append it with the IV, and then put this whole string into the tag. So, each tag will have a different IV ...
TLS session keys are derived as a result of authenticated key agreement. Is being able to decrypt a record at an endpoint after receiving change_cipher_spec sufficient guarantee that the endpoint is accepting record from the authenticated peer? I believe 'yes'. I understand that the verification of TLS finished message...
It seems like there are different kind of private key formats, namely: PKCS#5 plain private key PKCS#8 plain private key PKCS#5 encrypted private key PKCS#8 encrypted private key I have seen these names of keys thrown around in articles and answers I read while searching. What're the differences between these keys fo...
I'm writing a software that will be encrypting & authenticating segments of data, each 4096 bytes long. These segments are saved to disk in a sequential order that will never change. So I was thinking to encrypt each one of them using AES256-GCM, but before I code it I need to confirm a couple of points: To conserve s...
The paper "On the group generated by the round functions of translation based ciphers over arbitrary finite fields" states: Definition 3.3. A block cipher $C = \{ \tau_k | k ∈ K \}$ over $F_q$ is called translation based (tb) if: each $\tau_k$ is the composition of $l$ round functions $\tau_{k,h}$ , for $k ∈ K$, and...
Let $G:(0,1)^n \rightarrow (0,1)^{n+1}$ be a secure PRG. Define $G'(s):=s_1 ||G(s)_{2,...,n+1} $. ($||$ is concatenation, and the subscript $ _{2,...,n+1}$ means the last $n$ bits of $G$) I claim that $G'$ is a secure PRG, and my intuition is that if a distinguisher, say $D'$, could distinguish its output on a rando...
In a Feistel cipher structure, what exactly does the "round function $F$" do to the right half of the data, before taking XOR of the output with the left half of the data?
I have the hashed password and its salt. It is encrypted using SCRYPT by firebase. How can I extract the plain text password from these two? Or alternatively, how can I re-encrypt or convert them to hash/salt that is readable by passport-local-mongoose plugin? here is an example of what I have at my disposal: "hash...
Hi I previously asked a question about Diffie-Hellman parameters but wanted to make sure I got it right. I need to generate parameters for the SRP protocol. My base strategy is to generate a safe prime q = 2*p + 1 where p is also a prime. I want to use as low generator as possible, preferably "2". Now, all elements of ...
Imagine two PBKDF2-SHA-512 hashes of the same password are generated. Each has individual salt. If an attacker had one hash and the salt of both hashes, would he be able to compute the missing hash or would he gain a significant advantage guessing it? My situation: A user inputs a password that should be used for AES e...
I am going through some of my notes from class (About Information Security) and I'm stuck understanding how my teacher got this result. The question is: How many collisions would you expect to find in the following cases? a) Your hash function generates a 12-bit output and you hash 1024 randomly selected messages. b) ...
There seems to be an interest in wider and wider hash functions. This is understandable as bigger is always better. So there have been questions asking about 1024 and 2048 bit functions. So rather than having something native, could we do the following? uberhash = SHA-512(message) || SHA-512(message || "1")... And ...
I have studied bit-sliced implementation in SERPENT block cipher and I need to use this technique to implement some 4x4 s-boxes. I couldn't find any procedure to obtain bit-sliced format in any paper or document. I really need this method to use. Please explain me how to do this and what method or procedure I can use f...
I am a beginner in cryptography. I studied the Elgamal algorithm. I know that: p = A big prime number g = Generator of p a = 0<a<p-1 B = g^a mod p secret key= (p,g,a) public key= (p,g,B) Encryption= c1=(g^k mod p) , c2=(m.B^k mod p) // 0<k<p-1 Now, I want to solve an exercise. pk =9789467 g =10895499 n =16777216 c1 =...
I currently am being asked to partake in a strange authentication format while working with a client, and was hoping for clarification. The client is using HTTPS with client certificate authentication, therefore I will install their provided certificate within my browser as a form of authentication. As a second step, ...
From my research, I think that everyone says that the result of a zero-knowledge proof (ZKP) is that the participants end up with a shared secret that can be used as a session key for a further symmetric encryption session between those two parties. And then, all of the articles say that you follow this up by starting...
Does a system exist where it is possible to verify a signature is from a public key in a specific set of public keys, but also not know which key it was? The idea being you know a member of a group signed the message without reveling who it was.
My question is related to using cryptography to build clone resistant system. I am building an embedded system with ARM based commodity hardware board. Thus the intellectual property which makes the product differentiated lies all in software. What kind of cryptographic measures can be used so that the software on my s...
I have this set: {0,1,2,3,...,15}. I would like to create a pseudo-random permutation from elements of this set, for example {10,2,15,0,7,5,9,4,3,13,11,1,6,12,8,14}. Which method could I use to obtain the permutation?
I want to construct an Elgamal signature scheme with the group $\mathbb{Z}_{23}^{\star}$ and then to compute the signature for the message $m$ with $h(m)=4$, where $h$ is the hash function that we are using. I want to describe also the verification of the signature. The algorithm to sign a message $m$ is the following...
I am reading about Pseudo-Random Sequences in Applied Cryptography book by Bruce Schneier. Description is provided below. A pseudo-random sequence is one that looks random. The sequence's period should be long enough so that finite sequence of reasonable length —that is, one that is actually used— is not periodic....
The cipher given below is a 16-bit toy cipher which uses 8-bit sbox and 2x2 byte Matrix. The Key $k_0$ and $k_1$ are $\oplus$ with the data. The multiplication with matrix is performed in $GF(2^8)$ with irreducible polynomial of $x^8+x^4+x^3+x+1$ The differential probability (DP) of the sbox for input difference of $0...
I found some code to get crypto-js to encrypt data in the browser, and with a pointer from someone on SO, it now decodes data as well. My next question is about the use of an IV; is an IV like a salt where it needs to be generated from a cryptographically secure RNG, or will any data do like, a timestamp? And from my r...
Assume a working non-interactive zero-knowledge proof implementation. Would a public key signature scheme implemented as this work: Bob picks a random a, his private key, and broadcasts A = H(a), his public key. Bob broadcasts sig : ∃ a . H(a) == A && H(a | 0 | msg) == B), msg, B : {0,1}*. Alice verifies sig using zk-...
In this answer to an earlier, related question I noted that encrypting a nonce, such as a sequential counter, using the same block cipher and key as used for the message encryption itself is one of the recommended ways described in NIST SP 800-38A, Appendix C, of generating an unpredictable IV for CBC mode encryption. ...
What is the simplest known scheme that allows one to, given an input x : {0,1}* for which F(x) == y where F : {0,1}* -> {0,1}*, elaborate a proof p : {0,1}* such that V(p, y, F) iff F(x) == y?
Assume the same key pair is securely installed on a server and a single client and that the private key exists nowhere else. Can someone eavesdropping on a TLS handshake between the client and server learn anything about the private key or the session key that they wouldn't be able to learn if the client and server wer...
What is the key size that RSA and Diffie-Hellman are using now that can guarantee secure communication over Internet and will not be able to break by the best available algorithms (NFS & FFS or any others) in feasible time?
It is said that a password has n-bits entropy if its entropy corresponds to the entropy of an n-bit number, the digits of which are independently drawn under uniform distribution. How long does a password, whose letters from an alphabet {a,b,...,z} is independently chosen under uniform distribution, be at least to have...
Is there a name for the particular type of encryption algorithm or function which is the same algorithm or function used for decryption? This is a vocabulary question, because I'm largely unfamiliar with the terminology of encryption. Expressed mathematically, if $f(x)$ is an encryption algorithm that encrypts $x$, and...
I have a encryption png. I open the file in hex editor and I saw it: 83 5A 44 4D 07 00 10 00 0A 0A 0A 07 43 42 4E 58 0A 0A 0B A5 0A 0A 0A D8 02 08 0A 0A 0A 78 C8 D2 F7 0A 0A 0A 0B 79 58 4D 48 0A A4 C4 16 E3 0A 0A 0A 0E 6D 4B 47 4B 0A 0A BB 85 01 F6 6B 0F 0A 0A 0A 03 7A 42 53 79 0A 0A 04 C9 0A 0A 04 C9 0B CD 65 A2 6E 0A...
The Rabin fingerprint looks something like this: int hash(int[] message){ int result = c; for(int v:message){ result = result*p+v; } return result; } for some $c$ and $p$. This may not be the canonical Rabin fingerprint but it's the version I'm familiar with. So let's say we want to generate a ...
I am looking for a one-directional encryption algorithm that preserves the size of the input. Then I would like to be able to mix an encrypted with original data and to be able to receive the same result. It is probably hard to grasp, let me try to explain with an example: Let's say I have the input: This is some text ...
Let's say I've intercepted some bits of a Diffie-Hellman private key: $x = n \mod r$. I can get the remaining bits by doing a kangaroo search. This algorithm works over $\mathbb{F}_p$. Can it be adapted to the elliptic curve Diffie-Hellman problem? In the ECDH problem over $\mathbb{E}(\mathbb{F}_p)$, we're trying to so...
According to this guide, I made an intermediate CA, and successfully used it to sign app in Windows. However, after converted it into a Apple keychain (by this guide), this CA become having an "iChat" policy, which cannot be used to code signing: $ security find-identity -p ichat /path/to/my_keychain Policy: iChat Ma...
My findings don't show any standardization(NIST, FIPS?) of pairing-based cryptography. Would this mean that it is a bad idea to incorporate pairing-based cryptography(bilinear groups) within a commercial product?
I tried to calculate the sum of two Points on an elliptic curve in a finite field. The Curve is defined as following: $$y^2 \equiv x^3 + x \mod 257$$ So the curve parameters are $a = 1,b = 0,p = 257$.I want to add the two points $P = (1|60)$ and $Q = (15|7)$: $$60^2 \equiv 1^3 + 1 \equiv 4 \mod 257$$ $$7^2 \equiv 15^3 ...
I have read that XOR provides perfect secrecy, when the key is perfectly random. However it's technically hard to generate truly random numbers, especially on computers, so that is why people use AES, Twofish and other cypthers. So the conditions for using XOR are that the key has to be true random, and the keysize mus...
Can someone please explain the "three-for-two" trick used by the authors of the DGHV scheme (page 17) to squash the decryption circuit? I looked for resources on the same, but it looks like the authors coined this term. A brief description of the "three-for-two" trick: It is a technique that uses a constant depth circu...
I recently have studied AES cipher. On CTR mode, is it possible to add, subtract, or XOR plaintext values on encrypted data? For example: we have an encryption of $4$ and $6$ under the same AES key, respectively denoted by $AES(4)$ and $AES(6)$. Without decryption, can we achieve the following? $$AES(4)⊕AES(6)=AES(4+6...
Recent news reports show that the UK's NHS (Nation Health Service) has suffered a major ransomware attack which is also affecting other parts of the world especially Spain and Russia, the effect is to essentially lock out users from files unless a ransom is paid within a stated period of time, beyond which the files wi...
I am trying to solve the well-known $g^x = y \pmod{N}$ but in this case only $g$ is unknown. What I know : $x$ is a prime : $2^{16} + 1$ $y$ is known $N$ is a large number that I managed to factor to two "less large" primes (like 38 figures each) I found various methods to deal with discrete logarithm but it seems th...
My customer wants an RNG that uses a true noise RNG and a post-processor that will provide provable security against recovery of the true noise RNG output. Is there a provably and post quantum secure hash function that I could use?
Recall that the Toffoli gate is the mapping $T(x,y,z)=(x,y,(x\wedge y)\oplus z)$. We shall say that a function $T$ is Toffoli-like if $T(x,y,z)=(x,y,((a\oplus x)\wedge(b\oplus y))\oplus z\oplus c)$ for some $a,b,c\in\{0,1\}$. Suppose that our key is $m$ bits and the message we want to encrypt $\mathbf{x}$ is $n$ bits. ...