instruction stringlengths 32 27.2k |
|---|
My understanding are these steps are necessary for symmetric cryptography to be IND-CPA:
The adversary submits two distinct $M_0$, $M_1$ plain-texts to the challenger.
The challenger selects one of them at random and encrypts it with the symmetric key and gives cipher-text C.
The adversary has to guess which message w... |
Does there exist a cipher that can be encrypted twice with two different keys and then decrypted twice using either key first?
For example:
Plaintext is "Lemons are great!"
Encode with Key #1
Encode with Key #2
Decode with Key #1
Decode with Key #2
Result is "Lemons are great!"
To my understanding TLS does something l... |
How to calculate time and space complexity of ElGamal encryption and decryption as there are two exponentiation operation during encryption and one during decryption? Here is my code for encryption:
for i=1:d
pow=pow*g;
y=pow%p;
for j=1:r
pow1=pow1*g;
C1=pow1*g;
pow2=pow2*y;
C2=(M*pow2)%p;
I t... |
I'm implementing an entropy gathering program.
For that I collect 2 bits from two gpio-pins connected to a random source.
I whiten this stream of bits using the von Neumann decorrelation algorithm. Now 2 out of 4 cases I can't use the bits because of that whitening algorithm (e.g. when both bits are 0 or both are 1). T... |
I plan on storing data, encrypted with AES256, where the first dozen bytes are known plaintext. ('Hello World!' for example.)
Does having this known plaintext prefix weaken AES256?
I do not care about modifications being made to the ciphertext, which result in modifications to the decrypted plaintext.
I do care about ... |
I am pretty new to cryptography and have a sample of GCM mode of operation for AES.
PFB the code
Cipher c = Cipher.getInstance ("AES/GCM/NoPadding");
final int blockSize = 96;//c.getBlockSize();
final byte[] ivData = new byte[blockSize];
System.out.println("IV :- "+new String(ivData) );
final Secure... |
This is for a challenge at followthewhiterabbit.trustpilot.com:
Knowns:
The algorithm is AES (Rijndael)
Blocksize: 128
Keysize: 256
You only need to find the first 6 bytes of the key, the rest are 0’s, so:
[?,?,?,?,?,?,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
All bytes in the key has an integer value b... |
I have a cipher text which is encrypted using AES-128 Algorithm.
I want to know the following things to decrypt the cipher.
IV (Initialization Vector)
Padding Method
Encryption Key
How do I find the padding method used in the encryption?
|
How much time will it take to crack PBKDF2 while using a 9 character password? I'm not specifying any specific system or platform. If a brute force attack is made using the best ever super computer around how much time will it take to crack it?
|
Sakura specifies a tree hash mode for e.g. Keccak (SHA-3). Are there any reasons to use the Sakura tree hash mode in a Generalized Merkle Signature Scheme? It seems to me Sakura primarily solves a uniqueness problem with using tree hashes for large data when the depth of the tree is variable.
Trivially, if Sakura mode ... |
As in the title, given $g$, $g^{ab}$ are big elements in a prime group $Z_p$ and $b$ in prime group $Z_r$ ($p > r$, $g$ is one generator of $Z_p$). $a$ is unknown and also in $Z_r$, is finding $g^a$ a hard problem?
update $a$, $b$ and $ab$ are group elements of $Z_r$..
|
Edit: I know this isn't really a one time pad (as pointed out), though I don't really know what to call it aside from just a pad, I guess.
I have been reading around (mostly various stackexchange sites, wiki and a few blogs/forum posts) about encryption and various techniques. I have read that doing a pad using XOR isn... |
It seems to me that padding oracle attacks are mainly a concern for users of CBC mode encryption. Question: are any other modes of operation vulnerable to padding oracle attacks? And if so, why?
There was some discussion in the comments section of this answer with regards to ECB, but it didn't reach a conclusion. It wo... |
I am doing a password manager in Java. But now I am VERY confused because of the encryption. There will be the program login, where the user types its password, and it compares to a SHA512 hash. If it matches, the user logs in, if it doesn’t, then the user doesn’t login. I think there is no problem at this point.
And t... |
To be clear, I have access to $H(S)$ and as many $H(S||K)$ as I want. Every string $K$ is known. Can I use the extra information to my advantage and try to deduce $S$, without requiring bruteforce? Or do you still have to bruteforce but try less combinations since you have more information?
|
I have been reading about attacks and many of them work on specific rounds of TripleDES but not on full TripleDES. Is there any attack except brute force that works on full TripleDES? (theoretical)
|
I was reading this paper. In the table-1 of the paper it says TripleDES (showing both 128bit and 168bit keysize) is vulnerable to Differential Cryptanalysis. It also says that AES (showing all three keysize) is strong against Differential Cryptanalysis. If AES-128bit is secure against Differential Cryptanalysis then w... |
I have been reading up on the polynomial representation of the AES Sbox (PDF: “Essential Algebraic Structure Within the AES” by Murphy and Robshaw) and I can't get it to produce the correct output.
Maybe I have a thinking mistake somewhere along the way, so here's what I did:
I picked a random byte: 10010101. This co... |
I've just come across this piece of code in Bouncy Castle's implementation of OCB Mode:
if (N.length > 16 || (N.length == 16 && (N[0] & 0x80) != 0))
{
/*
* NOTE: We don't just ignore bit 128 because it would hide from the caller the fact
* that two nonces differing only in bit 128 ... |
Most descriptions that explain how streamciphers work (like the one on Wikipedia), tend to describe a model that boils down to a simple “$ciphertext = plaintext \oplus stream$”, where the stream is determined by a nonce and a key, while the plaintext and ciphertext do not affect the stream at all.
On the other hand, s... |
It seemed to me that the Bouncy Castle SecureRandom class for C#/.NET only uses DateTime.Now.Ticks as its seed by default.
I was wrong, but wouldn't that be unsafe to do?
|
When doing encrypt-then-mac, I can choose to use a hmac as the MAC. For example, I could use a hash like SHA-256 or SHA-512 (by using it as a keyed hash) to create that HMAC.
Does it increase security when choosing a hash with a larger bit-size? Is a HMAC based on SHA-256 weaker than a SHA-512, or doesn’t it really ma... |
I'm very curious to know this and a bit confuses too:
Suppose, I have two files encrypted using AES-128bit with keys PBKDF2-derived from the same password and the same salt. If an attacker does brute force attack (imagining that he finishes this)
to crack the keys, I'm guessing he needs to run the attack once to get t... |
I need to use “ECDH with a cofactor key” for generating symmetric key. I have a fair idea on how ECDH works, but I don’t understand the cofactor part.
What is the difference between ”ECDH with a co-factor key” and ”ECDH without a co-factor key”?
Also, it would be great if you could point me to information related to ... |
Is KDF based on HMAC-SHA-256(Hashed Message Authentication Code, Secure Hash Algorithm) algorithm a suitable option to generate symmetric key from the secret key?
What is the basic funda, behind using KDF after getting the secret key. Can the secret key itself be used as the symmetric key.
|
I understand that the public key does not expose the private key. That is not the question.
The question is: Given a EC public key, can a different, but plausible and functional private key be derived to match the public key?
In other words:
In basic arithmetic, if you know a x b = c, and you know any two variables, ... |
I am following the Coursera Cryptography I course and I have the following question,
I am a bit perplexed by the statement, in week 2 lecture "What are block cyphers?" that a counter-mode PRF is a secure PRG.
PRPs are PRFs, and PRPs have the property that if (x₁, x₂) ∈ X, x₁ ≠ x₂, then PRP(x₁) ≠ PRP(x₂) -- since they a... |
I used TripleDES so many times but never thought about this. In TripleDES it requires 168bit key in option 1. I don't enter three single 56bit keys while implementing instead I only enter 168bit key. So, I'm guessing 168bit breaks into three 56bit keys. What it process of this breaking mechanism? is it linear?
|
I came up with a simple idea but I don't know if it is really secure or not. I know that you shouldn't create any algorithm on your own. I'm just curious, that's all.
Algorithm explanation:
First of all, Alice and Bob agree on a common secret password, lets say P1 (this should be done using a secure channel, like meet... |
Amy and Betty have a shared key $k$, and the protocol below is to provide a mutual authentication for both Betty and Amy.
A sends B : $n_a$
B sends A : $n_b \;\|\; E(k, n_a)$
A sends B : $E(k, n_b)$
Where
$n_a$ is a nonce from Amy
$n_b$ is a nonce by Betty
Can spoofing take place here where someone pretends to be ... |
I've been doing the security proof for one of my Theorem. Basically, given
$g^a$, $g^b$, $g^{cb}$, $g$ and $c$ as known values. Is the problem of computing $g^{acb^{-1}}$ equivalent to the Diffie Hellman-problem? In other words, is this easy to compute that?
My feeling is that its similar to the harder problem of the o... |
I have a few requirements for a password reset system, along with some questions at the end as to its security.
Requirements
The aim is to provide a password reset mechanism satisfying the following properties:
Multiple tokens per user, to allow for email delays to not cause confusion.
Tokens are single-use and expire... |
I was working with some encryption and I decided to put a spin. To preface this would be used to encrypt multiple files.
You start with a key file generated from random data. For example you could generate a 288 byte key file. This file contains 9 sub-keys each 256-bits.
For each file to encrypt you securely randomly s... |
I am examining a protocol that uses CRC32 as a MAC (see note 1) the weaknesses of this method but I would nevertheless like to see if it is just weak or actually relatively easily to break.
The examined protocol has the format more or less of:
Plaintext = Headers (6 bytes) || CRC (4 bytes) || Data
Ciphertext = 3DES-CBC... |
I have multiple devices connecting to a server, whose communication needs to be encrypted. At the moment I have an AES library doing the job (possibly inadequately): I am using a database of keys on the server, that corresponds to the keys stored on the devices (one per device).
Each message from the device to the ser... |
Recently I've been reading the paper “A New Family of Implicitly Authenticated Diffie-Hellman Protocols”. It's very hard for me to go further. Especially when it comes to the proof of knowledge. Actually, I never meet this concept before.
There are two extended concepts to the proof of knowledge in the paper, i.e. “jo... |
I am have one block of data to encrypt that is 32-bytes long. Is it better to use the AES-256 primitive for this single block (not a stream) or AES-256-CTR, and also would there be any cons or pros to using one and not the other such as to security or something else I am not thinking about.
This question relates to thi... |
This may be a very simple question, but I have not found info about this in any place. My question is about CTR mode: When it says $IV+1$… How do we make this operation?
For example, if I have the IV value 69dda8455c7dd4254bf353b773304eec (hex-encoded), what would be the result of $IV+1$?
I think that we must consider... |
PGP message integrity:
Basically, only private key can decrypt message encrypted with public key. But in the message integrity service in PGP does the reverse, where the Hash of the message if encrypted with private key and then the receiver decrypts it with public key! I need clarification.
|
Here's an authentication scheme I had in mind that combines the simplicity of HTTP Digest Authentication and the security of real crypto primitives. I have in mind the user-level authentication, ie login/password, not the TLS level.
I'd like to see if anything can go wrong with such a scheme:
Registration
User chooses... |
Suppose Alice knows a secret number $a$, and Bob knows a secret number $b$.
Is there a simple way for Alice and Bob to know who has the lowest number, without Alice & Bob exchanging their numbers ?
|
I am working on a Block Storage system, where I have the need to encrypt and authenticate blocks by a client, but also want the server to be able to detect bit corruption while minimizing the work done on the data. The storage blocks are roughly 1MB segments.
One option is to let the client use a AE(AD) cipher (like AE... |
I've devised a PRG using Bezier curves , constructed with Bernstein polynomials, and I was wondering if you guys could help me with some suggestions or constructive criticism.
Basicly I take a random set of 2d points(seed), used as control points for a number of concataned Bezier curves, this makes up my space. The gen... |
I'd like to know whether the following modified CBC-MAC is secure (given a fixed IV).
Source: an old course on Network Security
Are there some obvious attacks I can't see?
|
I've been wondering what would happen if the RSA modulus would be $n=p^2q$ instead of $n=pq$. I feel like there is an obvious security flaw (as there is with most modifications). Would this choise of $n$ make RSA less secure? If so, why? If not, then why isn't $n=p^2q$ standard since it allows operations on a bigger $\... |
Given that we know that nonce + message + hash(nonce + message + mac-key) all inside the encryption makes it possible to detect if any bits of the message have been changed by the attacker (in essence converting a malleable cipher into a non-malleable one), why do they still say encrypt then MAC?
Furthermore, doesn't a... |
So, in my imagination there is this simple algorithm with only one master password, let's say a prime number 'p', which I have to remember. Using only the address of the website and p, the algorithm must generate a unique password. It must be at least almost impossible to guess the value of p even if you know the algor... |
I need to store a string of digits (0-9) of a fixed size in my database securely.
I've already performed a rainbow table attack on a plain hash, and it broke it in a matter of seconds.
One option I had was to break the string into 2 or more parts and store them separately, within reason (i.e do not have the resources ... |
We learned that length padding was used in Merkle–Damgård where after padding with zeros another block is added that contains the initial length of the input. This is supposed to prevent same hash values for the different inputs $x \ne x0..0$.
Then again for Keccak we learned it is possible to use simple padding (e.g.... |
I remember $e=3$ is a bad choice for textbook RSA. But I can't really recall why. What happens if I choose $e=3$? Can I retrieve the message by simply calculating $\sqrt[3]{c}$? Why can't I do that with bigger $e$s? Is it possible to retrieve $d$, $p$ or $q$?
I remember that we had something with the Chinese Remainder ... |
Consider the function $F$ from $\{0,1\}^{56}$ to $\{0,1\}^{64}$, mapping the operative bits of a DES key to the ciphertext for all-zero plaintext. How could we organize a rainbow table to invert that function with high probability, low computational cost, and a reasonably-sized table that can be constructed at reasonab... |
The article here says below, about a universal hashing technique based on matrix multiplications.
"However, there is a little known method based on using a random matrix. It has lots of advantages - it's a universal family"
I tried to hard to find the source paper of the same to dig deeper but could not. Any references... |
I have general questions regarding rolling codes. Basically there is a sender and a receiver. Both have a sequence generator. The receiver checks if the received sequence matches the newly generated. An example used is KeeLoq.
Assuming a car opener (sender) and a car (receiver):
What happens if the sender is at anothe... |
While thinking about this recent question about a hash-then encrypt design, I reread the MAC-encrypt vs. encrypt-MAC question and noticed this answer quoting a paper showing that MAC-then-encrypt is secure with stream ciphers, even if not generically.
However, there's this attack when the MAC is deterministic and the c... |
I have an embedded project that requires AES, I seem to have found an AES implementation that fits the bill here: http://www.literatecode.com/aes256, but it does not include an IV.
Are there any documents detailing the standard way to implement an IV? I looked up the FIPS 197 spec and there is no mention of an IV.
|
I have read the Vigenère cipher is secure as long as the key length is the same as the length of the data to be ciphered.
Is this true when the same key is used multiple times?
In such cases, after how many uses would the key be considered insecure?
|
I have a requirement to implement AES_CMAC as the authentication algorithm in a CMS library. I just can't seem to find the OID and the ASN.1 definition for it.
I expected to see the OID under {joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) csor(3) nistAlgorithm(4) aes(1)} since it appears to be a NIST... |
I am using 3-DES to encrypt some data in Java. I decided to run some tests and plot some graphics to decide how to optimally pack data for its encryption (see how encryption/decryption time behave depending on the length of the plain text), so I measured the time to encrypt one thousand Strings of incremental size (fir... |
If $p$ is a big prime, and the elliptic curve $E$ is defined over $F_p$ by the equation $y^2=x^3+ax+b$ where $a,b\in F_p$. The point on $E/F_p$ together with the infinite point $\mathcal{O}$ form a group $G=\{(x,y):x,y\in F_p;(x,y)\in E/F_p\}\cup\{\mathcal{O}\}$. Then is $G$ a cyclic group? what's the order of $G$?
|
I would like to generate a key which would be good enough to be used for encryption with AES in a mobile environment. My idea is to use as a seed ''random attributes'' from a mobile device. Is hashing first this seed using HMAC construction (with some salt which is also random but public) and then use a HMAC-based Key ... |
This math is way over my head, and don't even know if it can be done, but here are the assumptions:
Take unencrypted File [Fu] of variable length, but assume 100KB as an example.
Let File [Fe] be the AES256 encrypted version of [Fu].
Let Hash [Hu] be the cryptographic hash using MD5 Algorithm of [Fu]
Let Hash [He] be ... |
I have some spare time, and a few hundred DJB2-hashed values sitting around. I thought I'd try to do something "useful" and invert DJB2, such that I could calculate the plaintext of the hashes (which has long since been lost, a fact that is often bemoaned).
For those who don't know, DJB2 is implemented like this: (C#)
... |
I am trying to secure my RF communication in which one RF package consists of two separate segments. I need to make sure that one segment of one packet is not replaced with a valid segment of some previous packet, if you know what I mean.
My RF packet is 32 bytes long, and I need to secure it with CMAC (I found an impl... |
The simplest way to generate truly random numbers for OTP keys is to measure the time in milliseconds between each keystroke on a keyboard. The randomness depends on the user typing in various speeds. I coded an algorithm TRNG-Kms and did exactly that.
The questions are: How secure is this method for generating one-tim... |
I have been trying this for a while. But I couldn't get it. How can I determine the point of intersection of the tangent line at (0, 0) on the curve $y^2 + y = x^3 + x^2$ ?
|
Are there any specific CSPRNG's that cannot be used as randomness extractor within a TRNG?
In other words, can you simply provide enough entropy gathered from a good entropy source as seed in any CSPRNG, and be done with it?
I've got the strong feeling that the properties of a CSPRNG are largely overlapping that of ra... |
The Von Neumann randomness extractor is explicitly mentioned in the randomness extractor page of Wikipedia, but strangely enough that page does not contain any reference to whitening the results of an entropy source.
Two intrinsically related questions:
Is this Von Neumann randomness extractor indeed a form of whiteni... |
I have heard that there is one paradigm of Public key cryptosystem, called Lattice based crytography. Further, its security claims are such that it will not be affected even if the quantum computers are available.
Would any one be kind enough to help me to understand the basic philosophy behind it, with examples?
EDIT
... |
First of all, I would like to note that I am not building my own crypto. I am simply curious and would like to learn.
What I am wondering is this: if we are worried about randomness of something like a one time pad, why don't we run the pad through a compression process (like bzip) to eliminate any patterns? Wouldn't... |
Assume that Alice uses Bob’s ElGamal public key $(\alpha=2, \beta = 8, P= 11)$ to send two messages $M = 17$ and $M' = 37$ using the same random integer $k = 9$. Eve intercepts the ciphertext and somehow she finds the value of $M = 17$. Show how Eve can use a known-plaintext attack to find the value of $M’$.
|
How do we add the integer points $P=(-1, 4)$ and $Q=(2, 5)$ on the elliptic curve of the form $y^2=x^3+17$ ?
|
Before stating my questions, let us recall the REACT transform [OP01], which enables to construct a CCA-secure hybrid PKE scheme, $\varepsilon'_{pk}$, from an OW-CPA PKE scheme $\varepsilon_{pk}^{asym}$, an IND-secure symmetric encryption scheme $\varepsilon^{sym}$, and hash functions $H$ and $G$. The transform works a... |
I am trying to create a system where to unlock the application one needs to enter a serial code. I have read many articles on the theme but there are two problems bugging me. One is, If I have a keygen and I can generate as many keys as I like then anyone else can do that too, but solving this by requiring a long "priv... |
Would it be possible to create an Over-The-Top communication utility that will encrypt voice using format preserving encryption (voice clear-text to audio encrypted stream) and send that over an existing channel (e.g. Skype/ Cellular)?
I was wondering if the FPE could be made to take such a form that the compression al... |
I have a system, using AES, in one of the modes that uses a nonce and authentication.
We have a pre-shared key, and to agree about initial nonce we could use Diffie-Hellman, using the resulting secret as an IV.
I want to know if there can be any attack on this system: is it possible to perform a man-in-the-middle attac... |
I want to use TLS to encrypt the communication between peers in a P2P network. Each peer has a well known 256bit peer identifier (the public key of a 256bit elliptic curve keypair). Both peers need to be authenticated against the ECC key.
Each peer has only one ECC key, no RSA key. During the key exchange step, I do n... |
My question is a bit naive, but what if someone generates the same RSA key pair as someone else? This person would have the same private key and so would be able to decrypt messages not intended to him.
I bet that the answer will be: “It is very unlikely”, but I would like a more persuasive answer to realize that it c... |
While implementing ciphers and hash functions, I often face a problem: where to find test vectors for it; so that I can guarantee my program is working correctly. It is generally a tedious job to find test cases.
Currently I am trying to gather test vectors for several ciphers and hash functions; including (but not lim... |
Quoting the handbook of applied cryptography, chapter 10.3.3 (i):
Identification based on PK decryption and witness. Consider the following protocol:
$A \leftarrow B: h(r), B, P_A(r,B)$
$A \rightarrow B: r$
(Before “2.”, $A$ verifies that $r' = r$ and $B' = B$)
My questions are:
Why is $B$ needed in the encrypted ... |
Recently I started wondering about multiple encryption and found pages upon pages of posts and debates about the security of cascades.
Now, don’t worry – I'm not looking for someone to discuss a homebrew cascade encryption scheme. What I do wonder about is the dangers of multiple layers of encryption.
I keep most of m... |
I was thinking about AONTs, and designed the one below, I call it CHANT for Chained-Hash All-or-Nothing Transform; it's my very first shot at something of the sort, and was hoping I could get your opinions.
Suppose you have a hash function $H$ of block size (ie. the size of the generated hash) $b$, you'd like to "wrap"... |
I've been reading through the PGP Standard and here I'm a little confused. This section is discussing converting string data to a session key. I'm confused about the paragraph in bold. First off, what does it mean by "hash context"? Secondly, which "data" is it referring to? Is that paragraph still talking about what t... |
Given the general benefits of Lattice-based cryptography, such as:
Post quantum Security
Security from worst case scenario
Efficiency
What could the outlook of shifting from RSA \ ECC-based cryptography to the Lattice one (say NTRU) be?
Would that be feasible?
Are there any drawbacks?
|
I'm trying to analyze a login protocol based on symmetric key cryptography. I'm just starting out, so this may very likely be a very bad idea, but nonetheless I'd like to hear your thoughts on it.
The protocol assumes the existence (and agreement on) the following:
A symmetric-key algorithm $E$ / $D$.
A key derivation... |
I'm studying the paper Fully Homomorphic Encryption over the Integers by Marten van Dijk, Craig Gentry, Shai Halevi and Vinod Vaikuntanathan.
I have questions about the proof of Lemma A.1.
In page 6, the element of public key is in the form of $x=pq+r$
and the encryption is
$$ c← [m+2r+2\sum x_i]_{x_0} $$
But in the p... |
What are the disadvantages and weaknesses of AES-GCM mode for authenticated encryption?
Why does the CAESAR competition say that it’s one of the goals to "find an AE scheme that offers an advantage over AES-GCM"? What advantage they are talking about?
|
I am new to cryptography and am going through the book Understanding Cryptography by Paar and Pelzl.
From what I understand Symmetric key distribution systems like Kerberos do not provide PFS because an attacker will be able to decrypt every session key ever encrypted with a compromised KEK.
In the book, on page 342, ... |
I'm doing a little bit of reading about lattices. I read that if we can find a 'short' basis for our given lattice, we can solve CVP and SVP very efficiently. However, the paper didn't describe an algorithm. Can anyone briefly describe an algorithm for doing this?
|
Using a symmetric encryption algorithm $E$ on a message $M$, users usually send $E(M)$ to the recipient and then the recipient will compute $E^{-1}(E(M))=M$ to retrieve the message. For what symmetric encryption algorithms would it be equally secure to instead send $E^{-1}(M)$ and have the recipient compute $E(E^{-1}(M... |
The high security of RSA is granted, because it is very hard to factorize
$$
N = p * q
$$
Nevertheless, there is actually no need of factorizing $N$, in order to generate the $Private$ $Key$, but the need of knowing
$$Φ (N) = (p - 1) * (q - 1) = N - (p + q-1)$$
If we think of $N$ as a rectangle with the width $p$ and t... |
Can anyone show me a simple proof of work algorithm that I can use to stop spammers? I've looked at hashcat, but i think there's a bit too much specialized hardware for bitcoin mining.
That is, the time required to calculate one proof of work on a mobile device cpu is way too long compared to a bitcoin mining rig usin... |
Is SRP-6a post-quantum secure? If it is not post-quantum secure, do any post-quantum secure alternatives similar to SRP-6a exist?
|
Looking for guidance/references with/about calculations:
I am designing a widget that creates N-bit binary sequences. My customers target spec for the sequence's minimum entropy is X bits/bit. I plan to count occurrences of run lengths of 1,2,..R in M of the N-bit output strings and compare to min and max thresholds Tm... |
First of all, I apologize if this is a stupid question, but I don't have any background in cryptography.
I'm looking for a secure hash algorithm $H$ with the property $H(K_1+n)\oplus H(K_2+n)=H(K_1\oplus K_2 + n)$. Would it be feasible to implement a hash algorithm like this, and could a hash algorithm even be secure ... |
How can I get point addition equation for elliptic curves in projective co ordinate system? Can I get it by changing $$ x = X/Z $$ and $$ y =Y/Z $$ in the equation for affine co ordinates' group law?
I have done it using the above narrated step and made the denominator as $ Z $ in equation for binary super-singular cur... |
I'm reading “Fully Homomorphic Encryption over the Integers” by van Dijk et al.
I wonder why $x_0$, which is a component of the public key, should be an odd number?
|
I have thought of a system for generating passwords which works as follows:
Take the following items:
A password, such as williamwallace.
A secret 1000 digit number which is stored on my computer.
The name of a website.
Create a password like this:
hex(sha512(site + password + number))
For example:
hex(sha512('googl... |
I am working on AES. Can we expand $s(a \oplus b)$ in terms of $s(a)$ and $s(b)$ where $a$ and $b$ are two eight bit inputs and $s(a)$ is the S-box value of $a$?
|
I want to use hash function on some data, and part of this data, might be constant for a certain period. The output of the hash function is used as authentication data (MAC).
I want to know if there is:
Reason to use/not use this data as input to the hash? (In the context of authenticity of data…)
Impact on the "stren... |
I am trying to implement an AES encryption on my messages in my app and I want to have a different keystream for each "message group". Therefore, currently I am holding the keystreams in the database of the message groups. And the messages get decrypted by the app. However, there is one problem. The app is talking to t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.