instruction stringlengths 33 27.2k |
|---|
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?
|
I try to compare the performances (cost of Enc, Dec, ... size of keys, ciphertexts, ...) of IBE schemes using lattices (LWE hardness assumption) or pairing (Diffie-Hellman hardness assumption).
I've observed that performances of lattice-based schemes are often expressed in terms of $n$ (the dimension of the lattice) wh... |
I am new to visual cryptography. I’ve just read the paper “Visual Cryptography” by Moni Naor and Adi Shamir and I'm stuck on the chapter about the “$k$ out of $n$” construction. I am aware that, on page 8, there is a step-by-step explanation on how to construct it… but I still do not understand how it works.
Specifica... |
Is there a way to hide a text message $A$ inside another text $B$ using a cryptographic cipher/algorithm, while preserving the sense/meaning of $B$ and without anybody being able to notice there is a message $A$ hidden in text $B$?
I am looking for something that can be processed either manually or by a computer.
For c... |
I'm wondering what's the standard (or canonical) notation for "a message along with its signature", i.e.
$$
\mathit{Message}~\Vert~\sigma_k(\mathit{Message})
\text.
$$
Here the duplicated $\mathit{Message}$ is tedious. Is there a way to put it more elegantly?
|
Is it possible to change the exponent of an RSA public key?
|
Imagine Alice is applying for a new job. Alice has an idea of the minimum salary that she is willing to accept—let's call this value A. Bob, the hiring manager for a company that Alice is applying to, also has a number in mind: the maximum acceptable salary that he is willing to pay to fill the position—let's call this... |
The CRYPTUTOR wiki from UIUC uses the following definition of the IND-CPA game:
We (privately) choose a key K according to the key generation
algorithm: K $\gets \mathsf{KeyGen}$.
We (privately) choose a random bit b $\gets \{0,1\}$.
Repeatedly do:
A is allowed (any number of times) to query an oracle that co... |
I'm looking for a concrete algorithm to generate one time passwords. The situation is as follows:
Alice and Bob exchanged a passphrase over a secure channel in the beginning. They want to symetrically encrypt data in the future, and every consecutive enryption/decryption process should use a one-time password.
For ever... |
I read a lot about Diffie-Hellman, but there is one thing I dont understand: why does the modulus p need to be a prime? What if it would not be a prime?
|
With ECDSA, given $(r,s)$ and $m$, is there a way for a verifier to calculate any (boolean) properties of $k$, without knowing $k$ or the private key $D_A$?
(I understand that $k$ should be random, or follow RFC6979, but I'm curious.)
In particular, could the verifier compute, given a signature $(r,s)$ and a message $m... |
A key pair has a private key $D_A$ and a public key $Q_A$.
$D_A$ is an integer less than the curve's $n$.
Is there any (boolean) function of the private key $f(D_A)$ which can be transformed into a function of the public key $f'(Q_A)$?
i.e. are there any relationships between private keys which can be calculated knowin... |
I read this paper https://eprint.iacr.org/2012/078.pdf and I didn't understand what does the author mean with scale-invariance perspective.
The perspective in which we view the ciphertext is accomplished by the algorithms used ? I refer to BitDecomp, PowersOfTwo and the tensor product.
Or the perspective is achieved b... |
Is there a pedagogical library-less implementation of DSA available to read? (Not ECDSA.)
Obviously BigInteger and hash functions may be from libraries, but I want to read the implementation of all of the calculations involved in signing a message and verifying a signature, using whatever BigInteger operations are app... |
I am using the MIRACL Library to implement an Elliptic Curve Diffie Hellman based Key Exchange according to ECDH-Scheme-Wikipedia.
Referring to the Miracl Docs they suggest a few curves.
Each curve is with respect to a prime p which is n bits in length Miracl Docs EC suggestions.
How does the n bit length of the prim... |
I'm building a cloud storage application that will store files on my servers.
I want these files to be encrypted with AES in CTR mode and the key will be always the same.
I'm wondering what would be the best way to derive an IV.
The encryption will happen on many servers so I can't use progressive values (e.g. incremen... |
I have a public key:
MIGJAoGBAKv4OKlpYBAQEFAAOCADqTnisSvdLP+mTswZJdbtk1J+4+qAySJuENCe
+1rcnERjdNa2LTS2y//REwXWo8Jd3mU42GfZJrJhSLFOgYnX3efuMBVebWlqUNGt
sMedxuVaFBL3SoqU7e5RELIsuArCJJIgz86BQDX0x63VpXAgMBAAE=
which, if you use any online base64 decoder, will say it’s invalid Base64 encoding – which is why decoding fails.... |
I am doing a paper on textbook RSA (highschool-level). I am explaining and proving the significance of the public key exponent in time and security.
So far, I have encrypted a constant message with a constant modulus but using different public exponents. The calculation time has been annotated using Mathematica.
I want... |
How many bits of the exponent $x$ are leaked when you calculate and reveal $g^x \pmod p$ for some generator $g$ of $\mathbb Z^∗_p$?
The low bit of $x$ is obviously leaked: the low bit equals $1-\frac{\left(\frac{g^x}{p}\right)+1}{2}$, with parentheses representing the Legendre symbol.
|
I try to implement spritz cryptography like this paper . But I don't know how to calculate LOW(b) and HIGH(b). In paper page 7.
low(b) = b mod D
high(b) = b/D
D = square root N
b = D * x+y
I don't khow what is x,y. The example LOW(b) and HIGH(b) of N=256 is
#define LOW(B) ((B) & 0xf)
#define HIGH(B) ((B) >> 4)
w... |
With ECDSA (and possibly DSA too) I'm aware that if the same value for $k$ is used with the same private key $D_A$ to sign two different messages, then anyone possessing the two messages $m_0$ and $m_1$ and two signatures $(r_0, s_0)$ and $(r_1, s_1)$may recover $D_A$ trivially (as in fail0verflow's PS3 private key rec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.