instruction stringlengths 32 27.2k |
|---|
I have a system where I am transmitting JSON messages securely (using for example AES-128), where each message has the same format.
For example:
{"d":{"status":"success"}}
{"d":{"error":"Message length too long"}}
Where every plain-text message is guaranteed to start with {"d":{ and end with }}
Suppose the attacker k... |
I installed djigzo on my android phone and I want to use it for smime mail.
I don't know the difference between choosing SHA256WITHRSA and SHA256WITHRSAENCRYPTION digest algorithms in the settings.
My online search only returned OIDs and code samples. Can you enlighten me?
|
I've read the Bitmessage whitepaper and I found it rather lacking on the details, but it promises anonymous routing. Can it be considered a variation on mix-networks, where each peer acts as a mix-node?
|
I have large files which are broken into blocks of 512 KB and uploaded to a server. In my DB I store the IV, and the user knows the security key themselves. When downloading, I use the same IV and key.
However, is it insecure running AES-CBC on each different block with the same IV? Won't this give away information ... |
Actually, I'm not familiar to how identity-based and certificate-based systems work, so ,can anyone give me a detail and comprehensive answer to this question? Moreover, in what environments the identity-based systems is recommended(or needed) and why?
|
I have a webserver which only supports TLS 1.0 and I am not sure about something: Which is the better cipher in this group when aiming for the best security?
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0xc00a)
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (0xc014)
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA (0xc009)
TLS_ECDHE_RSA_WITH_AES_128... |
I am a graphic design student and for my information graphic project I have chosen the topic of the history of encryption and how the security level developed over the centuries. It’s basically an information graphic to make people like me aware of encryption and its importance in times like these (see: news about the ... |
In FIPS 186-3 appendix D.2 "implementation of Modular Arithmetic", they show shortcuts for solving
$$B = A \mod m$$
for select Curves.
How would you go about determining a valid short cuts for the various curves?
If I wanted to practice on using a small finite field (e.g. 23, 31) because it's something that could be s... |
I'm looking at using the XXTEA algorithm to encrypt a small amount of data (say, less than 32KB) in the context of a software licensing algorithm. That is, we wish to make it difficult (not impossible) for our customers to forge (encrypted) license files of their own.
Our intent is that our software will read the encry... |
I have a program (whereby people can download and run on their own computers) that will calculate a couple of unknown values each day. For simplicity sake, let's assume that the calculation is simply Rand(0, 1). The program will run and the user will get a value e.g. 0.230957203975.
He will then broadcast this value to... |
What is significance of recovering the chaining value of a compression function, when the message and its output are known? in other words, if a compression function $CF$ takes a chaining value $h_{in}$ and a message $m$ as inputs and outputs $h_{out}$.
$h_{out}=CF(h_{in}, m)$
Is it a bad property if given $m$ and $h_{... |
I've always been curious as to how Pay-TV and other Conditional Access systems actually stay secure for any amount of time, given that they are usually one way and (I'm assuming) use symmetric keys for encrypting the video/data streams.
Given that the decoder MUST be able to learn the control word keys via some means, ... |
What is the main reason (attacks) the appearance of the protocol SSL version 2.0 to replace version 3.0?
|
I have a question which arised by analyzing the one-time pad cipher. I encrypt a binary sequence $a_1,a_2,..,a_N$ using a one-time pad with key sequence $k_1,k_2,k_3,...$, so I send $a_1+k_1, a_2+k_2,\dotsc,a_n+k_N$.
Now I make mistake and instead of sending the above sequence I transmit $a_1+k_2,...,a_N+k_{N+1}$. Assu... |
Why is it foolish if you decide to use an RSA cipher to encode some message by first converting each letter of the message to an integer? So for exmaple Space=0, a=1, b=2,...
After the conversion I encrypt the integer $k$ as $k^e \mod N$.
I do not see why is there any difference?
|
Take a hash function H() to be something like SHA-256 and message m. If you are given H(m) and H(H(m)), can you use this info to help derive m?
Also interested in knowing how you analyze this problem to come up with your answer.
|
The encryption mode that I am using is CBC. Algorithm is AES and the key size is 128bit.
I will be encrypting a 36 byte string over 1.3 million times with the same key but with a random IV.
My question, as the title states, is it possible to reverse engineer the key for 1.3 million cypher texts without knowing the key ... |
I'm writing an application for controlling computers from a client.
I'd very much like it if the connection is secure and only authenticated clients are allowed access.
The workflow will be something like this:
A client use decides to add the server
The server allows the client
Alternative 1; On the server screen a X... |
A friend asked me the following, pointing out that the method is not very useful (my problem is I do not see why it is not good):
Consider a person A which chooses $n$ as the public key for the Rabin crypto-system.
We want to be sure that we are communicating with person A so we send her a random item $r\equiv m^2 \... |
Let $p$ be a large public prime. Alice holds a private key $(e_1,d_1) \in Z_{p-1}^*$ such that $e_1 d_1 = 1 \mod {p-1}$. Bob also holds a different private key $(e_2,d_2)$ with the same property.
Let's say Alice wants to send a message $\large m \in Z_p^*$ to Bob:
$1.$ Alice computes and sends $\large m^{e_1} \mod p$ t... |
I am wondering whether an attacker can gain any useful information from having several hashes of an unknown plaintext that differs in relatively few bits. For example, if provided with:
H1 = SHA-256(TXT | 1)
H2 = SHA-256(TXT | 2)
...
HN = SHA-256(TXT | N)
Can an attacker recover TXT more easily?
|
I have a question which is related to the BB84 cryptosystem.
We are not able to send single photons so instead we send $K$ photons at a time all with the same polarization. An enemy can separate one of these from the remaining $K-1$.
If the enemy can detect the polarisation by only looking at one of the photons, the o... |
I am by no means a security expert, but I am curious whether functions that don't produce different outputs when raised to the power of N (without any psuedo-randomness) exist, that are as strong as "bcrypt" or "scrypt"?
|
I need to encrypt an ASCII string [a-zA-Z0-9:] to an ASCII [a-zA-Z0-9] string of the same length. It doesn't have to be unbreakable, it's sufficient that it won't be readable at the first sight.
The purpose is to encrypt my WiFi hotspot name with a key so that only my friends holding the key can decrypt a message from ... |
I know that there are elliptic curve groups, used in pairing-based cryptography, where the decisional Diffie Hellman problem (ie. given $g$, $g^a$, $g^b$ and $c$, determine if $c = g^{ab}$ is easy but the computational Diffie Hellman problem (given $g$, $g^a$ and $g^b$, find $g^{ab}$) is hard, and I know that if you ca... |
I use Rabin code with modulus $N$. Now assume that Alice sends me a message $m$ $(1\le m\le N)$ encoded by Rabin code. Unfortunately after Alice sent me the text I lose the information about the factorization of $N$ and therefore I cant decipher the message. I take new primes and construct a $\bar{N}>N$ and tell Alice ... |
I'm using SHA256 to hash the output of an entropy generator to generate random numbers. Is it generally better to treat the output of the entropy generator as single messages and hash each of those separately (internal state is reset), or as a message of unknown length (internal state is preserved)?
|
I'm working on software that should eventually result in a crypto file system similar to encfs. So far, i have a user password that goes through PBKDF2 using
PKCS5_PBKDF2_HMAC
with SHA-512 and a couple of thousand rounds to generate the Key Encryption Key. The Data Encryption Key and IV are random on a per-file basis ... |
I read the summary of deniable encryption on wikipedia:
https://en.wikipedia.org/wiki/Deniable_encryption
Then I read a question, by doom123 on security.SE:
https://security.stackexchange.com/questions/34684/truly-deniable-encryption
But I had a subtly different problem which can be stated as follows:
Alice wants to s... |
Let $BW_N$ be a function such that $BW_N:\mathbb{QR}_{N} \mapsto \mathbb{QR}_{N}$ and let if be defined as follow: $BW_N(x) = x^2 \pmod N$ where $N=pq$ and p and q are primes and $p=q=3 \pmod 4$. I am reading on a set of lecture notes that, "$BW_N$ is a permutation over the squares mod N". Does someone know what that m... |
In specific implementation we're using TLS 1.0, open ssl 0.9.8 but i'm referring to RFC 5246.
For performance reasons, I'm being asked if we can use TLS without encryption. The hope is that the perfomance cost of using TLS will be less. The implementation will retain authentication and integrity of communication, b... |
How can I accurately predict the next random number between 1 and 999, given past results. I have no knowledge of the PRNG or algorithm used.
How can I predict the next number of a long sequence of seemingly random numbers? Can I do it by hand, or should I use some kind of software to help find patterns from long stri... |
Edited to clarify question
So my question is whether anyone knows of an efficient way to compute the neutral element (I'm gonna call it 1, but the operation doesn't have to be multiplication) in an abstract ring isomorphic to $\mathbb Z/ N\mathbb Z$? More specifically, the scenario is this:
Suppose we have a ring $ R =... |
Does it make sense to hash a 22 byte secret (which may not have full entropy since it is chosen by the user) into a 512 bit hash (using Keccak-512)?
More precisely, will the 512 bit hash have full entropy even though the input is only 22 bytes?
|
Assume the following scheme for a PRNG generating decimals in [0,100)
Given a message and a key, compute tag := HMAC512(message, key). Take the first 5 hexadecimal characters of the tag. If the result is smaller than 1,000,000 in decimal, divide it by 10,000 and return it, otherwise take the subsequent 5 hexadecimal ... |
I am learning to use ECC. i got into situation where i have $Q=abG$, where $G$ is the generator of the finite field formed on EC using a prime $p$ modulus and $a$ , $b$ are random numbers.
now suppose i know $Q$, $G$ and $a$ , calculating $bG=\text{inverse}(a)Q$ is efficient ? i know the order of the group too. i want ... |
Let's assume I've encrypted some text with some 24-byte key using 3DES in ECB mode. Is it possible to regain the key if I have both encrypted and decrypted text? (Excluding bruteforce.)
|
Let $C$ be a code over the finite field $GF(2)$ with generator matrix $G$ and parity matrix $H$. Let $e+C=C'$ be a coset of code $C$. Let $S$ be a non-singular matrix and $H'=H\times S$. Finally, let $C''\subset C'$. Is there any efficient way of finding any other element of the coset $C'$ by only using $C''$ and $H'$ ... |
I am currently revising an AES data format. I would like to determine whether a provided password/key is incorrect. Previously this was done by validating the HMAC, but this makes it impossible to distinguish between data corruption and a bad password. It also requires reading the entire stream before validating the pa... |
I've discovered for myself that java's BigInteger is very slow, so I'm trying to weakly optimize this java implementation of ed25519 which I will fork and post if successful by substituting BigInteger with jscience's LargeInteger.
I'm almost done converting all of the BigIntegers to LargeIntegers, but I still need an e... |
Can curve25519 keys be used with ed25519?
I'd prefer to use ed25519, but there isn't a fast java version. For my application, I'd like to use curve25519 until I can get a faster ed25519 for java.
At the very least can the curve25519 keys be restricted if some can be converted ed25519?
|
In theory, distinguishing cipher text from random text is considered insecure for any PRP algorithm. Say for example - due to Patarin's proof with about six rounds of Feistel Network - the attacker can distinguish cipher text from random text after about $2^{(n/3)}$ queries to the encryption oracle, where $n$ is input... |
I was reading that a current open problem is if inverting the RSA function is as hard as factoring.
Does this mean that, its an open problem whether, if given a subroutine that computes in probabilistic polynomial time (i.e. in BPP) the inverse of the RSA function, then its not actually known if we can factor numbers i... |
It has been said that RSA uses a modulus product of two prime numbers for security reasons. But does RSA even work correctly if we allow composite integers instead?
I think that the answer is "NO".
Define “work correctly” as:
allows encryption and decryption to be carried out as in normal RSA, yielding the original me... |
I have been educating myself recently about the SHA-2 hashing algorithm, and in the midst of this pursuit, I've encountered a question:
This algorithm uses a set of constant hexadecimal values, derived from the cube root of prime numbers, as a starting point for the process. Because these values can be known to anyone,... |
I understand the basic Shamir Secret Sharing protocol, and when two shares are multiplied, the degree of the polynomial increases. I've seen in a number of papers a reference to a degree reduction protocol that can be performed to securely reduce the degree back to the original $t$. Yet I cannot find this construction ... |
Say players use Shamir's secret sharing to share a value $k$ such that each player now holds $k_i$, a share of $k$. How can they securely compute $k \bmod m$ for some $m$.
Of course they can interpolate to get $k$ and then reduce it $\bmod \hspace{2pt} m$. But how can they perform some operation on their shares to obt... |
Given that some signature schemes (for instance Elgamal) use an ephemeral key that cannot be reused ever. How do people usually protect against this?
I'll elaborate more: if you reuse the ephemeral key in Elgamal for two different signatures you have (AFAIK) effectively given away your secret key. If the same public/pr... |
Here is it:
Symmetric encryption is no longer necessary, because all security services can be implemented with public-key cryptography. Moreover, in public key cryptography the operations for authentication and confidentiality are exactly the same.
Is this true? Why?
|
If someone gives me their PGP key, can I use it with GPG, and vice versa, all the time (100% interchangeable)? Or are there times when they are not compatible, when only PGP can be used with a PGP key, and only GPG used with a GPG key?
|
I got this question in a local hacking event, but I couldn't solve it.
Problem Statement ----
Continuing their snooping habit, NSA kept bugging Alice's communication. Resorting to the age old RSA encryption, Alice used 128-bit RSA encryption to exchange messages. Alice shares her public key as 0xffffffa95256a837568a41... |
I am trying find a transfer method for this problem. Suppose Alice and Bob both has access to a function $\text{F}$ with two parameters. $\text{F}(x,y)$ randomly returns $p$ to alice and $q$ to Bob such that $x\times y=p \oplus q$. Now as per rules of Oblivious Transfer, Alice has $s_0$ and $s_1$ and Bob has $c$. Bob ... |
How do we analyze the security of a compression function in the secret key model? More formally, let $H$ be a hash function and $F(IV,M)$ its compression function. Suppose we generate a MAC as follows:
$$
T=F(F(K,M),M_p),
$$
where $K$ is the MAC key and $M_p$ is the padded block. Can I say that if one observes the outp... |
I'm designing a simple one-time-password mechanism for authentication against a possibly-insecure server - i.e. I don't want to use symmetric shared secrets.
The first idea that came into mind was using a hash-chain with a cryptographic hash function, where each device has a random $\text{key}$ and broadcasts
$H^n(\te... |
Hope it will be clear.
I need to digitally sign pieces of information.
What I'm currently doing is the following (for each piece of information):
Run SHA1 on the information
Encrypt the result with RSA
Store both of them together
Now, I can say for sure if someone altered the information.
My problem is that I don't w... |
I am trying to implement the Efficient Robust Private Set Intersection using Additive ElGamal.
For this, from the client side, my inputs are $C = \{1, 2\}$. So, the polynomial is $(x-1)(x-2)$ which is $x^2-3x+2$.
The next step is to encrypt the variable coefficients which are $1$, $-3$, $2$.
Can someone tell me how to ... |
I have read that difficulty in breaking many algorithms are based either on Factorization or discrete logarithm. I am reading about schemes that are similar to RSA which make use of integer factorization and Schnorr scheme, which is based on discrete logarithm problem.
My idea is to create signature based on any of the... |
I was reading about Schnorr's scheme and in that for signing the signer generates a random
number and continues with his operation. I am trying to implement this in a scenario where
the signature length is small and the number of possible messages is also very small.
Is generating a random number and signing, for ea... |
I got confused which one is considered challenge-response mechanism which one is not.
|
Recetly while studying about cryptographic primtives, I have come across below line in wiki : http://en.wikipedia.org/wiki/ElGamal_encryption
Encryption under ElGamal requires two exponentiations; however, these exponentiations are independent of the message and can be computed ahead of time if need be.
Does "if need... |
I am doing a project in cryptography and while reading a tag generation algorithm for files, I got stuck with the meaning of $\Pi$. The screenshot of the algorithm is inserted below.
Here the KeyGen algorithm generates 1 public key and 2 secret keys and the TagGen algorithm takes a file $M$ (which is divided into $n$ ... |
This is a basic question in cryptography but I have not found a good, comprehensive answer.
It is explained that our keys should expire and we should get new, stronger ones with time, reflecting more powerful decryption computing. Does that mean that emails encrypted today will become easier (even trivial) to decrypt i... |
I've implemented a Rabin-Miller primality test fuction following Wikipedia and the book Applied Cryptography. Now I'm using it for generating primes with a string seed. The book suggests the following for this:
Generate a random 'n'-bit number
Set the high- and low-order bits to 1.
Make sure it is not divisible ... |
I am trying to implement Efficient Robust Private Set Intersection using additive ElGamal.
I am trying to run the full protocol mentioned in Section 3.4 on the following inputs:
$p = 17$ (prime)
$g = 6$ (generator)
$x = 5$ (private key)
$k = g^x \pmod p = 6^5 \pmod{17} = 7$ (public key)
Suppose the clients inputs are... |
If cryptanalysts today were to crack the original Enigma machine, “how fast” or “how easily” could they do it? What methods would they use?
The original cracking was significantly helped by operator mistakes, like always including the same header, always including a weather report, and finally, a long message of LLLLLL... |
Is an attacker of an cryptographic algorithm allowed to change order of sub-keys but not changing their number in attack? Would it be called an attack on broken algorithm of cipher?
|
Whirlpool is an interesting little hash function in the Miyaguchi-Preneel family.
In my mind, it's most interesting feature is the design of internal cipher W, where the distinction between key and message is dropped, providing a symmetric symmetric cipher. This conceivably removes the need to test for weaknesses to re... |
In this post on Cryptome it's noted that a person called Michael Vario is willy-nilly signing people's public key's and uploading those signatures. He is effectively forging a web of trust. I'm sure this kind of thing has been done before.
It occurred to me that if the public key servers could be asked to return public... |
I have a program (a game) that uses Java's nextInt function with parameter 0x10000 to get a random 16-bit number.
Java's nextInt() is an 48-bit seed LCG with the following formula:
seed[n+1] = (seed[n] * 0x5DEECE66DL + 0xB) mod (1 << 48)
nextInt() is implemented in such a way that the random number I receive is the c... |
I am looking at DSA's parameter generation and don't understand why for $p$ a 1024 bit prime is needed if $q$ is chosen as a $160$ bit prime. I thought that the security of DSA relates on the discrete logarithm problem. A good protection against algorithms solving the DLP is to work in a big order subgroup. I would cho... |
For simplicity I choose two small primes for p and q.
p=3
q=11
n=33
Φ(n)=20
Now we need to find the public key e, which has to be coprime with Φ(n). For small numbers like these it is trivial, but how can it be done when larger primes are chosen?
|
Update: Question completely rephrased.
I want to create the parameters for a bilinear pairing (the Tate pairing in this case).
In case you're interested I'm following this thesis, specifically the type $F$ curves (page 61) which has embedding degree $k = 12$. But it's probably not necessary to refer to the thesis to an... |
When encrypting with RSA one calculates $ m^e \pmod n $ by doing the following:
m^e % n
Where $m$ is what we encrypt. Often $e$ is a very big number to make it more difficult to crack.
So how does one avoid overflow when encrypting?
|
Does the encryption with a private key and decryption with a public key works in ElGamal likewise what is done when we use RSA for sender authentication?
|
I am trying to implement ElGamal in java without using the in-built libraries. The problem occurs when I am trying to find the generators of the number(in this case 11). Everything works perfectly except that it is returns 10 as a valid generator of 11(which it is not, right?)
public void generateKey()
{
SecureRand... |
How can I prove the following:
If $f$ is a one-way function, then it is an uninvertible function?
|
Suppose you want to select a prime $p$ such that finding e.g. $\log_2(3)$ in $\mathbb{Z}_p$ is expected to be either at least as hard as the general Discrete Logarithm Problem in $\mathbb{Z}_p$, or at least both problems infeasible, e.g. because you want to use $g=2,h=3,p$ as domain parameters for some scheme. How larg... |
I need to find a secret sharing scheme with these properties:
The scheme is set up by all participants, ie no single entity called the dealer
The parameters of secret sharing need to be modifiable, eg enrollment, disenrollment, change of access structure, ...
Need to be verifiable, ie participants could check whethe... |
A message is sent from a person to another. The plain message is first encrypted, even with a weak algorithm - say, DES. Then, the encrypted message is encoded with a simple substitution, which is private and remains the same through all the conversation.
Is it feasible for an external attacker to decrypt the message,... |
The specification doesn't seem to indicate how to pad messages to the requisite 512-bit boundary.
What is the padding scheme for the original Tiger hash?
|
I have the following problem: Alice wants to send Bob a message such that Bob knows it is from Alice but at the same time he cannot prove that Alice send him this message.
The solution I came up with, using RSA, is:
Alice picks a random key K, and encrypts the message M using this key K. M'= aes(K, M)
Alice hashes K a... |
I have read that in cases where there is a limit on the amount of data sent over the network, one idea is to sent only $t$ bits of data rather than sending all the bits. For example, in the Schnorr scheme this can be employed.
My question is, whether this can be specified by sending the $t$ bits along with the other in... |
I'm not cryptography expert but I have this doubt…
Suppose I have 2 different keys:
secretkey1
secretkey2
And a plain text:
myReallySecretPlainText
If I use AES-128 on my plain text with my first key I get this:
U2FsdGVkX19fHxumDqEB9Kuyvhj+aoHpctLCdo2VEvt1danATMo+sBaz3nsCaS/Z
now, if I use on this cipher text my s... |
Why are Fermat primes ($2^{2^n}+1$) useful as $e$ (the public key) in RSA encryption?
I understand why $2^n+1$ primes are useful, because they would simply be 100...001 in binary, which for computers is faster in calculations. But why is it important that the exponent is also a power of 2?
|
I am currently implementing Shamir's ID based signature algorithm as proposed in Adi Shamir, Identity-Based Cryptosystems and Signature Schemes. Advances in Cryptology: Proceedings of CRYPTO 84, Lecture Notes in Computer Science, 7:47--53, 1984.
However I am stuck with generating the private key for a certain identity.... |
I am trying to implement Efficient Robust Private Set Intersection using additive ElGamal.
I am trying to run the full protocol mentioned in Section 3.4 on the following inputs:
$p = 17$ (prime)
$g = 6$ (generator)
$x = 5$ (private key)
$k = g^x \pmod p = 6^5 \pmod{17} = 7$ (public key)
Suppose the clients inputs are... |
I try to understand the PACE-Protocol, especially the Key Derivation Function in ECDH on page 33.
Can someone explain me, what the Counter is good for? Often there are iteration counters in KDF - but here are usual Hash-Functions (like SHA-256) are used as KDF. So there is no iteration. Is this something like a message... |
When doing password-based encryption, is it OK to create one instance of PBKDF2 from the password, and then use it to create both the AES key and the MAC key? (Or should a new instance of PBKDF2 be created using a different salt or iteration count, for each?)
This answer seems to say this isn't a good idea. While th... |
There's a new e-print out on arXiv titled "A Polynomial Time Attack against Algebraic Geometry Code Based Public Key Cryptosystems" by Alain Couvreur, Irene Márquez-Corbella and Ruud Pellikaan:
"We give a polynomial time attack on the McEliece public key cryptosystem based on algebraic geometry codes. Roughly speaking... |
What does the following notation mean in a homomorphic encryption scheme?
ENC(x;r)
What does x and r refer to?
|
With Public Key $(G, q, g, h)$ where $G$ is a group, $q$ prime, $g$ a generator of $G$, Am I right in thinking that:
$$\mathrm{Enc}(m;r) := (g^r, h^r \cdot g^m)$$
|
Is the logarithm in the private set intersection protocol mentioned in Section 3.4, Step 5 of http://www.ece.umd.edu/~danadach/MyPapers/set-int.pdf, a base 10 or 2? How do we find this out?
|
Suppose I have an encryption function $e$ of a symmetric cipher with plaintext space
$$\mathcal{M}=\{1,2,\ldots,2^{24} \}.$$
Now, consider a list $L$ of integers:
$$67, 114, 121, 112, 116, 111.$$
Decoding $L$ with the ASCII encoding scheme (see http://www.asciitable.com/) gives the word (plaintext) Crypto.
My teach... |
Use the PBKDF2 output as an HMAC key, hashing two different inputs - once for 20 bytes and once for 12 :
using (var PBKDF2 = new Rfc2898DeriveBytes(passwordBytes, salt, 100000))
{
HMACSHA1 hmac = new HMACSHA1(PBKDF2.GetBytes(20));
hmac.Initialize();
byte[] aesKey = hmac.ComputeHash(new byte[] { 1, 0, 1 })
... |
Why do we need HKDF-Expand if we can simply hash the pseudorandom key to make it longer? The docs (in the link) say:
The second stage "expands" the pseudorandom key to the desired
length...
Is it only to allow for longer keys? So that if all we need is, say, 32 bits - we can simply use SHA256? Or is there another ne... |
I am making a tool for myself where I intend to store cipher text. I wish to use AES together with arbitrary sized keys to create these cipher text strings. The idea is to use a cryptographic hash like SHA256 to compensate for the key length issue.
Is this a sound way of doing things?
Also, since the output domain of S... |
When encrypting with RSA it is often infeasible to decrypt by just doing c^d mod n, because for example when using the primes $(p,q)=(12553,1233)$, which are small primes compared to those in used by banks, one would often choose the Fermat number $65537$ as public exponent $e$, then the private exponent $d$ is $426779... |
Using homomorphic encryption, I would like to be able to take an encrypted integer and either add 1 or -1 for a new encrypted value. I do not want the encrypted value to be recoverable - just the following:
$\varepsilon(x) = (\varepsilon(x) \oplus \varepsilon(-1)) \oplus \varepsilon(1) = (\varepsilon(x) \oplus \varep... |
Imagine there is a $n$ bit block cipher. The attacker has harvested some how all possible $2^n$ cipher texts for some given key. Without the knowledge of the distribution of input domain as in frequency counts or some statistical information of input data. Is it possible to perform ciphertext-only attacks? Are there an... |
When creating digital signatures is it ok to send part of it when we have bandwidth constraints?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.