instruction stringlengths 33 27.2k |
|---|
I am working on a document to explain Bitcoin to students. But I am having a hard time translating the principle described in §2 of the Bitcoin whitepaper in layman's terms.
There is a great question (Is there a simple hash function that one can compute without a computer?) with a great answer, which helps to understan... |
Modern x86 CPUs support the PCLMULQDQ instruction, which does an XOR-multiply of two 64-bit numbers instead of an add-multiply (i.e. typical arithmetic multiplication). This makes XOR-multiplication for $GF(2^{128})$ significantly faster.
However, it's only one half of multiplication in $GF(2^{128})$: after the XOR-mu... |
Let’s assume Bob is some algorithmic stock trading machine. Bob takes commands from Alice, who sends messages to Bob.
For example: Alice could be sending a message to Bob to stop trading. But if Mallory is able to capture cipher and figure out the effect of sending that cipher to Bob, Mallory could send the captured c... |
XTS-AES uses two keys $(k_1, k_2)$, which are obtained from a concatenated key $k$. Does this key $k$ remain same for the whole disk or changes per sector?
|
Does encrypting a double-length 3DES application key (that has an odd parity) under a double-length 3DES zone master key (also with an odd parity) affect the parity of the application key?
|
Are there any good symmetric-ish cyphers that involve three or more steps with independent key material for each step?
Formally, there should be a function $K(s)$ that returns a tuple $(k_1,..,k_n)$ and a function $P(k,d)$ such that if $d_i = P(k_i,d_{i-1})$ then $d_n=d_0$ but there are no known relationships between s... |
I have an Enigma message and I know what the original message is (a repetition of the same letter). Is it possible obtain the enigma key? I only know what kind of Enigma machine is it, but I need to guess the config. parameters.
|
Definitions:
M - original message,
Me - encrypted message M,
S - watermark message,
Ms - message M with steganography watermark S,
e - encryption private key,
d - decryption key (it is private too),
s - key for signing message with watermark,
ds - decryption public key, inseparable combined with watermark key s,
v - ke... |
Problem:
I'm thinking about a lightweight solution to provide source authentication (only one source) to multiple receivers (multicast message).
Context:
Taking the problem to ground, we can think of use cases like firmware update (one to many), or a command to turn on several lights 'on' (that command can be sent by o... |
PREMISE: This question is purely theoretical because usually an attacker will not know private exponent d and can't compare it with obtained MSB bytes.
Suppose an RSA 1024 bit signature.
An attacker through a key exposure obtain the half most significant bytes of the private exponent d.
Can the attacker reconstruct the... |
How is it insecure when Alice encrypts a message with a One-Time-Pad to Bob, and Bob then uses the decrypted message from Alice as the next One-Time-Pad?
For example: Alice sends Bob a message Hello World with the Key of Orange Fish which they both shared earlier. Vvlyu Atzdk (Hello World). Then Bob uses Hello Word (wh... |
Due to growing concerns over the threat of quantum computing to asymmetric cryptography (RSA, ECC, etc), a number of "quantum resistant" replacements have been proposed (SPHINCS, McBits, and many more). How are these cryptosystems proven (or argued) to be secure in the presence of quantum computers?
Are the schemes on... |
I have read some content on trusted execution environment, and I like to ask exactly how it improves hashing. What I read at Wikipedia’s “Trusted Execution Technology” article states:
...PCRs) which hold various measurements in a shielded location in a manner that prevents spoofing.
Does this mean one does not have ... |
Suppose two parties A and B are using a public-key encryption scheme in order to communicate securely. A and B both have a public/private key pair:
$$ A: (P_A, S_A), B: (P_B, S_B)$$
and A already knows about B's public key but has no proof of authenticity.
What is the most an adversary C can do while impersonating one ... |
I am familiar with public key signatures, but I was wondering if there is a method to accomplish the following.
Suppose I publish a file (say a PDF article) on a peer to peer network. How can I generate some sort of public key or signature which will allow one peer to prove to another peer that they have a copy of this... |
We all know and love the meet-in-the-middle attack, which basically makes double encryption pointless using a time-memory trade-off. Now, the NSA recently recommended to use double encryption to adequately protect sensitive data from quantum attackers.
This made me ask myself:
Can one combine Grover's algorithm with t... |
I was wondering if the following hash function
f(x) := md5(x) & md5('abc'&x)
(with & as concatenation operator) is secure.
This schema can be even extended like this:
g(x) := md5(x) & md5('abc'&x) & md5('def'&x)
To find a collission in f(x), following requirements would be met:
f(x)=f(x'), x!=x' <==> md5(x)=md5(x') ^... |
I have calculated the affine points on the curve $x^2 + y^2 = 1 − 3x^2y^2$
over the field ${\mathbb{Z}}_{11}.$
Using $y^2 = \frac{1-x^2}{1+3x^2}$ I got the following points:
$(0,1),(0,10),(1,0),(2,2),(2,9),(9,2),(9,9),(10,0)$
Total comes to be 8 points. But what I know is that total points should come 11-1 = 10.
So I ... |
Assuming that you are paranoid before storing your file (distributed across a shared location), which will be the best case scenario: splitting the file first and then encrypting or encrypting first and then splitting?
|
In the Wikipedia article on Block Ciphers, it says about the Electronic Code Block mode:
The disadvantage of this method is that identical plaintext blocks are
encrypted into identical ciphertext blocks; thus, it does not hide
data patterns well. In some senses, it doesn't provide serious message
confidentiality... |
The encryption in Paillier cryptosystem is like this according to Wikipedia:
Let $m$ be a message to be encrypted where $m \in \mathbb{Z}_n$
Select random $r$ where $r \in \mathbb{Z}_n^*$
Compute ciphertext as: $c = g^m \cdot r^n \bmod n^2 $
So just calculating the inverse of ciphertext $c$ (i.e enc($m$)) will not wo... |
A way to prevent timing attacks for hash string comparison is to perform additional HMAC signing in order to randomize the verification process (see Double HMAC Verification).
In addition to the second HMAC hashing for each hash, a random salt of random length is added to both in order to make the hashing timing / pro... |
$c(y) = (03)y^3 + (01) y^2 + (01) y + (02)$
Let $d = (01)b$ in the AES field $GF(2^8)$.
Provide exact equations for the bits $d_i, 0 \leq i \leq 7$, in terms of the bits $b_i$ of b.
Can some give me an example or hint? I don't know where to start..
|
Historically, messages in languages that use alphabets have been encrypted manually according to some kind of algorithm (e.g. mono- and poly-alphabetic ciphers). But how were messages encrypted in a semagram-based language like Chinese?
|
I'm studying for a cryptography test and I came across this question:
Assume a language has three letters: A=1111, B=0011 and C=1010. Two words in this language are encrypted with a one-time pad and by using the same binary key sequence. The first four bits for both corresponding cipher texts are, respectively: $C_1=... |
I am doing a project on the Rijndael Algorithm. I have already written the encryption code which produces the correct output. Now I want to implement decryption as well. I'm doing using VHDL, targetting the Xylinx platform.
Can anyone help me coding for ADD_ROUND_KEY step in decryption.
|
I would like to compress data before encrypting and storing it in a MySQL DB to reduce especially bandwith requirements (compression reduces bandwith by 70-80%). At present, all is handled by a server-based script. In the future, the DB may also be accessible via a web interface.
Various comments on the insecurity of ... |
Say I have a graph of messages like this:
A
|
B
/ \
C D
By including the parent hash in the message to be hashed I can show that B is a child of A, and C and D are children of B.
For example
Hash("This is message A") = ab3ed
Hash("This is message B + ab3ed") = e4c90
Hash("This is message C + e4c90") = 83... |
The problem is as follows:
There are two parties, both of whom would like to HMAC a message with a key. Although the keys are known to one another, both parties do not trust that the other one created a truly random key.
The HMAC result must not be easily attackable by a third party. So it is necessary the final key ha... |
I'm running through a protocol specification (LoRaWAN, pdf), and I'm puzzled by the crypto. The data is encrypted and authenticated in the following way:
a unique 128-bit key is used;
the plaintext is first encrypted in classical counter mode with AES, with counter = fixedData1 | nonce | blockCounter;
a MAC is then co... |
I'm practising for a cryptography test and came across this question:
Let us assume that for a specific elliptic curve the formulas for the computation of $(x_3, y_3)=R+S$ are given by:
$X_3=\sigma^2-x_1-x_2\ (\textrm{mod}\ p)$
$Y_3=\sigma(x_1-x_3)-y_1 \ (\textrm{mod}\ p)$
$\sigma = \frac{y_2-y_1}{x_2-x_1}\qquad \tex... |
I'm designing a cryptography assignment for a college security course, and one of the problems is to perform a simple meet-in-the-middle attack on a 2-round, 2-key cipher.
Since we want this to be a reasonable attack for students to mount on their own laptops or school computers, the cipher needs to be very fast to com... |
I would like to use different EC keys for different purposes in an app, and I would like to easily see the purpose for which particular key (pair) was generated.
With ~65K attempts, I can generate a key-pair where the first byte of both the public and private key are equal to a particular "purpose code" byte value.
(e.... |
I am trying to get secret S and I have 3 values (2,2)(6,3)(4,9) and know that we are working modulo is 13.
I tried using Lagrange basis polynomials and got 8 but I am not sure if that is right and also I cannot find way to derive the equation of the line in form of ax+by= c (mod 13).
|
Alice and Bob want to play a coin flipping game. Alice wins if the coin flips head.
They choose to trust a independent third party that generates a random beacon (such as NIST). There is no communication only before the random beacon is generated. After it is generated, there may be communication.
Alice has a message ... |
Suppose that there is a place in a security proof where the behavior of an oracle differs from the corresponding real execution (for example, the decryption oracle rejects certain types of ciphertexts but in the real world the decryption function accepts them). Let us assume also that the probability of this situation ... |
I am using a PGP method to encrypt and decrypt messages shared between users A and B.
Upon the start of a message exchange is the initialization of the public and secret keys by both Users.
Lets say that User A downloads the message exhange app and he adds his friend (through phone number). He then wants to initialize ... |
The first question: what is the exact definition of semantically secure?
Basically, a cryptosystem is semantically secure if given the public key and the ciphertext, an adversary cannot learn any partial information of the plaintext.
However, the above statement is quite vague to me. For example, what does it mean by... |
If one wishes to encrypt one can either use a pseudo random generator to generate a long sequence and then xor it with plaintext, similarly he can use the seed as key to encrypt the plaintext using block encryption.
If encryption is not of paramount concern, which runs faster, pseudo random generator or block encryptio... |
Suppose I want to use LTV scheme from this paper https://eprint.iacr.org/2013/094.pdf to compute homomorphically a function.
But the multiplication operation is more expensive than the additive one.
So, if multiplication is the counterpart of an AND gate and addition is the counterpart of an OR gate, why not implement ... |
I was reading this paper https://eprint.iacr.org/2014/816.pdf "Bootstratpping in less than one second" but I didn't understand it throughly. What's the point to build a cheap NAND gate ? Maybe to build cheaper AND and OR gates based on this NAND gate and then follow the approach of Regev's type cryptosystems? Or maybe ... |
I have read a paper on Bit Slicing and Lightweight crypto but cannot understand how bitslicing makes encryption scheme faster.
Please can someone explain with an example exactly how bit slicing makes the code faster (even a single xor example will suffice)? Can bitslicing be applied to any encryption scheme?
|
I'm running into very contradictory opinions when try to understand if weak elliptic curves exist. I'm not interested in the case when a curve's weakness is attributed to properties of an EC's prime, because those cases have been already explored, e.g. here: http://wstein.org/edu/2010/414/projects/novotney.pdf
I want t... |
I have a cryptography homework question, in the question it says a cryptographic hash function in the form of $f(x) = g^x \bmod n$ , where $n$ is a very large prime (1024bits and more), $g$ is a generator for $\{1, 2, . . . , n − 1\}$, and $x$ is
possibly much more than 1024 bits in length. Comment on how well the fun... |
What if we were substitute the ANDs with XORs in some homomorphic encryption scheme like BGV(https://eprint.iacr.org/2011/277.pdf), LTV ( https://eprint.iacr.org/2013/094.pdf) ? It may be more efficient ?
For example if we can substitute an AND with 6 XORs, we would achieve a better efficiency for some choice of the pa... |
I've been wrestling with a problem, and I was hoping if someone else had a bright idea.
Here's the problem: I have two sides, Alice and Bob. Alice has a single high entropy string $A$, and Bob has a number of high entropy strings $B_i$, one of which may be $A$. What we would like to do is have Alice send a single ran... |
I'm educating myself about cryptography. I know this is a long one, but please, bear with me. :) Now I have a scenario in my mind and I'd like to ask if what I've thought is sound (enough), what more to take into account and possible pointers.
Describing the scenario
Let's assume there are producers, P, that produce 6... |
I am a beginner in cryptography and I am interested for several weeks on this for my chat application.
Basically, it is a centralized model. All messages are stored and potentially visible by authorities or server administrators.
Here the global functioning of the chat :
Each person may register with a nickname, add a... |
Could a one-way accumulator be used in a manner to replace a digital signature? Can it provide a way to:
verify that the data has not been tampered with, and
verify that the message is in fact sent/signed by the one who claims to have?
This paper discusses it, but can it safely and effectively replace DS?
|
I've implemented the md5 source from a crypt lib from http://sourceforge.net/projects/libcrypt/
The string I'm passing to md5 is ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890.
From the md5 provided by my system I receive this hash 26756d7b34ff23859568262596dc159d but from what I've implemented I'm get... |
When looking through elliptic curve and modulus posts i can see many examples of people referencing $p$ and $n$, in upper and lower case, and sometimes $Q$ is written instead of $p$ or $P$, and I think I've seen $N$ written as $Q$ once.
For example, this is one of the things I've seen for sepc256k1:
$p$ = 0xffffffffff... |
I want to implement a FHE scheme based on NTRU, namely the scheme described here https://eprint.iacr.org/2014/039.pdf . How to test the security of my implementation ? Do I have to implement the attacks against NTRU-FHE by myself or there are already some programs that do this?
|
I'm quite novice in security, and all examples I saw seem to salt the password by concatenating it, or by applying a simple binary OR or XOR. So the hash is based on "salt + password", "salt | password", etc.
If I'm right, a hacker should know how the password has been salted in order to retrieve a user password. So, c... |
Lets consider Secure Multiparty Computation based on Secret Sharing schemes (rather than Garbled Circuits approach). If we have to do regular expression matching on secret shares of words of texts. Trivial solution is to secret share each letter of the word and distribute to different parties and later each party execu... |
I'm trying to find a good algorithm for generating authorization codes, access tokens and refresh tokens in an API.
Currently, I am looking into the following setup:
Tokens are generated using the RNGCryptoServiceProvider class in C#. (I have limited the allowed chars to the following set: abcdefghijkmnopqrstuvwxyzABC... |
Take the lifted ElGamal as an example: suppose the original ciphertext is $<g^y \bmod q,g^m\bmod q>$. After some calculations, $m$ could be large enough to do modular. But I don't want $m$ to be reduced to a small value. So I was considering whether I can expand the modulus $q$ (e.g., multiply it with another prime $p$... |
Why does a single bit error when using the CBC block cipher mode of operation affect the decryption of a block (Oj) with a probabilty of 50%? And in the following block, why is the one bit error in the exact position as in cipher block? Differently worded: why is the 1 bit error propagation 1:1?
|
i am studying about differential cryptanalysis, and found one metric to measure the resistance of a sbox to it, but to use it, it is necessary to build a difference distribution table, like the one in this link, this is is the table of sobox s1 of des, how do I build the table for AES sbox for example?
|
Please, could someone explain to me how the Key feedback mode (KFB) mode works and what the IV in output block stands for? And what properties does the "constant input" has to provide? Should it be random / unpredictable / fixed ?
Then it's encrypted with $K$ which is previous output and then it's xored with the plaint... |
I'm developing an application with multiple clients and one server. All clients will have the same hard-coded Curve25519 key pair as well as the server's public key. The server will have its own key pair as well as the clients' public key.
The idea was to allow communication between server and clients without any con... |
When it comes to RSA signing, I understand why you need to hash the data before signing it, but don't you need to communicate what hash algorithm you use to whoever will need to verify the signature? How does that normally work? How do you communicate the hash function used with RSA signing?
|
Concerning private key (symmetric) IND-CPA game definition:
Attacker $A$ queries the encryption oracle polynomial number of times.
$A$ sends the challenger $C$ a message pair $m_0$ and $m_1$. $C$ picks a random bit $b$ and sends back to $A$ a cyphertext $Enc(m_b)$.
$A$ makes further queries to the encryption oracle po... |
As it is discussed here that the highest security any homomorphic encryption scheme is at most IND-CCA1, Is there any known fully homomorphic encryption scheme that achieves this security level? Out of many schemes mentioned here (or otherwise) which of them are IND-CCA1 secure ? (not necessarily practical though)
|
If I have a block-cipher like for example AES,
a plaintext $x$, we use different function to encrypt and decrypt
: $\text{encrypt}(x) = y$ , $\text{decrypt}(y)=x$.
Now, if we build a function with a permutation $P(x)$ with $P(P(x))=x:$
$F(x)=\text{decrypt}(P(\text{encrypt}(x))$ , we have $F(F(x))=x$, a function that e... |
I've recently asked a question about RSA encryption. One of the things that I don't understand is the usage of two public keys.
In the example on Wikipedia, a message is encrypted like:
c(m) = m ^ e % n
This means that I need e and n to do an encryption. Also, in the article m is defined as plaintext but represented a... |
got a question as follows -
how to decrypt below in to letters knowing that crypting language is 469 and it base ofcourse on mathematic.
46781! 9063376290 3222011 677 80322429 67538 14805394, 6880326 677 63378129 337011 72683 149630 4378! 453 639 578300 986372 2953639! I know it’s rather short, but still, this poem I l... |
I am going through Steven Kinney's book; "Trusted Platform Module Basics", and pp 90 - 92 discuss how to calculate the authorization digest. He talks about 1H1, 2H1, 3H1, and 4H1 fields which I do not even see in the corresponding diagram. Can anyone explain this process, or point me to a document which does? If you ar... |
I'm currently attempting the Matasano Crypto Challenges as a basic intro to cryptography. For solving some of the earlier challenges I utilised n-grams to determine which is going to be the most likely English plain text. It has been quite successful.
I'm up to attempting to break repeating XOR, which involves groupin... |
XTS, as given by the below equation, is a mode of operation primarily targeting full-disk encryption scenarios.
By the way it works it also doubles the keylength although a meet-in-the-middle attack applies (by enumerating all the whitening values). However one only needs to calculate the whitening value once per secto... |
The details about what an RSA key is made up of are explained succinctly here.
Is it possible to reduce the amount of data that's usually packaged with the (private) key and then derive it later?
|
"the only thing the simulator can do in the ideal model is to choose the corrupted parties' inputs." Yehuda Lindell said.
1- what will happen when the corrupted parties have no inputs to the protocol? e.g. in cases that the corrupted party/parties are just some computing servers with no input.
2- in these cases, is it ... |
I've read recently the paper "Minimalism in Cryptography: The
Even-Mansour Scheme Revisited" by Dunkelman, Keller and Shamir where it is claimed that the following construction (Single-Key EM) is secure:
$$C=K\oplus E(P\oplus K)$$
with $E$ being a publicly known fixed permutation.
Is there any reason not to use the abo... |
I am writing a high-school paper on textbook RSA (the mathematical aspect only). Many definitions of the RSA method start off with saying that one should:
Generate two large random (and distinct) primes p and q, each roughly the same size
(http://cacr.uwaterloo.ca/hac/about/chap8.pdf, page 286)
My question is: what d... |
I want to implement the ATV-FHE scheme as it is described here https://eprint.iacr.org/2014/039.pdf. How to generate the public key?
Should I compute it as indicated in section 2 :
$h(i) = 2g(i)*[ ( f(i) )^{(-1)} ]$
or should I sample the public key as indicated in section 3 Parameter selection in NTRU_FHE :
Reca... |
In adaptive attacks, if we design poorly, adversary can modify his queries and break the given pseudo random function (that is being able to distinguish it from uniform randomness).
Is there a poor way to design a PRF such that in one round of query, the adversary cannot distinguish but in two rounds the adversary can?... |
I am trying to encrypt the word Hello using RSA. When encrypting Hello’s integer representation, is each letter encrypted separately, or is the whole thing encrypted? Furthermore, am I correct in assuming that Hello is to be represented in binary form for RSA encryption?
|
I am wondering whether $e = 2$ can be used in unpadded RSA...
It seems like it is not possible to use it: the value of e needs to be coprime with $tot(n)$. $tot(n) = (p - 1)(q - 1)$ where $p$ and $q$ are prime numbers.
The way I see it, there are two scenarios.
1) Neither $p$ nor $q$ are equal to $2$. This means they... |
Alice has a secret S and publishes some public information P, about S which is insufficient to recreate S.
Is there a way that Bob can use P, and an arbitrary integer I to create an (EC?) public key for which Alice can subsequently calculate the private key, given I?
Does this requirement already have a name?
Bob wa... |
I try to implement the ATV-FHE scheme as described in this paper https://eprint.iacr.org/2014/039.pdf.
How do I choose the bound for the probability distribution chi?
How do I choose standard deviation for this distribution?
|
I am trying to implement a checksum over multiple files.
We can assume, that i have a package containing N files. I want to identify such a package uniquely by following calculation:
SHA256-Hash over every file.
I save the result bytes of the hash-function for every file.
And then i calculate the sha256 hash over the ... |
Is it safe to use the Sakai–Kasahara key encryption algorithm (SAKKE) for signing/verification, rather than for encryption? (Example at bitbucket.org)
In particular, I want many Bobs to be able to get many public keys (for an offline identity Alice) which can later be used to verify the signing of some data by Alice, w... |
Can we make subtraction result of cipher texts encrypted by Pascal Paillier absolute. Just like we use method Math.abs() in Java ?
For example, if we subtract 0 from 1: 1-0 = 1, it is positive but 0-1 = -1. My requirement is that this subtraction should always be positive like:
1 - 0 = 1
0 - 1 = 1
Is there anywa... |
If I have N bytes of plaintext, does signing it with my private key prove (to holders of my public key) that I have signed that exact plaintext messages?
i.e. could an attacker use the plaintext and signature to generate another plaintext which would also verify?
Or do I need to hash the plaintext to provide message in... |
How many plaintext-ciphertext pairs would be needed to guess with probability, say $p=0.5$, the key $k$ of AES under ECB mode?
Most of the articles that I found tried attacks on single plaintext-ciphertext pair. How would the chances on attack on key increase with increase in number of plaintext-ciphertext pairs.
Link ... |
What make them better than OTP using a CSPRNG initialized
with a secret key?
|
I have memorized a very long and secure passphrase, that when hashed with sha256, I can use the result as an ECDSA private key, and use it as a brain-address for Bitcoin.
Now I need more bitcoin addresses, and instead of memorizing a new long and secure passphrase, I am thinking about just hashing the previous hash, ov... |
When operating a block cipher in CTR or GCM mode, should the function used to increment the counter or initialization vector be near-constant time? Here, I'm wondering about the "addition with carry" that often occurs. For example:
void IncrementCounterByOne(byte *inout, unsigned int size)
{
for (int i=int(size-1),... |
We know that if $n$ and $\phi$ is known, then it is possible to find $p$ and $q$ (initial prime numbers). I have following the questions:
Assume the public key $e$ is not known, how difficult would it be to guess the public key using $n$, $\phi$, $p$ and $q$?
Assuming we have $c_1$, $c_1 = m^e \bmod n$ is it possible... |
I usually generate a key pair using OpenSSL or Bouncy Castle.
I'm using curve secp256k1.
The 256bit private keys look fairly random.
Do all values of "private key" have a corresponding public key?
If so, can the public key be found for all arbitrary 256bit values, when treated as if they were private keys?
If not, is t... |
After asking: Are all possible EC private keys valid? I learned that all 32 byte (256 bit) values greater than 0 and less than n are all valid private keys. This means that 99% of all 256 bit values are valid private keys. (This was a revelation to me.)
The public key space is 257 bits, as it includes X and the sign ... |
I am working on an embedded device which send/receive data and stored them in ciphertext mode (encrypted mode ). Now what's best approach for storing Keys (I used ARM CORTEX M series MCU) ?
Storing keys in the SRAM memory,in each booting sequence ,inject keys to the embedded MCU and store them in the SRAM memory. It i... |
Using a text book example, Alice and Bob want to communicate securely using encrypted messages over an insecure channel (the Internet). Alice and Bob have decided to use ECDH (using ephemeral keys generated per session) and start off by each generating a public/private key pair using Curve P-256 - using SHA1PRNG for ... |
Assume I have client and server applications with a shared master secret KEY_SECRET already in place. Also assume that the client and server have an implicit shared counter CTR initialized on the same value.
Is it wise to sign the data sent from the client to the server in a following way:
KEY_SIGN = HOTP(KEY_SECRET, C... |
Looking at the question “ECDSA vs ECIES vs ECDH” it appears that you can either have a tool that can derive keys or bits, or can be used to sign and verify something. Is there an EC way to do both with the same keypair?
|
Currently learning and reading about the fascinating SSL Key Exchange and came upon the Apple GOTOFAIL incident back in 2014. I'm going through the code during that time and came across this section.
err = sslRawVerify(ctx,
ctx->peerPubKey,
dataToSign, /* pla... |
Let's say that you have some small number of RSA signatures of known data: you know some pairs $(m_k, c_k)$ such that ${c_k}^e \equiv m_k \pmod n$. If you know $e$, because probably it's one of $\{3, 17, 65537\}$, is it possible to recover $n$?
|
I noticed that with only an RSA public key, it is possible/tractable to calculate $m^{p+q} \pmod n$ for any $m$ without knowing $p$ or $q$. Namely, $m^{p+q} \equiv m^{n+1} \pmod n$. (This follows from $\phi(n) = n - p - q + 1$ and the order of all multiplicative subgroups $\mod n$ dividing $\phi(n)$.)
Is this useful ... |
Alice and Bob engage to compute a secure function f(a,b) where a and b must be present in a set U. Although both Alice and Bob know f(a,b), how can Alice confirm that b is present in U and Bob confirm that a is present in U?
|
I have some bytes, and I sign them with my private key using ECDSA. The resultant (71) bytes are the signature.
But what is the name of the bytes I have signed? (If this were encryption, they would be called "plaintext".)
|
In protocols/systems which use ECDSA, is it common for the message to contain the public key of the message signer?
If not, how do recipients know that the message has been signed by the correct private key, and how do they know which public key to use to verify the signature?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.