instruction stringlengths 32 27.2k |
|---|
PBKDF2 allows you to choose an output size as well as the internal hashing function used.
My question is, do these two sizes need to match?
For example, if I'm using PBKDF2 with SHA512, does my output size need to be 512 bits?
I'm a little confused because WebCrypto and CryptoJS allow you to specify SHA512 as the hashi... |
I think my limited understanding of DH might be messed up - what's wrong with this scenario?
C wants to connect to S.
C has an ECDSA public key that it trusts belongs to S.
Here's what happens:
C connects to S.
S sends its part of the DH key exchange, signed to prevent tampering*.
C sends over its part of the DH key... |
I'm trying to understand the MixColumns operation in AES but I have a question that I just can't figure out (it's probably something very simple but I can't find the answer).
The textbook explains that if you want to do a multiplication by 2 that can be implemented as a 1-bit left shift followed by an XOR.
How do I kno... |
I was reading how AES can be used for 64 bit data. Than i came to this answer :Is it possible to implement AES with a 64-bit I/O block size?
The answer here is given that by running AES in counter stream mode 64 bit plain text produce the 64 bit cipher text. But i can't under this point when 128 bit cipher text produce... |
We want to generate strings that can be used as passwords (storing later will be done with ex.: bcrypt, but these are the literally meant passwords).
On a Linux machine, the two generation methods are:
head -c 8192 /dev/urandom | md5sum | cut -d' ' -f1
head -c 8192 /dev/urandom | tr -cd '0123456789abcdef' | cut -c-32... |
This is a setup to produce a secret key for symmetrical encryption with TweetNaCl:
1) K1 consists of 32 random bytes
2) K2 consists of 32 random bytes
(By "random" I mean "obtained from /dev/urandom")
3) KC is the concatenation of K1 and K2
4) K consists of the first 32 bytes of the SHA-512 sum of KC
Questions:
a) Is i... |
I am stuck with AES-CFB decryption.
Assume I encrypted plaintext helloworld (10 bytes) using AES-CFB.
Now I want to decrypt the second byte e individually, that is I don't want to decrypt the first bytes or any other bytes except the second one.
Is it possible to do that without decrypting the first byte?
I did my fa... |
Consider a bilinear pairing $e:G_1×G_2→G_T$, and $p^2q^2$ be the order of $G_1$ and $G_2$, where $p$ and $q$ are prime integers.
Suppose that $g_1$ and $g_2$ are generators of $G_1$ and $G_2$ respectively, and $a$ is a random integer. What is the output of $e(g_1^p, g_2^a)$? Is it equal to $(g_t)^{ap}$?
What is the or... |
In The Galois/Counter Mode of Operation (GCM) by McGrew and Vega (PDF) it's stated that:
An initialization vector IV , that can have any number of bits between
$1$ and $2^{64}$. For a fixed value of the key, each IV value must be
distinct, but need not have equal lengths. 96-bit IV values can be
processed mor e ... |
In this question on StackOverflow https://stackoverflow.com/questions/31248777/can-pkcs5padding-be-in-aes-gcm-mode it's said that GCM doesn't require a padding: why?
|
Dropbox have recently published How Dropbox securely stores your passwords
Is this really more secure than using bcrypt with a complexity of 11 or 12 ?
The password "chain" is secure as its weakest part, so is there any point adding the extra 2 parts in ?
I understand that the Global "pepper" means that a DB dump prote... |
In ARX construction like Salsa 20, why xor operation is required? That is why AR is not sufficient? Note that xor is a linear operation.
|
I created a key pair using PGP (GnuPG) for the purpose of encrypting and signing data (documents, emails, and so on). That key was created with the RSA algorithm, and naturally starts with:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
I would like to know, if it is possible, to "convert" that very same key p... |
Lets assume for a specific situation we cannot use authenticated encryption like GCM ...
If we were to use CTR, what would you think of using a checksum on the plaintext then encrypt the whole.
The reason I don't want to use a hash is because the checksum is already presented in the plaintext protocol, and the reason I... |
Is there a way to set up encryption so that a certian number (x) out of a total (y) number of users/passwords are required to do the decryption?
Background: This is mostly a thought experiment, and I don't have a realisitic real world application for it, although they may exist. I recall first getting the idea from an... |
When I do:
openssl ecparam -list_curves
I get, among other entries:
brainpoolP512r1: RFC 5639 curve over a 512 bit prime field
brainpoolP512t1: RFC 5639 curve over a 512 bit prime field
Apparently the "t" means it is a twisted ECC curve. Is this slightly more secure or slightly less secure? I'd rather give up a few m... |
I am thinking about running the following linux command on each boot to generate a new random token each boot.
printf '%s' "$RANDOM"`ps -e` | md5sum | cut -d ' ' -f 1
The first part takes a string from the shell's $RANDOM variable and then from ps -e snapshot of every running process and PID at the moment.
The second... |
Let's say for example that I encrypt a password with some hash function and receive a 256-bit hash value in return. What are the chances that the first 128-bits (half) of this value are identical to the first 128-bits of another hash output?
If you're feeling generous, what are the chances that the first 64-bits (1/4) ... |
I know there are hashing algorithms that have so little known collisions, that it is safe to assume that they don't have any collisions at all (approximately).
Using this information, I tried implementing a bloom filter with only one hash function(in my case it was murmur3). My input for this bloom filter is 50,000 str... |
According to the documentation(http://keepass.info/help/base/security.html), keepass runs the AES key transformation round more than once to increase security.
If cracking consists of trying random strings of characters until we find the "right" one, wouldn't running the key transformation over again just result in ano... |
Is it necessary/appropriate to digitally sign an ETM file in an ECIES context? The encryption mode is CTR(using Inferno). The current output is:
[shared public key] [ciphertext] [MAC].
The encrypted files travel through email between users, if it matters.
The users need to make sure the messages they receive come from ... |
SHA-3:
http://csrc.nist.gov/publications/drafts/fips-202/fips_202_draft.pdf
I’m working on a Python implementation of SHA-3(256) and using the intermediate hash value found at http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA3-256_Msg30.pdf for the example 30-bit hash message. I’m having trouble with the i... |
This is probably a repeat of another question. I couldn't find it so I decided to post this one. What is the current hardest to crack encryption algorithm in the world. I don't mean encryption key I mean most advanced algorithm to crack for example what encryption algorithm with a 50-bit encryption key would be the har... |
I am trying to figure out if it is known how to calculate PowMod for a specific number of iterations in a single calculation. For instance take following function.
m^e mod N
m is a plaintext value
e is the exponent
N is the modulus value
there is a need to be able to apply this function repeatedly using the value that... |
Reading an excellent article explaining Bleichenbacher attack I came across the following statements under the formula for $s_i$:
if we pick $r ≥ 2(bs_{i-1} - 2B) / n$, we obtain
$(2B + 2(bs_{i-1} - 2B)) / b = 2s_{i-1} ≤ s_i$
Can anyone explain to me how the previous equality is obtained? If we try to reproduce it, w... |
I am studying a key exchange protocol based on public key cryptography technique specifically designed for mobile devices.
I noticed there is no importance given to battery usage by these protocols. I want to ask how important is this criteria? And if it is important, why is it ignored by certain researchers?
Here are... |
The title of this thread pretty much sums up what I'm asking: what is the best encryption to use out of the three — Blowfish, Twofish, or Threefish?
|
The structure can be the following:
A signature (on the sha-256 of everything else).
RSA-encrypted random AES key (or none) and as much data as it fits into an RSA block.
AES-encrypted blocks with the rest of the data (or none at all).
The point is that an RSA block can hold a lot. Seems like a waste of space.
Is it ... |
What is the difference between Strict Avalanche Criterion(SAC) and Avalanche criterion?
|
Assume:
$hmac(K, m) = M$
$hmac(K, m') = M'$
Can we associate that $M$ and $M'$ were signed by the same $K$?
Given $M$ and $M'$ and that we know they were signed with the same $K$, can we calculate the string similarity between $m$ and $m'$?
Edit: I originally asked the wrong question. The original question is known a... |
My question is about the challenge space size in Schnorr protocol. To be precise, I feel I've read all the Internet (twice) and I still don't understand why is it bad to allow challenge space to be large (say, why one shouldn't let $\text{Challenge} \in \mathbb{Z}_q$)
I'm interested only in situation of honest prover $... |
In this quote from Lattice Cryptography for the Internet (page 8), author says that we can use error distribution (the same one that we used to generate error) to generate secret. My question is considering that sampling from normal distribution is costly, is there any advantage to also use normal distribution to gener... |
Why we need pixel data encryption (perceptual encryption), not the complete file encryption (conventional encryption)?
I am working on securing medical images, but I could not find the answer to this question. Is the complete encryption of the file (image pixel data+ metadata(header file)) better than encrypting only ... |
I'm trying to make some understanding of the Wikipedia definition of a pseudorandom number generator.
Can someone explain the intuition behind this definition (how is this describing "seeming randomness for polynomial time")?
|
Wang's (et al) differential attack works on MD5, MD4, RIPEMD and HAVAL.
Why doesn't it work on SHA-1?
|
I have a long set of hashes (long hashes, long set) generated with the same algorithm. And for each hash I know that it belongs to one of two groups.
Are there any methods of hash analysis, that allow to determine with some probability which group (any) given hash belongs to?
update:
A simple example: I have a long set... |
I already understand the desire to segregate a PGP master key from subkeys, allowing me to keep the master key in some off-site non-networked location while making use of the subkeys to do things like encryption and authentication. I also understand that I can then revoke the subkeys later if they are lost or compromis... |
I was wondering why someone would go and use HKDF (or any KDF) when they can use a stream cipher instead.
It seems like a stream cipher will always be one-way, whereas a KDF might not be (see AES or DES key schedules for example). So using a KDF might be dangerous if you use it to both derive public and private values ... |
I have a requirement where an encrypted file is read in random order of 32k chunks and decrypted and final content hash is computed. This hash should match the original content of file.
I need this as while I am reading file from source I want decryption and hash computation to happen, else I will have to write all the... |
Unfortunately I have to implement some naive homemade symmetric crypto, since ordinary AES CTR is not implemented in available API on target platform.
What I’m going to do is, given encryption password and plaintext bytes, generate “encryption key” from password via PBKDF2/RFC 2898 with length of plaintext, and then XO... |
The elliptic JavaScript library implements a .sign function which seems to give the same result when signing the same message. That means the k param is constant. Doesn't that mean signing different messages exposes the private key? If that is the case, how can I correctly sign several messages with the same private ke... |
This is a very basic question about hashing: When a client connects to a SSL/TLS encrypted server it hashes the certificate, right?
So, an attacker could steal the public certificate in the transfer and tell the victim that he is the server. Wouldn’t that be possible because the hash would be the same? (I know that thi... |
My understanding about SSL/TLS for HTTPS is that servers send their certificates to browsers and browser attempt to decrypt them using trusted CA public keys that are already presented in their store. Also our certificates are limited to an expiration date (mostly because of security).
Do Certificate Authorities need t... |
I'm in a teacher-like position and would like my students to practice certain classes of RSA attacks. However I don't really know how to go about it and how to sensibly choose the parameters such that they have to practice the attack I had in mind when creating the challenge.
As two very concrete instances of this issu... |
I've seen implementation of Rijndael cipher with 16-bit blocksize. And I have also tried to implement 16-bit Rijndael cipher by myself with only a little sneak peeking at the example of the implementation.
I think this was a very good way to learn how Rijndael or AES cipher works, by simplify the cipher and reducing th... |
Let $N=pq$, where $p$ and $q$ are prime numbers, and order of $G_1$ and $G_2$ is equal to $p$. Suppose that $e(G_1, G_2)=G_t$ is a pairing of composite order. I know that, usually the order of target group $G_t$ is $p$.
Is it possible to set the order of target group to $pq$? In other words, is it possible to set order... |
In public key cryptosystem, there are often two keys (pub and pri) and two functions (Enc and Dec) such that:
Enc(pub, m) = c
Dec(pri, c) = m
Usually pub and pri are generated as a matching key pair and used together. However, given a ciphertext c, without knowing pri, is it possible to successfully decrypt it into th... |
Decryption is simply a process of transforming one byte string into another with an input argument private_key. However, if people have no knowledge about the plaintext, how do they know the decryption is successful?
For example, suppose the plaintext is a byte string abcd, and transformed into ciphertext whatever in t... |
For a few years I have put all my passwords in a text file and encrypted that file with a password using a software solution (Axcrypt) which uses AES-128. The password is not really strong, but I thought AES encryption would make it strong somehow.
But it always bothered me how this can be secure and now that I have re... |
FIPS 186-4, sections B.2.1 and B.2.2, discuss two different methods for generating k for DSA / ECDSA. Unless I'm mistaken RFC 6979 discusses another method utilizing HMAC_DRBG.
So what method is the preferred method?
FIPS 186-4 was published July 2013. RFC 6979 was published August 2013. So the RFC is newer but not muc... |
I have developed an encryption algorithm. Now i want to check avalanche effect by making one bit change in plaintext and observing how many bits are changing in ciphertext. But my doubt is "what is one bit change in plaintext" say for e.g
if plaintext P1= 11223344 then do we mean one bit change as
P2= 112... |
TL;DR
Will appending session id to a password prior an RSA encryption introduce vulnerability where an eavesdropper can collect multiple encrypted password ciphertext and perform cryptanalysis to obtain the password? (Session id is known to the server only and unique for each visitor)
Background story
I have a login fo... |
Using ECIES in a file encryption protocol, I need to authenticate the sender, so I'm using ECDSA, and I'm wondering if signing the ephemeral public key(needed by receiver to derive the shared symmetric key) is the way to go? The goal is to prevent MitM from forging and sending a fake ephemeral public key. The code(C#) ... |
I've checked a bunch of articles about machine learning and cryptography and derived from them three distinct possibilities:
Use ML to approximate a cipher as a function. Article "Neuro-Cryptanalysis of DES and 3DES" shows a way to approximate DES using only $2^{10}$ plaintext-ciphertext pairs with average error of 10... |
I've run into a question dealing with the number of
modular multiplications of O(n) bit numbers in the following situation:
Given two n bit primes p,q define m=pq. Choose some 'a' so that $2<a<m\hspace{-0.04 in}-\hspace{-0.04 in}2$
and look at a^(2^t) for some integer t. This is done using iterated squa... |
I know that the $\mathrm{LLL}$ algorithm can find a short, not necessarily the shortest, basis in polynomial time.
My question is: if we construct a lattice from $\textbf{A}$ and then run $\mathrm{LLL}$ on the lattice, would it help in finding the solution or clue to find the solution to the $\mathrm{SIS}$ problem (esp... |
At 5:26 in this princeton coursera course video the presenter says that the public key is used (by the recipient) to generate the signature to redeem the coins.
I'm a little confused here. If the public key is public information, and it's being used to generate the signature, then when is the private key used? I would ... |
I have three questions about AES related to side channel attacks:
Why are side channel attacks such as CPA related to the non-linearity of the SubBytes routine within AES?
What is the difference between using the substitution BOX (SBOX) in a non-linear way and the combinational SBOX proposed in articles such as "Des... |
Can someone explain to me, why Zero-Knowledge-Protocols are used instead of letting the person sign a random string and then verify the signature?
Doesn't Fiat-Shamir need even more processing-power than RSA with swapped private and public keys? (RSA can be used as signature-method by "encrypting" with the private key ... |
This small Lisp-function implements Fermat's primality test in a very simple way and it is very slow at $n >= 10^6$ because we reach into bignum territory.
(defun prime-p (n)
(= 1 (mod (expt 5 (1- n)) n)))
What am I missing? I assume that this is not the form that is actually used in implementations of RSA to find ... |
I recently completed a semester studying some basic amount of cryptography. So my knowledge is not very broad/deep.
What I currently see is that we have a bunch of fairly secure encryption modes to encrypt data and fairly secure authentication protocols to authenticate/identify subjects.
Now security protocols are a b... |
I tried to work this out but I'm stuck at finding a relation between $c$ and $e(k)$:
An encryption system accepts 8 bit-blocks as input.
The encryption is done by XOR'ing the bits with an 8-bit key.
Prove that:
$(m_1 ⊕ m_2) = e_k(m_1) ⊕ e_k(m_2)$
There does not exist a message $m$, such that $e_k(m) = m$, except whe... |
Use of Linear Feedback Shift Registers(LFSR) is discouraged due to complexity of order of it's length.
Recently Non-Linear LFSR has been talked about.
I am curious how the properties of LFSR based m-sequence generators hold in this case:
Auto-Correlation- low
Cross-Correlation- Very low
Periodicity $~ 2^n-1$
How NLFS... |
The overall setup is that I am using RSA public key encryption, and because the messages are big instead of encrypting the entire message via RSA I am encrypting a random AES-128 key with the PK and then encrypting the message with that in AES-CBC.
The AES key is randomly generated for each message. Questions:
Is it s... |
I am reading a research paper on image encryption using chaotic maps.and in between the paper they are using SHA3 encryption to produce 256 bits.
I am not able to understand how are they using SHA3 and how are the 32 hash values of the image being obtained.
please can somebody guide me on this.
some reference
|
I hope that this is not a duplicate because I'm looking for nuance. I understand the difference between ECB and CBC for a block cipher, and I understand that ECB is susceptible to replay attacks, but my question is just from the standpoint of strength. If I have cipher that has 256-bit key and 128-bit data that is us... |
I am formulating a simulation based proof, but I'm not sure how much power I can give the simulator. For example if a simulator needs to simulate the output of a symmetric key encryption algorithm then it can just pick a random string of the same length and use that to simulate the output. Would it be possible though t... |
In the answer to the question Random unique key per message, safe to use key as IV? it was claimed that one can recover a random 128-bit textbook-RSA encrypted value using about $2^{64}$ steps.
How and why does this attack work?
|
I've encountered some papers online describing ciphers made through a combination of stream and block ciphers. (See this 2008 paper by Sandy Harris: https://eprint.iacr.org/2008/473.pdf) In a nutshell, the concept is to use the output of a stream cipher to add whitening and/or update the round keys of a block cipher. ... |
Assuming our fixed compression function $h$ works for inputs of length $i(n)$ and output strings of length $o(n)$, if $2o(n) < i(n)$, why do we need to calculate $h(z_B||L)$ where L is the input's length instead of just concatenating $z_B ||L$? What do we gain from hashing the length?
|
SHA-3 Sub-Function Reversibility Clarification
I just finished a very slow and clunky python implementation of SHA-3 (224,256,384,512). The exercise was not designed for speed. My only objective was to gain insight into the underlining functionality of the SHA-3 family of functions, and to document it in a manner tha... |
Do any methods exist whereby a "hash" can be embedded in the "document" it hashes?
What I mean is this. Say I have a given plaintext T. I wonder if there is a method to craft (i.e. not discover as a fluke) a "document" D being some combination (e.g. a concatenation) of T and a hashvalue h, where h is H(D), H being som... |
I have a small embedded platform that supports 6 TLS ciphers. Is there a good/better/best one to chose?
I was looking around on the web for some kind of rating system or list of ciphers that have known weaknesses, but I couldn't find much.
Back to my project, I used the Wireshark tool to capture the "client hello" whe... |
From my understanding of blockchain, I feel the main use of blockchain is to do something in a decentralised way as compared to the traditional centralised way which involves a middle man. Usually, the centralised way is a much simpler way, but use of a more complicated way (blockchain) becomes justified because you ar... |
So doing a little research on RSA, and knowing the public key contains $N$. So breaking down the steps to cracking it, I'd have to compute $P$ and $Q$ (which takes a very long time as I understand it), where $P\cdot Q = N$, aka, prime 1 and prime 2.
So it takes a long time to find a suitable prime pair. I see 2 actions... |
I have been recently considering becoming a cryptanalyst. I have moderate background in mathematics, but I am not sure if that is the case with breaking codes and cryptanalysis is just like in the movies. I have passion for puzzles in many forms and brain teasers, finding patterns etc. I have seen that there are contes... |
Write the decryption of a 2-round generalized Feistel network given below.
$P_i$ denotes plaintext blocks of each 32-bits.
$RK_i$ denotes the round keys.
$WK_i$ denotes 32-bit keys applied only at the first round (whitening keys)
Continue the lines for the decryption.
The whole figure will input 4, 32-bit plaint... |
Public-key cryptographic systems are often implemented on top of an existing problem. For example, RSA is built on top of integers and the difficulty of factoring. ECDSA/ECIES are built on top of elliptic curves and the difficulty of the discrete logarithm.
My question is, what are, mathematically speaking, the exact p... |
Alice would like to communicate with Bob using RSA procedures. She thinks of two numbers $p = 3$, $q = 13$, and calculates $n = p · q = 39$.
Note: Only RSA trapdoor function can be used.
Bob would like to send a locked message to Alice $(A = 1, B = 2, ..., Z = 26)$ and sends each of them as separate message per letter.... |
I am using an Arduino board to implement the AES Algorithm:
I am having a large data of length approximately 500 bytes. I did all the basic stuff in implementing this AES Algorithm. I am getting partial Results.
Please help me implement this.
|
I have a question that I have not found the answers to in many books.
Does the expansion permutation have to map values to the same space?
For example, in DES, 32 bits are expanded into 48 bits via an expansion permutation where the values are shuffled around but do not change.
Consider the following expansion functio... |
Why are homomorphic algorithms slower than regular(symmetric and asymmetric) algorithms?
For example RSA in regular asymmetric cryptography uses the same algorithm as in RSA homomorphic (partially HE) cryptography.
but in homomorphic Whereas there isn't decryption time for execution time homomorphic is slow?
|
The Lamport signature scheme is faster, less complex and considerably safer than ECDSA. It's only downside - being only usable once - isn't really a downside when signing transactions, since you could just include your next public key whenever signing it. Why isn't, thus, the Lamport signature scheme used in crypto cur... |
I'm trying to understand what is required to construct one-way hash functions. I know about many algorithms used in practice, such as SHA256, Blake2, MD5, which are of high quality, but they're complex and studying them doesn't really answer my question. I also know about "simpler" algorithms such as multiplication mod... |
I want Alice to symmetrically encrypt a large file, transmit it over a public network and have Bob decrypt it. The shared secret of the two is a password, potentially very simple and may be reused often. The password is shared offline, potentially insecurely (by Alice shouting it across the room or whispering it into B... |
Do attribute-base encryption (abe), key policy attribute-based encryption (KP-ABE) and ciphertext attribute-based encryption (CP-ABE) fall into the attribute-based access control (ABAC) paradigm or are they not related?
|
The Lamport signature scheme, for example, doesn't rely on the difficulty of any problem and it only depends on the existence of one-way functions.
Is there an alternative scheme which also doesn't rely on the difficulty of factoring/discrete logarithm, but provides shorter signatures?
|
So I was sitting on an algorithm I thought up at school, and just decided to implement it. And it worked for what I wanted - but I don't know what this is worth.
I broke apart a 2048 private key for the $N$, $Q$, and $P$.
So for $N$:
CC0202236A4B976D7FC217BEF43F6C3EAC719BD97E1092059F972D2C993F1492
5835001F0CC38DC64731... |
I have been reading about FHE lately, and it seems that bootstrapping is the core concept in order to develop FHE schemes. But, I don't exactly understand the idea behind it. I know that the schemes based on Gentry's design are noise-based, and that the noise increases with each homomorphic operation, and if the noise ... |
I have been looking into the creation of truly random numbers using a quantum computer, but I have been having trouble with finding resources on this problem. Is it possible to create a truly random number using a quantum computer?
In theory, my thinking is that we can prepare a qubit in the $|0\rangle$ state, apply a ... |
Let $E(\mathbb F_{q^k})$ be an elliptic curve on finite field $\mathbb F_{q^k}$, where $\mathbb F_{q^k}$ is an extension of $\mathbb F_q$ with $k>1$. Let $e: G_1 \times G_2 \rightarrow G_t$ be a bilinear pairing, and $G_1$, $G_2$ are some subgroup of $E(\mathbb F_{q^k})$ of order $r$, where $r| \# E(\mathbb F_q)$ and $... |
I'm self-studying Katz' book (2nd ed), and I have a small question about Theorem 3.32, which says:
If $F$ is a pseudorandom permutation, then $CTR$ mode is $CPA-$secure.
They present a proof there, but I think that another proof is viable, which is basically a corollary of a theorem they presented earlier.
My proof ... |
In the context of cryptographic hash function collisions, what exactly is a pseudo-collision attack?
E.g., pseudo-collisions are discussed here:
Preimage and Pseudo-Collision Attacks on Step-Reduced SM3 Hash Function
Converting Meet-in-the-Middle Preimage
Attack into Pseudo Collision Attack:
Application to SHA-2
Also... |
RFC 2104 says:
Applications of HMAC can choose to truncate the output
of HMAC by outputting the t leftmost bits of the HMAC
computation for some parameter t [...]. We recommend
that the output length t be not less than half the
length of the hash output (to match the birthday
attack bound) and not less than 80 bits (a... |
I am working on securing DICOM medical images, and the proposed approach is to use selective image encryption based on a segmented Region Of Interest (ROI) and Region Of Background (ROB) of the DICOM image. However, I could not find the answers to the following questions, which are:
Why we need to encrypt DICOM images... |
Assume that a man-in-the-middle attack on the Diffie-Hellman key exchange protocol is possible, for which the adversary generates two public–private key pairs for the attack.
Could the same attack be accomplished with one pair?
|
Is there an entropy source that provides the following three properties?
true randomness
for a distinct time-period, produces same (random) data on two devices that are less than 10 km apart from each other
high throughput, so recording randomness for a few minutes requires terabytes of data storage
I considered sour... |
In a recent answer I gave a definition of near-collision-attacks. Now beyond the definition and what to do with this type of attack my knowledge is fairly limited. So here's the question:
Let $H:\{0,1\}^*\rightarrow\{0,1\}^n$ be a cryptographically secure hash function. Let $k\in\mathbb N$ be $0<k<n$. Without further d... |
I recently participated in the 33c3 ctf competition and tried to solve the beeblebrox challenge but could not crack it and nobody posted a writeup/exploit of it so far so I want to get help solving it (the competition is long over). You can get the server code here.
The server works the following way, when connected we... |
There are many people mining for Bitcoin right this second.[Citation needed]
Bitcoin's proof-of-work mining system is based on a hash function (SHA-256, I believe), and there are ASICs built specifically for mining this.
Would it be possible to engineer a cryptocurrency such that the calculations of the mining process... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.