instruction
stringlengths
32
27.2k
This is a question just out of curiosity, as I am a newbie to Post Quantum Cryptography. I have read several articles where they emphasize that current standardised symmetric encryption algorithms (that uses 256 bit keys e.g. AES) are Quantum resistant by default. But security of AES 128 can be compromised by Grover's ...
I had find a paper about VMAC algorithm:VMAC: Message Authentication Code using Universal Hashing. Now I want to implement this algorithm, But i don't find test vectors about it. Who can give some advise? Where can i find it's code ?
If I have just the (r,s,v) values of the signature and the message hash, what is the most efficient way to determine if a valid public key exists? I do not need to know the public key, just that the signature and message hash recover to a public key. Lets say with the notation: , are the values from the signature. ℎ ...
New to cryptography, I'm trying to learn the program Veracrypt, and I'm now trying to understand the history of hash functions and how it applies to Veracrypt. So this is what I understand so far, the NSA made SHA-2, which is one of the hash functions that Veracrypt can use for its "key derivation function," and the NS...
I have concerns regarding truncated SHA-256 hashes in an application I am building at the moment: Nomenclature secret - the full 256-bit SHA-256 result of hashing 16 random bytes public - a unique identifier for an object. hash - the output of SHA-256(secret || - || public) prefix - the first 8 characters (32-bit) of h...
Gimli is a 384-bit permutation that makes use of an internal 96-bit permutation which works on columns. Every 4 rounds starting from the 1st a "small swap" is performed and every 4 rounds starting from the 3rd round a "big swap" is performed, these work on the first 32-bits of each column (see https://gimli.cr.yp.to/li...
I don't understand why Q keeping pairs of instead of m like mac-forge solves the problem of generating a new tag on a previously authenticated message. Say, a previously authenticated message for "Cat" is tag 90, Adversary can retrieve (Cat, 90) from the query. However, if Adversary is able to successfully forge a new...
I was wondering if there is a commonly used library in Python (or another common language such as Java, C++, etc.) for fully homomorphic encryption over multiplication and addition that also supports floating point numbers. This means that if our encryption function is $f$ and our decryption function is $g$ and we have...
I am planning to implement an e-voting system based on hyperledger fabric blockchain, however, I came across many criticisms from well-known security experts like Josh Benaloh and others. The problem is I couldn't find any proof that the e-voting is definitely insecure. In my opinion, I think Blockchain can be consider...
Is it possible to know if two geographic locations are within a certain distance of each other without revealing the location? I'm thinking about contact tracing during the COVID-19 outbreak. Assuming users have an app that records their location history, more specifically where the stopped and spend a few minutes. Whe...
I am currently saving hashed passwords for my website. Passwords are salted and then hashed using SHA3-512. I understand the security level of SHA3-512, as it is for all Keccak algorithms, is half the capacity (as it is explained here) , so 512 bits in this case. My question is, how does re-hashing the resulting hash ...
For example, given: p = 173, q = 149, e = 3 Using phi(n) gives d = 16971 While using lambda(n) gives d = 4243 Both values satisfy the checking equation (de)%phi=1, so are both correct, and if so, is one better than the other?
I'm searching for a way to backup a secret that only the end user knows the information with 2 trusted hosts. But trusted hosts shouldn't have access to secret at any time. First basic version : Alice encrypt secret using Server A public key Alice encrypt encrypted secret using Server B public key. Alice store this do...
I'm kind of new in this field and I've been trying to learn it. I'm now facing an issue where I have a couple of packages encrypted with AES-128 GCM and I have the key that was used to encrypt these packages. However, I dont know the nonce or the H. Is there any way for these packages to be decrypted? or is the nonce...
In paper Lattice Signatures Without Trapdoors(Lyubashevsky2012), $n$ is the security parameter, why the authors set $n$ as 512 but not 80/100/112 to get 80-bit security/100-bit/112-bit security?
Are there conditions on the definition of cryptographically secure pseudo random number generators that require distinct seeds to generate distinct (periodic) sequences? What if a generator has the property that two distinct seeds generate the same sequence, but the generator is provably secure? Can this property be ig...
so I have to find all generators for modulo p. And I thought: isn't there are rule for it? As far as I remember, every number from {1,...,p-1} is a generator because p is a prime. Is that true? Or am I mistaken? What is the rule called? Or how else do you find generator elements quickly? Do you really have to take each...
This happened during a discussion of RNG entropy, and the difficulty of verifying the level of entropy in a long sequence of bits (e.g. a private key.) A colleague of mine told me about a website that, given a sufficient quantity of output from an PRNG, had been able to deduce which application the PRNG was from. As an...
Why do ed25519 signature verify functions accept 96-byte signatures? Take this piece of code for one example: crypto_sign_ed25519_open() requires that signatures be at least 64 bytes (512 bits) but will accept longer ones, and get_hram() will include extra bytes at the end of the signature in its hashing step if they a...
I have a question concerning the paper by Blum, Blum, and Shub introducing the $x^2 \mod N$ Generator. It is clear that the outputs of the generator pass statistical tests for randomness: the larger the $N$ value the more uniform the output looks with more iteration. But it is unclear to me how the authors proved the ...
NORX replaces all the additions of the Chacha20 quarter-round function with the non-linear $x \oplus y \oplus ((x \land y) \ll 1)$ operation. Gimli supposedly improves on it with $x \oplus y \oplus ((z \land y) \ll 1)$, adding a third input $z$ because as they claim it removes the need for the additional xor that NORX ...
With RSA PKCS#1 v1.5 it is possible to verify that the signature was generated by the correct private key without actually having access to the data. You just perform the modular exponentiation with the public key to retrieve the padded hash. Then it is possible to verify that the message was padded correctly. Moreover...
Let's say I've got some securely-generated random data I want to encode as words, 32 bits of it. My wordlist is 2048 words, so each word encodes 11 bits of information. I write a routine to pack these 32 bits into the lower 11 bits of 3 16-bit types and zero the upper 5 bits of each. For the last one, I pack in the ...
As far as I understand a hash transforms data into a fixed length representation. For example, a random function returns 8-byte numbers and a hash function has a block size of 32-bytes. If I now generate the hash of each random number, would the resulting hashes be an evenly distributed set of random numbers with a len...
If we have $H(X) \rightarrow Y$ and it is collision resistant. Can we say that $H$ is also one-way? And if that is true can you give me an example?
Seems Yes. People always tell us, it is very hard (or almost impossible) to recover an encrypted hard disk. But after a second thought. I think this is not true. Given that we know the KEY, and the method/algorithm of decryption, the decryption(key, encrypted_data) should be no different from plain text. For example, ...
Same question asked here in 2014 but since a lot has changed since then, I would like to get feedback from experts on the latest best practices. The problem Our requirement is to provide the merchants with a card fingerprint which uniquely identifies a card number. By using this fingerprint the merchant could check, fo...
This is motivated by this question about the recovery of (corrupted) encrypted files, and in particular the statement (in the answer): But If I know the algorithm and the key and I make a custom software to decrypt the contents of the file no matter what, I might get a decrypted JPEG that may be partially viewable/clu...
Need some help. I am not versed in hashing and just started programming with PHP and currently need to hash some strings but required it to be unique. Found that OpenSSL can hash with SHAKE128 but without the option to select the lengths of the output. Notice that every openssl_digest function with shake128 hash output...
For any cryptographically-secure pseudo random generators, do we need a secure random seed for those? If the seed is predictable, then everything is broken due to the deterministic propetry of the algorithms.
Every day, I must backup my server's files, encrypt the backup, and upload it to untrusted cloud storage (dropbox, s3, etc.) I've spent time on security.stackexchange where I discovered the typical approach is: encrypt the backup with random one-time symmetric key ("session" key), for speed encrypt the session key wit...
So I've been studying RSA for a class and I'm having a hard time understanding how it works. Why do we choose the value of e such that e is relatively prime to the totient (as opposed to just being relatively prime to n?) How does e being relatively prime ensure that there is only one possible value for d? And are th...
I see Chacha20Poly1305, XsalsaPoly1305 and AES GCM usually used and mentioned in literature and implementations as AEAD cyphers. My question is that Poly1305 provides authentication and Salsa20 provides encryption, a combination of both can be considered AEAD or not? Even though it is not a standard, does it technicall...
In lattice-based crypto, we always need to sample 'noise' from Gaussian distribution, but how to measure the bound the noise? For example, if the Gaussian distribution is D_{u,\sigma}, where u is the meaning value and \sigam is the standard deviation, and we sample e \gets D_{u,\sigma}, then how to get the bound of e, ...
this is the first time I write here. I'm studying a library to encrypt/decrypt with RSA algorithm. In an example given by the library I found this: /* RSA 1024 Test Vector 1 */ const uint8_t T1_Modulus[] = { 0xa5, 0x6e, 0x4a, 0x0e, 0x70, 0x10, 0x17, 0x58, 0x9a, 0x51, 0x87, 0xdc, 0x7e, 0xa8, 0x41, 0xd1, 0x56...
I am interested in creating a cryptocurrency that keeps the sender, the receiver and the amount private and does not require a trusted setup. I have already read the Zerocash protocol but It uses zk-SNARKs which require trusted setup. I have also read the Bulletproofs protocol which creates short proofs and without a ...
I'm aware that symmetric is faster than asymmetric. I want to test this, but my (obviously incorrect) tests show the reverse. Symmetric test: #!/bin/bash echo create random 100Mib binary file head -c 100M /dev/urandom > blob echo encrypt time gpg --symmetric --batch --passphrase 123 --output blob.gpg blob echo decry...
If the public key in a RSA system is $(n,e)$ with $n=pq$, $p$ prime, $q <p$ a Carmichael number and $\gcd(e,(p-1)(q-1))=1$ then if $d$ is the inverse of $e$ modulo $k=(p-1)(q-1)$, I want to show that for every $0<M<n$ we have that $M^{ed}\equiv M (\hspace{-2mm}\mod n)$. I've managed to prove it is true if the $\gcd(M,n...
let's say we are given a classical RSA encryption scheme, though we would like to "reverse" the task: Given two messages $c, m$ choose $p, q, e$ such that $p, q$ are prime and $c ^ d \equiv m\pmod N$ with $d \cdot e \equiv 1 \pmod{(p - 1)(q - 1)}$; $N = p \cdot q$. I was wondering how one could approach this problem? I...
Decaf is a point compression method that builds a prime-order group for (twisted) Edwards curves and Montgomery curves with cofactor $h = 4$ based on the Jacobi quartic [H2015]. The promise is to eliminate the cofactor when only operating on points decoded from Decaf. Ristretto then extends this approach to curves with...
I want to use 2 semi trusted servers, to decrypt a secret for a user but I don't want those servers to have access to the plain text. Those server need to be able to "partially" decrypt and let the user finish the decryption. One way could be : User crypt a secret with server A User crypt result with server B User dec...
I am using node-jose to convert a particular JWK to a PEM, and then ... converting that PEM to a JWK. The resulting JWK has the same e, but different n than the original. Should I be surprised? I have read in another answer here that there are varients of RSA for which a public key might not meet these assumptions; ...
How is the unknown bits (annotated by red arrow in figure below) come in the OUTPUT after round 1 and round 2 ? Following is the pictorial representation of SIMECK round function operation. Ref: Research Paper (figure 3)
Recently, I have been learning chaos-based cryptography. Is the Chebyshev map-based encryption algorithm quantum-resistant?
I'm analyzing the transmitted data from the apple Smart Keyboard to the iPad, and I have troubles arriving to a conclusion: When I press a key, the keyboard transmit two blocks of data: the identification address (I think, it is always the same) and the key data divided in 4 bytes. It sends the same information when I ...
I'm having some issue understanding the mechanism of electronic signature and how implementing it Here what I understood, correct me if I'm wrong: (Client is here an android or ios device. Server is a web server. AWS S3 is used to store the document) A - Init: Client : generate signing RSA private/public keys genera...
There is a file A and a file B. If I have only HASH(A) and HASH(B) are there any non-trivial hash functions for which I could calculate both HASH(A ++ B) and HASH(B ++ A) without knowing A and B? Can this be extended further? Are there hash functions where, if I know HASH(A ++ B) and HASH(B), I can find HASH(A)? (By ...
I'm currently doing the cryptopals challenges and for it's first set of problems it tells you to use frequency analysis of occurring letters to determine the likelihood of a key guess being correct and yielding legible english. I was wondering, would calculating the entropy of the resulting plaintext not serve the sam...
What is the difference between cfb and cfb1 and cfb8 ? like openssl's aria-128-cfb and aria-128-cfb1 and aria-128-cfb8 edit: interestingly enough, there's also references to a cfb128 (example) (title says it all but CSE won't let me post a question without a message body)
I am looking for a proof for the following two claims from "Serious Cryptography" by Aumasson. NM-CPA implies IND-CPA. [...] IND-CCA and NM-CCA are equivalent notions that imply the presence of the other. where IND-CPA/IND-CCA and NM-CPA/CCA are defined as indistinguishability and non-malleability under chosen plaint...
I have a set of users in my system, each having a private/public keypair of a digital signature scheme. I also have an accumulator in my system, where all the public keys of the users are accumulated. A user needs to anonymously prove to a verifier that she knows the private key corresponding to some public key that is...
I want to create a NIZK proof of a multi-exponentiation via Groth-Sahai proofs. In the lectures of Jens Groth in a winter school of Bar-Ilan University, he shows a way to transform multi-exponentiations to paring product equations. My problem is as follows. Let me take a pairing in the first form ($e(A_j,h^{y_j})$) I ...
I'm attempting to validate an Authenticode signature (generated by signtool /fd SHA256 /f <code signing PFX> /p <PFX password> test.exe), and I've run into an issue that I've narrowed down to a single point of confusion. For the command above, if I hash test.exe before running the signing operation, for example using G...
I am using CAPI Engine in OpenSSL and I did some test. When I use TLS 1.0 or 1.1, during handshake and RSA signing, PKCS padding is chosen. When I use TLS 1.2, RSA signing uses PSS padding. What affects the choice among paddings? How client knows what padding was used? When is padding assigned to RSA structure?
In light of current events (Zoom getting strong headwinds for using AES-128 in ECB mode), I was wondering what the general approach is to packetized data encryption, where the packet length (UDP for video over internet: > 1200 B payload) Is it really just a block cipher in ECB mode, so that each packet can be decoded ...
I was able to find the irreducible polynomial used in AES128-GCM: $x^8+x^4+x^3+x+1$. But I cant' find the one for AES256, I'm searching in OpenSSL implementation of AES256 but with no luck so far.
In Serious Cryptography by Jean-Philippe Aumasson on p. 46, paragraph "Provable Security", it says: Provable security is about proving that breaking your crypto scheme is at least as hard as solving another problem known to be hard. [...] This type of proof is called a reduction [...]. We say that breaking some cipher...
In feistel cipher , does it matter that number of rounds ? is using more rounds will give the best result? or it's all about the key size ?
I'm a bit confused why it's hard to break Diffie–Hellman Let's take the example ALICE has G, a, and n BOB had G, b and n Eve (the third party) succeded to intercept G, n, $G^a, G^b$ ALICE generate the key G^(ab) mod n BOB generate same key G^ba mod n What I don't understand is why Eve cant' get a or b by knowing G^a a...
The question that I am trying to answer is as follows: 10.14. The parameters of DSA are given by p = 59,q = 29,α = 3, and Bob’s private key is d = 23. Show the process of signing (Bob) and verification (Alice) for following hash values h(x) and ephemeral keys kE: h(x) = 17,kE = 25 h(x) = 2,kE = 13 h(x) = 21,kE = 8 I ...
Given the letter-number cipher: a=00, b=01, c=02, etc., encrypt the word 'hi' and decrypt its ciphertext using RSA. The public key is (5,35) and the private key is (29,35). I know that 'hi' is represented numerically as 0708, and encrypting it using (0708^5)mod35 gives 8 as the answer. My instructor then said that I ...
I'm creating a password management application and I'm considering using the following procedure to keep passwords safe: Asking the user for raw_password, for example "MyLongMasterKeyPassword" Generating master_key from raw_password with Scrypt and a random salt Storing the salt (kept public) Asking for raw_message (t...
I'm trying to establish E2E secured channel with nearby devices (using WiFi direct). Obviously, I wouldn't like to rely on internet connection. Can I use the signal protocol without a server? 1)Will it be secure to just publish the prekey to the other peer, and after the key-exchange compare the keys' fingerprints? 2) ...
As we known, a homomorphic signature scheme consists of the usual algorithms $(\text{KeyGen} , \text{Sign} , \text{Verify})$ as well as an additional algorithm $\text{Evaluate}$ that “translates” functions on messages to functions on signatures. If $\sigma$ is a valid set of signatures on messages $m$, then $\text{Eval...
My teacher challenged us to find out which seed was used to generate some random numbers. I would like to know if it is possible to decipher the seed using the generated numbers (break the linear congruence algorithm). If possible, I ask you to explain how to do it.
I spent a lot of time looking for an answer to this question, but the majority of answers never explicitly explain why the client's public key is never used; it's always the server's public key that's used in SSL encryption. Similarly-phrased questions (such as this, this, and this) don't actually explain why the serve...
Consider the Type I lattice trapdoor in [GPV08]: https://eprint.iacr.org/2007/432.pdf Suppose a PPT adversary is given the LWE trapdoor function in the picture: $g_{A^\top} (s,e) = A^\top s + e = b (\text{mod } q)$ Let T be a type 1 trapdoor for A. Now a PPT adversary is given an oracle that does the following: On in...
Consider 3 entities A,B and C. I want A to be able to encrypt a document that can be decrypted only when keys of both B and C are combined. This question talks about a similar problem, but it uses AES. In my usecase, I don't want the keys to be shared across the entities. There is one solution that was coming to my mi...
I am new to cryptography, I am very interested in cryptography, thank you for your answer.
I've seen from the SafeCurve criteria that one should try to avoid small complex multiplication field discriminant as it can speedup the discret log computation via the Polard Rho method. However, I cannot find any information about how this additional information can improve the rho method. Especially, the SafeCurve p...
I have generated one RSA-2048 signing key and one DSA-2048 signing key, using gpg command gpg --full-generate-keys I would expect the key to have size 2048 bits, however, running the command gpg --export-secret-keys <key-id> | wc -c gives a size of 1353Bytes for the RSA private key and 1103Bytes for the DSA private k...
Let's suppose we have the plaintext, 14/16 char of the key and the first 2 and the last 36 chars of encrypted data (that is 64 char long). What I want is to find the IV. The cipher algorithm is AES (I think 128). As I said, both the Key and the IV are 16 char long, the plaintext is exactly 32 char long and the cypherte...
Here is what I understand the algorithm to be: Let $G, H$ be one-way functions, where G outputs the 0 string. Select a random $$-bit integer $$. Pad out $$ with $0$s to length $=||−.$ Compute $=()⊕_{}$ (i.e. $X = _{}$) Compute $=⊕()$ Return $||$ Compute $r = Y \oplus H(X)$ Compute $m_{padded} = X \oplus G(r)$ (i.e...
$\textbf{13.10 (Probabilistic full domain hash).}$ Consider the following signature scheme $\mathcal{S} = (G,S,V)$ with the message space $\mathcal{M}$, and using a hash function $H: \mathcal{M} \times \mathcal{R} \rightarrow \mathbb{Z}_n$: $$\begin{equation} \begin{split} G():= \{(n,d) \xleftarrow[]{R}\operatorname{RS...
I just read this blog post (Signal - Technology Preview for secure value recovery) by Signal and something is not quite clear to me. In section "Stretching beyond a KDF" they generate a stretched_key on the client side using stretched_key = Argon2(passphrase=user_passphrase, output_length=32). Argon2 needs a salt and o...
I have really googled the entire internet but could not find a clear algorithm for hummingbird-1 cryptography.The problem emerges in the decryption module: What is the initial value of state register $RS_1$, $RS_2$, $RS_3$, $RS_4$. What is the initial value of LFSR? Having known the encryption block cipher $Ek_1$, $Ek...
Below question is a part of my assignment and I was completely clueless about where to start from. So, I am posting it here for the purpose of getting hints/resources to help me get started. $ \ '' $To store $k$ blocks of data/information (say each block is of $b$ bits) in a fault-tolerant way, you may encode the $k$ b...
I am a layperson interested in how cryptography works. I would like to know why you can use shorter keys with elliptic curve Diffie-Hellman (ECDH) than with the discrete log DH key exchange. Both have to be large enough to withstand brute force attacks. So I assume there must be some attacks that you can use to try and...
Actually, I want to know whether there are explicit and formal definitions of the properties which are authenticity, integrity or non-repudiation. It seems that the signatures and MACs can achieve the authenticity, integrity, non-repudiation and unforgeability. However, there is only an unforgeable experiment when we c...
From an answer to the question RSA maximum bytes to encrypt, comparison to AES in terms of security? I learned that there is a theoretical limit of how much data can be safely encrypted with symmetric block ciphers (like AES for example) with the same key. The answer says that for a block size of n bits there are theor...
I recently implemented a very simple SHA256 hashing program in C++, since the SHA256 hash function's block size is 512 bits or 64 bytes, and messages less than that size have to be padded as per the FIPS standard, I implemented a padding function following their exact rules. $(K+1+L) = 448 \mod 512 $ , where $K$ is th...
I'm having some issues finding keys to a Feistel network. The function is unknown but we can have as many plaintexts and their given ciphertexts as we want. I'm trying to generalize the cryptanalysis of this Feistel network for 10 rounds but I can only get the keys for the first round. Do you have any answers or tips? ...
In the context of zk-SNARKS, we are given an arithmetic circuit $C$, public outputs $y_1, \ldots, y_n = \mathbf{y}$ and some public inputs $x_1, \ldots, x_ℓ$. The prover wants to prove knowledge of some extra secret inputs $s_1, \ldots, s_m$ such that if one were to evaluate the circuit $C$ on inputs $x_1…,x_ℓ,s_1,…,s_...
My professor has given me an RSA factoring problem as an assignment. The given modulus is 30 decimal digits long. I have been searching a lot about factoring algorithms. But it has been quite a headache to choose one for my given requirements. Which algorithms give the best performance for 30 decimal digit numbers? No...
The Curve25519 is defined over the prime $2^{255}-19$ with $A = 486662$, so that the curve equation is: $y^2 = x^3 + 486662x^2 + x$ I'm trying to understand, why the parameters are what they are. First of all the Prime. I already have some ideas from the Bernstein Paper, why he chose this prime. Can someone say, if one...
I wrote a toy pseudo-random permutation out of a Feistel network using blake2b. However, looking at the distribution of permutations for small n = 6, it's clearly not uniform unless many rounds are performed. I was under the impression that 3 or 4 rounds were sufficient. What am I missing? The code below works as follo...
I would like to know if this process is feasible under homomorphic encryption, ideally under paillier or any other additive scheme Apply a mask X to obfuscate a message A ie. Am = A (op) X where (op) can be +, x, ... Homomorphically encrypt Am => E(Am) Remove X from E(Am) in order to obtain E(A) without any decryptio...
I have a question from my teacher: "Why can a symmetric encryption algorithm be considered a pseudo-random number generation algorithm? Can anyone explain it to me? And sorry if my english is not good!
I want to compute an identity function over encrypted vector on a third party. For example, F(x) = [a1,a2,..,an] where x is a tag. However, i do not want the third party to fetch over the whole dataset to found the needed Vector. So, is there is any encryption scheme that can do this ?
In ElGamal, how does knowing the secret number used for a signature reveal the signer's private key? How do two signatures using the same secret number reveal the signer's private key? [Hint: p-1 is twice a prime. Even though not all numbers have inverses mod p-1, division can still be performed if one is willing to ac...
I've searched a bit for this question, but I haven't found anything, so I've decided to post it here. Lately I've been reading "Serious Cryptography: A Practical Introduction to Modern Encryption" by Aumasson. In chapter 6 he talks about Hash Functions and as examples, of what can go wrong, he explains the "length exte...
Without going deep into math, is there a way to make sure that non-open source programs like WhatsApp, FaceTime, Zoom, etc. are really using end-to-end encryption instead of just 'regular encryption' (i.e. the server has the cryptographic keys)?
The bilinear ate pairing $e:G_1\times G_2 \rightarrow G_T$ is defined over the following groups: \begin{equation} \begin{aligned} & G_1 = E(\mathbb{F}_p)[r] \cap Ker(\pi_p-[1]), \\ & G_2 = E(\mathbb{F}_{p^k})[r] \cap Ker(\pi_p-[p]), \\ & G_T = \mathbb{F}_{p^k}^*/(\mathbb{F}_{p^k}^*)^r, \end{aligned} \end{equation} wh...
In the standard sponge construction, r bits are consumed in each absorption step, and they get concatenated with c capacity bits. In the first round, the capacity bits are 0, so the r input bits just get zero-extended. Can we instead consume r + c bits in the first round, while maintaining the security properties of a ...
As we know the well-known hash-based commitment is as follows: Prover: given a message $m$, it: (1) picks a fresh random value $r$ (2) computes $H(r||m)=c$. Verifier: given $c$ and the commitment opening: $(r,m)$, checks $H(r||m)=c$ Question: Am I right that in the random oracle model, the above scheme is IND-CPA?
I have a block cipher $E$ that is a permutation of $\{0,1\}^\ell$ for key $K\in\{0,1\}^\ell$. $c = E_{K_1}(m \oplus K_1 \oplus K_2)$ for unknown keys $K_1, K_2$ is given. I need to figure out the strategy to find the message $m$ and its complexity. However, before choosing which attack to find the message, I have no i...
Suppose one have to design handshake protocol using known secure cryptographic algorithm. The designer of implementer can assume that crypotography is secure but how would they ensure protocol itself is secure. so far, I can think of few way to go about it but not sure if I am on the right path intuition wise. 1) Have...
I have a naive question(as non specialist in this field). While reading Weierstrass Curve description,I found that it turns into 2 periodic tori on 2D complex plane. Is is it possible to create fast multiplication attack on this curve by implementing this transformation into tori on complex plain - like 2D clock mult...
I was wondering why it is a problem with using ECB as a block cipher mode
Let's say that I want to save some encrypted data to a database through a Spring Boot microservice. For that I will be using Spring Security Crypto that, as the documentation says it uses AES256 with CBC or GCM and derives the key from a passphrase and salt through PBKDF2. And I want to comment about the possible secur...