instruction
stringlengths
32
27.2k
It seems there would be some collisions in what the different symbols map to, resulting in loss of information. For example, say we use the English alphabet, multiply by 2 and take the congruence mod 26. In this case, A and N will both map to the same ciphertext letter, regardless of what the shift value is. Same wi...
I understand that messages are encrypted using a symmetric algorithm such as AES, and the symmetric key is encrypted using an asymmetric algorithm such as RSA. In my particular implementation, the private key is encrypted using a key derived from a password. Because this is a zero knowledge system, all encryption shoul...
If I have a random too way overdeterminate systems of homogenous non-linear equations and few variables, What's the better way too find a solution, finding a the Groener Basis or just using linearization ? Thanks
I was reading this (chapter 3.1) paper, and the author proposed this method to calculate the MEDP on 2-round AES: I cannot fully understand what he is doing but it seems like it iterating over all possible intermediate differentials that lead to (a,b). Is that really the case?
I've just released a python keyring companion package to encrypt the passwords in a file, available here. Description The project is mainly targeted to provide a sufficiently secure storage for plain text passwords (keyring) in a simple portable file, where the default keyring storage implementation of a desktop enviro...
If I can assume that the output of a block cipher like AES is a PRandom distribution, can I assume that Benford's law will hold if I partition that output into integer data?
It is a general question, but I'm using SHA-2. My reason is to take a short pin or string and to generate a longer hash of that pin to locally generate a local key for personal use to be used to generate other passwords based on a domain and user name. Eg. Site password = Hmac( Hmac(pin,pin), Domain + username) Or Si...
In the answer to this question, a message counter is used to protect against replay attacks. Could a key ratchet be used instead? The basic idea is that with every message sent, the symmetric encryption key is replaced with a hash of itself. The receiver can then reject any messages that use previous keys. The benefit ...
I'm trying to figure out a simple way to verify ownership over a short period of time (typically 8 - 24h), to be used in a mobile application. One of the ideas I came up with is to hash the following concatenated sequence: user pincode + user unique ID + payload where pincode is a 6 digit passcode, provided by us...
So reading through the salsa20 implementation for the crypto library for go-lang, I noticed something interesting. Specifically this portion. It looks like something I would expect from someone learning programming. They took 80 lines of code of what could have been easily done using an array and iteration. Looking up ...
If I understand correctly, a HMAC is basically a keyed hash. Just a general yes or no question but is a keyed hash (HMAC) basically a rainbow table resistant hash? This is because you can't decrypt the 'encryption' with the key, only encrypt. So you could only make a rainbow table with the key. If so, would it be a go...
I recently did an experiment using MitM to gain account information (username and password) while accessing websites. I used two PCs in the scenario; one as the target, running Internet Explorer, and one as the attacker, running ettercap. One attempt (pretending to be steamcommunity.com) yielded information; the target...
I want to implement an identity based encryption scheme using Koblitz curves as scalar multiplication is faster due to Frobrenius endomorphism. How can I tell if a curve over $\operatorname{GF}(2^m)$ is pairing friendly or not? I have found this paper called "Elliptic Curves Suitable for Pairing Based Cryptography" but...
This is regarding the published paper on the DROWN attack (https://drownattack.com/drown-attack-original-report.pdf) It was mentioned in the paper that for TLS, RSA PKCS#1 v1.5 is used to encapsulate the 48-byte premaster secret exchanged during the handshake. Does means that a random padding string PS is prepended to...
I am aware that one-way functions (OWF's) are the core of many of the primitives in symmetric crypto, in the sense that many cryptographic primitives in the private-key setting can be constructed from these. On the other hand, in Multivariate Public-key Cryptography the goal is to find trapdoor functions of the form $F...
What are the methods for generating pseudo-random numbers in software? I have seen methods where people use SHA implementations from openssl to hash a random message as source of entropy, or using AES or Keccak. But I have done some experiments and found them quite slow. They take around more than 3 clock cycles in an ...
As RFC 4634 describes in section 6.1, SHA-256 is initialized using eight 32-bit words. These were obtained by taking the first 32 bits of the fractional parts of the square roots of the first eight prime numbers: H(0)0 = 6a09e667 H(0)1 = bb67ae8 H(0)2 = 3c6ef372 H(0)3 = a54ff53a H(0)4 = 510e527f H(0)5 = 9...
I recently stumbled across Thomas Pornin's old answer about deterministic (EC)DSA again. There he states the following: Note that $k$ must be generated uniformly in the $[1, q-1]$ range (where $q$ is the subgroup order). Any information on $k$, even partial (such as: values between $1$ and $2^{160}-q$ are twice as...
Say I have a large set (i.e. unordered collection of unique elements) of documents, each of which is around 4KB in size. I'd like to sign that set with a private key so that anyone can verify the signature with the corresponding public key. Additionally, I'd like to be able to modify the set by adding or removing elem...
I using a microcontroller which only support AES-ECB encryption i.e. no decryption-mode, CBC, GCM or similar modes. However, I'm wondering if it's possible to implement AES-CTR or similar on top of AES-ECB? I'm grateful for help, tips, similar implementations etc. Cheers
I am facing this question about RSA signatures and I understand that a hash encode is secure, but I was asked this: Given the scheme based on RSA assumption. Consider the RSA function f with some modulus $N$ of 1024 bits and an exponent $e = 3$, satisfying $\operatorname{gcd}(3, Φ(N)) = 1$; let $d$ be the inverse of $...
In the context of Fully Homomorphic Encryption, what is the difference between Bootstrapping and Relinearization? Between two of them, which is the more expensive (computationally) and why?
My first contact with cryptography was programming Rolling Code keychains. Since then I've been reading about this topic. But is hard to me understand the various types, uses, concerns of cryptography world. Is Rolling Code a type of Authenticated Message? Or is it a Cryptographic method of dispersion? Is it Block or ...
There is a plaintext message $M$, and a key $K \:\stackrel{{\scriptscriptstyle \hspace{0.2em}\$}} {\leftarrow}\ \{0,1\}^{128}$ which we will use for AES, we can extract a ciphertext $C \gets \mathrm{CBC}[\mathrm{AES}_K](0^n,M)$, i.e., CBC mode encryption under IV $0^n$ of the message. The master keys $L1,L2$ are share...
I am thinking about Rijndael implementation in order to store tokens (cannot be hashed) - one token for one user. And finally I get stuck with key/IV generation problem :( The questions are: 1) Is there some difference between the solutions - which is more secure? 2) Do presented solutions have some weak side? 3) Sup...
I am an application developer, implementing client-side crypto to protect data that is then transmitted to be stored on a server. The application uses AES with CBC mode with a resulting encrypt-then-mac HMAC to authenticate. The process looks something like this: key_material = kdf(password, salt) mac_key = first_half(...
Actual Question below. Consider the use of double encryption applied to the AES algorithm with two 128-bit keys. How much storage and computation would be required to execute a meet-in-the-middle attack?
I am trying to run the LIL statistical testing tool that can be found here http://webpages.uncc.edu/yonwang/liltest/ When I execute the jar with: java -jar LILtest.jar -s -p -a -b binaryfile.dat -l 0 The program says it has written data to lilCurve.pdf and lilSnap.pdf but no such files exist anywhere on my computer i...
What I'm trying to do is encrypt 16 byte packets of data using the 128 bit AES-CBC encryption provided by SubtleCrypto.encrypt() in a web browser. What I expected to find was 16 bytes of encrypted data for 16 bytes of input. What I actually find is 32 bytes of encrypted data for 16 bytes of input. Specifically, 15 byte...
I have seen a couple software implementations of the Advanced Encryption Standard. They are pretty much straight forward, i.e. they are implemented exactly the same way as the AES is described. This makes an implementation of AES very easy to achieve. Nevertheless I was wondering if there are other ways of implementing...
Camellia Design and Analysis document refers to a paper: [24] M. Matsui, "Differential Path Search of the Block Cipher E2," (in Japanese), Technical report of IE- ICE, ISEC99-19, pp.57-64, The Institute of Electronics, Information and Communication Engineers, 1999 Does someone know the algorithm presented in the ...
Is there any method of converting a discrete logarithm problem to an equation system, such that the solution of the system corresponds to the solution of that instance of DLP?
So i am a real beginner . And I use AES(TWOFISH(Serpent))) for my veracrypt file . So I asked myselfe a Question : When a Cascade is made the Key is split in parts for each algorythm . So if We have AES(Twofish)) with the key : Test-password123 The "Test-pass" Part would be used for AES and the "word123" part gor tw...
I know that both MD5 and SHA1 are considered cryptographically broken now that collisions can reasonably be computed. The question I have is: What is the likelihood that a collision could be found for data hat is hashed by each independently? For instance, would it be reasonably be possible to do something such as … [H...
I have a server S to which a client system can establish connections using predefined roles R1, R2, ...Rn. For mutal exchange of data and for authentication with GCM/GMAC a set of symmetric AES-128 keys are used for each Role. The symmetric keys are agreed between the parties by use of elliptic curve Diffie Helmann key...
512 bit X has been hashed using SHA256(X) = Y Given Y and half of X (the first 256bits) to attacker, how hard is to reveal whole X Can SHA256 or any real world function be cracked to allow this problem to be solved faster Is this problem known in cryptography? and under what name? Tried google for concatenated preima...
I have 2 messages which have been encrypted using the same pad. I know that if i xor these 2 messages together the key falls out. I am confused in how to figure out what the 2 messages are from the combined xor of the two. How do I go about decoding the 2 messages? I am aware of crib dragging, but I don't know how to f...
In the secure Two-party computation problem with parties $P1$ and $P2$, let us assume the following construction: $P1$ knows input $a$ and does the following: $a = a1 \oplus a2$ and keeps with itself $a1$ while giving $a2$ to $P2$. Similarly, $P2$ knows input $b$ and does the following: $b = b1 \oplus b2$ and keeps wit...
I know that the security of Diffie Hellman Key Exchange depends upon the discrete logarithm problem, but is it possible to extract the private keys if we know more? Say that in addition to modulus ($q$), primitive root ($g$) and public keys of Alice and Bob ($g^a$ and $g^b$ respectively), if we knew the calculated key ...
I've come across something out of Philips Research called HIMMO Key Pre-Distribution Scheme (https://eprint.iacr.org/2016/410.pdf and https://www.ietf.org/proceedings/96/slides/slides-96-cfrg-2.pdf) that seems to solve an IoT need I have. It also seems too good to be true. It appears I can get rid of the hardware and...
I've got this neural network running like a champ on my machine. The data is concatenated works of shakespeare in a plaintext file. RNN trains on the data, then gives you a 'sample', aka it tries to freestyle its own shakespeare based on what it has learned. So now I've encrypted the dataset with a standard mid ROT c...
I read a representative paper about partially blind signature. Abe and Okamoto - "provably secure partially blind signature". They suggested a partially blind signature scheme based on Schnorr signature. In the security proof section, they proved that the scheme is secure against adaptive chosen message attack using I...
This question is a generalization of this old, unanswered question. Suppose we're given a strong PRP $E:\mathcal K\times\mathcal M\to\mathcal C,(K,M)\mapsto C=E(K,M)$. Suppose further we pick a constant parameter $S\in\mathcal M$. Is $F_S:\mathcal K\to \mathcal C, X\mapsto E(X,S)$ a secure one-way-function? If the abo...
In order to implement a plaintext password file safe (keyring), while adhering to best Crypto practices today, I came up with this scheme: A user's master password is hashed with Argon2 (\$argon2id\$v=19\$m=65536,t=15,p=2) Hash is used as key for encrypting auxiliary plain text passwords with AES 128 GCM The public pl...
In a 2006 paper Bellare showed that HMAC remains secure even if collision resistance for MD5/SHA-1 is broken as long they are still PRFs. The Wikipedia article on cryptographic hash functions mentions that In practice, collision resistance is insufficient for many practical uses. In addition to collision resistance,...
Why is SRP considered to be resistant to MITM attack? Documentation says A man-in-the-middle attack, which requires an attacker to fool both sides of a legitimate conversation, cannot be carried out by an attacker who does not know Carol's password. An attacker who does not know x cannot fool Steve into thinkin...
Let M be the message that has been padded for use into the SHA3 (standardized Keccak) hash function. Is there a way, like it's the case for SHA1, to know the total length of the message M just by looking at the last block? For example, in SHA1, I can give you the last block (that was padded) and you can extract the tot...
Let's assume that attacker knows the verifier so now the attacker can commit a Man-in-the-Middle (MitM) attack: Client sends A to server; MitM takes it and sends B to client. As the MitM knows the verifier it is also possible compute the secret key. So every message from client encrypted by that key is not safe. How ...
I know there are many AES MPC implementations, but in general, is it possible to restore the raw AES key if we have access to all of the nodes? If we take, for example, VIFF and its "shares". Is it difficult?
Background [Updated] Consider a situation where a website was created over a decade ago and user account password storage was done by storing SHA1(password) into the database. It would be great to upgrade the system to use Pbkdf2(salt, password) with a large work factor of say 50000 for the password hashing using HM...
I understand that this might be more a process question: Given a U2F device which supports signatures using ECDSA public/private key pairs, is there a way to use the signing function of such a device to generate an encryption key? I would like to understand if U2F could be used to improve the following scenario: I use...
If I securely (manually) give/put two computer (Alice and Bob) a secret key, they can securely communicate to each other (?) Alice encrypt a message (maxlength = secret key length) and send it to Bob, with also anther new secret key encrypted with the old one (that was also used for encrypting the message) Bob can deco...
I'm trying to understand "Option 2: Using a Client-Side Master Key" from https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html#client-side-encryption-client-side-master-key-intro. Basically, it seems that the one-use encryption key is generated, and used to encrypt the file, and then the key is...
Why in BCNC key-exchange protocol (page 8), Bob instead of: $K_B \leftarrow \lfloor \bar v \rceil_{2q,2} \in \{ 0, 1\}^n$ do this instead: $K_B \leftarrow rec(2bs', c) \in \{0, 1\}^n$. or they are the same thing ... am I missing something? I don't understand the purpose of modular rounding function as defined by Peiker...
A signature scheme has three algorithms (Kgen, Sign, Ver), Kgen is necessarily randomized and Ver is ususally determinstic. Show that it is without loss of generality to restrict the signing algorithm Sign to be deterministic. That is, show that given any secure signature scheme (Kgen, Sign, Ver) with a randomized sign...
I got a ECIES encryption result and a publickey,the publickey after decoding to ASN.1, I obtained the following: SEQUENCE { SEQUENCE { OBJECTIDENTIFIER 1.2.840.10045.2.1 (ecPublicKey) SEQUENCE { INTEGER 0x01 (1 decimal) SEQUENCE { OBJECTIDENTIFIER 1.2.840.10045.1.1 ...
I'm just studying the purpose of BN-Curves and I am interested in a setting for a 256-Bit security. So could you tell or link me to any information about this? are BN-Curves efficient for this security issue? which embedding degree is recommended? what about ARM-Cortex M0-4 µC? I'm searching for days now to get any...
My original problem: I want Alice to be able to promise that at some point in the future she will upload a statement to an address in a hash-table, which is computable/predictable from everyone without knowing her secret key (to be able to look at that address, if the statement is already there). However, the statement...
In TLS, both client and server send nonces int heir hello messages. How the server identify whether the client hello is replayed or not? does the server maintain cach of previous nonce? for how long? can you clarify the mechanism to me as I do not find these details in the standard documentation.
My question mainly stems from the following observation of properties of cryptographic hash function: Preimage resistance: Given $H(x)$, it's hard to find $x$ Second preimage resistance: Given $m1$, it's hard to find another $m2$ such that $H(m1)=H(m2)$ Collision resistance: It's hard to find any two distinct message...
I think I have a decent intuitive understanding of what the $\delta$ parameter means in $(\varepsilon,\delta)$-differential privacy: I can explain it to a non-specialist in terms of "what are the chances that something goes horribly wrong". Even if I understand (and can work with) the formal definition, I'm not sure I ...
I read the following in a paper about group signatures called "A Practical and Provably Secure Coalition-Resistant Group Signature Scheme". In the sign part of paper the following expressions can be found: $$d_2 = T_2^{r_1}/g^{r_3} \bmod N$$ $$s_1 = r_1-c(e_i-2^{\gamma_1})$$ $$s_3 = r_3-c*e_i*w$$ and in the verify par...
I've been tasked with defining a list of cipher suites to use. The requirements for the cipher suites are the following: Symmetric Algorithm: AES-256 Key Exchange: ECDH P-384, DH 3072-bit, RSA 3072-bit Key Authentication: ECDSA P-384, RSA 3072-bit Hash Algorithm: SHA-384 Here is the list I've come up with (in...
Given two different safe primes $p_1$, $p_2$ we construct the subgroups $G_1$ of prime order $q_1 = \frac{p_1-1}{2}$ and $G_2$ of prime order $q_2 = \frac{p_2-1}{2}$. Let $g_1$ be a generator of $G_1$ and $g_2$ be a generator of $G_2$. We assume that the discrete logorithm is hard in both groups. Alice randomly selects...
I have started my MSc dissertation on anonymity (how to beat traffic analysis techniques) and i'm looking for practical ideas. What tactics and software technology would be that guarantees private and confidential access to the web? Any help will be much appreciated.
Can text and media content be encrypted using the same encryption algorithm ? and if there's an algorithm that can do that, how does it work ?
Just curious if this "export" restriction applies to general travel outside the U.S. with Oracle's JCE Unlimited Strength installed on a laptop. pertinent text from Oracle's "Java SE BCL License Agreement" EXPORT REGULATIONS. You agree that U.S. export control laws and other applicable export and import laws govern y...
I'm not sure, if this is a question really about cryptography and whether it would better fit to Stack Overflow, but I try... In my xml example, some elements are encrypted with xml-enc. I got this xml from a customer and changed attribute names and crypto keys to stay discreet. There is an Entries Element, consisting ...
I am trying to solve the Diffie-Hellman problem modulo a composite number $N$, which I have factored. In this question, it was answered how to deal with such a situation. But how can I solve the problem if I don't know $g$? $$y = g^x \pmod{N}$$ The exact numbers are: $$N=442101689710611$$ $$g^a = 421049228295820 \pmod...
I always meet the leftover hash lemma when I read some papers.But I only know the defination of universal hash and the leftover hash lemma.How to understand them and how to use them?
GAC consists of absolute indicator and sum of square indicator. Please help me in understanding what are these indicators? How to calculate GAC for Sbox? What is confusion Coefficient Variance of an Sbox?
I was reading about the construction of IO using MIFE and compact FE . I am just curious to know what are the consequences if there exists an IO.
Let's assume we use DH with a cyclic group modulo p. As I know safe length of p must be at least 1024 bits. That means that generated key could be very big. But what do next? What kind of symmetric-key algorithm to use? DES requires key length to be exactly 56 bits. AES - 128/192/256 bits. We have no guarantee that key...
I have read that AES GCM uses AES CTR for encryption and GMAC for authentication. If that is correct, what is the relationship between the IV used for AES GCM and the IV used for AES CTR? TO put the question another way, can I encrypt using GCM and then decrypt using AES CTR (ignoring authentication) and if so, what's ...
Suppose we have a trust party $P_A$ that can be used to manage a data transfer from parties $P_I = P_i, \ldots, P_{i+n}$ which do not trust each others to a party $P_R$ which is also not trusted. However, parties $P_I$ would like to send some obfuscated values to $P_R$ without going to through $P_A$ and would like $P_R...
I've been studying functional encryption. I recently read that a multi-input functional encryption (MIFE) implies indistinguishability obfuscation (IO). Can someone please brief me: what is indistinguishability obfuscation (IO), and are its implications for crypto?
My sincerest apologies for having to repost this but I can't edit or post a comment from the previous one I asked with a guest account. I'm learning about the Diffie-Hellman and ElGamal ciphers, but I'm really struggling trying to decipher the exercise my lecturer has given me. The information I've been given (all in d...
I'm confused about the definitions of black-box zero knowledge and non-black-box zero knowledge. I have searched and found explanations but still a bit confused about it. From the context, their definition (with auxiliary input) of black-box zero knowledge proof system between the prover $P$ and (malicious) verifier $V...
The original HMAC paper based the security proof on the fact that the compression function of the Hash is already a MAC (appropriately keyed). How does this relate to common assumptions for compressions functions? Is it required to show security of the Hash function? Conversely, can a good hash function have a weak com...
It was mentioned in an answer to a different question that it's possible that, any day now, someone might figure out a way to turn those into a preimage attack, which would compromise the security of HMAC-MD5. Reminder: $\text{HMAC-MD5}_K(x) = \text{MD5}(K \oplus opad \mathbin\| \text{MD5}(K \oplus ipad \mathbin\...
This is how ransomware can work as far as I understand: Most ransomware works with symmetric encryption on individual files. For each file the script generates a new key. A list is then generated containing all the file-paths with their respective keys. This list is then asymmetrically encrypted. The victim has to pay ...
I am building a simple one time pad system using a low-power microcontroller to XOR a stored key with an input string, and vice versa. Due to several internal factors, it's very preferable for the system to use only the 95 "printable ascii" chars instead of full 256-values bytes to represent pad keys. Since the input i...
Hi illuminated crowd of cryptography. I am currently working on a login token for a web API. The feature for the token is to be a mostly featureless identifier. The only property I need is, that I should be able to distinguish it from a random number before I query my database if it is actually valid. I also don't wa...
Basically, I want to encrypt some strings in my app, strings like access tokens or passwords. I planned on using AES, and mainly saw a good library at https://github.com/tozny/java-aes-crypto. Note that this is used only for protection of sensitive data while the app's purpose is other. As I said, simply add a bit of e...
So this one is a tinfoil-hat question. It is 99 % theoretical. So we assume that I am someone who stores highly confidential information. Maybe super secret stolen goverment stuff. And I get caught by the authorities. The information is store in an AES256-XTS: Sha512 volume. The attacker has unlimited money and power...
I need help during implementation of C# interface (.NET framework) for encryption of messages which are sent to/from HBCI (Homebanking Computer Interface) server according to RDH-10 standard. Predispositions for the encryption process are as follows: Signature algorithm: RSA Operation mode with signature: RSASSA-PSS [...
Are there cryptographic scheme where encryption is sequential and take a long time (in a way that it can be quantified) while instead decryption with a secret key takes very short time? Some sort of reverse time-lock encryption where it takes a long time to decrypt rather than encrypt? (Either with symmetric or asymmet...
I know there are recommendations of elliptic curve parameters (such as NIST P-xxx). Are there recommendations of DSA (or DLP such as Schnorr signature) or RSA parameters? If not, why?
Given Paillier's Cryptosystem. What size in bits would be considered secure for now and the near future? I know it differs for every cryptosystem. For reference, the most important part of my implementation of the key generation is given below. I would wish like to increase the performance of my app but remain secure ...
I'm signing mails with the RSASSA-PSS (p1v2.1) certificate. When I click Details, it shows "Signature Algorithm: RSASSA-PSS". openssl x509 -text shows Signature Algorithm: rsassaPss Hash Algorithm: sha256 Mask Algorithm: mgf1 with sha256 certutil -dump shows: 1.2.840.113549.1.1.10 RSASSA-PSS Now, whem I...
When encrypting a file symmetrically with gpg -c file.txt, when and how does it compress the file? I was working on a cryptopals challenge and wanted to test out my AES ECB detection function. I made a simple text-file that was around 1KB and encrypted it through the python package PyCrypto, the output file was also 1...
I have a DS and a csca certificate that contain special OIDs from the BSI. They are: 0.4.0.127.0.7.4.1.1 ECDSA with SHA1 (BSI) 0.4.0.127.0.7.4.1.2 ECDSA with SHA224 (BSI) 0.4.0.127.0.7.4.1.3 ECDSA with SHA256 (BSI) 0.4.0.127.0.7.4.1.4 ECDSA with SHA384 (BSI) 0.4.0.127.0.7.4.1.5 ECDSA with SHA512 (BSI) openssl does not...
Why are we still using the default of AES-128 when password protecting a Microsoft Word document. My answer is and always has been - because its good enough and MS don't recommend changing to AES-256. However, that has got me thinking: if a user password protects their word document (.doc, .docx) with a 10 character pa...
An encryption scheme is based on the DLP: $c = a^x mod ~b$, where $x$ is hard to find. How hard is it to find $a$, given all the other values, $c$, $x$ and $b$? Would this make the problem easy to solve? $c^{1/x} = (a^x)^{1/x} mod ~b$ An example would be great to better understand.
I am given the following Merkle–Damgård construction: Let $f \colon (\{0,1\}^n \times \{0,1\}^b) \to \{0,1\}^n$ be a compression function. Fix a string $\mathrm{IV}\in\{0,1\}^n$, and for $M \in (\{0,1\}^b)^+$ define $H(\mathrm{IV},M)$ as follows. Parse $M=M_1 || \cdots || M_\ell$, let $h_0 = \mathrm{IV}$, and let $h_i ...
How would a timing attack against AES be carried out in a real situation? You could not guess the key from the processor's power usage after the plaintext is encrypted, right? And what would you need for this scenario? How long would it take? And if side channel leakage is really such a big deal, why is AES still used ...
So I want to create a simple, fast and yet secure authentication in two steps for a PC - microcontroller communication. The first step is a seed request, the second step is an authentication request. The encryption that is being used is AES-128. There should be a fixed key k with a length of 16 bytes. Whenever a seed r...
2-rounds DES (M-DES) • $|M|=|P|=|K|=2^4$; • S-boxes: $S_1 = [1 0]$ and $S_2 = [11]$; • The initial and the final permutation are the identity permutation; • The expansion function is the identity function; • The key schedule function is defined as follows: For a key $K = (k_1k_2k_3k_4)$, the round 1 key is $K_1 = (k_4k...
More specifically is it reasonable to assume that someone with the resources of a state actor can feasibly compute a rainbow table of all the sha-512 hashes of values within the $2^{128}$ key space? Am I correct in assuming that the most efficient attack in this case would be to compute a rainbow table, given that sha-...
I modified the generation key function of XTEA using a PRNG with 128 bits. I have to attack it using both differential and linear cryptanalysis but I don't see how, it's possible to attack a PRNG?