instruction stringlengths 32 27.2k |
|---|
I can understand why a simple substitution cipher can be broken easily using English letter frequencies, and even English digrams like th can be used. Also a complete random substitution will have a key length of $26!$ which can be done (around $2^{88}$, maybe NSA).
But what about emails? According to Google, emails ha... |
In Reusing AES-CTR Keys and IVs for File Encryption, the OP was asking about a composite encryption scheme $$C_i = E_K\left(P_i \oplus E_K\left(IV + i\right)\right)$$ which is basically just a CTR followed an ECB.
Now, while their intent was to use this for disk encryption (where the IV is just the unique (but known) l... |
I've been reading on preimage resistance and trying out few examples for the same and I'm trying to figure out why the following hash function does not have the second preimage resistance and any suggestions would be appreciated.
$$h(M) = \operatorname{AES-Enc}\big(M[0\ldots n], M[(n+1)\ldots 2n]\big) \oplus M[0\ldots ... |
Let's say I have a collision resistant hash function $H: \{0,1\}^* \rightarrow \{0,1\}^n$ and I want to create another collision resistant hash function $H': \{0,1\}^* \rightarrow \{0,1\}^n$ using $H$ that leaks a bit of input. Would this still constitute a collision resistant hash function?
$$H'(x\mathbin\Vert b) = H(... |
Let's say that my CPU can be made arbitrarily faster (or I can become arbitrarily patient waiting for the CPU to complete its task), and let's say that my memory (e.g. RAM) can be made arbitrarily larger. I.e. none have any limits/caps.
My question is, what is the tightest law, or theorem, that maps change in space/ra... |
In collision-resistant hash function, first, a hash function is sampled and the adversary is allowed to pick a collision $(x, x')$ s.t. $H(x) = H(x')$ and $x \neq x'$.
In a universal one-way hash function, first, the adversary picks $x$, and then a hash function is sampled, and then the adversary is supposed to find $x... |
I've been reading a lot about techniques related to stylometry whereby programmers can be de-anonymized by analyzing their source code.
Resisting deanonymization seems like a multifaceted problem. From variable renaming, space generation etc... to structural changes such as loop re-writing, function splitting, etc...
I... |
Given ciphertext for a message encrypted using $AES-CTR$ along with actual, desired message and IV, I need to perform malleability attack on the ciphertext to change the original message from $M$ to $M'$. But the message length of $M$ and $M'$ isn't the same. Since CTR doesn't use padding and the ciphertext is same len... |
If the order of group ($p$)selected by attacker then discrete logarithm is still hard?
|
Which block (cipher) algorithms are the most popular and most used today?
What parameter values (block length, key length) are now considered standard (safe).
|
I came up with a simple way to encrypt a series of bits and I cannot seem to find a weakness. I know almost nothing about cryptography so I was wondering if someone could help me out and find the fault in this method. It is incredibly simple, so I'm almost definitely not the first one to try this out, but I couldn't fi... |
Supposing there is a classical (no need quantum) $O(\log N)$ algorithm to factor integers $N$ and supposing there is a classical (no need quantum) $O(\log p)$ algorithm to find $g^{xy}$ given $g^x$ and $g^y$ over cyclic groups of cardinality $O(p)$ (which includes elliptic curve cryptography) where the constants in $O(... |
I have generated an AES key on HSM and I need to calculate the CMAC between this key with an input value. Is it possible to do this on HSM? What is the mechanism to invoke?
|
You have a 2048 bit private key, which is 2,048 randomly generated bits. It is not an RSA or ECC key. It is the master key that is used for every message. You receive a message to encrypt and generate an IV for it. Next, you take the first block of plaintext and SHA256(IV + 2048 bit key). You use that hash as a ke... |
I recently studied how to solve the LWE (learning with errors) using algebraic relations proposed by Arora and Ge (paper : New Algorithms for Learning in Presence of Errors).
As I understood, for LWE instances of the form $\vec{a}_i,b_i = <\vec{a}_i,\vec{s}>+e_i~mod~q$ for some integer $q$, adversaries generate algebra... |
So, my understanding of homomorphic encryption is that Alice has a private key and an algorithm, gives an encrypted copy of the algorithm to Bob, Bob runs the algorithm without understanding it, and gives the encrypted result back to Alice, who decrypts the result with her private key.
There's a variant of this concept... |
I know that IND-CPA is a security goal, which is defined as the inability of an attacker to distinguish two ciphertext of some arbitrary chosen plaintexts.
Unfortunately i havent found a good definition of OW-CCA, but i assume it has something to do with an Oracle and Chosen Ciphertexts. So in my understanding OW-CCA i... |
I was looking at the Wikipedia article about Block cipher mode of operation and I was wondering how can you from the encryption $C_i = E_K(P_i \oplus P_{i-1}\oplus C_{i-1})$ get the decryption $P_i = D_K(C_i) \oplus P_{i-1}\oplus C_{i-1}$ ?
Is there even a way to get decryption from encryption (and vice versa) or not... |
I found old key letters used in EFT HSMs with TDES keys, parted in two halfs. The check value printed on this letters is called IBM CV and doubled IBM CV.
My newer HSM does not support this kind of check value. Does anybody know how this value is calculated?
Thanks in advance
|
I was wondering about what is permutation entropy(PE). Then, I came to know this paper which describes PE. Now, let's assume that we have a pseudorandom permutation that is generated using an entropy source and we used a uniform shuffle algorithm(like Fisher-Yates shuffling algorithm). Also, assume that we use a 256-bi... |
I've been tasked with developing an app that will need to store photos a user takes securely, and I've been struggling to think up a method to do this.
What I was thinking so far is as follows:
When user first logs into the application, input their password along with a salt (stored in a database) to a key-derivation ... |
During my implementation of CommonCrypto from iOS, I noticed there is a function called CCECCryptorTwinDiversifyKey whose description is:
Diversifies a given EC key by deriving two scalars $u,v$ from the given entropy.
But the description left me guessing at what the function does or when it is used. Looking for "EC ... |
I am reading about Signing vs. Public-Key encryption and a question pop up in mind that is it possible to transform any signature scheme to a public-key encryption scheme?
|
I am aware of the different modes so that a "raw" block cipher such as AES (ECB) can be used to encrypt more than a single block of data (CBC, OFB, CTR, etc) and modes such as AES-GCM which provide a full AEAD implementation.
When looking at the known limitations for Amazon AWS CloudHSM, there is a maximum data size re... |
I hear there's a recent advance in Indistinguishability Obfuscation, aka io, with emphasis on Aayush Jain, Huijia Li and Amit Sahai Indistinguishability Obfuscation from Well-Founded Assumptions (eprint and arXiv, August 2020).
For the applied cryptographer inexperienced in Indistinguishability Obfuscation, what's the ... |
I hope someone can help me with the sequence of games security proof for protocols. Here are my questions:
What is the aim of each individual game? i.e. why can't we do this in one indistinguishable game?
How can we link each game with the previous one? i.e. I am not understanding the difference lemma which states:
... |
I was encrypting some Ansible secrets this morning and noticed that the ciphertexts seemed to have a lot of 3s and 6s in them. I did some frequency counts and found that yes, in fact, about 40% of the digits are 3s, and more than 20% 6s:
$ANSIBLE_VAULT;1.2;AES256;staging-swarm
653133306630613362636637666533613365353163... |
When I read the AFL16 paper by Araki, each party's share is adding a correlated randomness, like r1 = (a1b1−x1y1+α)/3 , r2 = (a2b2−x2y2+β)/3, r3 = (a3b3−x3y3+γ)/3 with α+β+γ=0, and use AES to generate that.
Also in the ABY3 paper they add the similiar randomness to each party in arithmetic operations.
I wonder why th... |
Sorry if this question is stupid, but is there an encryption algorithm where a message is encrypted with a set of n keys which can then be deciphered with any sufficiently large subset of those? E.g. encrypt with 3 keys and any 2 are sufficient to decipher the message.
AFAIK some blockchain wallets have a functionality... |
Probably this is a silly question but an anomalous curves and ordinary curves are the same things?
|
I will make a presentation about Linear approximation (Matsui's paper 1993 Linear Cryptanalysis Method for DES Cipher ) of DES and I don't understand some parts of it.
Here my questions :
In the linear approximation of $S$ boxes we had lemma 1 and it says $NS(a,b)$ is even
I saw the topic about lemma 1 but I don't un... |
I was reading the zerologon whitepaper by secura named:
Unauthenticated domain controller compromise by subverting Netlogon
cryptography.
I'm trying to understand the zerologon attack. The issue is on the KDF function (AES-CF8) that uses a IV with all zeros, I tried to follow the AES implementation with the block mod... |
There are public-key encryption schemes based on many different mathematical hardness assumptions, like the hardness of Decisional Diffie-Hellman problem, the hardness of the Factoring problem, the hardness of the RSA problem, etc.
But my question is, are there any public-key encryption schemes based on the hardness of... |
I have a cipher-text in binary, I know the beginning of the plain-text. I know that it is encrypted using LFSR, and I know nothing else.
How can I attack, and decrypt it?
What I have tried;
I converted the beginning of my plain-text to binary, which had a length of 84. My ciphertext's length is 952. I've got the first ... |
I'm working on padding oracle attack and I have a 16 byte cipher on which I need to perform the attack. I've been able to successfully decrypt all the bytes of the plain-text except first byte and I'm now out of ideas as to why I'm not getting any response for the first byte of plain text and any idea or help would be ... |
I am studying for a test and I don't seem to understand the Block Cipher and its different modes of operations especially when it comes to encrypting and decryption. Could anyone please help solve these questions?
Block Cipher Mode of Operations. Please refer to the image attached for a diagram of PCBC, a similar mode... |
AES is supposed to be a symmetric key block cipher. The theoretical counterpart to this is a pseudorandom permutation.
I'd like to say that AES is a PRP (well, supposedly at least), but that doesn't seem correct; while there are larger variants of AES, I don't see how the algorithm extends to arbitrarily large security... |
"Optimal Prime Field is a family of 'low-weight' prime fields that allow for efficient software implementation of all operations requiring a modular reduction, in particular the field-multiplication. More formally, an OPF is a finite field defined by a prime of the form p = u · 2^k + v, whereby the two coefficients u a... |
Let's suppose we are given a linear polyonmial
$$\begin{align}f(x) = ax + b\end{align}$$
where a and b is known which satisfies this equation
$$\begin{align}y^3 - f(x) \equiv 0\mod(n) \end{align}$$ where n is RSA modulus.
Is there any way to solve for pair(x,y)?
Follow-up question: If there is restriction where only th... |
Is there any public-key cryptosystem that is (possibly) secure against $NP\cap coNP$ adversary?
|
We have a customer asking about what methods we use to secure our system. Specifically they want to know what encryption algorithm we use for how we manage passwords. My philosophy is the harder it is for the bad people the better, so my mind set is keep as much secret as possible no matter how miniscule or how easily ... |
Say I use AES. If I insert the message the way the key normally is used and vice-versa, would this be equivalent secure to the intended encryption?
|
I am working on a scavenger hunt and wanted to encode a clue in a cipher that requires the full message to decipher. My goal in this is to prevent players from predicting the result before obtaining all the letters of the clue. If possible it would be nice if the cipher could be solved on paper but, beggars can't be ch... |
I am designing an online service where users can upload files (3d models) for processing. I want to speed up things when the same file is uploaded by many different users by allowing them to post a hash (SHA256) of the file before sending the file. If the hash exists they immediately get the processed file otherwise th... |
Has anyone implemented the BB84 protocol and put it in production?
The BB84 is a quantum key distribution scheme developed by Charles Bennett and Gilles Brassard in 1984. It is the first quantum cryptography protocol.
I am thinking of incorporating the BB84 protocol into the network list of protocols at the IETF.
Natha... |
I have been reading journals about FHE schemes and I keep encountering the term "batching". What does it mean to batch in homomorphic encryption in a simple way?
|
I've started reading on MACs and working on a problem where given a MAC construction as $H_0=IV$ and for every $i>0$ $H_i=H_{i−1} \oplus E_{M[i]}(H_{i−1})$ and the tag is $(IV,E_{k_1}(H_ℓ))$, I would like to show for a DES as a cipher this construction does not give message integrity.
The way I'm thinking of approachin... |
If $E_k$ is a CCA secure encryption scheme then why is $E′_{(k_1,k_2)}(M)=E_{k_2}(E_{k_1}(M))$, $D′_{(k_1,k_2)}(C)=D_{k_1}(D_{k_2}(C))$ not CCA secure when $k_2$ is known. Is there a way I can make a new cipher with keys $(k_1, k_2)$ such that its CCA secure regardless of which key the adversary finds?
My confusion her... |
Basically, i want to encrypt standard ecg data with resolution of 11 bit mostly come from MIT-BIH Arrhythmia Database. The sample point values i saw are decimal like .
Suppose that i just want to do simple xor encryption with a set of random generated integer number. How do i accomplish xor of double/float with these i... |
I was practicing some python programming and I decided to implement a simple DES encryption function, so i decided to take some shortcuts so instead of DES expansion boxes and s-Boxes i just used a simple keyed SHA3 hash function the input is: 32-bit right side + key(any length I want but I used 128-bit) The first 32-b... |
We have been give a task to identify the following three components in TLS-DHE:
Diffie Hellman Key Exchange
I am fairly certain that this Part can be found in the Exchange of SKE and CKE, since they contain the public Key with Signatures and can be used by the other party to derive a shared key
Challenge/Response
... |
I studied Langford and Hellman's Differential-Linear Cryptanalysis and moved on to Biham, Dunkelman and Keller's Enhancing Linear-Differential Cryptanalysis.
In the paper, although I've read many times, I couldn't understand their characteristic and how they computed the total probability. As far as I know, the attack ... |
I'm not an expert and I would be very glad if someone could take a look at it and tell if there are any problems with it
Things I know/think are problematic
using base64 digest + getting the first 32 char reduces key size, right?
where should the salt be generated and stored
should the encryption include some kind of ... |
I have come across an RSA problem that goes like this:
You have $p,q,cp,$ and $cq$.
You know that
$cp = (m^{dp}) \bmod p$ and
$cq = (m^{dq}) \bmod q$
where
$dp = d \bmod(p-1)$ and
$dq = d \bmod(q-1)$.
With $p$ 1023-bit.
p = 7752172640799431252157433629798070921753053558722205810414395996957166055279796947417293793... |
According to a book I am reading, Applied Cryptography by Bruce Schneier, the ISO 7498-2 standard uses the terms “encipher” instead of "encrypt" and “decipher” instead of "decrypt" because some cultures find the terms “encrypt” and “decrypt” offensive, as they refer to dead bodies.
I am curious to know which cultures e... |
Goal
We want to find the most secure way to encrypt message of arbitrary length M with AES such that the recipient can only decrypt if they have both AES keys K1 and K2.
Preconditions:
AES keys K1 and K2 are independent and randomly generated, 256-bit keys
Assume we'll be running AES-GCM
Key exchange for the valid rec... |
For textbook DSA, as defined below. If $r, s, k, g, p, q, m$ are all known, is it possible to efficiently compute $x$ from all these given values? How does the math work out?
Secret key: $x\stackrel R\gets \mathbb{Z}_{q}$
Private key: $X=g^{x}\in \mathbb{Z}^{*}_{p}$
Signature:
$\text{Algorithm }S_x(M)\\\quad{
m\gets H... |
Consider the following hash function:
$$(V\cdot A + V\cdot B)^2 \bmod C$$
$A, B,$ and $C$ are large primes. $V$ is the value to be hashed and is guaranteed to contain at least as many bits as the largest prime.
Ostensibly, this should provide an excellent level of collision resistance.
Now assuming that the primes in q... |
The only time a shift cipher considers to be perfectly secure is when used on a single letter of plaintext and no more. Having that in mind, we can say it is certainly not perfectly secure.
Caesar cipher is perfectly secret only in the special case with the assumption that 26 keys are used in equal probability. Suppose... |
I have a binary code which decrypts some 64-byte data chunks.
There is a decryption key which is always static, and there is a code which does actual decryption.
What I need is to find out which algorihtm does it use (probably it is something common enough which I just failed to identify) and find how to encrypt data f... |
While reading the following paper about the Strong Diffie-Hellman Problem, i got curious about ways to compute $ g^{x^{l}} $ for unknown $x$ in an elliptic curve, without first solving the discrete logarithm problem for $g^x$. Since SDH may not be as hard as DL, there might be a way to get $g^{x^{l}}$ without knowing ... |
I'm currently studying crypto and wondered what would be wrong with the following process...
I want to encrypt a long message $M$ with a short symmetric key $K$ and a public nonce $X$.
The idea is to increase the length of $K$ with successive hashes
$$K' = H(X\mathbin\|K) \mathbin\| H(H(X\mathbin\|K)) \mathbin\| \cdots... |
I was studying the Rijndael Block Cipher for an assignment. I am looking for a (layman-ish) explanation as to why the cipher is secure. Googling did not seem to be give any good explanations. The paper linked itself is a bit too high level for me to understand.
Could anyone explain the security or give a reference to w... |
I have this question and I am struggling to find a formal answer to this:
Given $G$ is a PRG, show that $H(s)=G(G(s))$ is also a PRG.
I know that a proof for this would assume that there exists a p.p.t. $\mathcal{A}$ that wins the adversary game against $H(s)$ and thereby there also has to exist one that wins against... |
I started to study a cryptographic course and I got stuck on a question about AES:
If we take the AES algorithem and only perform mixColumns and addRoundKey operations as well as only using one key instead of a round key. (so all keys are the initial key)
describe a "Known Plaintext Attack" on this circumstance.
What I... |
Below the Wireshark snapshot of the handshake compliant to the TLS 1.2.
The position 1 displays the enum ServerECDHParams where I can use any curve having the own ID RFC8422. I'm free for example to use Edwards, Brainpool or NIST curves having an ID assigned by IANA.
Please correct me when I'm wrong but at the position... |
I'm currently learning about chosen ciphertext attack and stumbled across a problem on CCA security. If I have an encryption scheme $(Gen,Enc,Dec)$, which is CCA-secure with $Enc:\{0,1\}^n\times \{0,1\}^∗\to \{0,1\}^∗$
How can I build a new cipher out of $(Enc,Dec)$ with the keys $(k_1,k_2)$ which would be CCA-secure u... |
I am looking for a good, meaty cryptography algorithm that involves a good amount of number theory in which I can explore. I'm researching, and AES (Advanced Encryption System) seems interesting, but does not really seem to involve number theory all that much.
EDIT: Not RSA.
|
SHA-512 crypt specs reports that SHA-512 crypt uses 128bit salt.
The FreeBSD/Linux password generation code builds the salt using 16 bytes random data (128bits) and then it translates the random data using something like the B64 encoding (which is a base64 variation).
An advisor is reporting that:
because of the cardi... |
NOTE: By malleable/non-malleable, I mean the ability/or not to change a byte/block of the ciphertext and have it change only that byte/block of the plaintext.
I understand that we use authentication (via HMAC/UMAC/etc.) to verify integrity. However, where authentication is not possible (perhaps in a case where one has ... |
As ASICs are specifically designed to generate the hash for a block of a block chain. which is much faster than other GPUs which are used to break 2key-3DES. can we use Array of ASICs to break 2key-3DES in practical time?
|
Does the size of the cryptogram affect the possibility of breaking it?
In the context of symmetric and block algorithms.
Does the format and earlier processing of the document (compression, changing the document format) affect the possibility of its cryptanalysis?
|
A high-level overview of AES is according to Wikipedia
Key expansion;
Initial round key addition;
9, 11, or 13 rounds;
Final round (making 10, 12, or 14 rounds in total).
I can understand all the steps except step 2 which is known as key widening.
What is the importance of the key widening step? How does it contribut... |
Using T-SQL as per the snippets below, which method is superior (or is it a tie)?
-- method 1: DIY
SET @Salt = ''
WHILE LEN(@Salt) < 72
BEGIN
SET @Salt = @Salt + CHAR(CONVERT(INT, Floor(RAND() * (126.0 - 33 + 1) + 33)))
END
-- method 2: concatenating 2 GUIDs
SET @Salt = CONVERT(VARCHAR(36), NEWID()) + CONV... |
I am trying to understand the use of pre-computed points in ECC for ECC signature, verification, key generation, and so on. After searching on the internet, I understand that pre-computed points aid faster execution. However, I am unable to get the complete picture. Can someone help with an example? Also, once the pre-... |
Consider the following question:
Given a $n$-bit cryptographic hash function $H$, how many messages should we expect to hash before before finding a message $x$ such that $H(x) < 2^{n-k}$, for some integer $k$.
For me, this question does not make a lot of sense. A cryptographic hashing function has always a fixed size... |
Imagine a situation where a prover can only sign with BLS signature signing algorithm, a verifier can only verify with Schnorr signature verification algorithm. Is it possible to convert a BLS signature to a Schnorr signature, so that a verifier who can only verify Schnorr signatures can verify derived signature given ... |
I am designing a protocol that 2 devices will use to mutually authenticate over an unreliable, unsecure channel. The system must be fast and low-power, so symmetric cryptography is a requirement. I was thinking of using a challenge-response protocol, but cannot find existing ones that offer mutual authentication and us... |
I'm trying to solve the following exercise:
Let $G_1, G_2: \{0,1\}^\lambda \to \{0,1\}^{\lambda + l}$ be two deterministic functions mapping $\lambda$ bits into $\lambda + l$ bits (for $l \ge 1$). You know that at least one of $G_1, G_2$ is a secure PRG, but you don't know which one. Show how to design a secure PRG $G^... |
First, we observe that the expression X*Y mod P (where X and Y are secret and P is a large public prime) reveals no useful information.
Next we define an extending function E(U, M) which "somehow" transforms U in such a way to guarantee that the result consists of at least M bits. For example, by returning the bit patt... |
I have recently been very interested in elliptic curves because they are a powerful tool in crypto, ECC, pairing, etc. However, it seems that elliptic curves are not popular in homomorphic encryption. I understand that lattice-based crypto is currently the only way to construct FHE, like LWE. Elliptic curves can only b... |
I have 1 block of encrypted data with AES-128, but I know 104 bits of 128 bits the key.
How long it will take to brute force 24 bits of a key at Intel I 7 CPU? How can I calculate that?
|
For the sake of curiosity and fun, i have implemented a C# program that operate as deck dealer on 40 cards deck (following the Fisher Yates shuffeling algorithm https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle).
The fun part is that i have used the "faulted" rng that the language provide (small seed compared ... |
I came across an IC device configuration & security flow and the details are illustrated in image below.
I'm wondering must the ECDSA pair with the SHA Hashing function?
Alternatively, what if using the AES-GCM to generate both CIPHER & TAG? The GF generated TAG later go through the ECDSA to be encrypted with the priva... |
I bought an HWRND last week. What do you think, how secure is the encryption with that and the OTP? See the OneRNG theory of operation here.
|
In school we only learned the formula without the normalizing coefficient:
But Wikipedia has one that says:
I am using IC in a cryptography class to find the key length and am checking various key lengths to see which one results in an IC closest to 0.066. I have to automate the key length finding process but I don't... |
I am learning about the BGW Protocol and I understand that for a MUL gate, you need to follow the degree reduction protocol. I am wondering if it is possible to implement a single input and single output "SQUARE" gate that computes the square of the input?
I imagine some sort of degree reduction protocol would be invol... |
According to walkthrough steps for ECDSA topic from wikipedia as shown below, What if the impact if we don't apply the hashing function (highlighted in blue in the image) to the raw messages?
Although this sounds a bit silly, but let's say we have both with or without SHA256 engine test cases like below.
Hex Message (2... |
I am just beginning to read into pseudorandom generators and I came across this definition for a PRG:
$G_n : \{0,1\}^n \rightarrow \{0,1\}^{l(n)}, \quad \text{ where $l(n)$ is a polynomial}$
Is there a reason why $l(n)$ has to be polynomial? Wouldn't there be an even better security guarantee if it was an exponential f... |
Assume that $F: \{0,1 \}^n \rightarrow \{0,1 \}^n$ is PRF. Examine if the following functions are PRFs:
$$
\begin{align}
1. \, F_1(k,x) &= F(k,x) \oplus x \\
2. \, F_2(k,x) &= F\left(F(k,0^n), x\right) \\
3. \, F_3(k,x) &= F\left(F(k,0^n), x\right)|| F(k,x)
\end{align}
$$
where $||$ denotes concatenation.
Attempt:
For... |
In Saber: Module-LWR based key exchange, the authors use a rounding function called $\textit{bits}$, defined (in page 3) as follows:
$bits(x, i, j)$, with $j \leq i$, gives $j$ consecutive bits of a positive integer $x$ ending at the $i$-th index (assuming the least significant bit in the $0$-th index), producing an in... |
Is there any known differential-linear attack on full round DES? I couldn't found any and couldn't work on this due to time restriction.
|
Let ssuppose that we are using AES in CTR mode to encrypt a number of blocks ($x$ bytes each).
How is the current used IV (nonce+ctr) synchronized among both communicating entities?
I suppose that the Nonce can be exchanged in advanced in plaintext. The ctr value can then be appended to each cipher as plaintext. In tha... |
I'm trying to unhide information in a .bmp image using the tools on https://incoherency.co.uk/image-steganography/#unhide
However all I can see when using the tools are at best a black image with a few colored squares at the bottom and at worst a slightly blurry version of the image I'm using.
I've tried to use other t... |
I don't get why SHA-256/SHA-512 hasn't been broken, at least for shortish (10-12 character) passwords
It is perfectly plausible to pre-compute a password/hash-pair table using numerous very fast computers (thereby significantly increasing the speed at which this is done).
Clearly I am misunderstanding, so I would appre... |
Given a set of numbers within the range of 1-6:
[3,4,3,4,5,6,2,3,1,5,2,3,6,2,2,3,3,6,6,4,5,2,5,3,5,2,4,4,2,6,3,6,1,5,1,3,6,1,1,2,2,4,5,3,1,2,3,4,4,6]
generated using Java's nextInt(6)+1, is it possible to reverse engineer this to find the seed?
Upon investigating Java's source-code I understand this is how the nextInt(... |
Rijndael Block Cipher supports multiple block/ key lengths and a subset of these was selected as AES. What other cryptographic primitives are derived from Rijndael or make use of its round function/ design principle (e.g LED Block Cipher, Lex Stream Cipher)? Are there any other possible variants of Rijndael/ AES that h... |
https://en.wikipedia.org/wiki/Disk_encryption_theory#Xor%E2%80%93encrypt%E2%80%93xor_(XEX) reads:
The standard supports using a different key for the IV encryption than
for the block encryption; this is contrary to the intent of XEX and
seems to be rooted in a misinterpretation of the original XEX paper,
but does not ... |
The private key is any random 256 bit (but smaller than prime p) number or must be prime or other condition?
For selected $x$ can be found $y$ - decompressing key:
#! /usr/bin/env python3
import binascii
import math
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F
def decompress_pubkey(pk):
x ... |
I have a project where a user needs to store a U32 encrypted on a blockchain such that they can recover it themselves: the user will always have their key available but may "forget" the U32 value. No other party needs to decode the information, but the plaintext will eventually also be public on the chain.
The user has... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.