instruction stringlengths 33 27.2k |
|---|
Looking at HMAC and KMAC it seems that the key is always required up front, i.e. before starting to process any other data. However, in many protocols the key may not be known it advance. For instance, in TLS, the PRF (MAC) is calculated over the messages produced before key agreement.
TLS 1.2 solves this by producing ... |
I was looking at the exercises of Cryptography theory and practice and I could not find the answer to this question anyone has an idea?
|
I was watching Computerphile's "Magic 'Nothing Up My Sleeve' Numbers" video where Dr. Mike Pound reasons that the numbers used to create cryptographic functions should not arouse suspicion or contain hidden properties, because doing otherwise would introduce vulnerabilities into the algorithm.
I'm having difficulty con... |
According to wikipedia, in the precomputation step of the w-ary non-adjacent form (wNAF) point multiplication method you do $d \bmod 2$ and, later, $d \gets \frac{d}2$.
The mod operation doesn't make a lot of sense in the context of a prime finite field since division over a finite field doesn't produce a remainder. Ra... |
I am well aware that the general consensus is that a hashing algorithm with a security of 512 bits is unnecessary, but I'm just curious about how that would be implemented for Keccak despite that.
According to SHA-3 block sizes / bitrate calculation?, the bitrate of the algorithm would be calculated by 1600 - 2c = r. H... |
In section 3.2 (page 10) of Vikram Singh's paper A practical Key Exchange for the internet using Lattice Cryptography, he gives the number of elements in each set for odd $q$. However, the results do not match my calculation of the number of elements in each set for odd $q$.
For example, given an odd prime $q=17$, you ... |
I was looking at solutions for a problem but I noticed it said $\langle2\rangle$ and was unsure of what that meant.
From Homework 5 (PDF)
|
It is well known that both $g^x$ and $x^2$ are computational hardness problems in certain rings. But I wonder if the composition of them is still hard?
Namely, given $(g, g^x, x^2)$ in a ring $Z_n$ where $n$ is a composite number of secret factorization, is it hard to get $x$?
|
I want to implement a protocol which requires Integrity and Authentication for its messages. I found a lot of algorithms such as HMAC, UMAC, and Poly1305 which provide Integrity and Authentication. So I get confused for which one must I use. Please, could I know which one is better?
|
Suppose we have an XMSSMT instance that is capable of signing up to 2^60 messages securely when given some state-dependent information, I could envision making it stateless as follow:
Hash the message and truncate the digest $t$ to 60 bits.
Split $t$ into $d$ (Hypertree layers) chunks and interpret as integer leaf in... |
I was reading Boneh and Shoups's A Graduate Course in Applied Cryptography, when I stumbled upon the following exercise (I have changed the array indices to start at 1 instead of 0):
8.1 (Truncating a CRHF is dangerous). Let $H$ be a collision resistant hash function defined over $(\mathcal M,\{0,1\}^n )$. Use $H$ to... |
According to Standards Recommanded Elliptic Curve parameter for Cryptography, for each given curve, the base point is given in compressed and uncompressed form, but personnaly I do not understand how to use it with that form, I need the (X,Y) coordinates for my application, thanks to show me how to find them from the g... |
Let's say I want a way of generating a deterministic public ID for a specific symmetric cryptographic key (AES, for example). Would it be secure to use SHA-3 (or SHAKE) to hash the key, and then distribute the hash as the public ID for the secret key?
Is there an advantage or disadvantage to using a larger or shorter h... |
Why is SHA-3 prefixed with “SHA” despite the fact that it is structurally different from SHA-2 and SHA-1?
SHA-0, 1 & 2 and MD5 is based on Merkle–Damgård construction, while SHA-3 falls under Sponge functions.
Therefore why SHA-3 is still prefixed with “SHA” despite the fundamental difference in its construction?
|
Consider a "MAC" that uses a symmetric key $K$ to generate an authentication tag $t$ for a message $M$ in the following way:
Concatenate a timestamp with the message (to prevent replay attacks)
$$
m = \mathit{Timestamp}\mathbin\Vert M
$$
Divide into suitable number of blocks.
$$
m = m_0\mathbin\Vert m_1\mathbin\Vert m_... |
After you set up all rotors, position and plugs in Enigma machine. If you don´t get the signal of one word or one sentence... your enigma settings are desynchronized. How you can recover from this situation? Do you need to wait until next day?
I imagine some radio guy in the middle of the battle and I find very difficu... |
How many possible 16 bit S-boxes exist? (AES uses 8 bit substitution boxes)
I first taught of calculating 128(keysize in bits)/8(bits) =16, but I believe it's wrong.
|
Hello for my thesis I am making research about SSS computational time.
Based on (K,N) threshold scheme
Where K is the minimum number of shares to rebuild the secret and
N is the number of shares in which the secret will be divided
Which value affects more the computational time? K or N
I think K is it right?
Hope... |
The plaintext space for Paillier encryption is $\mathbb{Z}_n$ and the ciphertext space is $\mathbb{Z}_{n^2}$. How can I apply two consecutive encryptions?
I mean, if $c$ is the ciphertext of $m$, how to encrypt $c$?
|
When NIST introduced SHA-0 in 1993, they – for the first time – switched their naming convention from MD-n to SHA-n. Since both point to similar constructions (read: hashing algorithms with the same cryptographic goals), I am wondering why NIST chose to change the naming from „Message Digest“ to „Secure Hashing Algorit... |
I'm looking to provide a basic / layman's explanation of SSLs to clients and want to be sure it is correct. My explanation is below and would appreciate any feedback / corrections.
Basically, the SSL certificate provides a secure and encrypted connection between your web site’s server and the user browsing your web si... |
I am trying to design the s-box for AES. Quoting from Wikipedia, the algorithm for applying affine transformation in AES s-box calculation is
Let s (an 8-bit unsigned variable) be the input number.
Let result be 0.
For 5 times:
XOR result with s.
Rotate s one bit to the left.
My question is why the multiplicati... |
Is there a common scheme for broadcast encryption that doesn't involve an exchange of a shared key? I'm aware that traditionally a common symmetrical key would be given to all parties and exchanged securely using the recipients' public keys.
I'm building an application on the Ethereum blockchain where I want to use one... |
I am confused between the notation $F_2^n$ and $\Bbb F_2^n$ for a field in regards to codes.
I thought that $F_2^n$ and $\Bbb F_2^n$ were both fields composed by codes of length n and entries in mod 2, but I now know that this cannot be true.
What is the difference between them?
For example, if code C is consists of a... |
I have read the history of the RSA-129 challenge, and now I would like to know if it would be possible to factor RSA-129 with a single "average" personal computer, today. Has someone tried to do this particular factoring?
|
Given a server with with download resume capabilities (byte range), we can download a file chunk by chunk. Multiple people will download different parts of the file.
If a file A.jpg has blocks 1, 2, 3, 4, 5, 6.
Following are the people who obtained the blocks
Alice - 1, 2
Bob - 3, 6
John - 4, 5
What kind of hashing a... |
I am working with constrained nodes (type OpenMote CC2538) on a (constrained) 6TiSCH network and I am trying to design a good re-keying scheme designed to generate AES-128 keys dubbed Device Authentication Key DAK using HKDF.
Proposal:
Each node of the network is initially pre-configured with a Device Master Secret D... |
I am trying to generate an ECDSA signature using ARM's CryptoCell 310 (hardware cryptography module) and verify the signature using mbedTLS software library.
The harware module documentation says that the ECDSA is performed according to
ANS X9.62 standard.
The cryptocell generated signature for SECP256R1 is 64 bytes lo... |
While reading about Elliptical Curves and ECDSA, I found a paper ECDSA Security in Bitcoin and Ethereum: a Research Survey by Hartwig Mayer. On page 6, the authors say:
The curve secp256k1 does not allow the Montgomery ladder
implementation.
Is this true? And if so, why? I don't see why Montgomery methods wouldn't ... |
From the Curve25519 spec I learned that it possible to take a random 32 bytes and with a few operations make it on the curve:
To generate a 32-byte Curve25519 secret key, start by generating 32 secret random bytes from a cryptographically safe source:
mysecret[0], mysecret[1], ..., mysecret[31].
Then do
mysecret[0]... |
In this answer and discussion, it is considered a distributable hash
$$\tilde H(m)\ =\ H\Bigl(\bigl(H(m_1\mathbin\| 1)\oplus H(m_2\mathbin\|2)\oplus\dots\oplus H(m_n\mathbin\|n)\bigr)\mathbin\|n\Bigr)$$
where the $m_i$ are $n$ segments (say of fixed size) of message $m$, and $H$ is a cryptographic hash (say of $b$-bit ... |
Reading through the DSA signature specification, one thing stood out for me.
$r = (g^k \bmod{p} ) \bmod{q}$
Then $s$ is computed. In the computation above, why is the modulo $p$ required, given we are anyway reducing it with a modulo $q$?
To clarify, just doing a modulo $q$ will achieve the result of reducing the numbe... |
The hash function is for an application that the input to the hash function is from a user's, hence the user can control the collisions, but the question is that if the collisions, the hash function's outputs, the hash function's seeds are unknown for the user, can there be a (fast and good uniformity) hash function th... |
I'm trying to understand cryptosystems and their implementations to understand how to properly implement them. I have a function implementing AES-128 in OFB mode. Let's call it
encrypt(plainText, key, iv)
and assume everything else is properly implemented within the function.
Assume I'm going to encrypt 3 messages: '... |
I have been looking around with some new Post-Quantum secure key exchange methods, such as McEliece, NTRU and SIDH, but none of these seem to be working nicely between the browser and the BouncyCastle implementation.
McEliece falls off very fast since the keys are exorbitantly large; not necessarily an issue, but not c... |
I've been looking into elliptic curve cryptography, and have been trying to understand how I can and can't use it. Note that this is a hobby project and I am not making my own crypto systems for anything serious.
I am attempting to create an elliptic curve key pair that is dependent on outputs from other cryptographic ... |
I think I have missed something very fundamental.
I am trying to understand the step in DPA where you compare your hypothetical power consumptions with your measured ones.
The Matrix H with Matrix T.
Matrix T is of size D x T, where D is the number of data blocks and T is the number of measured points in one power trac... |
Sboxes provide confusion in cipher. Non Linearity measures the strength of sbox layer. In order to measure non linearity of sbox, a table is computed to measure distances with its affine functions. If the dimensions of sbox are huge say eg 64 bits input to 64 bit output, how to determine it's non linearity as table con... |
I am currently developing a service that calculates statistics (currently only sum/average) on homomorphically encrypted user data, and then gives the results to a third party. Because encryption is computationally expensive, and user devices are routers or small SoCs, I want to blind the data (e.g. add a random big nu... |
Can someone give an example of how the XL algorithm is used to solve an overdetermined system as apposed to just a general case?
I have a fairly good understanding of how steps of the algorithm work, extending the system, then linearizing the system in the hopes of obtaining a univariate polynomial which is then solved... |
If the construction of stream ciphers is already secure why does the construction of block cipher involve pseudo permutations and complex operations that makes block ciphers less faster?
Is a construction of a block cipher defined as just Xor-ing a block of bytes with a block of key bytes (removing all permutations an... |
An $n$-bit block cipher is a keyed function $f_k:\{0,1\}^n\rightarrow\{0,1\}^n$. There are $2^n!$ such functions. Most block ciphers seem to have only $2^n$ keys, although there is an AES mode that has a 256 bits key for a 128 bit block. This doesn't cover all of the key space though: a 128-bit key is roughly enough to... |
Apparently it is perfectly safe to use 128 bits of entropy to generate a single 256 bit ECC key. Can I use 128 bits of entropy and a KDF to make a 256-bit ECC key?
I assume this is because 256 bit ECC keys have a bit strength of 128 bits according to How many bits of entropy does an elliptic curve key of length n prov... |
I'm new to cryptography in general, and have this basic question.
Provided H(x) means a hash of x
and z = H(H(x) + H(y))
given y or H(y), how do we prove that y or H(y) is a part of z? How do we "split" z into H(x) and H(y) so that we can compare H(y) to our y?
Help is greatly appreciated.
|
I am trying to implement the following Schnorr non-interactive zero-knowledge protocol: https://www.rfc-editor.org/rfc/rfc8235#page-7
I'm using the libsodium 1.0.16 and GNU MP libraries.
I just can't seem to get it working. Here are some questions:
In the setup of the scheme, Alice publishes her public key
A = ... |
For simulation-based security proof in searchable encryption, there are two experiments running for the Real and the Ideal world respectively.
I can understand that the Real world experiment taking the real ciphertext and auxiliary information as the input, while the Ideal world experiment only taking the auxiliary in... |
I am setting up an encryption methodology for items in a database. To decrease the likelihood of data being compromised due to the keys being compromised I would like to use an application level key (stored outside the database on a different server), a database level key (stored in a table away from data), and a data ... |
In this paper they change the $AES$ S-box to a uniformly random one and answer the questions:
How does the security of AES change when the S-box is changed by a secret S-box?
Would it be safe to reduce the number of rounds?
I have tried reading the paper but there are some things I do not understand.
Are the S-bo... |
Why do you need padding block at the end of Merkle Damgard if the input is multiple of block length? I learned that it was not collision resistant if a dummy block is not added to the end but I want to understand why this is the case.
Let's say MD outputs Zb instead of H(Zb||L). What is the reasoning for why this part... |
What is the purpose for and distinction between each of the following keys commonly used in cryptocurrencies?
Address
Tracking key
Passphrase
Private key
For context:
I got a bytecoin paper wallet which has a QR code for each of the 4 things above and just wanted to know what they are for / mainly want to know how to... |
Following situation. We got a Feistel network. And in each round we get following outcome on the left side:
$$L^\prime = L_1 \oplus F(K_1, R_1)$$
Is there a possible key to get an unchanged outcome if $F(K_1,R_1)=K_1\oplus R_1$?
|
Is it possible to encrypt a message in such a way that multiple keys can independently decrypt it?
In other words:
Having knowledge of $key_1, key_2 ...key_N$, which are different symmetrical keys, is it possible to generate a ciphertext that can be independently decrypted using either $key_1$ or $key_2$ or $key_N$, in... |
When encrypting a string through the Libsodium secret box feature, the ciphertext is 48 bytes longer than the plain text message ...
I am wondering why this is ... since the nonce is only 24 bytes.
|
One-time public-private key pairs are used. The next public-private key pair to be used, is recorded with a proof c = sha3(nextPublicKey).
|
Here's a problem that I've been thinking about:
An individual, Alice, wishes to authenticate herself.
She may wish to authenticate to Bob (who is on the blue team) that they are both on the blue team.
She may wish to authenticate to Charlie (who is on the green team) that she is on the green team.
However, when approa... |
Is there a cryptographic (or even not entirely cryptographic) way of exchanging objects between Alice and Bob that would not require a third party, and Alice and Bob would not need to trust each other? For example, Alice and Bob have Y and X objects (some information) and want to exchange them (in other words both Alic... |
I know, that ECDSA could be broken by quantum computers, but since there is post-quantum hash function SHA-3, does not this make the digital signature resistant to them?
|
The Linux kernel's random driver generates randomness by hashing an entropy pool using SHA-1. From the driver's source, the SHA-1 hash is apparently folded in half before being returned:
/*
* In case the hash function has some recognizable output
* pattern, we fold it in half. Thus, we always feed back
* twice as mu... |
Is there an encryption decryption scheme in which a group of people are all given different keys, and of which each key can decrypt a file. (I’m not talking about a scenario where a file is encrypted with a single symmetric key, and then the symmetric key is separately encrypted with each individuals public key.)
I’ve ... |
I understand that Shamir's Secret sharing has nothing to do with the methods that are used to share and later recover a key.
That means then, the secret is only as secure as the methods used in sharing the key, because I can try to impersonate the dealer.
If the dealer shares their private key in some fashion, but lat... |
I'm confused about how WannaCrypt's hybrid encryption scheme works after watching Computerphile's "How WannaCrypt Encrypt's Your Files" video a number times. Below is my thought process to make it easier to pinpoint my misunderstanding.
A public and private key pair is generated for the client, Cpub and Cpriv. These a... |
A safe way to generate a 256 bit ECC key from 128 bits of entropy is to use a CSPRNG, according to this answer: https://crypto.stackexchange.com/a/56551/43864
However, it's difficult to find a cross language, cross platform CSPRNG that guarantees to produce the same result across all implementations.
What would be a sa... |
Wikipedia's description of the ECDSA verification algorithm suggests verifiers should confirm that step 6 doesn't produce the identity point:
Calculate the curve point ${(x_{1},y_{1})=u_{1}G + u_{2}Q_{A}}$
If $(x_{1},y_{1})=O$ then the signature is invalid.
Can a forged signature force this condition? If so, does... |
In the use of SGX and Oblivious RAM. There sometimes exist the notions untrusted memory and trusted processor.
What are the intuitions of those?
Can memory easily be hacked by adversaries? What about CPU?
|
I am using the Stampery API to anchor hashes into different Blockchains. I wanted to independently verify that my hash with the given Merkle Proof from Stampery.
I tried to follow their Whitepaper but with no success.
What I've tried so far is the following:
Hash:
265D0E134C56080CBD9049427C39C5B6425FDC909FC16072FC4AA0D... |
RFC 7693 provides the following table of standard parameter sets for BLAKE2b without a key (where nn is the hash size in bytes):
| | Collision | Hash |
| Algorithm | Security | nn |
+-------------+-----------+------+
| BLAKE2b-160 | 2**80 | 20 |
| BLAKE2b-256 | 2**128 | 32 |
| BLAKE2b-384 | ... |
For handling variable-length input and having the calculation of the MAC remain online, encrypting the output of CBC-MAC with a second key is recommended. I have not seen it said that a different key is required, but that that appears to be the implication. I don't see why a different key is necessary for encrypting th... |
I can't find any usable resources about it online (at least ones that make sense to me right now), so any links to articles or if you could explain it to me would be greatly appreciated.
What I don't understand is what is PSS? I understand that RSA is an encryption type with two keys (usually public and private), but i... |
For example, one of the possible rand() implementations:
int rand_r (unsigned int *seed)
{
unsigned int next = *seed;
int result;
next *= 1103515245;
next += 12345;
result = (unsigned int) (next / 65536) % 2048;
next *= 1103515245;
next += 12345;
result <<= 10;
result ^= (unsigned in... |
The commonly-used ECDSA signature consists of 2 scalars $(r,s)$. There's also a Schnorr signature. Given private key $k$, public key $C = [k]G$ and the message $M$:
Generate random scalar $k_1$
Calculate the $C_1 = [k_1]G$
Calculate the challenge $e = H(C_1 \mathbin\Vert M)$ where $H$ is a selected hash function
Calcu... |
Updated Question: New Thread
Original Question: (Thanks cypherfox for answering that one)
I am in need to store data > 100 TB on a local network share (NAS/SAN) and grant individuals access to the encrypted data. For all users, besides me, the data can be read only, and sequential access to the data (only one user can... |
In DES, does the s-box provide an avalanche effect or does it only provide confusion in the ciphertext?
|
In homomorphic encryption scheme FV, I can multiply an encrypted polynomial for any integer scalar, obtaining the same effect on the plain polynomial. For example, given the plain polynomial $\sum_ia_ix^i$, and its encrypted version $\sum_ib_ix^i$, I could multiply the latter by $c$ and decipher it, to obtain $\sum_i(c... |
A file has been encrypted with the same public key twice, in an effort to improve security. However, both n's are the same, only differing by the value of e they used.
#Public key 1
n1 = 240162794695033023117683635684864494601717503203514494110531090649041027021866051076620093209422954211448720901463732961232519661301... |
Strength of sboxes is generally measured by different properties eg non linearity, fixed points etc. If confusion is provided by Mixed Mode Modular Arithmetic (eg as in IDEA), how to measure the strength of this type of confusion layer? Also, my sample mixed mode modular arithmetic based confusion layer takes 64 bits i... |
I am having trouble understanding part of the UOV scheme, i get how it works except for when it comes to composing the core map F with an affine transformation say T, which i understand to be an invertible square matrix? I understand F to be composed of the o number of oil-vinegar polynomials where o is the number of o... |
I have invented a technique for breaking monoalphabetic substitution ciphers. However, I believe that such simple thing must have been already invented. I wonder how is this called. I call it “word fingerprints”.
I assume that ciphertext is a natural language, you can identify words (e.g., you have guessed what charact... |
I have a blockchain wallet with a single signature wallet, is there a way of making this wallet "multi-signature"? F.e can we use some secret sharing scheme to distribute the single private key among custodians? What I need in the end is to make several users control access to a single wallet.
|
So if I understand how an IV works with AES, I'm supposed to generate a different IV for every message because using only a key, I will get the same encryption if the message was encrypted twice (which is not secure) thus we use the IV which is some kind of a salt (some random bytes added to the encrypted message so 2 ... |
There is source code of this algorithm (https://github.com/NTRUOpenSourceProject/NTRUMLS). But this algorithm does not provide a function for generating a public key from a private key. Studying the function pq_gen_key in src/pqntrusign.c, I did not see how it can be done.
|
I am wondering if other ciphers like Serpent or Twofish or even Threefish have really an use in real life, because AES seems to be very efficient in most situations.
But for example TrueCrypt or VeraCrypt offer Serpent and Twofish to be the algorithm to encrypt your drive, so why would anyone choose those ciphers and n... |
With public/private key encryption you must trust the central authority correct?
What can you do if you don't want to trust the centeral authority? Are there any ways around that?
for example in a chat app
I imagine, no matter what, you will have to make the client open source so as to keep it known you are not saving... |
Suppose a set of Shamir's redistributable-secret-sharing participants issue a redistribution of subshares.
I envision this as a series of points on a line (2 of N, is planar, easy to think about). Redistribution appears to create new lines that point to the heights of the original shares - but when the vectors are tr... |
Background: I'm working on creating a small program to extract my messages from Signal's newly-added (beta) encrypted backup feature.
In the Signal codebase for their Android app, I noticed that instead of just hashing both the salt and passphrase once, they repeatedly hash it 250,000 times.
MessageDigest digest = Mess... |
The STUN network protocol defines its client authorization in the terms of message-integrity check employing the following scheme [RFC5389, section 10.2]:
$$
\DeclareMathOperator{\HMAC}{HMAC}
\DeclareMathOperator*{\SHA}{SHA1}
\DeclareMathOperator{\MD}{MD5}
\mathrm{MessageIntegrity} = \HMAC_{\SHA}(\MD(k), m),
$$... |
The fastest known attack against the Salsa20 family of stream ciphers requires 2137 simple operations against Salsa20/7, or 2244 against Salsa20/8. The 8-round version encrypts data at 1.88 cycles-per-byte on a Core2Duo, which is already extremely fast. As there's no real key schedule, cutting this down to two rounds s... |
How do I explain zero knowledge proof to my 7 year old cousin?
|
Suppose I know that the password is composed of characters [A-Za-z0-9], length is unknown, but maybe less than 8. If I have information about the salt use to perform hashing, and also hashing algorithm(SHA-512) is known, how long will brute-forcing the password will take? what is the mathematical relationship with time... |
Let $\Pi = \left( \mathrm{Gen}, \mathrm{Enc}, \mathrm{Dec} \right)$ a public-key scheme which is secure in the sense of IND-CCA2.
Assume the ciphertexts space is $\mathcal{C} \subset \{0,1\}^{n}$.
Can we construct a $\Pi' = \left( \mathrm{Gen}', \mathrm{Enc}', \mathrm{Dec}' \right)$ which is also secure in the sense of... |
I came across an answer about consequences of AES without any of its operation In the question in the given link, it is mentioned that "if Shift Row is removed, then an attacker can treat input block ($128$ bits) as $4$ independent $32$ bits block. Hence, the attacker can attack these $4$ blocks one by one to recover t... |
During the mix columns step, getting the first element value is done using the equation
(1st*02)+(2nd*03)+(3rd*01)+(4th*01),
where *02 means shifting 1 bit to the right then XORing with 1b if the high bit for the 1st element is set.
What does (the first high bit of 'b4' for example) "is set" means?
Does the process ch... |
Having looked at the paper "Breaking Symmetric Cryptosystems using Quantum Period Finding", I'm unsure as to whether the AES-Keywrap as defined by NIST SP 800-38F is safe against the described attack or not.
I also came up empty handed on google.
Does anyone have any information on this?
|
Just a quick question:
I've seen implemented BouncyCastle's class AeadParameters with MAC length of 128 bits, which was allegedly recommended.
Though when I looked up HMac to implement my own MAC in CBCBlockCipher, I found people using HMac with only SHA256, which results in MAC's length of only 32 bytes.
So what route... |
Like the title says, I have used several implementations of ECDH, and I have found a discrepancy with libraries that wrap libsecp256k1. It's likely the case that I'm making a mistake but I cannot see what it is. I display all the public keys for a sanity check and to make sure that I'm not giving in input in the incorr... |
Does there exist an encoding/hashing/encryption scheme whereby the original string can always be derived in its entirety given the entire encoded/hashed/encrypted string, and nothing else (no key/password). But also, no portion of the original string can be derived given any portion of the encoded/hashed/encrypted stri... |
Consider the following property of one-time symmetric encryption scheme $(\mathsf{Enc}, \mathsf{Dec}, \mathsf{K})$. For Every message distribution $M$, every pair of messages $m_0,m_1$ belonging to $M$ and every ciphertext $c$ belonging to $C$, it holds that:
$$\Pr[M=m_0 | C=c] = \Pr[M=m_1 | C=c]$$
Argue that the above... |
I can imagine that finding $p,q,n$ are easy, but my text book also says the $e$ can be found rapidly, so how does modern RSA find this $e$?
|
I encountered a simple function that even FHE cannot solve. Here's it:
int f(a,b,c,d){
if(a+b>c+d) return a+c;
else return b+d;
}
Since FHE is not order-preserving, one can't figure out whether a+b>c+d without the decryption key. That means even if practical FHE was implemented, f(a,b,c,d) cannot be computed ... |
For ECDSA, a given signature and its message can be used to recover the public key used to sign it (produce 2 public keys). By making comparison of these recovered public keys against the known public key, one will be able to verify the signature.
Does this method differ from the conventional signature verification? If... |
I have a scenario where I'd like to use Diffie Hellman keys where the public keys are exchanged once and then never changed.
So server generates a key pair (secp256k1 or secp256r1) and sends its public key to client and the client does the same. From that point onward, all the communication is secured by using the deri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.