instruction stringlengths 33 27.2k |
|---|
RFC 5869 describes HMAC-based Extract-and-Expand Key Derivation Function (HKDF). In section 4, entitled "Applications of HKDF", it states that one of the intended uses is:
derivation of symmetric keys from a hybrid public-key encryption
scheme
However, it doesn't expand on the meaning of this. Can anyone explain how ... |
We have a system that has several SecretKeys (for example, one for a user, and one for us). We want to encrypt data in a way that requires all of those keys to be available in order to decrypt.
I think that the correct way to do this is to use a key derivation function of some sort to merge the source SecretKeys togeth... |
Let Alice has private key $R_1$ and known to Bob public key $P_1$. She generates signature for some message $M$ and shows it to Bob.
Could Bob generate signature for the same message $M$, but for different key-pair, exactly $R_2$ and $P_2$, such as
$R_1+R_2=N$, where N is order.
($P_1=-P_2$)
|
For a login the user credentials are typically some form of "username" and a matching "password".
The password is (hopefully) stored as a hash in the database.
But what about the username?
Is the username stored as a plaintext in the database?
Would it be a good idea to hash both the username and the password?
|
Devices:
In this system, users have one or more wearable devices (a smart watch), one of which they will most likely have on their person all the time. The devices are linked to their account by their serial number.
Users must have a mobile device linked to their account too. In fact, the watch can only accesses the ne... |
If we encrypt a message $m$ as $m || H(m)$ using textbook RSA encryption algorithm, $H$ is random oracle modeled. In this case the message can be recovered.
Is this encryption CCA secure? If so how can we prove it or not?
|
I have a question about multiplication of two points belong to elliptic curve. I know every think about adding and scalar multiplication but not about multiplication of two points. Is there any method for this?
The reason that I need this is that in paper "Attributed-based encryption for fine-grained access control of ... |
Assume I assigned the letters A-Z to random numbers in the range of 0-100. The mapping of plaintext characters to ciphertext values constitutes my cipher alphabet(and key).
I encrypt a message using a normal substitution cipher. I then create a sequence of random values the same length as my initial ciphertext using nu... |
Let's say I was given a file from which I know that it is encrypted using a 5 bit LFSR with a given poly.
I already know that it is possible to deduce the state of an LFSR and thus all future outputs if you're given a certain length of the LFSR's output. But if that output is xored with a file, I would assume you can't... |
Are there cryptosystems that are homomorphic with respect to the concatenation operation? those. there are data q1 and q2, where q3 = q1q2. then the encrypted data f(q1) = c1 and f(q2) = c2 and f(q3) = g(c1, c2) ?
And are there cryptosystems that are homomorphic with respect to data fetch, i.e. reverse operation, with... |
I know that with ElGamal we can re-cipher and get a second ciphertext equal to the first.
Is it possible with Paillier too?
When saying "re-cipher", I mean "A sends me a message, that is encrypted with my public key, I somehow modify the ciphertext, so that it is now encrypted for C without actually having simply decr... |
Suppose $R=\mathbb{Z}[X]/f(X)$ is a polynomial ring.
Decisional Ring-LWE is hard if one cannot distinguish the following samples:
$(a_i, b_i) \in R^2$ for $i\in [0,k-1]$ (completely random)
$(a_i, b_i=a_is+e_i) \in R^2$ for $i\in [0,k-1]$ ($b_i$ is obtained by multiplication of $a_i$ and secret $s$ masked by some nois... |
For a random permutation $P$ and $q$ distinct inputs $x_1,\ldots,x_q\in\{0,1\}^n$, what's the probability of the event that there exists at least one collision among $\{P(x_1)\oplus x_1,\ldots,P(x_q)\oplus x_q\}$?
Note: I have tried to compute this probability, but it is quite hard for me to obtain the result, either f... |
I would like to ask how to modify Pohlig Hellman algorithm if I need to work with polynomials $GF(2^{60})$ I know how this algorithm works with numbers, but I am not able to imagine how to do some operations with polynomials. E.g. if I need to do $g^{\frac{p-1}{q^e}}$. How can I do this with polynomial?
|
I want to roughly understand how the mechanism works of generating an encryption key from a passphrase, by which we encrypt a volume or file.
I'm familiar with public key encryption, the concept of a salt and the password hashing approach to password verification. A salt prevents attackers from precomputing a dictionar... |
I want to develop a steganography project with using exploiting modification direction method. I started to try and understand how the method works, but I have some questions about decryption.
I hid the secret image in a cover image larger than the secret image by 9 times. So when it comes to decryption I'm not going t... |
I'm trying to understand the GGH graded encoding scheme, but something there leaves me very confused and I can not figure out how to explain it:
Let $R := \mathbb{Z}[X]/(X^n+1)$, where $n$ is a power of $2$ (hence $X^n+1$ is irreducible in $\mathbb{Z}[X]$); $q := 2^a$ for a large enough $a$;
$R_q := R/qR$, i.e. $R_q = ... |
I am implementing the Authenticated Key Exchange from Ideal Lattices on sage maths.
On page number 3 the full key exchange scheme is presented. In this key exchange scheme, they are using the Hash function $c=H_1(i,j,x_i)$ and $d=H_1(j,i,y_j,x_i)$ that will output the elements that are invertible in $R_q$, where $R_q... |
I'm trying to understand how padding works when using block ciphers.
Padding may be required when the size of the plain text is not a multiple of the block size
If that's so, then I don't understand the results I am getting on my Ubuntu VM.
I created a .txt file in size of 20 bytes, encrypted it using AES128-ECB. I t... |
I'm searching for a method/algorithm that is able to manage different encryption keys and guarantee that some subset of that keys is needed to perform the decryption (not all).
For example:
$$D_{K1, K2}(E_{K1, K2, K3}(X)) = D_{K1, K3}(E_{K1, K2, K3}(X)) = D_{K1, K2, K3}(E_{K1, K2, K3}(X)) = X$$
A real-world like exampl... |
I (believe I) am aware of the general difference between a hash and a MAC; the former is used for integrity and the latter for integrity and authentication as it also takes a secret key as an input in addition to the message.
But what if I hash the message, encrypt it using the secret key (one that is separate from the... |
Ring-LWE based encryption (I pick up homomorphic encryption here) requires canonical embedding norm rather than $\ell_2$ norm to quantify the polynomial size (e.g. noise).
Why is this better than $\ell_2$ norm?
Isn't $\ell_2$ norm always be correct?
Canonical embedding is just a embedding which maps a ring element to ... |
Multiple Vigenère ciphers do not repeat the key until the message gets longer than the LCM of the cipher lengths. Are messages shorter than that safe? If not, what is the attack strategy?
I believe there is a known plaintext attack which has an algebraic solution if the message is longer than the sum of the cipher le... |
The SCA power attack described in 2016 article called "Power Side Channels in Security ICs: Hardware Countermeasures", depends on the measurement of power consumption fluctuations during AES-128 execution, for either known plain text, or known cipher text. In addition, the attacker has the ability to change the cipher ... |
In traditional malware (especially ransomware) using RSA approach, the public key may be hard-coded in the malware binary and is used to encrypt a symmetric key generated on the system. The symmetric key itself is used to encrypt user files.
Some new variants of malware are using ECDH instead of RSA. How is ECDH used i... |
I tried for about 1 month to understand ABE and know I am confusing about access tree. In paper "Attributed-based encryption for fine-grained access control of encrypted data" the author explained the generation of keys with access tree for KP-ABE which I attached the picture of it here.
I found an example for this bu... |
I made a program on android. I used a password key of "PBKDF2WithHmacSHA1" for both of them as a key. The program i made was using Android java Cipher library. When I encrypt and decrypt with blowfish and arc4 its works, and vise versa works as well. Are they supposted to do that. Did I implement the algorithms correct... |
Why is Rabin Encryption is considered as not CCA secure and how can I prove it? Any example would be helpful.
|
I'm studying Cryptography & Network Security.
It has the following example for collision resistance:
"Suppose Bob writes an IOU message, sends it to Alice, and she signs
it. Bob finds two messages with the same hash, one of which requires
Alice to pay a small amount and one that requires a large payment.
Alice s... |
I have two questions for an assignment that I need to answer in relation to Error Propagation in 8-bit CFB mode for AES and DES encryption. The questions are as follows:
If there is an error in transmitted ciphertext block C1, how many plaintext blocks will be corrupted when the file is decrypted for 8-bit CFB-DES?
If... |
$$h(m) = g^m(\bmod p)$$
where $p$ is a prime number, how can I prove that this is a one way function and collision free?
$$h(m) = g^m(\bmod n) $$
where $n=pq$ for two distinct primes $p,q$, how can I prove that it is a one way function and collision free?
|
Assume that the encryption uses $n$-bit keys to encrypt $l(n)$-length messages.
If a symmetric key encryption scheme is defined as $\Pi_{1} = ( \mathrm{Enc}, \mathrm{Dec} )$, then for every $x_{0}, x_{1} \in \{0,1\}^{l(n)}$,
$$ \left\vert \Pr\left[ A (\mathrm{Enc}_{U_{n}}(x_{0})) = 1\right] - \Pr\left[ A (\mathrm{Enc}_... |
I can't seem to wrap my head around what benefit OAEP provides (specifically with RSA). Lets consider really small numbers for a moment. If the random source in the padding algorithm gave a random value in the range of 1-100, then each unique message value could be represented by 100 different padded values. Isn't this... |
We say a symmetric key encryption scheme $\Pi_{1} = (\mathrm{Gen}, \mathrm{Enc}, \mathrm{Dec})$ is computational security if for every PPT algorithm $A$ and every $x_{0}, x_{1}$ ($|x_{0}| = |x_{1}|$),
$$ \left\vert \Pr\left[\mathrm{Gen}(1^{n})=k; A (\mathrm{Enc}_{k}(x_{0})) = 1\right] - \Pr\left[\mathrm{Gen}(1^{n})=k; ... |
I've asked this question here and was advised to post this question on this forum in hopes of an answer.
I'm currently taking a security class and i came into this issue when writing a report about side channel attacks. When reading about electromagnetic attacks, more specifically about Simple Electromagnetic Analysis ... |
I am trying to find the average of hash rate (benchmark) for SHA-3(Shake128) for a normal and supercomputer in order to estimate the brute-force attack which I can get if from ( keyspace / hash rate )...then I found this website:
https://bench.cr.yp.to/results-hash.html
I could not understand these tables i.g. (Cycles... |
In theory, for an ideal cipher $E_k: \{0,1\}^{128} \to \{0,1\}^{128}$, it would be completely fine to use the key and the input interchangeably, but obviously AES is not perfect. For AES128, the key size and the block size are the same. What would the security implications of using the key in place of the input block a... |
To estimate the time for brute-force attack we need to compute keyspace size divided by hash rate, where the hash rate (hash/second) varies depending on the computer's capabilities.
The website https://bench.cr.yp.to/results-hash.html shows the hash rate for different computers. Can you explain the following two confu... |
I'm trying to implement the Paillier cryptosystem in Matlab using the key generation guidance available here: https://en.wikipedia.org/wiki/Paillier_cryptosystem#Key_generation, but the problem is that with any combination of prime numbers I try, I get a float mu required for the private key.
The first step is:
Choose... |
I'm writing a little program to encrypt and decrypt a file. I'm using AES encryption in CTR mode that takes a key generated by a KDF (script). I have read some articles about cryptography but I have some doubts. To encrypt the file I divide it in chunks and I encrypt them with AES generating a random nonce for every ch... |
I am reading about public key working at following linkenter link description here
Here picture is provided
My question is how hashing algorithm is shared between sender and receiver?
|
I have watched dozens of videos on YouTube talking about quantum cryptography and how the BB84 algorithm works. However, none of them bothered to explain how the quantum key exchange process works in detail; that is, for newbies like me. Thus I still have many unanswered questions.
Given the following scenario where Al... |
Given a matrix $A\in M_d(\mathbb Z_N)$, is it hard to determine whether there exists another matrix $B\in M_d(\mathbb Z_N)$ such that $A=B^2\bmod N$? Suppose the factorization of $N$ is unknown and intractable.
More generally, how to find $B=\sqrt{A}\bmod N$ for given matrix $A$ such that $B=A^TA$?
|
On this question https://stackoverflow.com/questions/5889238/why-is-xor-the-default-way-to-combine-hashes a couple of the answers say that xoring is a bad/insecure choice for combining hashes. However, most of them say that in regards to xoring two identical hashes.
If I want to combine a Keccak-256, Skein-256-256, Bla... |
AES-SIV is a very robust and safe algorithm but performance isn't great. AES-PMAC-SIV, should provide a great parallelization, increasing performance and ensuring the same robustness. Indications of this can be found on the GitHub pages of Miscreant and on the IETF mailing list.
How does it compare to the other authen... |
Given a key $k$ and a plaintext $p$, a deterministic encryption algorithm will return a ciphertext $c_1$. In a second trial, I run the same key and plaintext $p$ through the encryption algorithm and get ciphertext $c_2$ from the first trial. $c_1$ and $c_2$ are equivalent, so running the decryption algorithm on $c_1$ a... |
So we have $q = 311$, $p = 163$, $e = 101$, I found $d = 39281$ using Euclidean Algorithm and checked by encrypting and decrypting a message.
Next it is asking if $e = 101$ was a good choice or would the value $e = 9131$ be better.
What I know:
$101$ = prime
$39281$ = not prime ( $23 x\times 397$)
Both options for $e... |
I wondering about the formula for calculating the number of AES rounds.
The formula is $R=(\text{Keysize}/32)+6$
I would like help understanding why we divided by $32$ and add $6$ in this formula.
|
We are developing an iOS app which employs Shamir Secret Sharing algorithm. We made all possible steps users can trust us. We can't remember their secrets nor we can save encoded fragments. But they still may not trust us with randomness. Is there any cryptographic method how user can verify we are using random number ... |
My company's product is Android and iOS mobile app which connects to our own backend. All interactions of the mobile app are with backend developed by our own company.
In such a situation, can the backend use a self signed certificate (instead of getting a certificate from CA) and pin this self-signed certificate on mo... |
Here is a question I don't find addressed in my cryptography books:
let's say Alice want to send Bob a message of length N.
what is the proper way for Alice to hide N?
I am thinking Alice should do something prior to encrypting her message.
Let's say N is the length of Alice's cleartext message, along
with its crypto... |
I'm trying to self-learn the AES-128 algorithm and ran into a snag while following these slides I found online: https://kavaliro.com/wp-content/uploads/2014/03/AES.pdf
For the sixth round in the example given, during the AddRoundkey step, the third word of the matrix after MixColumns (F0) is XOR-ed with the third word ... |
i failed to find explicit definition of hash output size and mac_key_size for hmac based on SHA384 and SHA512.
RFC5246 specifies:
but defines only
|
Is there any algorithm to test the robustness of the cipher image against chosen and known plaintext attacks?
|
I am trying to have something like JWT but kinda ad hoc and encrypted. The token itself is simply a stringified JSON that contains the user ID and Unix timestamp.
Now, I tried to use AES-128-GCM, however I did some simple modification in the ciphertext before decrypting, just appended some bytes to the ciphertext, and ... |
I study cryptography as a hobby and I made a high school work (essay-like) about cryptography. When I was defending my work in front of a committee, one of the teachers confronted me about my suggestion of RSA usage.
I claimed that the public key can be freely available on a website for everyone to download it (and I'v... |
Can someone which is not authorized be able to listen between the conversation of 2 clients and catch the key? Because if I understood correctly one client needs to send the key through a channel so the another client could decrypt the data... So yeah that's my question; Can someone not authorized in that time frame ca... |
I am developing in android and working with numeric ids. Say for e.g., 5001.
I upload videos with this id prefixed in in the uploaded video's name.
For e.g. 5001_profile_video.mp4 is a filename. Then if 5001 gets encrypted to xx841jf==, the file name would be xx841jf==_profile_video.mp4.
I need this to be same every ti... |
What's the difference password and key in terms of authentication?
I think that they are potentially same.
But, in practice, password involves some bias since it is created by human.
On the other hand, some key is produced by computer, which results in pseudo-randomness over some large bit space.
Can anyone explain wh... |
I know that CBC is not secure against data modification. Can someone explain to me by illustrating at an example how I could change the last block if I have the encryption of "0"?
Thanks in advance
|
If I have the following Elliptic Curve:
$$E: y^2 ≡ x^3 + 2x + 2 \mod 17$$
How Can I calculate the Number of Points on this elliptic curve $\#E$ ?
and how can I invest the following law which calculates the Number of Points on an Elliptic curve NPE:
$$NPE=1+p+\sum_{x=1}^{p-1} \frac{f(x)}{p}$$
|
Currently deployed RSA and discrete logarithm implementation uses $1024$ to $2048$ bits.
Hypothetically speaking if a crypto team produces a faster algorithm that moves current factoring and discrete logarithm capability to say $8192$ bits (four times today's recommendations) is there any provisions in the standard to ... |
I am developing a solution where each user is identified with a social security number (SSN). So they log in with their SSN and a password.
I would like to encrypt the SSN somehow (client-side) before sending it to the back-end so that anyone with access to the back-end and database cannot know what the SSNs are.
So, I... |
Suppose that a block is ciphered with IDEA using CTR mode operation. To get
the original message, why can't we use the cyphered rule?
|
I have read this as telling that two parties sharing a low-entropy secret (such as a secret answer to a question) can use it to establish a high-entropy shared secret key across a classical insecure channel, with help of the Socialist Millionaire Protocol.
How is that achieved? Quantitatively, what's the probability fo... |
I am trying to implement a distributed encryption system by having as a main source of information this book (Introduction to Cryptography by Delfs and Knebl) and this Internet article (More Mix than Net by Wood).
I generate the following variables:
$p$: prime,
$g$: generator,
$x$: random within $[1, p-1]$,
$h$: $... |
I'm using the Blowfish block cipher to encrypt messages of 64 bit without using any block cipher mode of operation. Can I still have a collision?
I'm asking this to understand if Blowfish is susceptible to the birthday attack when used on plaintexts of 64 bit.
|
ECDSA specs require private key ($d$) to be a random integer ($r$) in the range $[1, N-1]$, where $N$ is the order of the base point ($G$). What if the private key instead is set to the x-coordinate of the EC point $r \cdot G$ (i.e., $G$ added $r$ times)?
|
I've been looking into GHASH and some sites describe it as a polynomial:
A1*(H* *M-1)+A2*(H* *M-2)...C1*H(H* *M-N)+C2*H(H* *(M-N-1))...+len(A||C)*H+E(0)=t
while other sites replace the + with the XOR symbol, ^:
A1*(H* *M-1)^A2*(H* *M-2)...C1*H(H* *M-N)^C2*H(H* *(M-N-1))...^len(A||C)^H+E(0)=t
Which one is the correct ... |
I am new to cryptography and have been experimenting with AES to encrypt files. I was testing some code I found online which allows the user to enter the directory of the files that they went to encrypt/decrypt, the program then asks for the user to input the “password” or “key” to be used for the encryption/decryption... |
In the official Keccak implementation overview, there is a section discussing different ways to organise the internal Keccak-f state -- namely section 1.2, Bit and byte numbering conventions -- and at https://keccak.team/software.html, you can find a reference software implementation as well as a list of third-party on... |
Is it possible to use an ES512 key pair for RS512 signatures?
Is it possible to use an RS512 key pair for ES512 signatures?
I've also posted an issue in the NodeJS jwa package.
I created a key pair for EC512 with the following commands:
openssl ecparam -genkey -name secp521r1 -noout -out ecdsa-p521-private.pem
openssl ... |
Let $H_{2^n}(k,m)$ be a hash function where $k$ and $n$ are unknown and $m$ is a message in the format $(m[0], m[1], ..., m[s])$, with $m[i] < 2^n$ for all $0 < i \le s$. Define the hash as:
$H_{2^n}(k,m) = (k^s + m[1]k^{s -1}+\dots + m[s -1]k + m[s]) \;mod\;2^n$
The attacker sends a set $M = \{m_1, m_2, ..., m_a\}$ of... |
What are the properties a cryptographically secure Elliptic Curve must have?
I have started to create a list and wanted to know if I forgot some important points, and if it is correct so far:
A curve $E$ over a finite field $\mathbb{F}_q$ with $\#E(\mathbb{F}_q)=h\cdot p$ is considered to be cryptographically secure if... |
Even optimistically, I think we can all agree that many encryption algorithms that are widely used in production today will be "broken" sometime in the next decades.
With "broken", I mean that (probably because of quantum computing but maybe because of some black swan) it will be possible to decrypt ciphertext that is ... |
I found the cryptomator encryption documentation online, because I was looking for something to learn about x). I altered the process a bit to fit "my need" / so that I would not have a vault, but a single file encryption. I did a chart for you:
cryptomator stores salt/ parameters in a config file, but as I want to en... |
I have an implementation of AES which can cache at most a 256-bit value between encryptions. Currently, the master key is cached and the key schedule is re-computed for each and every block. Is there any intermediate ≤ 256-bit value which can be derived from the master key which I can cache and use to compute each roun... |
I read some papers which studied the relation between the fault tolerance in secure multiparty computation and the connectivity of the underlying communication graph. Here I consider information-theoretic security. By the paper The Byzantine Generals Strike Again, in the case where the adversaries are malicious and the... |
An adversary Craig tries to log-in as Alice on a system that will only accept the right password, leaks (only) if an attempt succeeds, and allows many attempts.
Alice's password choice is modeled as a random pick in a finite set of $m$ possible passwords $P_i$ each with probability $p_i$, with $0\le i<j<m\implies p_i\g... |
We want to choose an asymmetric encryption scheme for use as follows:
A device holds its private key, with the corresponding public key known and trusted by all.
The device also holds a small $b$-bit secret bitstring $S$, assumed having been chosen uniformly at random and also known by one legitimate user, only.
The ... |
I know how initial permutation works, but I've never heard of this part.
People say it's Richard Outerbridge's initial permutation and that it's faster than usual IP (initial permutation) and simple.
How does this IP work? I've only the source to work with:
work = ((leftt >> 4) ^ right) & 0x0f0f0f0f;
right ^= work;
... |
Assume we wanted to use the same ECDSA public/private key pair (drawn for standard ECC parameters, perhaps P-256) for both its intended use (public-key signature), and for public-key encryption; this despite the sound and explicit prohibition in FIPS 186-4:
ECDSA keys shall only be used for the generation and verifica... |
I have a question about OT?
we assume that sender has $m_0,m_1,m_2$, and $m_3$ and selects random $S_0, S_1, S_2, S_3, S_4, S_5$
and compute this statement than sends to receiver.
$C_0 = S_0 \oplus S_2 \oplus m_0$
$C_1 = S_0 \oplus S_3 \oplus m_1$
$C_2 = S_1 \oplus S_4 \oplus m_2$
$C_3 = S_1 \oplus S_5 \oplus m_3$
Can ... |
I have an implementation that natively uses the same IV (12 bytes of 0) for all encryption. The key is always a 32 byte SHA-512 hash. I know via this post that I can
deduce the bit-wise XOR of the two plaintexts.
deduce the internal authentication value, and thus modify the ciphertexts without being detected.
How can... |
Let $F$ be a secure PRF and $H$ a universal hash function.
How can I exhibit a pair $(F,H)$ whose composition $$S'((k_1, k_2), m) = F(k_2, H(k_1,m))$$
is an insecure MAC (or an insecure PRF, since a MAC can be defined as a PRF) ?
I guess that, in order to find a pair $(F,H)$, the trick would be creating some $H$ whos... |
I'm guessing that the message must conform to 256 bits but I was not able to find documentation of any message length limits.
|
I do not understand, what the advantage is in only encrypting the nonce + Ctr and XORing this to our plaintext, instead of encrypting everything. (If our block cipher can be easily decrypted)
What would be the other downsides of turning
$c_i = E_k(n + i) \oplus m_i$
into
$c_i' = E_k((n + i) \oplus m_i)$
This should pr... |
I am currently implementing KetjeV2 in VHDL. I have a question concerning the MonkeyWrap-Algorithm that is used in KetjeV2.
The function $wrap(A, B, l)$ is supposed to work as shown below, where $A$ is the associated data and $B$ the plaintext. $A$ and $B$ are then separated into blocks of the size $\rho$, where the bl... |
I am trying to break a special substitution cipher (where the text is divided into several columns and each column has its own substitution table). Currently I am trying hill-climbing.
For the score, I am using Sinkov, which I found at the M4 project.
The algorithm for the Sinkov score is like this (My implementation i... |
I try to understand the linear cryptanalysis. Now I am reading as a secondary reference the book "Cryptanalysis of Block Ciphers:
A Survey" by Standaert , Piret and Quisquater. In the first step, the authors are saying that there are $(2^n-1)\times(2^m-1)$ linear approximations for a $n$-input vector and a $m$-output v... |
I need an algorithm for "key generator". It should be initialized with some secret data, such as a (hashed) passphrase, or something generated once by some 3rd-party code.
Given some small input it should be able to generate N bits in a deterministic way, which'd be used as a material for some key. The input consists o... |
I am interested in understanding whether or not we can use commitment schemes that are both hiding and binding as pseudorandom functions.
My reasoning is that if a commitment is hiding, then an attacker cannot distinguish between two commitments. Does this imply that a commitment is also indistinguishable from randomne... |
Short Integer Solution ($SIS_{n,m,q,\beta}$) is defined as:
Given a matrix $A \in \mathbb{Z}_{q}^{n \times m}$, find a non-zero vector $x \in \mathbb{Z}^{m}$ such that $A \cdot x = 0\mod q$ and $||x|| \le \beta $.
In the paper Trapdoors for hard lattices and new Cryptographic Constructions, SIS is proved to be hard by ... |
I am encrypting buffers using AES-256-CTR encryption. My encryption is working but I have a requirement that I want to make sure I implement correctly. The requirement is as follows:
Given any plaintext of length less that x, the ciphertext should always be of length x.
In my example
x is 1 KB but can be anything whil... |
We say that a set of functions $S$ is $\epsilon$-almost-universal if for any function $f \in S$, it holds that $\Pr[f(m) = f(m')] < \epsilon$ for $m \not = m'$.
Assume that we have the following two sets of hash functions:
$F = \{f:M \rightarrow X\}$, which is $\epsilon_1$-almost-universal.
$G = \{g:X \rightarrow Y \}$... |
Let $\Pi$ be a public-key encryption scheme. For every palintext $x \in \{0,1\}^{*}$, is there a PPT adversary $A$ such that
$$\Pr \left[ 1^{|x|} \leftarrow A\left( pk, \mathrm{Enc}_{pk} (x) \right) \right] \geq 1 / poly \left( \lambda \right)$$
or even
$$\Pr \left[ 1^{|x|} \leftarrow A\left( pk, \mathrm{Enc}_{pk} (x) ... |
PGP is all over the news (even on TV) and there seems to be a lot of confusion about it.
For the time being, people face articles like Attention PGP users: new vulnerabilities require you to take action now which tell readers to deactivate their PGP plugins while raising concerns related to PGP beyond email client soft... |
When preparing the initial state of the algorithm to factor $n$ he computes $q = 2^l$ such that $n^2 \leq q < 2n^2$.
The first register then contains $l$ qubits. Why does this need to be so high. If we take $q=2^m$ such that $n \leq q < 2n$ we have $m$ qubits which is enoug to be able to represent all integers up to $n... |
It seems we can use every identification scheme to sign and verify a message and vice versa. I am right or not? What is difference between an identification scheme and a digital signature scheme?
|
Give a prime order group $\mathbb Z_p$, let's take a generator $g$ and raise it to $x$,
now, is $g^x$ a random number and indistinguishable from any other element in the group?
What am I missing?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.