instruction stringlengths 32 27.2k |
|---|
Say I have an implementation of a potential Pseudo-Random function and I want to test whether my implementation does at least not contain any obvious flaws. As far as I understand, in other cryptographic settings, statistical tests are employed to ensure the correctness of the encryption algorithm.
What kind of statist... |
I come across lots of tokens which might be simply encoded and not random, but I don't know any way to identity if they are encoded or random, how to find is there any cheatsheet for the same.
For example, I know about base64 encoding, I can tell just by looking if its base64 or not. Identification for base64 is it wou... |
In an application, I need to share a secret (random number) with a Group of known receivers over a public channel (a Blockchain) but each receiver needs to be able to check that the others received the same secret and if not will ignore the message. The problem is that the other receivers may not be online right now an... |
I am looking at Protocol 7.5.1 in Hazay and Lindell's Efficient Secure Two Party Protocols, it can found here
(p 201).
A similar protocol is proven secure in Section 7.4 (p190) and the proof is given in a good level of detail. For Protocol 7.5.1 however the proof given is only short. References are given to where the ... |
I was looking at post quantum signature schemes, and I came across Dilithium(https://github.com/pq-crystals/dilithium), and our system currently runs on Ed25519 which based on my question can easily take a secret key and generate a deterministic public key from it.
So my question is, can Dilithium also be usable on thi... |
Trapdoor functions are defined as that a secret key reverses the function. It seems to me more that it causes a cycle to repeat, similar to how $n^k \bmod k$, when $k$ is a prime number, equals $n$, and $n^k+1 \bmod k$ equals $n^2 \bmod k$, a cyclical pattern.
What is the reason $m^{ed}$ in RSA equals the original mess... |
Considering CBC-MAC as:
$\qquad H_0 = IV = 0$
$\qquad H_i = E_k(P_i \oplus H_{i-1})$
$\qquad MAC = H_n$
What are the properties that makes this "safer" (less exposed to failure) than just:
$\qquad H_0 = IV = 0$
$\qquad H_i = P_i \oplus H_{i-1}$
$\qquad MAC = E_k(H_n)$
Please use simple terms (a didactic explanation for... |
Let $m$ and $k$ be positive integers ($m$ bit plain text) ; let $Q$ be a family of trapdoor one-way permutations such that $f : \{0,1\}^k \rightarrow \{0,1\}^k$ for all $f$ in $Q$; and let $G : \{0,1\}^k \rightarrow \{0,1\}^m$ be a random oracle. Let $P = \{0,1\}^m$ and $C = \{0,1\}^k \times \{0,1\}^m$, and define
$K =... |
I wanna make my own "way" of encrypting separate messages. And I want it to have the least possible size overhead while being completely encrypted (hide msg counter). Here's my current idea:
we exchange some symmetric key K, along with random 32-bit counter start position
for every message:
p1 = first 12 bytes of pa... |
I recently encountered some problems when learning about the JPBC library.
Does the curve generated by (J)PBC using the method typeAcurvegenerator(160,512) and the curve secp160k1 achieve the same 80 bit security level?
How should I understand the terms qbit and rbit?
|
Suppose there exist fixed K set of N-bit strings.
Here, sender and receiver perform 1-out-of-K OT either once or many times.
In the latter case, we may use OT Extension.
What is the order of the communication cost of Single base-OT and OT Extension??
If we do a single 1-out-of-$K$ OT, is the communication cost $O(N)$ ... |
I've done some calculations and Diffie-Hellman Algorithm worked for all chosen random numbers except $1$. In the description of the algorithm, I can't find information that the random number has to be higher than $1 (r>1)$.
Could you explain to me if I made a mistake or where I can find information that $r$ cannot be... |
I am trying to define an ideal world for a protocol that requires two functionalities to interact with each other. Lets call them $\mathcal{F}_1$ and $\mathcal{F}_2$.
Now $\mathcal{F}_1$ maintains a list of some values, say $L$. This list $L$ may be updated with every activation. Any party queries this $\mathcal{F}_1$... |
I'm trying to setup an ECDSA math example using just integer math and multiply (no EC). The purpose is just to help people understand why this works with out the added complication of understanding EC. However, it looks like I either don't understand something or I'm making a simple math mistake.
Can someone help m... |
On a high level the question is: how does one cryptographically sign streaming data?
Here is the context:
a number of people are continuously streaming data to me
the data is public and does not necessarily need to be encrypted
I would like to confirm that it is indeed them sending the data
I would like to compensate... |
Let $ROTR^n(x)$ and $SHR^n(x)$ denote the rotate right (circular right shift) and the right shift operations, as defined in SHA-2 standard.
Consider any function of the form $$f(x) = ROTR^{n_1}(x) \oplus ROTR^{n_2}(x) \oplus \ldots \oplus ROTR^{n_z}(x).$$
According to the fifth element of this list, such functions a... |
Due to my lack of knowledge in this matter I am facing some problems to identify which features are sign of a bad implementation of a symmetric authorization application.
As I am concerned the system must generate session keys using PRFs (Pseudorendom Functions) by the way of the master key(''MK') and a seed. Then this... |
Alice has a secp256k1 key pair that she used some time ago when she communicated with Bob.
Bob can no longer user secp256k1 but he only uses ed25519 instead.
Alice and Bob cannot exchange any messages.
Is there a secure algorithm that Bob can use to derive an ed25519 pubkey from original Alice's secp256k1 pub key and a... |
I apologize if this is a dumb question but I'm trying to understand how the final block of partial plaintext is XORed using only n number of bytes in the final keystream block.
How do we determine the number of bytes in the keystream that are required to produce a final block of the same size (128 bit) as the others?
|
Did a C++ code on Caesar Cipher to do encryption and decryption with my XMC4500 microcontroller but my lecturer said that Caesar Cipher is too simple. He wants me to use a non basic type of cipher and to include size of bit length of plain text and cipher text, secret and public message number and key. And the problem ... |
This question is not a question about the discrete log problem, the generalized discrete log problem, or an additive group.
The confusion is whether any integer can be considered a discrete log or whether a discrete log has as a precondition, that it be part of a multiplicative group. This wikipedia would seem to indi... |
I have to solve Hill's cipher. I have only cipher text: CGQIYN and key: CFDG. I don't know how to decrypt it, because in all videos I've watched they knew the Matrix key from the beginning. I don't want you to solve it, but I am really hopeless and I absolutely don't know how to do it. If you can provide me some proced... |
Given that a valid hash for a specific payload is known, would some C code like this be vulnerable to a length extension attack?
#include <openssl/hmac.h>
...
unsigned char *calculated_hash = HMAC(EVP_md5(), &key,sizeof(key) - 1, payload, payload_len, NULL, NULL);
...
if(memcmp(calculated_hash, received_hash, 16) =... |
Handshake:
1) Client To Server: "AES-GCM(Client_random_128bit,client_iv,psk),client_id,tag,client_iv"
2) Server To Client: "AES-GCM(Server_random_128bit,client_iv++,psk),tag
Client_key_256bit = Client_random_128bit + Server_random_128bit
Server_key_256bit = Server_random_128bit + Client_random_128bit
Communicatio... |
In lattice cryptography, we always face the probem of discrete gaussian sampling. To the beginners, it is a bit complex. However, gaussian sampling from a continous space is much easier to understand, and a lot of tools are available. Say, we can use MATLAB to do gaussian sampling very efficiently. So, I want to know w... |
Suppose Alice sends an ElGamal encryption of a value $v$ to Bob (using either the normal or exponential version of ElGamal). E.g. assuming publicly-known $pk_{BOB} = h$ and a generator $g$, Alice sends $Enc(v,h) = (c_1,c_2) = (g^r, vh^r)$ to Bob. Or for the exponential version, she sends $Enc(v,h) = (c_1,c_2) = (g^r, ... |
In the book The Algorithmic Foundations of Differential Privacy by Cynthia Dwork, Aaron Roth on page 24, databases that take the form of graphs are discussed.
We could on the other hand consider differential privacy at a level
of granularity corresponding to edges, and ask our algorithms to be
insensitive only to the ... |
I'm a high school student taking IB and I'm doing my EE on Maths, more specifically on the effectiveness of Euler's totient function and Carmichael's totient function in RSA.
Am I right in thinking that Euler's and Carmichael's can be used interchangeably to generate the public key in RSA?
To compare their 'effectiven... |
As a layman when it comes to cryptography, I have recently been asking myself if there was a cryptographic equivalent of a family code of arms. I'm thinking of something asymmetric, that is future proof enough to hand down to another generation and that can be used to maybe access resources. If possible it should also ... |
I'm having some trouble understanding how to calculate $r$ and $s$ as specified in the wikipedia page for ECDSA (https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm)
We can see on step 4 of the signature generation algorithm that they calculate the following:
$r = x_1 \text{mod}\ n$, where $n$ is t... |
If a certificate received from a peer:
Is expired,
has a valid signature, but from an untrusted root CA
What error should be thrown? Untrusted certificate or expired certificate? I can't seem to locate what the relevant RFC would suggest.
|
In the 51% attack on the Proof Of Work Consensus Mechanism, it's often said that you need more hashing power than the rest of the network combined. Though I can't understand why you need that much.
If we break the blockchain network down in Alice, Bob, Charlie and Eve, and they all currently are honest. They all have 1... |
In the context of the project we are working on recently, we would like to enable users to "leave a message" to someone on the Internet securely. Our setting is as below:
ECC key pairs for open ID
AES-GCM as session for each message
Suppose Bob wants to leave a secret message to Alice, whose public key is known to the... |
When I frist read about the famous dining cryptographers problem, in a book years ago I remember the author made a twist on it, demonstrating the generalization of the problem.
Basically the dining cryptographers wanted to know who has the best income. But since they all worked for secret agencies, they were not allowe... |
To encode a message $m$ to a cipher $c$ you can use the only hard solvable problem of computing the discrete logarithm with a generator $g$ in base over a prime $p$.
$c = mg_1^r$ mod p
If an attacker want to derive $r$ he can use e.g. the Baby-step giant-step algorithm. He can solve this in $\mathcal{O}(\sqrt{p})$.
I'm... |
In the example given by in the top answer of Simulation based proofs: Simple examples claims that this is insecure the semi-honest, and I need assistance in where I am failing to reason why that this is true.
By definition (at least put simply to my understanding), a protocol is secure under this simulation based defin... |
This topic is very new to me. Is it possible to do comparison on the encrypted data(data is encrypted using Gentry's FHE)? If so, how can it be done?
|
Secret sharing has the problem of player cheating, where a forged share $s'_i$ can be sent to generate a fake secret $m'$ during reconstruction (and the cheaters can even collude to generate the real secret $m$). The literature covers that issue under the term cheating-detection on the Secret-Sharing researching field.... |
Main question: Is the computation of $a,b,c$ in $P^aQ^bR^c \mod N$ (much) harder than in $T_p^a \mod P$, $T_q^b \mod Q$, $T_r^c \mod R$ ?
(assuming the first form exists)
$P^aQ^bR^c \mod N$
With $P^aQ^bR^c$ you create unique numbers (e.g. with primes $P,Q,R$) for combinations of $a,b,c$ with $a=0..a_{max},b=0..b_{max... |
Since the cloud security algorithm I am trying to implement says that for a PRF, any secure encryption algorithm or a keyed hash function can be used. The security parameter I have chosen is 15 bits while AES and SHA use a large key size than this. So which block cipher and encyption function should I use for a PRF?
|
The original McEliece scheme uses two random matrices S and P to scramble the generator matrix and uses $\mathsf S·\mathsf G·\mathsf P$ as the public key. The Niederreiter variant also does about the same thing.
However, in the Classic McEliece proposal (based on Niederreiter in spite of its name), they don't do any of... |
Suppose I have an encryption oracle which can encrypt $m^e \mod n$ for any $m$. I know $n$ and I know $\varphi(n)$. However the public exponent $e$ is secret. Is it possible to figure out it's value when $e$ is not bruteforce-able?
|
I'm wondering if the openssl rand command produces cryptographically secure random bytes. For example when in need for a random password or token:
openssl rand -hex 32
The man page unfortunately does neither state it's cryptographically secure, nor that it's not.
On the one hand, I think this is openssl, its sole purp... |
Considering a case, when modulus is large and hard to factor, exponent e=3 and there is a cipher-text which is created by padding plain-text with A's from left and the ride side such that the real plain-text lies in the very center.
Which attacks could apply in such case. Low-Exponent Cube root attack fails. Does the ... |
I have a message $M$ that is encrypted using a public key $P_1$. I lost the associated private key $p_1$. I have another public/private key pair $(P_2, p_2)$. Is it possible to "translate" the encrypted message using public key $P_1$ to a message that is encrypted using public key $P_2$ (this way I can decrypt the mess... |
I am reading some articles about key exchange. I know classic key exchange, such as Diffie-Hellman key exchange. This type of algorithm is vulnerable to man-in-the-middle attack. However, when using a digital signature algorithm, this attack is invalid.
So, does authenticated key exchange consist of classic key exchang... |
How will be cipher selected when a client is running on version TLS 1.3 and server is running on TLS 1.2?
The cipher list provided by TLS 1.3 client will be different than the version supported on the TLS 1.2 server.
|
Suppose $(n, d)$ is an RSA private keypair. We know the public key only (wlog suppose it's $(n, 2^{16}+1)$ and we are given oracle $E$, decryption oracle for $(n, d)$. Is there any efficient algorithm to recover $d$? This is a bit easier than directly attacking for known pair of plaintext and ciphertext, as for any $m$... |
I have the following equation:
$$base^{exp} = number \pmod n : base,exp \in \mathbb{N}$$ and another known fact is:
$$gcd(base, number) = 1$$
$$n = 2^{2048}$$ base=134893050248654877031102556582343297476981182069597786446881563320437838460788391206938942555278944895319050122447131171427641664523121330197721716744669337... |
Is it possible to recover the key to a decrypted file if you have the initialization vector and it uses RijndaelManaged in CBC mode? If so how?
The file I want to recover the key from is a xml that looks like this without encryption. It has a xml element called Test.
<?xml version="1.0" encoding="utf-8"?>
<Test />
Wh... |
I was going through Zero Knowledge Set Membership and came across the following:
Given $x \in \mathbb{Z}$ and $g$ is the generator of a multiplicative group $\mathbb{G}$ how do we compute $g^\frac{1}{\delta+x}$.
My doubt is, since $\mathbb{G}$ is a multiplicative group, doesn't that require $\frac{1}{\delta + x} \in \m... |
Let $(x,y) \in E'_{\mathbb{F}_{p^2}}$ be a point of the sextic twist.
I am currently trying to compute:
$\psi : (x, y) \leftarrow (\mu^2x,\mu^3y)$ with $\mu \in \mathbb{F}_{p^{12}}$ the root of $(Y^2 - \xi)$ with $\xi = 1+i \in \mathbb{F}_{p^{2}}$.
From the original curve over $\mathbb{F}_{p^{12}}$ (that is $y² = x³ + ... |
I need to create a unique numerical value for every alpha-numeric string input. Size of output numerical value can be of any size like 32, 64 128 bits. The input string will always be a mongoID type if that helps.
Is there any hashing algorithm available for such purpose.
|
Suppose I have two messages $m_1$ and $m_2$ as well as $c_1$ and $n$. It's standard RSA so $c_1 = m_1^e \ mod \ n$, $c_2 = m_2^e \ mod \ n$. Further assume the only information we have about e is that it is smaller than $2^{2048}$. Is there a way to find it? (According to this it is not)
|
Say an attacker has access to a non-rate-limited API that takes (IV, data) and outputsAES-CBC(key, input, data), with the key remaining on the server side. However, the attacker can pass any (valid) IV and data that they want in an attempt to recover the key.
Is there any optimal way to recover the key with such access... |
We consider a $(2, 6)$ Shamir secret sharing scheme over $Z_{11}$. Four players $A,B,C,D$ cooperate to find the secret, but one of them is cheating (so the share he claims to have might not be an actual share). They claim that their shares are;
$$A:(1,2)\quad B:(2,5)\quad C:(3,10)\quad D:(4,3)$$
Who is cheating and wha... |
Is there a technical difference between decryption and deciphering?
|
I am confused with round keys and round constant in AES. Are they the same? Can someone explain it to me?
|
I know that Shor's algorithm can factor semi-primes ($N = p \times q \space, \{p, \space q \in \Bbb{P} \space \vert \space p, \space q \gt 0 \} $).
Assuming that all prime numbers are so large that it's infeasible to compute with any known classical algorithm, can Shor's algorithm also factor multi-primes, meaning wher... |
Assume I want to make my RSA secure because I heard that textbook RSA, especially in conjunction with low exponents, is very risky. I decide to limit my message length to 100 and subsequently construct my padded message as follows:
m = '\x01'*70 + m + '\x01'*70
To improve performance, I choose $e=3$.
Why is this risky... |
I was advised to use crypto_secretbox_xsalsa20poly1305 due to its simplicity and because it's safe against timing attacks. I'm reading the secretbox tutorial, and there's a link to Validation and Verification regarding message length. In that, in the last paragraph, it says the following:
Tests are currently limited t... |
When I'm reading literature about proof-of-stake blockchain, I found that it seems there is no concept about confirmation blocks (which is used to confirm a posted transaction is indeed honestly generated and in bitcoin we need 6 confirmation blocks that is enough). However, my question is that why we don't need confir... |
If understand correctly from this post and the Wikipedia page for BitLocker and TPM, by default, BitLocker uses symmetric cryptography like AES. However, TPM is capable of performing RSA encryption.
Given that the RSA key is stored in the TPM, why does BitLocker not use asymmetric encryption (i.e., RSA)? By using such ... |
How do you figure out the multiplicative and additive identity with respects to R?
I pick some R such that gcd(R, N) = 1 where N is the size of the group.
Given some field element x in the group, I do x' = xR mod N
How would I figure out the multiplicative identity m such that x' * m = x'
and the additive identity a s... |
I need some example values for the message schedule stage of SHA256 to test this part of my implementation.
If possible in binary, for the string 'abc'.
|
After looking at the Wikipedia page for the Fiestel cipher, I thought about making a variation of it that is very general.
I basically followed the diagram on Wikipedia in order to structure the algorithm. The way my algorithm encrypts messages follows this diagram (the decryption is just the reverse method as seen in ... |
What sort of fields is efficient over an arithmetic circuit?
Efficient meaning that given a field $\mathbb{F}_p$, reduction (modulo) does not require many multiplications and preferably inversion was cheap.
|
I have read many answers but I cannot get the basic explanation. There's no need for full details. I just need some basic information about who can create a mac and verify it.
|
How to check if two points are equivalent given their projective coordinates (XYTZ)?
For example if I do unproject() of a point to pass from XYTZ to XY coordinates and then I come back to XYTZ coordinates, the new XYTZ coordinates are different respect to the original ones.
How can I be sure that the two points are equ... |
I am searching for a way to make the noise X pattern fully forward secret. The X pattern is a way to encrypted and authenticated messages. As a building block to achieve this I started pondering if there is a way to progress a key pair ($a$, $A$). Use a one way function on $a$ to calculate $a'$ and another function on ... |
Not long ago I saw a discussion on the Bitcoin Talk forum:
https://bitcointalk.org/index.php?topic=5060735.msg50736695#msg50736695
Please give advice and working methods? Is it possible to find at least one private key from any public key from the list from the large list of compressed public keys secp256k1?
Public key... |
This question is related to this one. Specifically, assume that we have $p$ = 2048, $m$ = 13 and $c$ = 357.
In this case, $c\ =m^e\ \bmod \ p$.
I know that many algorithms rely on the difficulty of computing the discrete logarithm. I have read however that discrete log across powers of 2 is weak. Could someone explain ... |
In order to avoid memory errors, I always write safe C++ wrappers with strong type-safety for any C encryption library I use.
To test my wrapper of crypto_secretbox_xsalsa20poly1305 of libsodium and make sure I'm using it correctly, I need a set of messages, nonces and keys that someone used and encrypted and the outco... |
I am quite confused, I have been following a course on crypto provided by Dan Boneh, this is the lecture I am confused with - https://www.youtube.com/watch?v=EjWap3szsPk time stamp 8:58 - 11:00
I don't understand the meaning of epsilon in this situation, I know epsilon is a symbol in math that is used for a positive nu... |
Wikipedia claims key length can be very big in this cipher, so I assume it can offer a million bits of security provided entropy of key is the same?
Of course I can SHA-256 hash the key to allow any key sizes for AES... but it defeats the whole purpose of having such large entropy when the security is less.
So what is ... |
I have read that one of the PUF's application is software licensing, but do not know how. I have been reading different articles and forums (such as here), but still not clear for me.
One vague point for me is that PUF is a hardware and I do not think that vendors provide a separate hardware rather than maybe just a CD... |
How would we go about building a scheme for Shamir secret sharing for vectors?
I have already tried to use a vector of secrets and random distribution of the secrets to $n$ parties and then use $t$ of them to get the data, where $t<n$.
|
To encrypt a message, one uses the algorithm for doing a CBC decryption. To decrypt a message, one uses the algorithm for doing a CBC encryption. Does this work?
|
Using a steganographic algorithm like least significant bit, can one hide a text in an image and then hide that image in another image?
|
For example according to protocol I need calculate this:
$b=F^{(1/h)} \bmod pq.$
Where $p$ and $q$ are prime numbers. I have $F$ and $h$. But how can I calculate $b$?
I tried to do this:
$\text{temp} = h^{-1} \bmod((p-1)*(q-1))$
and then
$b=F^{\text{temp}} \bmod pq$
But the problem is that
$h^{-1} \bmod((p-1)*(q-1))$
... |
When I am reading some secure computing papers, the authors always assumed that there exist some adversaries, such as non-uniform adversary and the probabilistic polynomial-time adversary. So my question is that what are the main difference between the non-uniform probabilistic polynomial-time adversary and the probabi... |
I read an article about password schemes that makes two seemingly conflicting claims:
MD5 is broken; it’s too slow to use as a general purpose hash; etc
The problem is that MD5 is fast
I know that MD5 should not be used for password hashing, and that it also should not be used for integrity checking of documents. Th... |
Signal Protocol uses a counter (discussed in DoubleRatchet documentation) to define how many times KDF has derived a new key (aka a KDF step) which is then sent along with every message for the end client to know how many derivations (steps) he has to do to obtain a decryption key matching the message key which encrypt... |
Let
$$
\begin{aligned}
F_{i} \colon \{\, 0,1 \,\}^* \times \{\, 0,1 \,\}^* &\to \{\, 0,1 \,\}^* \\
(k, x) &\mapsto y \\
\end{aligned}
$$
for $i \in \{\, 1,2 \,\}$.
As we known, for every oracle algorithm $\mathcal{D}$ the distance between $F_{1}$ and $F_{2}$ with respect to $\mathcal{A}$ is defined as
$$\mathrm{Dist}_... |
I found an interesting concept in this paper, page 13, (Link to the paper) called "Decentralized private key generation", as follows:
"Decentralized private key generation – Multiple Enigma nodes locally
create a segment of the key, whereas the full key is only ever
assembled by the user. No trail of evidence is l... |
OpenSSH 8 supports a post quantum KEX, namely sntrup4591761x25519-sha512@tinyssh.org
It says in its description that it is basically NTRU + ECC X25519. However, I have tried but cannot understand how it combines the two? My main source of confusion is that the description seems to be saying that the client creates just... |
E.g.:
$k = N^a \mod P$
The attacker knows the prime $P$ and $N$, which is also a prime and
(1.) prime root of $P$ or
(2.) has a cycle size of $s$, so $1 = N^s \mod P$, (and for $\forall s'<s$, $1 < N^{s'} \mod P$
The attacker want to resolve variable $a$ with some discrete log. algorithm for a certain $k$.
About the $k... |
More generally, is it possible to construct a $(k,n)$ threshold secret sharing scheme (i.e. let than k shares leaks no statistical information about the secret) such that possession of the secret along with fewer than $\left\lfloor \frac{k-1}{2} \right\rfloor$ is enough to reconstruct the entire key (i.e. the entire po... |
(This question is a follow-up from another question I asked about MD5, which is why I'm insisting on using MD5 in this question as well)
My imaginary Linux distribution, Sushi Linux has had a big incident. Hackers gained access to the website and replaced the download link with a link to an infected ISO file. The web... |
Is there a cost model for each curve model and their conversions?
For example:
Take the curve models: Projective, Completed, Extended, Affine.
Is there a table which shows how many multiplications, additions and divisions it costs to do point addition and point doubling for example?
Maybe a guide on when to choose each... |
Which bit is retained in the Von Neumann debiasing algorithm? 00 and 11 are discarded and 10, 01 are retained but is the first or the second bit retained or does it matter?
In other words:
first: 10 -> 1 , 01 -> 0
second: 10 -> 0 , 01 -> 1
Original Paper (appears to be first but could be interpreted either way):
https... |
I am implementing a system using some sort of 32bytes OTC (One-Time Code) and signing it with ECDSA to get verification of a public key owner.
The key I'm using is secp256r1.
Since the nature of this mechanism is very short-lived (say I will refresh the OTC within 1 minute), I doubt whether I can shorten the OTC in som... |
I came across the following question and it is confusing me.
I'm completely new to cryptography, so please excuse the beginners question.
"Having just completed a course in Cryptography, Tom and Jerry start a
new business to manufacture and market cryptography products. Tom
designs an encryption algorithm $E_k(m)... |
The Schnorr identification protocol is widely recognized as the simplest ZKPoK of the discrete logarithm (more clearly, Honest-Verifier ZKPoK).
However, I can't figure out why this simple protocol, which is actually just a Diffie-Hellman key establishment protocol, is not an HVZKPoK also
(I understand that if it would... |
Say that many banks issue electronic cash of a particular type.
If there is a malicious bank and user collusion, the malicious bank signs electronic cash for a particular user. This user then takes the electronic cash to other banks to withdraw money. This way the malicious bank can get a large amount of cash from othe... |
I know that ECB block cipher mode is the weakest method of encryption because repetitions in input data with a stride of a block size lead to repetitions in output data.
However, as I may consider, elimination of repetitiveness should give a stronger result like for other modes (CBC, etc.). In addition, I know that com... |
Given a curve with points over GF(p), a subgroup of prime order q and a co-factor h.
How do I calculate the size of q which is also the modulus?
I was thinking q = p/h
|
I was taught only GGM based PRF construction in class. It's very inefficient. I am just curious about various PRF constructions from standard assumptions. Please provide a few PRF constructions from various assumptions.
|
This is from a lecture :
The adversary sees the message-tag pair(m,τ), where m= (m1,m2,...,mn)The adversary sees the message-tag pair(m′,τ′), where m′= (m′1,m′2,...,m′n)The adversary computes m''=(m1,...,mn,m′1⊕τ,m′2,...,m′n)
The message-tag pair( m'',τ′)is a forgery
But I don't understand why xoring the tag τ of the ... |
I have managed to lose 5 words of my 24 word Ledger Nano S recovery phrase. I have words 1-19 but I am missing words 20-24.
I have significant holdings on the wallet so would very much like to recover it if possible.
The passphrase is a BIP39 mnemonic (see https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.