instruction
stringlengths
32
27.2k
At first I asked this question on Stackoverflow, where I was advised to ask here. So there is the question: I have a system of pretty simple equations: $x + y = A$ $f(x,y) + y = B$ $A, B$ are known. All of the variables are 64-bit positive integers, including $f(x,y)$. But the problem is that $f(x,y)$ uses bitwise op...
I have a power trace of a decryption. It seems like I'm watching a 18 rounds decryption algorithm. I cannot think about any other algorithm implemented in ASIC except Cammelia who has 18 rounds. Which other algorithms are commonly used in ASIC and has 18 rounds ? Also it seems it receive 128 bits block size.
I've got a theorical question from an exercise. Here it is: --- Exercise beginning --- There are ways to convert a block cypher onto an FPE. One of them is the following: Let $E_{k}$ a cryptographic primitive with size n. $FPE_k(x)$ a cryptographic primitive with $P = C = {0,1,..., m-1} $ with $m < 2^n$ The pseudo-c...
I would like to provide a public/private keypair to a user, but require that the user obtain an authorizing key before being allowed to use the private key. I don't want the authorizing party to have the private key -- instead, it should have something like a key-encrypting key that the user can use to decrypt the pri...
I'm in a beginner's cryptography class and I'm trying to figure out if I'm doing something wrong, or if I just don't understand why something is the way it is. I created a simple .txt file of 124 bytes and encrypted it with AES-CBC three times: twice with the same IV of '135797531', and once with a different IV of '246...
Forward security can be achieved using symmetric encryption schemes by combining with a pseudo-random number generator (PRNG). Does LFSR based PRNG provide forward security in this case?
I've been reading about the famous X25519, a montgomery curve from wikipedia and in that article they say that we do not have to check for point validity. Is it because that any $x < p$ satisfy the curve equation ? Is this possible for X25519 because it is a Montgomery curve or because it was specifically designed to...
Given an AES key that is wrapped using another AES key, the second one being generated using PBKDF2, and given that I know the wrapped key: can I derive the passphrase that went into the PBKDF2? (asking for a friend)
If I have an encoding function $f(x)$ that maps a message $m$ to a point $P$ on a suitable Elliptic Curve $E$ . If I have the public key $Q$ of my recepient then I can encrypt the message as follows: Choosing a random number $k < n -1 $ where $n$ is the order of the curve E . Calculating $C = [k] G $ where $G$ is the ...
I want to use lwe estimator to find classical and quantum security of my proposed key exchange protocol. On this website, I want to understand the output of sage code on lwe estimator given bellow. sage: load("estimator.py") sage: n, alpha, q = Param.Regev(128) sage: costs = estimate_lwe(n, alpha, q) The output is ...
Ted here (What does the term "differential" in "differential privacy" mean?) describes the difference between local and global sensitivity as "By contrast, local and global sensitivity are only tools to build differentially private mechanisms: they measure how much changing the data of one user will change the output o...
I have found this figure of a mode of operation using a triple AES with m||IV+ctr input: I suppose it's a custom mode of operation since I haven't seen it anywhere else. My question is if it is IND-CPA, and how to prove it in an adversarial model?
I'm using AES/ECB with PKCS5 Padding (From what I've read, PKCS7 Padding is actually used internally) and PBKDF2(HMAC-SHA256) to encrypt some passwords in Java. I enter a password, that goes through PBKDF2 and gets a hash, which I use as a key for encrypting. PBKDF2 is set to output a 128b key. I've realised, that whe...
I have rar with protected pass.But I have the AES-256 key can I crack it and if I can. how?
I'm really struggling to understand CFB mode (with DES if that matters). I realise after searching around here that these modes are now obsolete but I need to understand them for class. From wikipedia, I see that for encryption: $$C_i = P_i[:s] \oplus E_k(S_i)[:s]$$ $$S_0 = IV$$ $$S_i = (S_{i-1} << s) | C_i$$ (I'm usin...
I'm trying to figure out how padding works by seeing what happens when I try to encrypt a 16 byte file with AES-128-CBC. My understanding was if I encrypt a file of size, say, 28, then there would automatically be 4 bytes of padding to make it 32. But when I encrypted my 16-byte file, the size ended up being 48 bytes. ...
In Elliptic Curve ElGamal if I reuse the same randomness to get the same point $R$ for different messages, how can it breach its security ? Can you please illustrate with an example? Please see my earlier question here for further details Thankyou everyone in advance!
We are planning an application that must store sensitive data. Data is coming from other sources, the application will be a "collector" of third party data. We need to encrypt database data so no one (also DB admin) can read DB data except the customer. If data were inserted directly by the customer, we could have encr...
An article last month claimed that Toshiba Corp. and Tohoku University recently broke the record for the amount of data encrypted using quantum key distribution by transmitting "a few hundred gigabytes". But QKD is merely a protocol for transmitting symmetric keys - the actual encrypted data is later sent over an insec...
As far as I know, AES-CTR depends on nonce. If I will use same key and nonce for encrypting 1 block of data and another - it will be unsecure. So, how can I encrypt a huge block of data (about 1GB) using AES-CTR?
Let say we have $N=pq$ (Both $p$ and $q$ are safe primes, meaning $\gcd(p-1,q-1)=2$) let's assume $e$ is an odd number which can be efficiently factored and assume that we know the $e$'th root of 1 modulo $N$ - call it $r$ - as well es $e$ and its prime-factorization. There is a claim that knowing the $e$'th root of 1 ...
Using 7-zip 19.00, on Windows 10 1909, build 18363.592, I encrypted a text file with the contents "hello there" using AES-256 and the password "123". I did this two times, the exact same procedure, but as shown below, the output is different: Why?
What can be a theoretical and efficient way of protecting traffic metadata (packet size, timestamps, packet count) of enterprise when traffic is redirected to the SGX enclave residing in a cloud provider for processing. I have setup an IPSEC tunnel between the gateway located in enterprise domain and enclave but after ...
I'm prototyping an app that uses client-side password hashing in order to hide the "real" account password from a server (the server hashes any recieved password anyway, so no plaintext records in the database). It seem to be a controversial thing to do but I didn't find any convincing arguments against it (I'm new to ...
I've been researching cryptographic modes and came across an obscure mode called interleaved CBC (ICBC). I can't find a lot about it and am wondering if anyone knows anything more. It's basically CBC but where instead of chaining the last block you chain the n-mth block where m is some constant. This allows some amount...
For example, let's use secp256k1, the curve used by bitcoin, y^2 = x^3 + 7, and x=12. Over the real numbers, that calculation is trivial - I can simply use a calculator. But in a finite field, how does it work? If I say "X is 12", how do I calculate Y? The equation (when using real numbers) almost always results in fra...
I have bought a TPM Chip: SLB9670. It can be communicated via the SPI Bus. What is the SPI frame format for firing TPM Commands with or without arguments. I have read the TPM Main Specifications documents but haven't found much help. Can someone please help me with this.
Suppose we have some elliptic curve defined over $\mathbb F_p$, with $p$ a large prime. Let $n$ be the number of points on the curve. I am interested in what is currently known about the probability* that $n$ is prime (i.e. some reasonable lower bound on this probability). $n$ is well-known to be within the "Hasse-Weil...
I am learning about cryptography from diverse sources, and I have found terminology a bit confusing. In principle, I understand the difference between the symbolic model and the computational model. However, then I am confused when I see things like : information-theoretic security, computational security, concrete s...
Backstory Crypto AG was a company located in Switzerland that specialized in communication security. They produced a number of encryption machines (some similar to the infamous Enigma) used for secure communication. The company was secretly bought in 1970 by the CIA and the German intelligence agency BND. It has recent...
I was reading a question about ICBC here and it mentioned that you would need a $s \cdot n$-bit $IV$ if you would use $s$ "stripes", where $n$ is the blocksize. Say that we don't like transmit that amount of data, would it then be safe to use the following generation of $IV'$ for ICBC, so we can use an $n$-bit $IV$ aga...
Take a bijective polynomial of degree $2 \bmod 2^{64}$ like: $m = (n(n+1)/2)\ \bmod 2^{64}$ It is bijective and can trivially be inverted for numbers up to $2^{32}$ by calculating $\lfloor\sqrt{2m}\rfloor$ . For all other numbers the inversion is not that trivial but I have the feeling it could be done without brute fo...
Suppose I use a relatively insecure hash algorithm to digitally sign a contract. Suppose also that creating a fraudulent contract with the same hash, a collision, is practical. As I understand, in order to take advantage of a hash collision, the black hat is required to introduce some contrived information into the dat...
For the Miller-Rabin probabilistic primality test, we can apply it to test a big number whether a probably prime number or not. Does there exist a method to test a higher-degree polynomial over $GF(2^m)$ whether it is an irreducible polynomial or not? Note that the coefficients of the polynomial belong to $GF(2^m)$. Th...
Could you mitigate all timing attacks by putting a sleep(random()) with a naive crypto implementation? Eg if your implementation looks solid, but you're not sure what the next CPU cache vulnerability is around the corner, would this be a legitimate mitigation strategy? To clarify, this would be a random delay measured ...
I have a 16 byte file, and after encrypting it, its size weirdly changes. > hexdump -C 1.txt 00000000 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 |aaaaaaaaaaaaaaa| 0000000f > openssl enc -v -aes-128-ecb -nosalt -base64 -in 1.txt -out 2.txt ... bytes read: 16 bytes written: 45 It becomes 45 bytes. Why i...
I found some errors in the RingCT 3.0 paper (https://eprint.iacr.org/2019/508.pdf) in the ring signature chapter. This makes it impossible to implement this algorithm. Namely: In the chapter “C.2 Ring Signature with Logarithm Size”/”Challenge 2” was defined: x = H5(v, w, y, z, T1, T2, m) At that, the variable v is not...
I'm looking for a hashing function that can combine random numbers together in any order yet still find the same value. But it needs to be secure against hackers. The idea is if I'm hashing together: $A, B, C$, and $D$ Where hash of $x = h(x)$: I'm looking for a hash function that allows: $$h(A+B+C+D) = h(A)+h(B)+H(C+D...
I would like to implement fast DES decryption using Bitslice technique. Without bitslice DES technique, I have already done decrpytion in this source code by changing the for loop from 15 to 0. In this source code there is no decryption function for DES. How to implement decryption function using the encyption routine...
This is not homework, but a question from an exam. Let $G(x)$ be a PRG with expansion parameter $\ell(n)$. $$G'(x) = G(x) \oplus (x \mathbin\| 0^{\ell(|x|)-|x|})$$ where $\ell(|x|) = |G(x)|$ My intuition is that it is a PRG, first, $n$ bits are just XOR between $x$ which is random, with $G(x)$ which is a PRG, and the r...
I am currently doing a survey on group key, and throughout my readings, I stumbled on these different terms: Group Key agreement, Group key Sharing, Group key distribution, and Group key establishment. My question is the following: is there a meaningful difference between those different terms? because what I know is a...
I have a question regarding the headings in cryptography. In python, in the pycryptodome module, I am doing symmetric encryption, which asks for a header that goes as follows: Cipher = Crypto.Chiper.AES.new(key) Cipher.update(HEADER) My question is, how do I configure the header correctly? I've seen examples of just p...
I created a new, unknown symmetric encryption algorithm. It looks like it's very fast and can be useful. I'm kind of independent researcher, hobbyist. Since years I'm interesting in Kakutani's problem and it's generalizations. And that's why I was abble to create it. I'm not a matematician with academic degree, what's ...
Wikipedia claims that given an unkeyed permutation $p$ (presumably of the same size as the key) this is safe: $p(m \oplus k) \oplus k$ Why isn't this construction used instead of XEX? Surely unkeyed permutations should be faster than keyed ones since they do not have a key schedule, is there some issue not mentioned by...
An old project that I did not code is using the KDF3 algorithm, but I struggle to find an explanation about the way this key derivation algorithm works. I know that this algorithm is part of the ISO-18033-2:2006, but it is pretty expensive. Can someone explain it to me ?
I'm investigating a correlation power analysis on a black-box ASIC I have. I want to learn about correlation analysis and it seems this ASIC implements Camellia. I searched for researches that did CPA on Camellia but it seems no-body did it. I have 2 questions. 1. why ? is this algorithm resilient to CPA ? if it is t...
I would like to use GCM/GMAC in next manner: abcd|Tag0|efgh|Tag1|ijkl|Tag2| ... |wxyz|TagN The nuance is each tag I gonna generate is not from its last block but the all previous plain- or cipher text preceding last tag. Otherwise speaking, last tag let authenticate the whole received stream, for example: Tag0 authent...
It is easy to see that both Paillier and Goldwasser-Micali are homomorphic addition schemes and are secure, but what would be the advantages of choosing one over the other?
I encrypt data with this command: openssl aes-256-cbc -a -salt -in C:\Users\User\secrets.txt -out C:\Users\User\secrets.txt.encs The program then asks that I... enter aes-256-cbc encryption password: Is the encryption password the same as the key? Where is the password or key stored?
Assume I encrypted 1000 Integers using the pallier cryptosystem. Since each time I encrypt a number using pallier I'm using a random r element from Z* then the encrypted numbers aren't in order anymore i,e: we have 2<3 but Enc(2) with pallier doesn't necessarily mean it is < then Enc(3) with pallier. So how would it be...
So I was looking at Lamport signatures and trying to figure out if there is a way to reduce the key size and signature. I stumbled across something that is tiny (125 times smaller signatures and 500 times smaller public key) and almost as secure but it has a catch. So, I realized that Lamport Signatures get their secur...
I'm trying to understand this LWE public key system say I use matrix A = [[44, 73, 20, 54],[92, 19, 78, 22],[31, 34, 94, 29],[82, 32, 70, 68]] q = 97 bit = 1 and secret key s: [56, 90, 0, 46] and secret error vector e:[1, 0, -1, 0] then B = As+e mod q is [73 17 18 27] Bob's secret is [1, 0, 1, 1] Bobby computes u = A*...
My question is two-fold: Say I am given a total black box and I have n number of plaintexts as inputs that map directly to $n$-number of ciphertexts as outputs. This is all I know, and I do not have access to the algorithm. Is it possible to conduct a known-plaintext attack? In the event that I do have access to the a...
I recently found out about Quark here. Apparently it is a proof-of-work algorithm used by several cryptocurrencies and is based on a single-level hash function, which consists of 9 different levels of encryption by six cryptographic algorithms. It also says that Quark provides a "64-bit" protection against hackers. Isn...
I've been recently implementing the chacha20 stream cipher with Poly1305. As the core operations which make up the Quarter Round of chacha20 (ARX - Addition Rotation Xor) are indeed reversible, does that make reversing the ChaCha20 possible if an attacker knows the 512 bit key stream generated by the function, by a kno...
Suppose we have a secure PRG $G: \{0,1\}^s→ \{0,1\}^n$ and we define a $G'(k)$ as: $$ G'(k) = G(k) \| G(k) $$ So if $G(k)=\mathbf{i}$, $G'(k) = \mathbf{i} \| \mathbf{i}$ Is $G'$ still a secure PRG? Based on my own understanding it should be, because the statistical distinguishers will produce the same analogy of zeros ...
I came across an exercise "custom" block cipher which looks like a counter mode implementation, but it is not exactly it. I want to check if this scheme is IND-CPA secure. Here is a picture of the scheme: I have already ruled out the following attacks: 1) Using the raw CBC attack, due to that it behaves like a counter...
This might be a very easy question. Let's consider cryptographic hash functions with the usual properties, weak and strong collision resistance and preimage resistance. For any given output, obviously there are multiple inputs. But is that necessarily an infinite number of preimages, for any given hash value? How would...
[Question edited at the request of Mods] I recently became fascinated with the elegant and simple solution that Chaum proposed for the Dining Cryptographers problem. If you are unfamiliar, please checkout Wikipedia for a summary and solution. What is interesting is that DC-Nets allow for participants in a group to shar...
I've read online that the Goldwasser-Micali scheme can only encrypt 1-bit then I read that in another pdf that that scheme can encrypt a message of multiple bits so I'm confused. Can anyone clarify please?
I'm trying to use the Microsoft SEAL library in order to do Matrix multiplication. That's why I'm trying to find a way to compute the Dot Product of 2 vectors. My issue is that the CKKS encoder in SEAL encodes entire vectors. So if I had a 2D vector of floats I get a 1D vector of Plaintext (and then a 1D vector of Cip...
I have been assigned this hex file : https://drive.google.com/file/d/1EeidY67VuIddIC-e-xiiKhth1ucMhM_r/view?usp=sharing The goal is to decrypt it to something meaningful. The only hint given is that the 1st letter of the plaintext is P. I have tried so far: Caesar Cipher Simple key addition/subtraction Simple key a...
How much is it possibile to devide $E(m_1+m_2)$ by $E (m_1)$ to obtain $E (m_2)$ based on the fully Homomorphic-encryption property which says; $$E (m_1) * E (m_2) = E (m_1 + m_2)$$. And if yes what are the the requirements to apply this property?
I'm doing some research about full homomorphic encryption (FHE). As I figured out, algorithms are implemented in circuits. I suppose that they are called circuits because the Holy Grail is to realize a NAND gate and then be able to do any kind of logic with that. My question is: how does homomorphic encryption deal wit...
In the context of fully homomorphic encryption, what is the difference between bootstrapping and recryption, since both offer the same result which is trying to eliminate/decrease the noise budget. Description of bootstrapping: In certain homomorphic encryption schemes, arithmetic oper- ations on ciphertext can be perf...
Let we have three encoded messages with length $3*456$ bits in A5/2 encryption. Can we use the same frame counter in the encryption process or we must use different? (E.g. this because in the below attack, attacker consider same 22 bits frame counter in the encryption and decryption algorithm with three messages. ) htt...
I've read in a pdf written by Ayantika Chatterjee and Khin Mi Mi Aung whose title is "Fully Homomorphic Encryption in Real World Applications" that it is possible to implement a bubble sort algorithm using certain Fully homomorphic libraries to be able to compare and sort messages while they are encrypted, here is a sn...
A question for the crypto-experts to help out a somewhat confused guy: why does PFS (perfect forward secrecy) also exist in phase II as well as in phase I? Rationale: In phase I ISAKMP, the result of main mode is following keying material: SKEYID_d = prf(SKEYID, g^xy | CKY-I | CKY-R | 0) SKEYID_a = prf(SKEYID, SKEYID_...
Assume you have: A truly random one time pad, $P$ A plain text message, $M$ Two symmetric ciphers, $C_S$ and $C_W$, where $C_S$ is always more secure than $C_W$ Assume the keys have already been securely exchanged and the attacker intercepts everything Alice transmits. In theory, can $C_S(P \space \oplus \space M)$ a...
I understand that a few ransomware have used an RSA public key to encrypt all files belonging to the victim. This is a bullet-proof system in terms of its security because the private key is always safe with the hackers. But most ransomware use the hybrid encryption approach and during that they make mistakes allowing ...
This question is based on my recent observation of preferences of certain email service providers and banks to use AES related symmetric ciphers over the more fast ChaCha20 Poly1305 . For example Google's Gmail browser version uses AES 128 GCM but Google's Search uses ChaCha20 Poly1305 ? Is AES 128/256 GCM in any way...
The following question is about a specific protocol that uses a modified version of the CCM mode. Since I'm not a cryptographer, the protocol specification provides no reasoning for this change to CCM or proof of security, I'd like to know if this might have any practical or theoretical implication for the security of ...
We're working with a microcontroller that is not secure enough to store secrets. The ROM could be dumped in a properly equiped lab. This is why we considered integrating a certified Secure Element that would store the secrets we need for our infrastructure (some keys and certificates). This way the secret would be stor...
This question comes from an issue raised in another question: Non interactive threshold signature without bilinear pairing (is it possible)? Is the proposed random oracle model safe when trying to output a distinct and random $m \times G = M$ value? Doing the interpolation for $t$ compromised shares $m^{'}_i$ results i...
I want to send a verifiable chunk of data (around 16 bytes) by simply encrypting it with a private RSA key, providing the public key in the source code for the verification. This was my initial thought. (I now know that this is not the same as signing the data, but this does not matter now.) I tried RSA and ECC to dete...
I was reading a paper and I am struggling understanding one part of it. Lets say we have a group $G$ of an unknown order $n$. we know that $B<n<B+C$. both B and C are large values). we choose a random element $z \in G$. and let's say we have some prime values $B+C<e_1,e_2,...,e_l$. We Calculate $h=z^ {\prod_i e_i}$. Th...
I just want to know if there's something obvious that renders this hard problem useless. Not a full cryptoanalisys. Any hint on whatever is welcomed. We will work with the Ring $\mathbb{Z}_{p}$, $p$ prime. Now, we define a function $f:\mathbb{Z}_{p}\times\mathbb{Z}_{p}\mapsto\mathbb{Z}_{p}$, as $f\left(a,b\right)=\frac...
In RSA key exchange, the client picks a premaster secret and encrypts it with the RSA public key in the server certificate, and sends it to the server. This offers no forward secrecy. In ECDHE key exchange, the client and server both generate ephemeral EC key pairs, and use DH key exchange to negotiate the premaster se...
Say, $X= a\cdot b$, where $(a, b) \in Z_q^*$ and $q$ is a large prime. If $X$ is given, then what is the complexity (or hardness) of finding $a$ and $b$? Note that, either $a$ or $b$ can be reused to compute another $X'$ which is also public. Edited: (more details) Let's say Alice chooses two random numbers $a, b\in Z...
Since a single hardware pass of an XOR with a 64-bit key is speedy, would Triple DES-X with seven 64-bit keys used in the following manner be virtually identical in terms of code size, memory consumption, and execution speed to 3DES? You have four 128-bit keys and three 64-bit keys. You take a 128-bit block of plaint...
The situation: Alice and Bob are exchanging messages encrypted by some known asymmetric encryption protocol. All their encrypted messages, as well as public keys are intercepted by Charlie. Can Alice reveal decrypted messages to Charlie and provide him a zero-knowledge proof (for example zkSNARK) that deciphered text o...
Using web crypto API and it won't let me store an AES key in the indexeddb (it requires a public/private key). Does anyone have suggestions on how to do this? Should I/could I create a public/private key, store it in the indexeddb and use it to secure the AES key? The idea is to have shared workspaces for messages and ...
I am currently working on a Koblitz curve. I have found the curve has two matching groups based on the base curve point and N-1 point. My question is as follows: Is there an algorithm to determine how many X coordinates are the same in an elliptic curve? This will tell me how many groups are inside the entire curve bas...
This is basically a duplicate of this question which was not answered very clearly. From the documentation, these are the calculations that happen for Alice to compute the shared secret key: DH1 = DH(IKA, SPKB) DH2 = DH(EKA, IKB) DH3 = DH(EKA, SPKB) DH4 = DH(EKA, OPKB) SK = KDF(DH1 || DH2 || DH3 || DH4) If I understa...
I need to prove, that for a key with $n$ dimensions, they order of the key would be $n!$ and to prove that, I need to use mathematical induction: $$\text{Let n = 1} \Rightarrow {1} \text{ if there are only one element in the key, there is one way to order it. } \\ \text{Suppose that n = k }\Rightarrow \text{ the orde...
I read the statement of the Decision Learning with error problem is: distinguish between $(\vec a, \langle \vec a, \vec s \rangle + e)$ from uniformly random samples. Can anyone explain what does it mean to distinguish $(\vec a, \langle \vec a, \vec s \rangle + e)$ from random samples? Does it mean subjecting $(\ve...
If I had many, say a million random numbers (technically public keys.. ~600 bytes each) and I wanted to hash them all together using a fuzzy hash, how accurately could I test that a given hash was a part of the fuzzy hash? I could use merkle trees, but the problem is in my system, two person should be able to hash toge...
There are lots of attacks which are on reduced block ciphers. There are practical attack on five rounds of AES-128five rounds aes broken in six minutes. I was just wondering if there is any practical application of reduced rounds of AES where less than 10 rounds are used.
Let $X$ denote one distribution. Let $f,g, \text{ and } h$ denote three functions. If we have the results: $g(X)$ is within a negligible statistical distance of $h(X)$. Is it possible to prove $$(f(X),g(X)) \text{ is within negligible statistical distance of } (f(X),h(X))$$ I was struggling with this problem for a lon...
Working on a boot process where the application image has to be verified before loading it into DRAM. We found 2 strategies; RSA-1024, where the private key is secure in premises and the only public key is distributed with out boards. (Is it better if up-gradable to RSA-2048?) AES-256 with CMAC, same key available bot...
Is it possible to build a bilinear map where the underlying group is of unknown order? To maintain context, the original question appears below. As per poncho's excellent answer, my original idea is infeasible: Is it possible to build a bilinear map where the underlying group is an RSA group? I.e. $e: \mathbb{Z}_N \ti...
I read the Wikipedia page on a discrete log zkp, but I don't understand how $$C' = g^{r'} \cdot (g^x)^{-1} \bmod p$$ would be calculated. Would it be $$C' = g^{r} \cdot \frac{1}{y} \bmod p$$ where $y = g^x \bmod p$ When I run the following code to check the current implementation (the one I suggested above), I co...
ssh.com's Tectia offers a few algorithms seemingly unique to itself. Chief among them: crypticore128@ssh.com, crypticore-mac@ssh.com and seed-cbc@ssh.com Are these algorithms publicly defined anywhere or are the proprietary algorithms?
In https://www.win.tue.nl/~berry/papers/crypto99.pdf, Schoenmakers proposes a publicly verifiable secret sharing scheme, that uses a non-interactive DLEQ proof to allow any participant to verify the shares of the secret (section 3.1 of the paper). In "Distribution of the shares", it says "Applying Fiat-Shamir’s techniq...
After reading this question, I understood that "game-based" and "simulation-based" have to do with the way that security properties are postulated. In particular, IND-CPA is a canonical example of game-based security property and semantic security is a canonical example of simulation-based security property. Then, I gu...
This is not homework, but a random thought. Let $G(x)$ be a PRG. We define the following function: $$F_k(x) = G(k\oplus x)$$ My intuition is that it shouldn't be a PRF but I couldn't come with an example yet. I tried to build a reduction from identifying G to identifying F but I'm not certain how you can simulate an o...
Some cryptographic schemes are based on the hardness of this problem. The answer to this question determines if those schemes are quantum resistant or not. There are a number similar questions but they consider the classic security not the quantum security. Thank you
I am a master student in computer security, I am preparing a dissertation thesis in the theme is: Algebraic cryptanalys by auxiliary channels, I need reference on this theme (book, thesis, ...), and even I'm looking for specialists in the subject to contact them and work together. thank you for your attention.
this code decrypts encrypted rom code from an arcade game pcb (it is from source code of Mame emulator) for each byte in rom... int src, dst; src = 0xd7; // example value dst = 0; if (( src & 0x01) == 0x01) dst ^= 0x04; if (( src & 0x02) == 0x02) dst ^= 0x21; if (( src & 0x04) == 0x04) dst ^= 0x01; if ((~src & 0x08)...
I am trying to understand the runtime complexity of the discrete log problem (in the most basic sense). So, if we have $\langle g \rangle = G$ and are trying to find $g^x = a, a \in G, 0 < x < ord(G)$, why can we not just iterate through all elements of $G$ and find an answer in linear time? Even if we have to compute ...