instruction stringlengths 33 27.2k |
|---|
I came across this blog post http://blog.stratumn.com/zkp-hash-chains/ which provides a Protocol to prove in zero-knowledge that an integer (such as age or balance) is greater than a known threshold.
It is based on this paper: Verifiable Auctions for Online Ad Exchanges
The protocol is as follows:
A trusted central do... |
Reading about LFSR, I know that breaking an LFSR by knowing it's design and having enough (plaintext, ciphertext) pairs is an relatively easy task but let's assume we know the design of LFSR and a just a long ciphertext, which is the result of xoring plaintext and LFSR output. Is there any way to decrypt the ciphertext... |
My question is about proving that a function is negligible if it is ran polynomial number of times.
This my solution: By the definition of negligibility, we have $negl_1(n) < 1/p'(n)$ where $p'(n)$ is any polynomial. We multiply $p(n)$ both sides: $p(n)*negl_1(n) < p(n)/p'(n)$.
We let $p'(n)>>p(n)$. There is always ... |
We have a scenario where two people A,B have the same modulus $N$ but different exponents $e_1, e_2$ respectively for RSA encryption. They have decryption exponents $d_1, d_2$ respectively.
Suppose for some message $m$, it is sent to B and A intercepts it, i.e. A has $c \equiv m^{e_2} \pmod N$. Assuming $e_1,e_2$ are ... |
Let $p$ be a large prime and $g$ a primitive root modulo $p$, and $h$ a collision-resistant hash function.
Person A chooses a random integer $1 < u< p$ and $y \equiv g^u \pmod p$ is publicly known.
The ElGamal signature scheme using exponent $k$ for a message $m$ is an ordered pair $(r,s)$ satisfying:
$r \equiv g^k \... |
I'm conducting an analyisis of noise sources based on the NIST 800-90B Non-IID track.
Accordingly, I applied the non-iidmain.py script on a datarecord, which delivered the following output:
reading 1000000 bytes of data
Read in file ../some_data_rec.bin, 1000000 bytes long.
Dataset: 1000000 8-bit symbols, 256 symbols i... |
Let's say two people have the same edition of the same magazine. The knowledge that the magazine will be used as a one time pad is secret.
Is there any risk to using this as opposed to randomly generated numbers?
It does not seem to me that any additional risk is introduced, besides running a brute force with real ph... |
What is the output of an r-round Feistel network when the input is (L0, R0) if Each round function is the identity function.
|
Provided, that you have to multiply a well known G by the private key to obtain the public key, why not keep adding G to itself until you reach the public key. The private key should be the number of times you've added the G to itself. Is it correct? And if so - why isn't it feasible?
|
How to get a strategy $(s_1,...,s_{t-1})$ as mentioned in section 1.3.7 of SIKE spec?
If possible, can anyone give me an example?
And why do we need to compute all leaf point? I though we just need the right most leaf point to get an isogeny of smooth degree ${l_A}^{e_A}$
|
My LCG has the form:
$$S_0 = k$$
$$S_{n+1} = S_n \times a + 1 \pmod m$$
Each choice of $k$ generates a different sequence but in some cases a sequence may just be a cyclic shift of another. In this case we say the two sequences are equivalent. This equivalence partitions the generator outputs into disjoint subsets, or ... |
I'm trying to understand the relationship between those three signature schemes (ECDSA, EdDSA, and ed25519) and mainly to what degree they are mutually compatible in the sense of key-pair derivation, signing, and signature verification. But I was not able to find any conclusive information. I mean, for example, can you... |
I would have questions related to discussion under this article.
Bruce Schneier answered questions regarding key size vs number or rounds:
Why do you need more rounds with longer keys? And how did you come up with these seemingly arbitrary numbers for more rounds?
When block ciphers get broken, they're invariably brok... |
A wireless system has 8 byte payload and 6 byte for message authentication.
Scheme:
m := 8 Byte Message
k := 128 bit key
c := Encrypt(m,k)
hmac := secure_hashfunction(c, k) //(6 byte output)
Questions:
Is bruteforce possible when transmitting a single wireless package will take 7ms? If an attacker do a bruteforce att... |
I can't find anything related on Google. I hope this is the correct site to ask this question.
I have been thinking about Randomness. Basically, generating randomness using a Computer Program. It is impossible without a source of randomness. The entropy of the numbers is limited to what the source provide and its relia... |
My PHP version does not include the hash_hkdf() function, and upgrading versions is not worth the trouble for my project (which is for personal pleasure, not for securing important private data). In light of the absence of this function, is it suitable to substitute the hash_hkdf() function with hash_hmac(), like so:
$... |
Is there also a protocol definition in X.509? In "Handbook of Applied Cryptography" by A. Menezes there is a reference to X.509 strong authentication protocol, nevertheless, I could not find the definition of the actual protocol, i.e. which massages are passing between the partners, in the source quoted, i.e. ITU-T X.5... |
So I don't want the answer but somewhere to start with this problem, first I want to know if my logic and thinking is on the right path before I dive right into computing the decryption matrix so here is the question:
Recall the encryption matrix for AES is $E = \begin{bmatrix}1&x^2\\x^2&1\end{bmatrix}$ over the finite... |
So, reading the chapter about hash functions from the book "Applied Cryptography". There's a point where, as a conclusion, the construction:
SHA-X(SHA-X(0^b || m))
Saying:
Prepending the message with a block of zeros makes it so that, unless something unusual happens, the first block input to the inner hash function ... |
What's the computational complexity or RSA? One can assume it's O(prime length^2) it you consider multiplication by column, but speed tests slightly differ on slow operations with private key and differ a lot on public key. Why?
> openssl speed rsa1024 rsa2048 rsa4096
sign verify sign/s verify/... |
I am reading up on SHA-2 algorithms and I came across this paper: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
In section 5.2.1 it talks about the formula for padding a message. There is states there is congruence between:
$$\text{message length} + 1 + k$$
and $$896 \pmod{1024}$$
To calculate $k$ (the am... |
I'm a bit confused about the relationship between CCA/CPA-security and PRFs and particularly when do we think of encryption and decryption as a PRF. Assume we have an encryption scheme $\Pi = (Enc, Dec, Gen)$ to be a CPA-secure. Can we say that:
$Enc$ must be a PRF?
$Dec$ must be a PRF?
What about the case when $\Pi$... |
Let $F(k,x)$ be a secure PRF over $(\mathcal{K},\mathcal{X},\mathcal{Y})$ where $\mathcal{K} = \mathcal{X} = \mathcal{Y} = \{0,1\}^n$.
Why is the function $F_1(k, (x_1, x_2)) = F(k, x_1) \oplus F(k, x_2)$ an unsecure PRF while the function $F_2(k, x) = F(k, x) \oplus x$ is a secure PRF?
|
I wrote a python program to perform the SHA-256 function. It works just fine until I try to hash longer strings.
If I hash (in HEX)
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
at https://www.pelock.com/products/hash-calculator, I get the result
80A76A18ACF8CB64F... |
Let $F(k,x)$ be a secure PRF over $(\mathcal{K},\mathcal{X},\mathcal{Y})$ where $\mathcal{K} = \mathcal{X} = \mathcal{Y} = \{0,1\}^n$.
Let $F'(k, x) = F(F(k, 0^n), x) \; \Vert \; F(k, x)$.
$a \; \Vert \; b$ means $a$ concatenated to $b$.
How can I show that $F'$ is not a secure PRF? I've been trying to build an adversa... |
Could give me method to attack RSA when N decomposes into multiple primes
And this is the topic
N = 1808613517339564198612305472535067312464408100106552810435539846706916131072833337088878247239046931007311731493301014841597183839313040388341287062661905305367220081515333704502298400306579140574215135023354067171410005... |
Say I have a very large number $n$ = $pq$ where $p$ and $q$ are prime.
A new number $n'$ is generated by increasing these prime factors. How can I find this new number's prime factors?
|
Suppose you have a set of elements, that is relatively small (e.g. 100M) and its elements can be easily enumerated. For example phone numbers, that have a maximum fixed length and they are composed of only digits.
I would like to find a way for parties involved in an open communication to reference to elements without ... |
A fixed-length CBC-MAC uses zero block as IV (initialization vector) to prevent from changing the first block.
i.e. tag $t$ = $F(m_x \oplus ... F(m_3 \oplus F(m_2 \oplus F(m_1)))...)$
My question is, if the first block is used as IV, then is it secure (unforgeable), and why?
(not for encryption/confidentiality, and jus... |
I have a case where I have multiple clients (non SGX, assumed safe) and server(SGX based), talking over a network. I wanted to provision a shared (per client) key which is used to encrypt and decrypt data.
The server admin is assumed to be an adversary. I do not want to use remote attestation as it will require every c... |
I want to implement the below scenario using elliptic curve cryptography:
Steve has list of IDs and he wants to encrypt with private key - IDs
Steve send the list of encrypted IDS to John - Steve(IDs)
Now John wants to encrypt the Steve IDs with his private key - John(Steve(IDs))
Now Steve wants to decrypt the John e... |
What tool is used to measure the security of rsa encryption? If no, is there any tool to measure rsa encryption in terms of security. Or any idea how to measure security of rsa encryption?
|
WhatsApp says even the photos shared on its platform are end-to-end encrypted. When WhatsApp says encrypted I assume the data is encrypted in my device and then sent across to the recipient.
When we are sending a photo for the first time we can see the actual upload happening (if you are in a slow network), but when we... |
I am sorry if it sounds naive but I have been searching and searching regarding what kind of encryption we end up with if we use a key of length 32 characters?
This article https://www.embedded.com/design/configurable-systems/4024599/Encrypting-data-with-the-Blowfish-algorithm explains how the algorithm works on the p... |
TWINKLE is a device devised by Adi Shamir to optimize the sieving step of GNFS. It consists of a cylinder, at the bottom of which are LEDs corresponding to factor base primes which blink with frequency 1/p. If more than a certain number of the LEDs blink at the same clock tick, you've found a GNFS relation (smooth inte... |
Using CrypTool I encrypted a plaintext with "DES CBC" and I genereated the histogram of plaintext and ciphertext.
The histogram shows the relative frequency of each of the characters in the document.
When I did the same with "Caesar" cipher based on online tutorials, it was possible to find the correlation between some... |
Proxy Re-Encryption provides the ability to transform a ciphertext encrypted under some key to the one under another key.
This seems interesting. But, something seems strange.
Suppose Alice has a key pair (sk_a, pk_a) and Bob also has a key pair (sk_b, pk_b). If Alice and Bob generates a proxy re-encryption key to tran... |
Can someone explain the two definitions in relation to each other?
Is a claw-free permutation a permutation without a trapdoor?
For your convenience, here's the definition of a "claw-free permutation":
Let $f_1,f_2$ be permutations. A triple $(x,y,z)$ is called a claw iff $f_1(x)=f_2(x)=z$. A pair $f_1,f_2$ of permut... |
Why do we use pseudo random permutations and not pseudo random functions for encryption an decryption?
|
I understand that there are non-interactive (static) ZK proofs for every language in BPP, but I am not sure I fully understand this.
Can someone give an example of a Zero Knowledge Proof in BPP?
|
So, in cryptography, it is sometimes the case that in order to set up a cryptosystem, one needs some output $f(x)$ for randomly generated $x$ where $f$ is a one-way function but where the input $x$ can be used to break the cryptosystem (i.e. the input $x$ is toxic waste that needs to be destroyed or the output $f(x)$ n... |
A bilinear map has to satisfy this property:
$e(aP,bQ) = e(P,Q)^{ab}$ for all $P,Q \in \mathbb{G} , a,b \in \mathbb{Z}_q$
so far so good.
My question now is related to this paper: https://eprint.iacr.org/2006/080.pdf
Under "4.1 Correctness" they do the following changes (I replaced some complex constructs with c, d and... |
I'm given the following table:
I'm told to find the output given an hexidecmal input of 2B.
I know that 2B in binary
= 001 01 011
So I took the first two and last two outer bits (0011) to find the first row which is row 3.Then I took the remaining bits (10 10) to find number 10 on the top row. Matching up the value... |
Alice has two 1GB files, and Bob wants one without Alice knowing which. Can this be done with less than 2GB (1GB for each file) of bandwidth between Alice and Bob?
|
I tried to implement the Miller's Weil Pairing algorithm in python using the book "An introduction to mathematical cryptography" by Hoffstein, Pipher and Silverman.
I tried my code with the example given in the book and I get the correct response.
I tried with another example but I have problems with it.
It is s... |
In public key cryptography, there are two different keys used for the encryption and decryption of data . I am wondering how it is used for digital signature
|
Consider the function below:
def dec args=password, iv, encrypted
decipher = OpenSSL::Cipher.new('aes-128-cbc')
decipher.decrypt
decipher.padding = 0
decipher.key = Digest::SHA256.hexdigest(password) # just for simplicity; use PBKDF2 for real applications
decipher.iv = Base64.decode64(iv)
plai... |
I'm using GCM (via openssl's EVP_EncryptInit_ex(ctx, EVP_aes_256_gcm(), NULL, NULL, NULL))).
The IV's default length is 12 bytes.
It says that the IV must be unique, in the context of a particular key.
Does it matter if the IV is smaller or predictable? I intend re-using a 64-bit sequence number and a 64-bit milliseco... |
I have just found out about the homomorphic encryption and I was wondering how is it possible to perform an addition for more than two parties?
More concretely, I want to have several parties $P_i$, each of which picks a value $p_i$ only known to themselves. Now I want another party $R$ to only learn $r=\sum p_i$, tha... |
I think I've got a fairly good (practical, not mathematical) understanding of symmetric versus asymmetric cryptorgraphy, so the difference between those is not the question.
In a local discussion someone said the private key (of a private/public key pair) would also be a symmetric key.
It was my understanding that th... |
From this link, NIST claims that:
A cryptographic hash algorithm (alternatively, hash "function") is designed to provide a random mapping from a string of binary data to a fixed-size “message digest” and achieve certain security properties. (...) As a result of these workshops, NIST decided to develop a new cryptograp... |
A password hash function is applied 12 times to secure a password. If it takes 21 minutes to brute force one application of the hash with the available resources, how long will it take to brute force the password if the available resources are quadrupled.
I believe it takes the same amount of time. Is this accurate?
|
When looking into Zencash I stumbled into myzenwallet.io (by the Zencash creators), which gives you the option to enter a passphrase to generate a wallet (seems normal), but then after creating your wallet you can come back later and open your wallet by simply re-entering your passphrase again... this was unexpected an... |
Let V = $[x_1,\ldots ,x_n]$ be a binary vector of length $n$, and let $E(V)$ be the entrywise encryption of this vector.
Suppose I want to give to another player, $E(V)$, but also let him have the ability to verify that the plain vector contains m values that are equal to 1, and they are consecutive.
For example, n=... |
This is possibly a dumb question. I'm trying to input SECP256K1 curve parameters to a system that expects any custom curve. The form is asking for "curve type". It offers three options:
Short Weierstrass
Twisted Edwards
Montgomery
What should I use for SECP256K1? I verified here and here, but they tell that SECP256K... |
I use usernames encrypted using a function f as ids of records. Users see records identified by f(username). I must not know real usernames.
I want to be protected from attack when adversary who has a username u1 and knows f generates another username u2 such that f(u1) = f(u2), logs in with this username and sees the ... |
As far as I know, given two $n$-dimensional vectors $\mathbf{a},\mathbf{b} $, tensor product $\mathbf{a} \otimes \mathbf{b} $ produces $n\times n$ matrix.
However in Ring-LWE based homomorphic encryption, tensor product on two 2-dimensional ring elements $c_0=(c_{00}, c_{01}),c_1 =(c_{10}, c_{11}) \in (Z_q[X]/f(x))^2$ ... |
i want to know about the difference. of this two. because as far as i know many cryptocurrency users. use this for more secure transactions specially when the amount is huge.. to prevent identity while having a discussion about the transaction.
|
I'm working on a system that needs to use cryptographic functions that must be FIPS 140-2, Level 1 validated. The challenging part is that some of this system needs to run in the browser. For maintainability reasons and ease of use, I would really like to avoid having to resort to applets or browser plugins or Active-X... |
1: I have a HTTPS server and I added hooks in RSA decryption procedure to dump error RSA input(client key exchange).
2: I get some RSA input that I couldn't check padding successfully(It's usual) and I try to decrypt manually and find some interesting RSA plaintext like this:
3: It's obvious that the plaintext is pad... |
I am in the awkward position of developing a secure encryption scheme that provides data-at-rest security for a very limited embedded system. The system is only guaranteed to have 4 MiB of memory (some systems have an extra 32 MiB), and they do not even have an MMU. They are running an old version of μClinux. While the... |
Are there schemes for encrypting classical ciphertext using quantum algorithms? Specifically, if a public key system exists for classical data, and classical ciphertexts, can this scheme be implemented by quantum algorithms (A quantum algorithm implementing classical public key algorithms)?
|
I recently came across this (PDF) journal article, which describes what it calls "A New Design Of A Hybrid Encryption Algorithm" (which I must say, doesn't sound very novel, even in 2014!):
An AES key K is chosen
Encrypt message M using AES and key K
eM = AES-encryption(M)
AES key K is encrypted using RSA with the pub... |
Let $p$ be a prime number, and $g$ a generator of $\mathbb Z/p\mathbb Z$. For a message $m$, define the hash function $$h(m) = g^m \pmod p.$$ Is $h$ collision-resistant?
|
I was wondering if there is a way to perform proxy re-encryption for ECIES public-key encryption (i.e. given a message encrypted with Alice's public key, re-encrypt it using Bob's public key). Is that even possible?
|
I generated an encrypted OpenSSH private key for test purposes:
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jYmMAAAAGYmNyeXB0AAAAGAAAABCX18gzzE
urqzviTpYwDuLjAAAAEAAAAAEAAAAzAAAAC3NzaC1lZDI1NTE5AAAAIL3fL8j3ilzDkr/O
7rBBCIYaH/pE1VvU3r2IEy7M2vBaAAAAoAHqj8gYr4dNtxmQyoC+md10ZwY+GOuWIYmOxl
vDYQkGZ... |
The discrete logarithm problem is the mathematical trap door function underpinning elliptic curve cryptography. If it's naturally hard to climb back through the trap door, how can there be insecure elliptic curves?
Any answer would be most beneficial for me if it remained light on the math, if that's at all possible.
|
Let $H$ be a collision resistant hash function and $P_c[H](S)$ the collision probability about a sample set $S$ of input elements (eg. random numbers). It increases with double hash? That is, $P_c[H\circ H](S) \ge P_c[H](S)$ ?
Well... we need a precise $P_c$ definition. Perhaps the problem here is also the choice ... |
In elliptic curves, a private key is just a random number, and one relatively small compared to other crypto systems (256 bits for ECC vs 4096 bits for RSA for example).
Suppose I don't trust hardware random number generators (electronic ones) and I want an auditable way to generate a private key. For elliptic curves,... |
Some standard compression procedures, like the IANA's gzip
provided by HTTP protocol, will consume CPU-time anyway...
So we can reuse compressed file, $Z(x)$, in the checksum procedure.
That is, we can use $H(Z(x))$ instead $H(x)$.
Let $H$ be a collision resistant hash function and $P_c[H](S)$
the collision rate pr... |
I came across the notion of Common Reference String (CRS) model while reading this paper on a protocol for UC Oblivious Transfer: https://eprint.iacr.org/2007/348.pdf
I did some research and it seems to me that the CRS model is just some way to model hash functions: What are alternatives to the random oracle model for ... |
I recently read Squeamish Ossifrage's answer on generating RSA keys from (short) randomness where they make the following comment:
(You might want to keep the certificate secret too.)
As the answer talks about multiple primality tests, let's start with a simpler one: The Pocklington-Lehmer test.
So my question:
Assum... |
I have a direct question
Is there any practical attacks on the AES cryptosystem (128-192-256 keys)
|
In the lite version of Cramer-Shoup we have a group $G$ with generators $g_1$ and $g_2$, private key $a_1, a_2, b_1, b_2$, and public key $A = g_1^{a_1} g_2^{a_2}$, $B = g_1^{b_1} g_2^{b_2}$. Encryption works by picking a random integer $r$ and sending the tuple $(g_1^r, g_2^r, A^r m, B^r)$. When decrypting we check th... |
Bad hash functions are not so perfect as in the "general collision probability" hypothesis... And a general concept of "collision resistence" not need the constraint of independence between the hash function and the sample set.
Let $H$ be a hash function with digest of $k$ bits, and $S$ a input sample set with size ... |
Regarding reordering attacks, is CBC block cipher as vulnerable as ECB? why? If CBC can prevent reordering attacks (that is, after reordering, the decrypted plaintext will make nonsense so the receiver can detect that it must have been tampered with during transmission), why do we still need mechanisms like sequence nu... |
newbie in crypto here. I've a application that needs integrity protection. Confidentiality would be nice but has less priority over performance throughput. So I test "openssl speed" on my laptop, and find out sha256 is actually slower than chacha20. About the same speed as chacha20+poly1305. I assume this sha256 is ab... |
I was reviewing the most recent version of the Catena paper and they made some claims that I find questionable in their reduction of the pseudorandomness of the output of Catena (p. 32). First I will mention that they say they are modeling $H$ as a random oracle (that their Catena oracle calls), but it seems like they ... |
Given a PRF $F $, such that for each $k \in \{0,1\} \ ^ n$ , $F_k:\{0,1\} \ ^ n \to \{0,1\} \ ^ n$ , is the function defined by $W_{k_1,k_2}(x) = F_{F_{k_1(0 \ ^n )}}(x) || F_{k_2}(x)$ also a PRF?
I'm almost sure the answer is yes.
I'm trying to assume $W$ is not a PRF and conclude that $F$ isn't either but I dont s... |
I have been going through https://eprint.iacr.org/2006/287.pdf (Conjunctive, Subset, and Range Queries on Encrypted Data by Dan boneh)
I am trying to implement the paillier system to create a secure tunnel for gps related data on cloud.
There is a simple implementation of the system in python @https://github.com/mikeiv... |
I would like to create a software that will be installed on multiple clients. I would like to broadcast an encrypted message to all of those clients. Each client should be able to decrypt the message and react to it. However, noone should be able to create such a message that could be decrypted by those clients.
So, I ... |
Earlier today, forest asked in our chat, The Side Channel whether the definition of first pre-image security actually requires that an input that evaluates to the challenge hash result must be known to exist a-priori.
This got me thinking. How does one actually, formally define first pre-image security for hash functio... |
In [RFC5869][1] I found that the function of the HKDF-Expand on the input assumes the parameter $L$ which denotes length of output keying material in octets ($\leq 255*\text{Hash}_{Length}$), and then the $N$ is computed as $\operatorname{ceil}(L/\text{Hash}_\text{Length})$ and $L$ is a multiple of $\text{Hash}_\text{L... |
I am trying to figure out how to calculate primitive root $w$ for a prime.
Following what I read, I generated my prime to be 'safe prime', $p=qr+1$.
I know $q$ (also prime) and $r$. Let's assume, for example: $q=11$, $r=8$ and $p=89$. Both $p$ and $q$ are prime, as needed.
I now find $w$ by choosing random number $h... |
For example, take K1, from the Kryptos sculpture, which has been long solved. It's text is as follows:
EMUFPHZLRFAXYUSDJKZLDKRNSHGNFIVJ
YQTQUXQBQVYUVLLTREVJYQTMKYRDMFD
Now, I already know they keywords used (because the solutions are online) and they are PALIMPSEST and KRYPTOS. However, I do not understand how you woul... |
I'm looking for commonly used and proven CPRNG implementation in C. What to use? ChaCha20 like in Linux Kernel?
Does anybody know other implementations?
PS: I don't want to implement by itself because it requires high accuracy and later must be verified by security experts to make sure all works correctly. Also I pla... |
Hal Finney's writeup (Bleichenbacher's RSA signature forgery based on implementation error) shows a formula for RSA3072. I tried to replicate the attack for RSA1024 and failed, since the first term of the equation 2^1009 is not a perfect cube. I ended up forging a signature by simply constructing a desired number and t... |
I was reading an answer about an attack on a weak group for the discrete logarithm problem and wanted to formalize and verify that the attack was correct. That is, that it was guaranteed to always find $x$ (and quickly) given $g$, $h$, and $p$ for $h \equiv g^x \pmod p$. Please read the answer here. In the process I th... |
Let $\pi : \{0,1\}^n \rightarrow \{0,1\}^n$ be a permutation.
Let $E(k, x) = \pi(x \oplus k)$ where $x,k \in \{0,1\}^n$.
Why isn't $E$ a secure block cipher?
My idea: Suppose $E$ is a secure block cipher.
If one let $k = 0^n$ and let $\pi(s) = s$ for any $s \in \{0,1\}^n$, then one can build an adversary that could gu... |
I am new to cryptography esp, homomorphic encryption. I would like to know if the following is possible using something similiar to additive homomorphic secret sharing. Please apologize me if its too vague. I will try my best to explain my ask.
Alice has a secret that she wants to homomorphically encrypt. However Alic... |
Taking a combination of world events-- thunder, astronomical imagery, vote outcomes, stock index value-- and deriving the ID of the source of truth from a hashed combination of them could be used instead of a proof-of-work algorithm. Why isn't it used?
|
Let's say I have an API that provides an encryption wrapper around another API. I give the consuming programmer the option of either passing a string or byte array as an encryption key.
The byte array must be the correct size, and is used directly as the encryption key.
However, if they pass a string, I hash it using S... |
I had a client requirement asking me to provide an existing base64 encoded certificate in a CVC format. Could someone point me in the right direction here to understand what this format is? How can I convert an x509 certificate to CVC format and the tools to achieve this, please? thanks.
|
I was wondering if there is a version of LWE with secret matrices and public seed vectors? Would it be as hard as the popular definition of LWE?
|
I'm aware of these posts:
What is a "rewinding argument"?
Random oracle model proofs and programmability
But I think, some concrete examples are missing.
I need to know how exactly rewinding technique is used with some examples.
Moreover, I'd like to know how many time we need to rewind a party and in the case where ... |
Suppose we had a decentralized log of messages, i.e., an ever-growing array of information on which anyone could append arbitrary data to. Given such primitive, could a party broadcast authenticated messages using just hash functions? Here is what I have in mind:
1. Register
To start submitting authenticated messages, ... |
I am updating a system that has Rails' OpenSSL on one side and Python's cryptography.io on the other.
The Rails side has to generate keys for the AES-256-GCM and here are two methods that appear to work:
SecureRandom.hex
# => "3d499a7b8f57773281ca2d47698a0062"
OpenSSL::Cipher::Cipher.new("aes-256-gcm").random_key
# =>... |
I was recently reading this paper on SIKE and there on page 20 I encountered algorithm 2. I understanding line 14 of algorithm 2 in sike but I don't understanding line 17 of algorithm 2. $h (s || (c_0, c_1))$ how to shared key? result s is chosen randomly and is not known by the other party.
|
What are the two "closest" known Keccak256 (not SHA-3 256) hashes in terms of the Hamming distance between the pair of hashes?
EDIT: This was marked as opinion based, so to clarify, when I asked this question, I was hoping that people responding would provide two hashes that had a close Hamming distance, as well as the... |
I was going through the documentation of GMP (https://gmplib.org/gmp-man-6.1.2.pdf), specially section 15.1.6 where they refer to the use of Fermat's style FFT.
I tried to follow the reference but couldn't quite understand this technique, can anyone explain to me how the Fermat's FFT works?
I don't understand how an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.