instruction
stringlengths
32
27.2k
In ElGamal encryption scheme, in order to achieve IND-CPA security, one must use a group where the DDH problem is assumed to be hard. As this answer suggests, one way to achieve that is the following: When working in $\Bbb Z^*_p$, let $p$ be a safe prime $p=2q+1$, where $q$ is also prime, let $g$ be a generator of the ...
Is it possible using RC4 that for e.g. a 17-bit long plaintext i can get a 17-bit long ciphertext? From my understanding, for this example i need a 17-bit long key to do the XOR operation for encryption. However in the normal algorithm of the RC4 only keylengths of 1 to 256 bytes are permitted. Can i use 3 bytes = 24 ...
I am evaluating a threshold Paillier scheme as described in the paper: Ivan Damgard, Mads Jurik, Jesper Buus Nielsen, "A Generalization of Paillier’s Public-Key System with Applications to Electronic Voting", 2010, Aarhus University, Dept. of Computer Science, BRICS. and have a problem with evaluating ${\lambda_{0,i}^S...
I was reading Can XOR be used in a Merkle Tree instead of concatenation? and had the idea of reversing bits for either X or Y before the XOR combiner, to indicate the order. So instead of H(X ⊕ Y) we could use H(RBIT(X) ⊕ Y) (or H(X ⊕ RBIT(Y))). The cost of both RBIT and XOR instructions are negligible on most modern C...
I have heard about the standard elliptic curves called NIST curves. What are the properties of such cryptographically secure elliptic curves? Are they standardized according to certain protocols? Also, does the attacker get any huge benefits from knowing which curve was used?
In the Groth-Sahai proof system, the authors mention (section 1.2) that one of the reasons behind the inefficiency of previous NIZK proof systems is their reliance on the hidden-bits model. Then, they state that other previous work avoided this by using bilinear pairings (but still used a reduction to CSAT, which is no...
Imagine the case of the one-time pad. It is proved to be secure because the key could be everything. We have no guarantee that this key or that key was the one used while encrypting our data. Wikipedia says: "a ciphertext can be translated into any plaintext of the same length, and all are equally likely.". What about...
Shamir's secret sharing protocol generates a polynomial over a prime field $F_p$. Is it possible to generates it over $Z_n^*$ as well? The reason is that I want to combine a secret shared value in another scheme. For example sign on it with an RSA signature (that is over $Z_n^*$. Thanks.
The big advantage of implicit certificate is their small size and fast processing. This article presents a way how to compute implicit certificates. In the end Alice is able to derive both her public and private key ($\alpha$, $Q_A$). Does this mean that the usage of implicit certificates implies the generation of a...
Say $L_1,L_2$ are contained in $\mathbb Z^r$ with \begin{gather*} \operatorname{rank}(L_1) = \operatorname{rank}(L_2) = r, \\ \gcd(\det(L_1), \det(L_2)) = 1. \end{gather*} How do I prove $\operatorname{det}(L_1 \cap L_2) = \det(L_1)\cdot \det(L_2)$? It's easy to show that $\det(L_1 \cap L_2)$ is divisible by $\det(...
If I have a set of AES ciphertexts, and I know all possible plaintext values. I do not however know which plaintext corresponds to which ciphertext. I also know that the same KEY and IV was used to encrypt. Can I use this information to retrieve the key that was used? Or determine what plaintext a given ciphertext corr...
From Cryptography I on Coursera, Week 2, "Exhaustive Key Search Attacks": Now let's assume that DES is what's called an ideal cipher [...] Of course, DES is not a collection of 2^56 random functions Prof. Boneh doesn't offer any explanation of that, he mentions that in passing like something obvious. But why exact...
On this site there is information that one can know first 3 characters (bytes) of the password without brute force. I know that ARJ in older versions has very simple encryption, i.e. XOR with passwords. I can't understand how it is possible to retrieve those 3 characters. Is compression or realization of these archives...
I have a list of 128bit ciphertexts. I know that the plaintexts were encrypted with AES, 256bit key, ECB mode. Same key was used every time. So I know that if I see ciphertexts that are the same, the corresponding plaintexts are also the same. I know all possible plaintext values. Is it possible to derive the key that ...
I’m porting over some crypto code from Mcrypt (deprecated) to OpenSSL. I’m following a process that a former employee implemented, which is as follows: Create a random salt for use in a PBKDF2 key derivation function. Create a random IV for symmetric AES-CBC encryption. Encrypt the plaintext using the derived key from...
Virtually all "hierarchical" Oblivious RAMs use "cryptographically secure" hash functions to determine the position of an item at a given level; and implicitly assume (as can be evinced from the cost analysis in the respective papers) that these hash functions can be evaluated in $O(1)$ steps. Then it seems to me that,...
I need to derive session key in order to create an application layer secure channel between mobile app and a bluetooth device. My scheme is similar to this scheme that uses a HMAC and counter. Provided that between mobile app and BLE device have already share a same key $K$ (256-bits) through provisioning process, I pl...
I want to be able to sign different types of messages with the same asymmetric key. (For completeness, I am using Ed25519 for my signatures). Why do I want to do this? The same key is used to sign different types of messages. If I didn't use some method to differentiate between message types, an attacker might be able ...
To prove UC-security (universally composable security) of a commitment scheme, we must show that a commitment scheme is extractable and equivocal. That is, we must construct a simulator that is able to extract the commitment of an adversary corrupting the sender (extractability) and construct a simulator that is able ...
I had an idea to use something like public message boards to pass secrets anonymously and non-interactively (similar to TV/Movie Trope : http://tvtropes.org/pmwiki/pmwiki.php/Main/PublicSecretMessage ). So here's the basic construction: Bob encrypts a message for Alice and then posts it with an anonymous address tag. B...
TLS 1.2 defines a number of cipher suites that employ AES-GCM, e.g.: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_ECDH_RSA...
Given is the secret message encrypted with AES-256 in CBC mode 5a04ec902686fb05a6b7a338b6e07760 14c4e6965fc2ed2cd358754494aceffa The first 16 Byte is the initial vector, the second 16 Byte is the ciphertext. The plaintext of the secret message above is (ASCII-encoded) We're blown. Run How can you change the secret me...
Let $H$ be a sponge hash with rate $r$ and capacity $c$, built from a permutation $\pi: \{0, 1\}^n \rightarrow \{0, 1\}^n$, where $n = r + c$. Assuming $r \ge 2c$, how can I find a collision with probability at least $0.5$ in time $O(2^{c/2})$. The colliding messages can be $2r$ bits each. I'm pretty sure I have to us...
I am trying to implement a ChachaPoly1305 encryption with authentication scheme over a network. I am using a counter to derive the nonce as suggested by the rfc. Is it secure to send the nonce over the network along with the ciphertext? If not then why?
As I was looking over the diaspora federation Magic Envelope documentation, I noticed something weird: { "aes_key": "...", "encrypted_magic_envelope": "..." } After some thought, I realized that it uses asymmetric cryptography to send a symmetric key. But other technologies such as TOR or OTR, or even Signal, perf...
There are two discs that we have that have all the same files. However, using a new method for burning the discs, the second disc had modified file dates of 5/30/2018 while the original disc has dates of 2013. The hash value of each CD is identical. I tried to recreate this by making a Microsoft Word document that had...
The question is this... $x^{29}\equiv4\pmod{91}$. Note that $91 = 7*13$. Compute an integer $x$. Since 91 is not prime number, I know I need to use Euler's theorem, not Fermat's. So I get $a^{72} = 1 \bmod{91}$, $a \in Z_{91}^*$ I don't know what to do next...
Let $a,b,c,d$ be selected at random from $Z_q$. Consider the following two distributions $X_1$ and $Y_1$: $X_1={(r_1\cdot a, r_2\cdot b, r_3\cdot c, (r_1+r_2-r_3)\cdot d)}$ where $r_1,r_2,r_3$ selected random from $Z_q$ $Y_1={(u_1,u_2,u_3,u_4)}$ where $u_1,u_2,u_3,u_4$ selected random from $Z_q$ I have two questions: ...
My application is as follows User has a hardware system (with an unique ID) that does not have connectivity but has a keypad for input. To make the hardware operational, the user has to go to central authority and get a code (7-8 digits) in exchange for money The user enters this code through the keypad and the system...
Let a,b,c,d be selected at random from $\mathbb Z^*_q$. We pick values $r_1,r_2,r_3,z_1,z_2,z_3 \gets \mathbb Z^*_q$. Do $u_1,u_2$ that are computed as follows, leak information about values $a,b,c,d$? (a p.p.t addversary can gain information abut values a,b,c,d or these relations with non negligible probabelity؟). $...
I was going through the paper - " Efficient Oblivious Transfer and Extensions for Faster Secure Computation" by Asharov et al. where the authors propose an optimized OT protocol along with a Random-OT (needed for finding multiplication triples) and a Correlated-OT (needed for Yao GC) protocol for specific applications....
This question is similar to Leak Information?, but with new settings. Let $a,b,c,d,e,f$ be selected at random from $\mathbb Z^*_q$. Also, let $r_1,r_2,r_3,z_1,z_2,z_3,p_1,p_2,p_3$ be selected at random from $\mathbb Z^*_q$. is there a P.P.T adversary $A$ such that gets information about values a,b,c,d,e,f or Their rel...
I'm seeking an example of a cipher construction with two variants differing by key/block/state size yet sharing most of the internal structure. Where the larger varient is easier to break than the smaller version. Should be clearly related to a well known cipher so that claiming strength of smaller varient will have me...
I want to show that no 1-private deterministic protocol exists for calculating a sum of $n \geq 3$ parties (within the realms of Perfect rather than Computational Security). I'm having trouble showing that as I have to show that for any protocol, meaning I've no idea what messages are being sent. I thought about showin...
To construct a secure multiparty computation function, we need to use the cyclic group G = Z*p^2 with p is a large prime. However, we are uncertain that DDH holds over this group. Can you show that DDH holds/doesn't hold over the cyclic group Z*p^2? Note that: the order of G is q = p(p-1) and q is multiple of the large...
On DJB's blog he writes: I was one of about 40 people sitting in a meeting where the speaker, NSA's Louis Wingers (one of the Simon and Speck authors), falsely claimed that counter mode is safe for 64-bit blocks, since counter mode doesn't have block collisions. NSA's continuing promotion of these dangerous ciphers in...
I'm working on a project with elliptic curve cryptography (ECC), I'm using the secp256k1 library (the one that's used in bitcoin). My goal is to create the most compact platform-independent representation of an elliptic curve point. Currently my encoding consists of an x-coordinate, 256 bits wide, encoded in a big-endi...
I'm reading up on Authenticated Encryption and can't really wrap my head around how a generally secure MAC and a generally secure encryption scheme can be combined into an insecure AE scheme, such as in MAC-and-Encrypt. I'd be fine with just having links to sources so that I may read up more about it on my own.
Can the birthday bound arising from a block cipher’s block size be worked around by deriving different keys from the master key with a KBKDF using a tweak? For example consider the following scheme, which assumes K is a 256-bit key tweak is an integer we can increment before 2^64 blocks have been encrypted with the cu...
Looking at RFC4253, I came across the notion that the MAC is applied the encoded packet concatenated with a sequence number which acts as a counter. However, I couldn't find any information on how that sequence number is validated. What happens if some messages get dropped or corrupted during transit? Also, when do SSH...
When implementing NTRU related cryptosystem, I came across the problem of deciding whether a randomly generated polynomial is invertible mod $q$. How to solve it?
I want to encrypt a file with a RSA public key. I generate a random 16 bytes key I encrypt the file with AES + the random key (aes.NewCipher() + cipher.NewGCM() + aesgcm.Seal()) I encrypt the random key with RSA (rsa.EncryptOAEP()) Now I can send the encrypted file + encrypted random key to the person who has the pri...
If I use XTS-AES and treat the tweak as a nonce/IV would the result be considered nonce-misuse-resistant? I'm thinking of something like the following AEAD-like scheme: enc(encKey, macKey, plaintext, aad): tweak = ... # 128 bits, generated like an IV or nonce # pad the plaintext to handle shorter-than-16-byte inpu...
Is the following reasoning correct: After ECDH with Curve25519, the resulting shared secret will be an EC public key with a bit strength of 128 bits. This public key would then be hashed (let's say with SHA-2-256) to produce a key of length 256 bits for use in symmetric encryption. This symmetric key would have a bit s...
Wikipedia on its page for Shamir's secret sharing scheme provides a python implementation that applies the idea. This algorithm will generate a (k, n) threshold scheme so for example we could split a secret in 6 parts and we would need only 3 of them to recreate it. But isn't the idea of this scheme to be used by a num...
I've been reading the Wikipedia page on Elliptic-Curve Cryptography and I came across the following. in August 2015, the NSA announced that it plans to replace Suite B with a new cipher suite due to concerns about quantum computing attacks on ECC. Elliptic-Curve Cryptography My question is, how vulnerable is ECC to q...
I have an encrypted file which I want to decrypt but I dont know the last 5 letters (which are probably literally numbers / letters) of the key / password. The Initialization vector is known. Is it possible to bruteforce this within a reasonable amount of time?
I would like to know how to understand which one is private key and public key while seeing them in raw text format?
What is the difference between Elliptic curves and Hyperelliptic curves in terms of security? I am relatively new to cryptography and have heard a great deal more about Elliptic curves than Hyperelliptic curves. Why are Hyperelliptic curves not so prevalent in use?
Since the success of the $p - 1$ algorithm depends on $p - 1$ having "small" prime factors, or at least smaller than a reasonable smoothness bound, and Williams' $p + 1$ method has the same constraint for $p + 1$, it seems to me that it would be extremely unlikely for neither $p - 1$ nor $p + 1$ to be smooth. So if we ...
I am reverse engineering a software that uses blowfish for encryption. The target uses an implementation of blowfish that allows arbitrary positive key length with a key size larger than 56 bytes. I am looking for a way to cut the key size down to 56 bytes so that I can use a standard library to take care of the encryp...
Ive seen in an answer to this question here : https://stackoverflow.com/questions/5889238/why-is-xor-the-default-way-to-combine-hashes/5889288#5889288 that If you XOR a random input with a biased input, the output is random . What is the reason for that ? Is there a formal proof ? thx
I'm studying Shor's quantum factoring algorithm. I was wondering what the largest integer is which they were able to factor with a small quantum computer. Does anybody have an idea about this?
I am trying to understand how best practices on password hashing come about. With password hashing, I mean specifically for the case of storing user passwords in a database in a hashed representation, in order to compromise user passwords if an adversary gets access to the database. I understand that recommendations (e...
Are any lightweight block cipher ciphers adopted in real-time? If yes, what cipher and which application?
We are currently trying to reproduce the implementation of the ROCA-Paper. Therefore we calculated $M'$ from $M$ and $Order_M'$ from $Order_M$ to reduce the search space, but when we hand these values to the coppersmith algorithm as described in Algorithm 1 of the paper, this algorithm does not find any roots.vIt only ...
I'm considering this for bitcoin transaction as it uses ECDSA so if the signer generates two signatures suppose s1 and s2. where: I get it that any attacker who have s1 and s2 can recover its private key x. But the question is can the signer use a different private key x1 for instance to generate s2..in such a way eve...
I was trying to find out a way of speeding up a given symmetrical algorithm the reason and programing launguage in this case are unimportant. I have came up with the following thing: Divide data into n parts Run n threads Each thread encrypts its part of the data Take the output of all of the threads and concatenate (...
I am trying to understand various attacks on RSA and I believe that the only way to fully understand an algorithm is to implement it. I am trying to implement the code in this paper: Dan Boneh and Gleen Durfee, Cryptanalysis of RSA with private key $d$ less than $N^{0.292}$, in proceedings of Eurocrypt 1999. But after ...
To convey how an adversary can bias the coin, most often a simple commitment-based two party coin-tossing protocol is given, as in [1]: Alice sends Bob the commitment $c = commit(x)$ Bob sends Alice the bit $y$. Alice sends Bob $decommit(x)$, Bob verifies Alice actually chose $x$. Both compute result $r = x \oplus y$ ...
I need a function $F$ that compresses an arbitrary (unbounded from above) number of bytes into a single byte. The goal is creating a single unpredictable byte from an arbitrary bitstring. Here are the requirements: Pseudo-randomness: the resulting byte should look uncorrelated and unbiased in comparison with the ...
Does an anonymous signature hide the sender's identity from the receiver, or simply just hide the sender's identity from an eavesdropper or third party?
Why in Chaum-van Antwerpen scheme, the probability that a cheating signer disavow a valid signature is $1/q$ ? From Handbook of Applied Cryptography at page 477: Suppose that $s$ is indeed A’s signature for $m$, i.e., $s = m^a\ mod\ p$. Suppose that B follows Protocol 11.125 correctly, but that A does not. Then the ...
A compression function converts a fixed-sized input into a smaller fixed size output. Suppose that one has a large collection of input-output pairs for an unknown compression function. We can assume the following: That the pairs include some collisions. We don't know the function, we did not yet do any cryptanalysis...
What factor is preventing cryptography based on chaos theory from being of practical use? Is it because of the unpredictability of the system?
Can somebody analyze this scheme and explain how (in?)secure it is? Assume that: The keys were initially securely exchanged All keys are truly random In this scheme: The key size is of length 2s, the plaintext is of length s, and the total message size is 3s The first 2s contains a randomly-generated key to be used ...
Suppose a set of $u_1, u_2, ..., u_N$ users each knows an associated secret $x_1, x_2, ..., x_N$ they do not wish to reveal. We have a public $f(x)$ such as the discrete logarithm $f(x)=g^x\,\mathrm{mod}\,p$, which produces a set of publicly available values $v = \lbrace f(x_1), f(x_2), ..., f(x_N) \rbrace$ used for v...
I came across the following protocol for a "Zero-Knowledge Proof of a Discrete Logarithm" in Bruce Schneier's Applied Cryptography (second edition) book. I simply cannot prove to myself that this algorithm is correct, and have been unable to find an explanation of the protocol online anywhere, only finding the original...
I recently saw a claim that BearSSL has a bignum-free implementation of RSA. What does this mean? I don't see how one could implement RSA without bignum arithmetic.
Paillier's scheme assume has message and ciphertext space equal to $\mathbb{Z}_N$ with $N=pq$, that is $N$ is the product of two different primes. Is there a way to generalise this for $N$ that is the product of many ($>2$) different primes?
I want to encrypt 2 numbers using a public key and have the reader know the correlation between those 2 numbers. I can also share the public key. Example: 22 => 785F3EC7EB32F30B90CD0FCF3657D388B5FF4297F2F9716FF66E9B69C05DDD09 95 => AD48FF99415B2F007DC35B7EB553FD1EB35EBFA2F2F308ACD9488EEB86F71FA8 AD48FF99415B2F007DC35B...
Is it possible to establish a shared secret between two devices if the devices have no prior knowledge and no secondary secure channel to exchange information? Assume a Dolev–Yao model for the communication channel. After searching for an answer I came across this but they use a secure secondary channel to exchange in...
Malformed PKCS8 Key Algorithm Identifiers for Ed25519, Ed448, X25519 and X448 for use in the Internet X.509 Public Key Infrastructure § 10.3. Examples of Ed25519 Private Key states the following: An example of the same Ed25519 private key encoded with an attribute and the public key: -----BEGIN PRIVATE KEY----- MHICAQ...
Just wondered: I currently have TrueCrypt on my system (I am aware that there are various doubts about its penetrability, and that it is no longer under development). TC "volumes" obviously consist of bytes. It seems to me that decryption must always be reliant on being able to recognise that you've managed to reach t...
If I have a probability which is > negl(n), i.e., non-negligible, will be this probability raised to the power of n also non-negligible?
How can I calculate the polynomial and state of a LFSR given 2n (or more) non-consecutive keystream bits? It is known to be n bit. If they were consecutive, I could use the Berlekamp–Massey algorithm. Simple example: n is 7 and I know the keystream is 0...0...1...0...1...0...1...1...1...0...1...0...1...0 where the . i...
In a web application, I need to send in a webpage form an id (my plain text) and then retrieve it back when the user submit the form. But i need the id to be protected, so malicous users can't send an incorrect id to the server. I was thinking to send the id and the cypher text to the client, and when i retrieve them s...
I am basically trying to perform euclidean distance calculation in the encrypted domain (Paillier encryption). Using the homomorphic properties of Paillier, the squared euclidean distance formula can be written as (paper): $\newcommand{\opn}{\operatorname}$ $$\underbrace{\opn{Enc}\left(\sum^d_{i=1}p_i^2\right)}_{\text{...
I have the following code in C# using System.Web.Security; TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider(); tdes.Key = keyArray; ICryptoTransform cTransform = tdes.CreateEncryptor(); byte[] resultArray = cTransform.TransformFinalBlock(plainTextArray, 0, toEncryptA...
I'm looking for a scheme that a prover can commit to a value $d$, via a commitment $C$, while also provide ZK-proof that this value $d$, together with a public key $e$, are RSA pairs. (i.e private and public key respectively). Thanks.
I have already read the following documents: Specification of the 3GPP Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. Document 1: 128-EEA3 and 128-EIA3 Specification Specification of the 3GPP Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. Document 2: ZUC Specification Specification of the...
We know a standard way (cf. RFC 6979) to derandomize ECDSA signatures, i.e., to generate ECDSA signature without an external source of randomness. Is there any similar standard way, or academic-proof way, to derandomize RSA-OAEP encryption?
This seemed like an option if the hash is unpredictable. It could be the hash of the message or the hash of the message + some common secret (apart from the key). The only circumstance in which the hash would be predictable is when the message is the same. In that case, looking at the same nonce/hash wouldn't provide ...
A One Time Pad (OTP) sounds perfectly secure if we are to believe Wikipedia. But on the surface it also sounds ridiculously impractical - how does one securely distribute the OTP? Idea: why not have someone distribute it for you in plain sight of everyone? Presuming I can keep the details secret (as I would with an enc...
I have always found it weird when in a crypto discussion people stressed the importance of making algorithms runtime-deterministic, to the point of avoiding any compiler optimisations. To me, it seems that it's from the start futile to try and completely avoid side-channel information leaking out. Even if an algorithm ...
I'm working with cipher Kalyna. Kalyna — like AES — has MDS tables in its MixColumns step. But Kalyna's documentation doesn't list these MDS tables. Could you give me a hint where to find proper documentation or the particular MDS tables?
Im in my final year of PhD in computer vision and my supervisor has given me a task that I am not very familiar with. So I am teaching myself homomorphic encryption everyday. This question is mostly about clarifying my understandings as well. He wants me to setup an encrypted dataset for an internal competition among h...
I'm reading up on how post-quantum cryptography works, and stumbled upon the notion of discrete Gaussian sampling. However, I can't understand where it fits in the greater picture - currently it feels to me like a solution to a problem nobody put out. Where exactly in a SVP problem (or any other commonly used lattice p...
I was going through some lecture notes where it said that if we have a 2-party protocol that requires both the parties to generate random integers during the course of protocol, then if we migrate the protocol and tweak it to make it work in Malicious setting, then we need to ensure that both parties instantiate random...
In the Tronix contract code (a large ICO listed on many exchanges) lies this modifier which is used for all token transfers : modifier validAddress { assert(0x0 != msg.sender); _; } The code is written by serious professionals : not the kind of Ponzi scheme coder leaving useless code that cost money to everyon...
Quoting The Transport Layer Security (TLS) Protocol Version 1.3: ECDSA algorithms Indicates a signature algorithm using ECDSA [ECDSA], the corresponding curve as defined in ANSI X9.62 [X962] and FIPS 186-4 [DSS], and the corresponding hash algorithm as defined in [SHS]. The signature is represented as a DER-encoded ...
I want to factorize the modulus $n = pq$ knowing that $p$ and $q$ are not random, but constructed based on integer numbers $a$ and $b$ as following ($a$ and $b$ are not given): $$p = a^2 + b^2, \qquad q = 2ab + 1$$ I'm looking for an efficient algorithm for factorizing such modulus. For example: p = 3905103830521375109...
I have learned that SHA-1 and MD5 are one way hash functions, which means that it is not possible to obtain the original value by performing the reverse calculation. There however some online websites that 'decrypt' the hash function to the original value. I tried decrypting in the Linux command line but it seems that ...
I have gigabites of files, which I have to backup. I have some servers for storing this files. But these servers are untrusted. So I need to encrypt files, then backup files. When my PC breaks down, I will dowload files from unstrucsted servers and restore them. So, basically, I think about AES-256. Is it OK for me, ...
I read this post Difference between MAC and Authenticated Encryption? but I'm still confusing the difference. Seems like MAC can guarantee both integrity and authenticity (tbh I dont know the difference of integrity and authenticity). What is the difference of MAC and AE? Is AE using MAC?
I guess this should be well known (or trivially desperate), but I couldn't find any reference. I have a small number (say $k=15$) of messages $m_i$ ,$i=1\cdots k$ (they are fixed length and short, but I think this should be irrelevant). I'd like to find some hash function such that $h(m_i)=h(m_j)$ (deliberate universal...
I'm trying to create a strong key for encrypting some data using AES-256 for fun and practice. For my own practice, I want to make this as strong as possible, I don't care how long it takes to complete. I got some advice from 1Password white paper and therefore I want to use 2 secret keys. The master password and a...
I am studying my Cryptology exam and one question I got stuck below; Recall the Diffie-Hellman key establishment protocol. Alice runs this protocol over the Internet to communicate with Bob. Assume that the agreed key after running the protocol is k = g^ab (mod p). Alice then computes SHA256(k) and uses this as ...
I have the following problem which i am trying to find a reasonable protocol to solve it. This is a simplified version of the problem. Alice has a set of values $\{a_1,a_2,...,a_n\}$. Bob has a set of values $\{b_1,b_2,...,b_n\}$. Alice wants to learn which values Bob has that are equal to her values but without Bob le...
I have just started learning AES algorithm. S-Box is using Galois Fields $\text{GF}(2^8)$ math behind its computation and Shiftrows & MixColumn steps also doing some math at both encryption and decryption levels. Do these calculations ensure any security? What is the actual use of this math? What is the use of these st...