instruction stringlengths 32 27.2k |
|---|
I am learning cryptography by myself, and I am not able to understand the meaning of "probabilistic encryption algorithm".
How is it different from "deterministic encryption algorithm"? How can the output of a probabilistic algorithm be different for the same pair of plain text and key when used two different times?... |
I need to generate a hash for a small piece of data (~50 bytes). I'd normally use MD5 or SHA but that's not available in the platform I'm programming for.
Luckily, it provides Triple DES and I thought I could use it as cryptographic hash function (pseudo-code):
function MyHash(text)
data = padded(text, 64)
key... |
A lot of definitions for semantic security make use an experiment $\text{Exp}$ which is performed between a challenger $\mathcal{C}$ and an adversary $\mathcal{A}$ that begins as follows:
$\mathcal{C}$ generates a random key w.r.t. the considered cryptosystem and a given security parameter. $\mathcal{A}$ selects two me... |
The password manager I use lets me choose an algorithm from the list below in order to encrypt my password database:
Microsoft Base Cryptographic Provider v1.0:
RC2-128
RC4-128
DES-56
3DES TWO KEY-112
3DES-168
Microsoft Enhanced Cryptographic Provider v1.0:
RC2-128
RC4-128
DES-56
3DES TWO KEY-112
3DES-168
Microsoft... |
I currently need to encrypt large files (video, over 6 Gbytes) for our customers.
To ensure authenticity and integrity, we chose HMAC-256 as we already use it in our internal messaging system.
But working in embedded systems, we are limitted by the memory.
If the message is the whole data file, we could not stored 6Gb... |
Previously posted here. Someone suggested I could post it here to get some answers.
I am trying to solve a CTF challenge, here. Basically we're given message and key inputs to a cipher and its resulting ciphertext. We're then given a encrypted message we have to decrypt.
I started trying to reverse engineer the algori... |
Using a format preserving encryption scheme that uses AES internally as its block cipher, for a plaintext that I encrypt I want to use that input plaintext as the key.
However using AES-128, my keysize is required to be 128 bit. But i cannot guarantee my plaintext to be exactly this length - they are words or number... |
I'm designing an open ioT protocol to be used on ioT boards based on Texas Instruments RF-based MCUs. These MCUs have an AES module to easily encrypt and decrypt AES content, so that's why I choose a symmetric key algorithm rather than a public key one (also, RSA would need licensing). So, obviously, there are some pro... |
Definitions
Suppose I have two large safe primes $p$ and $q$, and a composite number $N=pq$. I have $G$, a large cyclic subgroup of $\mathbb{Z}^{*}_{N}$; $g$ and $h$ are generators of $G$. I commit to $x$ using a random value $r\in{_{R}\mathbb{Z}_{N}}$ as $(x,r)=g^{x}h^{r}\mod{N}$.
I have a set of valid messages $S=\{p... |
Imagine if Alice encrypts message to Bob (using public key $P_{bob}$) and then Bob encrypts the same message to Carol (using $P_{carol}$). Is there a way for Bob to prove that:
$P_{carol}$ was indeed used
Message is still the same that Alice passed to Bob.
Note1: Both ciphertexts and public keys are visible for every... |
I want to know to how break NaCl encryption when a nonce is used more than once for a given key private key. According to PyNaCl docs:
It is VITALLY important that the nonce is a nonce, i.e. it is a number used only once for any given key. If you fail to do this, you compromise the privacy of the messages encrypted.
|
The j-invariants classify the elliptic curves up to isomorphisms (if we suppose to work in the algebraic closure). Is this classification used in some way to decide whether or not an elliptic curve can be used in cryptography?
If j-invariants can not be used for classification, is there an other classification which r... |
AES algorithm is using $GF(2^8)$ Galois Field. What if we use $GF(2^{16})$ in place of $GF(2^8)$? Will this improve the algorithm or not?
|
I'm trying to understand how AES works. I got as far as knowing how a password is converted to an unifinished key with the PBKDF2 function. After that RFC3962 says that an AES useable key most be derived from the unfinished key:
Then it refers to the DK function in RFC3961, and no further information is left on the DK... |
For the LFSR mod 2, determine the degree of m and maximum sequence length
s_(i+3)≡ s_i+s_(i-2)+s_(i-4) mod 2
determine the degree of m and the maximum sequence length.
I can get the degree of $m$ easily by taking $2^{(m -1)}$, but I am confused about getting the degree of $m$. I don't even know what this is referri... |
I need an additively homomorphic encryption scheme that satisfies: $D(\sqrt{E(m)}) \approx \sqrt{m}$. It seems that the lifted ElGamal satisfies this, but it is hard to do decryption if the message space is large. Is there any other scheme that satisfies this?
|
I was recently asked whether a certain library supports the ECDSAwithNone Signature algorithm. Clearly this would mean ECDSA with the identity function as the hash function. I know this is a really bad idea. And I also know that there's a trivial attack if two messages have the same prefix as the "hash" gets truncated ... |
So I'm looking to encrypt files using AES CTR, using a shared key that would be accessed via a per-user password.
My two main concerns are:
making sure that the algorithms in use are appropriate for their use (proper entropy, used appropriately given the larger context)
that the persisted data won't (significantly) im... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.