instruction stringlengths 33 27.2k |
|---|
$G$ is a PRG where $|G(s)| > 2 \cdot |s|$.
$G'(s) = G(s0^{|s|})$.
$G'(s) = G(s_1...s_{n/2})$, where $s = s_1...s_n$.
My question here is whether my own proposed solutions are correct and do make sense.
|
Lots of modern encryption (RSA comes to mind) are based on the fact that factoring large numbers is hard. However, multiplying large numbers is much easier, and table lookups are very easy. Since these large numbers are semiprimes (in all encryption methods I can think of, anyways), why not just make a table of the pro... |
I'm confused.
I thought that tossing a 6-sided die 100 times had a greater than 256-bit entropy because $6^{99} < 2^{256} < 6^{100}$. (A similar concept appeared in this XKCD comic, where choosing four random words from a dictionary of presumably 2048 words has a 44-bit entropy, presumably because $2048^4 = 2^{44}$.)
O... |
I am curious to know how an ECDH algorithms select a module value, if both ends A & B can generate same shared key using the public key of each other ?
If I understood DH correctly, both A and B send each other their public key. Then at each side the ECDH operation takes as parameter self ECC key and the public key of... |
I am trying to understand the small subgroup confinement attack on the Diffie-Hellman algorithm. I will present the attack and try to explain why it works.
Small subgroup confinement attack on the Diffie-Hellman algorithm
Let $\mathbb{Z}_p^*$ be a group, where $p$ is a large prime and let $\alpha$ be a primitive root m... |
How can I calculate points on an elliptic curve defined over $\mathbb F_p$, for example $y^2 \equiv x^3 + 1 \pmod p$, with coordinates in $\mathbb F_{p^2}$? (points might have complex number format in $\mathbb F_{p^2}$)
|
Since most of our asymmetric encryption algorithms are going to be out-of-date in a couple of year due to Shor's algorithm, I was wondering about the future of FHE schemes.
I have found this paper, which states:
"It is impossible to construct secure group homomorphic encryption in the
quantum world, if the plain-text ... |
Let's say I have a text field somewhere (i.e. an interactive user submitted text field on a PHP script, or a console application. Basically anything that accepts user input.)
How can I detect if said text field contains only a PGP encrypted/signed message? I could just fingerprint the BEGIN PGP ENCRYPTED MESSAGE header... |
In many implementations, the result of the Diffie-Hellman algorithm is hashed. I read that:
Hashing the shared secret point prevents an attacker from gaining more information about the EC private keys used to generate the shared point.
Could someone give me an example of how to get information about the private key w... |
I have seen a talk by Rüdiger Weis, where he says that you can combine two symmetric ciphers using XOR. According to him, that has the effect that its sufficient if only one of the ciphers is secure.
How does he do that? I have thought of
ciphertext = twofish(message) XOR aes(message)
but I can't see how the receiver... |
Bitcoin's mini private key format works by brute forcing random data to produce a secret so that when appending ? and then hashing with sha256 it will produce a hash that starts with 0x00. This way the user knows the secret is well formed and can proceed to hash it without appending ? to produce their private key.
This... |
Is there any security issue in using scrypt for Key + IV/nonce generation? In other words, can I safely use only a salt for scrypt and derive the nonce along with the key?
For example:
I have data I want to encrypt using password and AES in EAX mode. I want to use scrypt key derivation function to make a key from enter... |
I'm working on a secure file storage server. This server allows users to upload and download files based on a "seed". This "seed" is a 128-bit value.
From this 128-bit seed, we run SHA512 to derive a 256-bit key, 128-bit IV and 128-bit file identifier used to find the file on the server. The key and IV are then used to... |
Using a truncated hash of a key seems to be a safe way to identify the key (i.e. key fingerprint), but what about truncating a key itself in the case of HMAC-SHA256?
Example:
$ key=`openssl rand 32 -base64`
$ keyId=`echo $key | cut -c 40-43`
$ echo $key
RlBDpvx3pCD/rs2SyeHX0enLOxCP7mEQCB8zvtQhD6g=
$ echo $keyId
hD6... |
I'm developing a web app where I wish to use pseudorandom keys for items, perhaps akin to Imgur. I was thinking about how many combinations I need to reduce the chance of someone guessing any random item in the database (by checking the associated URL) to x. On the performance side, it would seem to be the same (simila... |
In a typical digital signature scheme in which in order to sign we compute:
hash of the message: $h(m)$
resulting hash signed with the private key $[h(m)](private key)$
If there were a collision on the hash, what an adversary could do?
Solution (?)
An adversary can find a different message $m_2$ with the same hash o... |
Say we have a public network and lots of peers. Each may need to communicate with another peer.
Would there be any huge security issue to each peer making the the public part of their key openly available across the network?
In this way, any other peer in the system could automatically calculate a secret to commun... |
We implemented a rc4 (ARC4) variant for creating a cryptographic stream - question is:
Is this sound?
(I'll give an example for 32 bit variant, though 64 bit/larger is possible)
Algorithm is as follows:
We have an array of integers A (32 bit) and array of 8 bit numbers B.
Perform a round of rc4 to mix the B array posit... |
I know it has been already asked and answered whether it's possible to generate weak DH parameters.
But "recentely" we experienced the Logjam attack, which makes use of the pre-computation capabilities of the GNFS to quickly break many discrete logarithm problem (DLP) instances.
Now I know that the main workload of the... |
Is there a precise procedure or strategy to follow in order to prove in a formal way the (not) collision-resistance of a certain given hash construction? I.e. let $H_1$ and $H_2$ be two hash functions, then define the following construction $H(x) = H_1(x)||H_2(x)$. How could one formally prove that such construction do... |
Some systems, that operate over flaky bearers, need to send signed, encrypted messages that are entirely self contained - i.e. send a single 300 byte UDP rather than have a 10Kb, two-way, certificate conversation over TCP.
Assume the destination has a private key and already knows the source's public key, and the sourc... |
Assume I have two data fragments: $Frag_1$ and $Frag_2$.
I can build sha512 hashes the usual way with $SHA512(Frag_1)$ and $SHA512(Frag_2)$ and then hash the two fragments appended to each other:
$$SHA512(Frag_1 | Frag_2)$$
My question is, is there any way to combine the hashes of those two fragments so that it would ... |
This page (which won't let me post a comment, sadly!) describes how the original FHE paper by Craig Gentry describes FHE.
(Other references to this stuff can be found on this question.)
It mentions that once you have your key (an array of bits) and your encrypted values (arrays of floats in the range of $-1$ to $1$, wi... |
I'm wondering what the probability of a PRP having numerous keys (say 3 or more) with the same simple idempotent, or near identity, function. For example, does there exist values of $p, a, b, x_1,$ and $x_2$ where more than two keys, $k$, have the property:
$
AES_k(p) = (x_1 \oplus (a*k) + b) \oplus x_2
$
I can abstra... |
I'm trying to use PHP to encrypt files with a public key. I'm using the function openssl_seal that "encrypts data by using RC4 with a randomly generated secret key."
RC4 is considered unsafe so the alternative is to use AES ECB, but it too is generally considered unsafe (AES CBC is sadly not an option).
My question is... |
When using structured data inside a plaintext (such as gzip headers, xml, etc.) they generate known plaintext which may be useful in cracking the ciphertext.
So I had these two ideas on how to make this known structure less useful to attackers while preserving the value to those with valid decryption keys:
First, if we... |
Let $H_{1}(x)$, $H_{2}(x)$, ..., $H_{n}(x)$ be a list of $n$ secure one-way hash functions such that for a given input $x$ each $H_{i}(x) \neq H_{j}(x)$ when $i \neq j$. Give one hash function to each of $n$ people. No person should be able to reproduce the output of any other person's hash function.
For any inputs... |
So I was just checking my TLS cipherlist and noticed that there was a 'DSS' / DSA / ECDSA version of every RSA cipher available, except for DHE-RSA-CHACHA20-POLY1305.
Why is that?
|
I would like to be able to "code" images such as the one seen here on Wikipedia.
Is this generally produced with software, or does this require complex programming? Ideally, I would love to be able to batch encrypt images based on settings I pre-defined.
|
I just can't figure out why on earth the $IV$ in Merkle–Damgård has to be fixed (that's what the Katz-Lindell book says)? Because even if you choose it randomly from say $\{{0,1}\}^n$ then the resulting construction still remains collision-resistant, or not?
|
I've just noticed that US NIST has accepted DSA as a digital signature standard. Does the European Union have a similar standard, specifying an algorithm to use when digitally signing messages?
I have been looking this up for some time now, but I fail to find a reasonable answer.
|
I am working on a project where I need to implement elliptic curve cryptography, I am struggling from a long time in order to understand the working and the process.
Modular finite field arithmetic, I understood the initial concept, now I am looking at this document from NIST
https://www.nsa.gov/ia/_files/nist-routines... |
I recentely asked "IND-CCA1 RSA padding?" about whether there is a IND-CCA1 secure variant of RSA. The original version of the question also allowed usage of ECC which would allow usage of ElGamal, providing IND-CPA and somewhat IND-CCA1.
Now I have the same setting as in the above question, meaning I need a cryptosyst... |
I know that AES 256 bit is far more than enough to secure a file. I just want to know if there are any vulnerabilities or known attacks which can make such this combination less secure "double encryption using AES using different key lengths (first 128 bit and then 256 bit)".
Say, for example, I have a program that ca... |
Assume there is a hypothetical situation where one would need to generate hundreds of millions of public key pairs of reasonable strength in a limited time.
What would be required in terms of entropy and how long would it take? Could it be acheived on a single computer? How few computers could one get away with?
If th... |
When protecting SSH private keys with password-based encryption, what would be a good minimum password complexity+length standard to make cracking the password too difficult to be worthwhile anytime in the near future if the key got stolen / disclosed somehow.
For the purposes of this question, the private key is a 20... |
According to the Barrington's theorem, any circuit in NC1 can be converted to a branching program, whose main operation is the composition of permutations (along with the choosing of permutations according to inputs, which we omit here) . So I wonder whether there is a scheme that can directly encrypt the two-line nota... |
Suggested by Ricky Demer in this post, I am reading the paper "Evaluating Branching Programs on Encrypted Data"(TCC 2007), which uses one-round strong OT protocol to implement homomorphic evaluation of branching program (BP) on encrypted data with succinct ciphertext.
As it says on page 6, the natural way to evaluate a... |
Lets say we have a message $m$ that we encrypt with two keys $k_1, k_2$ such that $k_1 \ne k_2$. This will produce two ciphertexts $c_1, c_2$ such that $c_1 = m \oplus k_1, c_2 = m \oplus k_2$.
The attacker managed to get the two ciphertexts and also has the knowledge that both ciphertexts $c_1, c_2$ represent the same... |
I'm looking for a cryptographic algorithm that allows encrypting only 8 bits of data in a block. Is there any such algorithm that is considered secure?
The reason I'm asking is because I have to encrypt and decrypt the data contained in SPI Flash memory (the BIOS flash), and I need it to be really fast to get the cyphe... |
I need some info/suggestions about the cryptographic algorithm that make me sure that the executed bios by the CPU is an authenticated bios. The check has to be performed by a FPGA.
I have SPI Flash that contains the bios code ( assembler code ), CPU and FPGA between CPU and SPI Flash.
The first idea was to authenti... |
I've been required to answer a question:
As usually, we have Alice and Bob.
Suppose Alice wants to send a file F to Bob, ensuring integrity and confidentiality. They share a symmetryc key $K_{ab}$ and use AES. No hash algorithm is available.
Alice sends to Bob: $Enc(K_{ab}, F)$
In this simple scheme, are integrity and... |
If the data is not a multiple of 64 bits, then I can use padding. I know that it is not secure. But if the key is less than or more than 64 bits, should I ask the user to enter the key again, or should I pad / truncate it?
|
What is the difference between a random oracle and a probabilistic algorithm?
|
I'm just repurposing a question already asked about Cryptolocker for CryptoWall:
"If we know exact contents of some of the files prior to them being encrypted, would it be feasible to use those files to discover the private key?"
There's an answer posted for the case of CryptoLocker, but what about for CryptoWall? I... |
I have an old work database that seems to have a simple encryption on the password. I have one users whose password is 7777 and the cipher text is <<<< (actual text).
Is it possible to learn any more about the encryption? Ultimately, I'd like to decrypt a few other fields in the database. I don't know what was used, bu... |
In Envelope encryption a symmetric secret key is used to sign the data and then another key is used to encrypt the secret to produce an encrypted secret key. The encrypted messages is packaged with the encrypted secret key and sent to the client/consumer which then decrypted the encrypted secret key to get the secret k... |
I would love to have a system where the password is never send in plaintext (even with TLS) to authenticate a user. I've come up with this protocol, but I'd rather use something proven.
Registration:
Client (javascript in a browser) generates a 2048 bit RSA keypair (using Forge js)
Client generates hash from the users... |
Found this report detailing a quantum algorithm for computing isogenies between supersingular elliptic curves.
https://cacr.uwaterloo.ca/techreports/2014/cacr2014-24.pdf
with the quote "recommendation to avoid using base curves defined over $\mathbb F_p$ in De Feo-Jao-Plut type schemes".
Is it correct then that 'Supers... |
I'm looking for an additive homomorphic encryption that the addition operator (+) in its plaintext space be the same as addition operator in its ciphertext space. (Schemes like Paillier do addition in plaintext space by multiplication in ciphertext space).
Does anybody know such a scheme?
|
I am new to cryptography. I have question regarding the size of the set of random functions. I found the text from "Introduction to modern cryptography" by Katz and Lindell, in another thread which also relates to my question: Difference between Pseudorandom Function vs randomly chosen function
The text from "Introduct... |
Assume we have the following setup:
A client with trusted storage and computing capabilities (e.g. a smartcard)
A server with trusted computing and short-term storage capabilities (e.g. RAM + CPU, possibly with something like Intel SGX). The server has no trusted large-scale long-term storage capabilities and may only... |
I'm working on an embedded device that is connected to a computer over an untrusted channel. According to my threat model I need authentication and encryption on the wire with perfect forward secrecy. Both endpoints have a pre-shared key and/or each other's authentic public keys, as well as secure random number generat... |
It has been explained to me by IT that there is no such thing as totally secure email - but rather a spectrum.
If systems are secured via https and SSL what degree of encryption/security are we talking? I read somewhere that SSL is about encryption during transmission - but is thisthe same as having end to end encrypti... |
Recently I am reading something about order-revealing encryption (by Boneh at al. in EuroCrypt 2015) and encountered "matrix branching programming". It seems like it took me forever to understand this. Anyone can help me with this problem. better have a concrete example in explanations
|
Let $p$ be a prime number.
Consider two fixed values $a,b\in\mathbb Z/p\mathbb Z$, where $b\neq0$, and a uniformly random value $r\leftarrow \mathbb Z/p\mathbb Z$.
Is $v=a+b\cdot r$ a uniformly random value in $\mathbb Z/p\mathbb Z$?
|
I have an unchanging set of unique items, and I want my server to show one of those items to a client, then cryptographically prove that the item is part of the set.
How I do this currently:
Generate a Merkle tree containing all of the items.
Give the client the Merkle root, (32 bytes) out of band.
Give the client the... |
When I send encrypted data to a website, using public key encryption, what is stopping someone who is listening from storing my encrypted data, and decryption it in a few years after they have determined the private key?
From my understanding, private keys can be discovered after a few years using a fast computer.
Are ... |
I'm working on a client handshake finished message for a TLS client, and I'm reading through the RFC 2246 spec. The spec states (in section 7.4.9):
The hash contained in finished messages sent by the server
incorporate Sender.server; those sent by the client incorporate
Sender.client. The value handshake_messages ... |
Can the keystream generated by CTR mode be considered a pseudo-random function?
I give more information. Assume $f$ is a PRF. We define a function which takes 2 inputs, the desired length, and an arbirtrary value:
$F_l(r):=f(r\cdot l \cdot 1) \cdot f(r \cdot l \cdot 2) \cdot \cdots\cdot f(r\cdot l\cdot l-1)\cdot f(r \c... |
Much like this question:
Public key in fully homomorphic encryption over the integers
I am also reading I'm reading Fully Homomorphic Encryption over the Integers, but I'm working on implementing the symmetric key implementation.
It says on the first page:
The key is an odd integer, chosen from some interval $p ∈ [2^{... |
Imagine we have $t-1$ shares in $(t,n)$ shamir secret sharing. So at least $t$ shares are needed.
Question: Why cannot we use $t-1$ shares to find a root of the polynomial and then recover the secret?
|
I know that, for any CPA-secure public-key encryption scheme, the size of the ciphertext after encrypting a single bit is superlogarithmic in the security parameter. That is, for $(pk,sk) \leftarrow Gen(1^n)$ it must hold that $|Enc_{pk}(b)| = w(\log n)$ for any $b \leftarrow \{0,1\}$.
The problem is that I took it as... |
I'm in the need of an inverse public-key encryption method where you encrypt with the private key and decrypt with the public key. In other words an asymetric encryption where you can't generate the encryption key from the decryption key. Does such encryption exist? If yes which, and which would be the fastest?
If noth... |
I have a multiplicative group $G$ of prime order $p$ implemented using a twisted Edwards curve (similar to Ed25519).
I want to compute a set of $k$ distinct points $P_1,...,P_k$ that generate $G$, such that the mutual discrete logarithms of these points are hard to compute. I.e., for any distinct $P_i,P_j\in \{P_1,...... |
For a scheme to be at least CPA secure, one has to randomize the scheme. In case of a secret key encryption scheme, the used randomness will typically become part of the cipher text as in the case of an IV and is "public" (This is not a necessary requirement but how most algorithms work).
Now, if I switch to public key... |
I know that these functions are there to actually make the program work. What I want to know is why they made the functions one way but not another.
For example, why did they pick
F1(B, C, D) = (B & C) | (~B & D)
as their first function instead of another function like
F1(B, C, D) = (B & D) | (C ^ (D & ~B))
|
How much security does double hashing add regarding collisions and preimages? Is it helpful to iterate a hash function even more times than two?
For example, can MD5 be fixed (in practice) by applying the hash function twice (MD5(MD5(x)))? Also, Bitcoin uses SHA256(SHA256(x)). Does this add security in practice?
I unde... |
I need a PRNG which provides 128 bytes numbers.
Let's say that given a symmetric key $K$ and an internal state $s$ I use the PRF HMAC-SHA512 this way:
The output is PRNG($K, s$) = HMAC-SHA512$_K$($s$ || 0x01) || HMAC-SHA512$_K$($s$ || 0x02) where $||$ represents a concatenation. The next state is $s_{i+1}$ = HMAC-SHA51... |
I'm trying to figure out which is the best way to get privacy and integrity together in public cryptography.
Alice needs to send multiple files $f$ (may be big) to Bob.
I've thought:
Alice computes the hash of the file $h(f)$.
Alice signs $h(f)$ with her private key.
Alice encrypts with Bob's public key $f$ and $Sig_a(... |
Encipher the following plaintext message, Exotic, using the Vignere method using the
key K = [4,2,3]
Can anyone help me get the answer and why, can't find anything that matches this question online.
|
The 10.9 exercise from the Katz-Lindell textbook creates a lot of confusion, let me state it here. Consider the following experiment for an algorithm $A$ and a function $l$ with $l(n) \leq 2n-2$ for all $n$:
The padded RSA experiment $PAD_{A,GenRSA,l}(n)$:
$(N,e,d) \leftarrow GenRSA(1^n)$.
Give $N$, $e$ to $A$, who ou... |
When I run
openssl cms -encrypt -aes256 -in sample.der -out wrapped.der -outform DER -recip ecc.crt -keyopt ecdh_kdf_md:sha512
the part of the CMS output which is supposed to have the 256 bit CEK encrypted under the KEK shows to be 40 bytes:
316:d=7 hl=2 l= 40 prim: OCTET STRING [HEX DUMP]:FDC50AE5E72BC6... |
I have come across 2 versions of otp while reading it and want to confirm it.
they have taken a plain text consisting of alphabets where they are
shifted and replaced by alphabets itself.
XORing of binary I/P streams with binary key.
Are they both valid forms? When I/P is in alphabets, shouldn't we convert it into bi... |
In a recent mail on the IETF CFRG mailing list it was claimed that:
The (currently missing) security considerations (or somewhere) should describe why Curve25519 is ok when used in contexts where we'd
otherwise ask for 128 bit strength, (basically because it's close
enough), and also why the 224 bit level is consi... |
In many symmetric key ciphers sender and receiver have to exchange a single key. They may also do it through 3rd party who distributes it to both of them. since 3rd party can read all messages exchanged between them It can have disastrous impact on them in terms of capital, forgery etc. so In this case how is the priva... |
From PKCS#1, page 24:
After we create the EM byte string and convert it to an integer, we then encrypt that integer with RSAEP (page 10) to get the ciphertext (as an integer).
My question arrives from the fact that RSAEP demands the input ($m$) to be less than the modulus ($n$).
My question is simple - how are we guara... |
The paper Fully Homomorphic Encryption over the Integers talks about a super simple symmetric key implementation on page 1 and 2.
It says that to generate a key, you pick a random odd number between $[2^{N-1} ,2^N)$ where N is the size of your key in bits.
To encrypt a bit (a 0 or a 1), you do this:
$c = pq +2r + m$
In... |
Are there ANY text strings that will generate the same SHA-512 Hash output? Please provide an example, and how you came to that conclusion.
I've tried thousands of variations, including ".." vs. "." and "..." vs "..,". I believe it IS possible, I just don't know HOW I can find those 2 magic text strings.
|
"Fully Homomorphic Encryption over the Integer" described a simple FHE scheme based on the GACD assumption. Its encryption function (on page 6) has the form $c \leftarrow (m + 2r + 2*\sum_{i \in S} x_i) \mod x_0$, where $\sum_{i \in S} x_i$ can be viewed as some ciphertexts of plaintext 0 (which can be divided by the s... |
I have keypair (u,r), and two pieces of data, X and Y.
I reveal X publicly but keep Y secret. Y has high entropy.
I then combine X and Y, into c(X,Y) = Z.
I encrypt Z, into "encrypt(Z,u) = Q". r is needed to decrypt Q back into Z.
Can I prove (including interactive zero-knowledge proofs) that Q contains X, without rev... |
I have keypair (u,r), and two pieces of data, X and Y.
I reveal X publicly but keep Y secret. Y has high entropy.
I then concatenate X and Y, into Z.
I encrypt Z, into "encrypt(Z,u) = Q". r is needed to decrypt Q back into Z.
Later, (when it doesn't matter), r will be revealed and everyone will decrypt Q into Z. At tha... |
In the paper Fully Homomorphic Encryption over the Integers, it mentions a symmetric key scheme on page 1 and 2.
Key Generation: Pick a random odd number $p \epsilon [2^{N-1},2^N)$
Encrypt A Bit m: $c = pq + 2r + m$
Decrypt A Bit c: $m = (c \% p) \% 2$
Homomorphic XOR: $result = c + c'$
Homomorphic AND: $result = c * c... |
Given public standard RSA exponent e = 65537,
is there any (d, n) pairs so that RSA decryption becomes a trivial operation?
The modulus n must be no less than 2048-bit. The goal is to get a real certificate for some internal server that must send same data both via http and https. Certificate authorities will check m... |
Let's assume we're in some scenario requiring transfer of large amounts of data. This means we can only use AES-GCM chunk-for-chunk as its maximal size is restricted to a few GiBs. This means we have to define a new nonce (a counter?) for each new chunk.
However each chunk needs to have its authentication tag appended ... |
I'm really excited by what I've learned of advancements in elliptic-curve cryptography. Curve25519 seems to be a great choice at this point in time, but if I recall correctly, some elliptic curve algorithms can be compromised during signature generation by a bad RNG: my understanding was that by a compromised RNG, the ... |
This device is a modification of the Bazeries cylinder, it has two stacks of 5 rotors which each bear two alphabets plus numbers 0-9, one in correct order and one in random order ( 36 characters in each row ). Plain text in 5 letter groups is entered by setting the rotors as in Fig 3. The shaded character on the bottom... |
I can find descriptions of using CFB mode to create a MAC and even implementations, but cannot find any standard or papers analyzing its security bounds.
Is there a standard for CFB-MAC?
Where can I find an analysis of its security bounds?
|
I'm a computer science student (not a mathematican) and I'm gonna to write a master degree diploma on applied cryptography. Specifically, I'd like to create a realization of some cryptographic stuff that is not widely deployed or even lacks of realizations by some reason (maybe because it's really new or it's just not ... |
Is there a practical security difference between “OTP with letters” and “OTP with numbers”?
If, for example, I encrypt a letter message using Tabula Recta with a random letter key, I would get:
THISI SATES TXAAA - message
MOSSK VFXNN EJRQW - OTP key
FVAKS NFQRF XGRQW - cipher
Would such encryption be less secure when ... |
Hope you're having a nice day.
I need to implement an authentication system between a "document" (it's not exactly a document, but an object without any computing capacity, only able to store information) and a computer. The document will have some sort of information stored there by the computer, and then it will be ... |
I have some difficulty understanding the way in which the Server is really authenticated by Client in TLS handshake (in case of using RSA key exchange).
When Client receives Server ‘s Certificate and verifies it with using CA root public key, I fully understand that at this time, Client can consider that such received ... |
Suppose I encrypted a homophonic substitution cipher at the level of syllables, trigrams, digraphs, and individual letter with a Vigenere cipher using the keyword cryptography. I would then encrypt the resulting complex ciphertext with an ADFGVX cipher in addition to using a code. How strong can a multiple-encryption b... |
Suppose I have access to an LFSR generator output used in a radio communications system, with the LFSR being used to authenticate devices. The system cycles an internal unknown length LFSR (greater than 32 bits) an unknown but constant number of times and returns the truncated upper 32 bits, with the lower bits being u... |
Similar questions have been asked regarding use of time in true random number generation, but I'd like to consider using time as just one source of entropy, complementing others.
True random number generation relies on the mensuration of some physical stochastic process. Electrons avalanche across depletion boundaries... |
I was recently thinking about password hashing (maybe caused by the PHC progression).
I started to think a little more about it and got stuck at this question:
What security properties do password-hashing related salts actually need?
I think they need to be globally unique (that's how I usually construct them). This me... |
I know that there exist some attack when using same modulus.
Can two different pairs of RSA key have the same modulus?
RSA cracking: The same message is sent to two different people problem
But with a little modification,
$m$ is the plain-text
$N$ is the RSA modulus
$r_1, r_2$ is the random padding
$e, s$ is the publi... |
Suppose we have the following symmetric algorithm:
key = random bits
G = PRNG(seed: key)
input = [0,1,1,0,1,0,0,0, 0,1,1,0,1,0,0,1] // "hi" in ascii
The key can be thought of as a sufficiently large bit string (say 256 bits).
encrypted = []
for each decrypted_bit in input
random = G.generate()
encrypted_bit = ... |
The question pretty much sums it up.
Is there any way to make an attacker who is successfully performing an MITM attack to actually not be able to read or change the messages? Assuming there is no pre-attack key transfer or an agreed upon key that isn't transferred mid-attacking conversation.
|
Please Consider: English is My Second Language
This Wikipedia article on HMACs shows a part of a HMAC-MD5 implementation making use of i_key_pad and o_key_pad:
# [...]
def hmac_md5(key, msg):
if len(key) > blocksize:
key = md5(key).digest()
key = key + bytearray(blocksize - len(key))
o_key_pad = k... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.