instruction stringlengths 32 27.2k |
|---|
I read from here that,
https://www.rfc-editor.org/rfc/rfc7296
it mentioned,
2.15. Authentication of the IKE SA
the initiator
signs the first message (IKE_SA_INIT request), starting with the
first octet of the first SPI in the header and ending with the last
octet of the last payload. Appended to this (for purposes of... |
Pretty much every cipher or hash I've seen has multiple rounds the are designed to be run serially one after the other. Has anyone ever designed a fully parallel cipher or hash? This would be one where all rounds are executed in parallel and then the results are combined in some way such as addition or XOR.
It's mostly... |
A and B share two secrete keys: [keyA] and [keyB].
A sends this to B.
AUTH_A = prf(KeyA, ID_A)
B sends this to A.
AUTH_B = prf(KeyB, ID_B)
Does above scheme provide mutual authentication?
I think so because prf is just a key hashed function, as only A and B know the secret key, attacker cannot forge the message or lear... |
I know China has SM3 and SM4 commercial cryptographic hash and block cipher standards, and I know Japan has Camellia block cipher and Korea has SEED. Do Japan and Korea have an industry standard for hashing? Are they available online (either paid or free)?
|
Assume a collision-resistant hash function $h$ which compresses sequences of length $2n$ to length $n$. It must be examined whether the hash function which compresses seqs. length $4n$ to $n$:
$$
h_1(x_1 || x_2 || x_3 || x_4) = h((x_1 \oplus h(x_2 || x_2)) || (h(x_3 || x_3) \oplus x_4))
$$
is collision-resistant or not... |
I am working on a cSHAKE-128 & cSHAKE-256 implementation that takes advantage of a number of hardware accelerators I have at my disposal, specifically for SHA-3 256/384/512 and SHAKE 128/256.
cSHAKE 128 is defined as follows:
1. If N = "" and S = "":
return SHAKE128(X, L);
2. Else:
return KECCAK[256](bytepad(encode_str... |
I have been reading some papers on Image Encryption using ECC and chaotic systems such as 2D Arnold. What do they mean by 'Encryption ' and 'Decryption' time? How is it within 1 second? I tried implementing existing algorithms in Python using Spyder and got time around 30-40 seconds. What exactly does the encryption ti... |
I saw this question in a paper and was not able to solve it. Assume that we are given an efficient algorithm called RSA_break() that can decrypt, without the knowledge of the private key, 1% of all possible ciphertexts encrypted using the public key (n,e) in RSA. Basically, for a single ciphertext, RSA_break() will det... |
Thanks to a certain pandemic going around I was wondering whether there is any cryptographic way to remotely deal cards without the dealer being able to know them and without requiring to trust a server for that. My first impulses involved secret-sharing and zero-knowledge-proofs but that is probably not even related..... |
I am reading DJ Bernstein's paper on the Poly1305-AES mac (https://cr.yp.to/mac/poly1305-20050329.pdf). I understand that AES is needed to provide the array s. In its paper on page 5 we can read:
reads AESk(n) from s[0], s[1], . . . , s[15]
I understand that n is a nonce and k is the secret key. What I am not sure ab... |
I thought that encryption works as follows - it is about changing the thing we want to secure using an algorithm and using the password to mathematically change the secured content so it is unreadable.
If something is encrypted using a password then doesn’t it mean that the password is the only thing that can be used t... |
I am confused about the distinction between RSA and ECC (Elliptic curve) regarding encryption and would appreciate it if someone could confirm whether my understanding is correct.
To encrypt a large file using RSA:
Generate a random symmetric key
Encrypt the file using the symmetric key (AES, for example)
Then encrypt... |
I have read about the concept of perfect secrecy and statistical distance. The perfect secrecy is impossible to be implemented on real world scenario. So the cryptosystems used at various websites will have certain advantage which will be negligible. Is there a list stating the advantage of various cryptosystems like A... |
Assume that we have the following signature scheme CL Signature:
Choose a cyclic group $G = \langle g \rangle$ of order $q$.
Uniformly and randomly choose two elements $x,y \in \mathbb{Z}_q$, and compute $X = g^x$ and $Y = g^y$.
The secret key is $sk = (x,y)$, while the public key is $pk = (q, G, g, X, Y)$.
On input a... |
I am running a server that is receiving packets. Each packet is signed with an RSA 512 SHA-256 digital signature. I have a public key and exponent that I use to verify the digital signatures.
I'm currently trying to do this in Python using Cryptodome. I am able to verify signatures but am unable to get the original has... |
Can private key used in ECDSA be discovered when many signatures of different messages were collected (1M+) or may signatures of the same message were collected?
Will small nonce bias be easily exploitable?
|
If we have two commitment schemes Com1 and Com2, which are possibly defective (in the sense of not satisfying hiding or binding properties), is it possible to construct a commitment scheme which does satisfy those properties?
Specifically, in the following scenarios:
Both Com1 and Com2 satisfy the hiding property, and... |
What's the purpose of a passphrase in hybrid cryptography? can it actually be used for authentication or if i put in another signature algorithm will it be like, two authentications?
|
Hypothetical. Lets say you have an application where you generate a master key from a user password using PBKDF2 (static salt) and then use the master key to derive two passwords keys for an encrypt-then-mac scheme using HKDF (unique salt per encryption).
The password would be shared by two individuals, who would then ... |
I'm working on the curve secp256k1 and I've private key $k$ and public key $P = [k]G$. I look for solutions to the following problems;
What is the inverse of a scalar $k$ in ECC?
If I'm only missing $G$ but know all parameters of the curve can I find $G$ from $k$ and $P$?
|
Considering public message M and private key K, would it be safe to create the MAC tag this way:
$$MAC(M,K) = AES(m_1) \oplus AES(m_2) \oplus \cdots \oplus AES(m_n)$$
when $m_1,m_2,\ldots,m_n$ are n blocks of fixed size (let's say 128).
I can't prove that it's secured although my intuition says it is.
|
In this paper the author suggests using a variant of Diffie-Hellman which involves floating-point numbers of arbitrary size in the generation of a shared secret. There are no primes, calculations are performed$\bmod{1}$
In simple terms:
Alice picks $x$ (a decimal number) and $a$ (a random integer). She generates $a'=... |
I just started learning about cryptography and specifically RSA, and the texts I have read don't have a proof or explanation for why RSA is unsafe if you can factor N=pq, it merely asserted this. Is there a formal reason for this?
Thank you in advance :)
|
I have a simple calculation. Its inputs should be very hard to discover, but I want to be certain, hence the question.
Start with value $A$, a known 1024-bit number.
Input $I_1$ and $I_2$ are 512-bit numbers, and their hashes are known as $h_1 =Hash(I_1), h_2=Hash(I_2)$.
Output $O$ is the result of $O=(A\cdot I_1)+I_2... |
The theory for right to left modulus exponential technique is very straight forward if the explanation is using a small modulus n number. For example,
$$3^{77} \bmod 11$$
In this example, we know that the remainder will be always less than 11 which the maximum remainder in this case will be 10. Hence, when we are imple... |
(Sorry in advance for my blurry thinking on this: I'm a programmer, not a cryptography expert.)
I have a Client/Server web application. The Client needs to be able to alter the local state in ways that the program's code allows, but should not be able to "open the hood" to tamper directly with code or data itself, and ... |
I have two messages $m_1$ and $m_2$ and a result ciphertext $c$, one-time pad was used to create the ciphertext $c$, is it possible to know which message was used to generate the ciphertext $c$?
|
I got this idea to use the features of the one-time pad, an encryption technique that provably cannot be cracked, but this time applied to encrypt a private key. A possible application could be to encrypt the private keys of a bitcoin wallet, or any other random private-key data. It fills a similar market as the famili... |
It's well known that state of a Mersenne twister is quite easy to recover after you observe enough samples. But what happens if we pipe blocks comming out of MT into SHA512 and give this as output.
Since there is no mathematical proof that SHA512 is not invertible there probably wouldn't be a way to proove that MT stat... |
Below is a function to hash a string into a number. I'm curious what would be the name of the below hash function and what would be best approach to create an unhash function to turn the number into a string (ex. 61752 to abc)?
function hash(str){
const letters = "abcdefghijklmnopqrstuvwxyz"
let h = 9
for... |
I've been working for some time, on designing a constant time solution for dealing with the "point at infinity" for prime curves. So, far I'm using the Standard Projective Coordinates for doing fast, Point Addition and Doubling operations, and my implementation uses a "window" approach to do scalar multiplication.
But,... |
I am looking at an AES-CTR implementation (WebCrypto) and it takes an initialization parameter count which is an array of 16 bytes. It then asks you to specify length, or how many bits are dedicated to the counter (the rest will act as a nonce.) So if you specify e.g. length = 32 the block input will be nonce (96-bit) ... |
One reason why One Time Pads are impractical is that sender and receiver need copies of the same random numbers. This can quickly exhaust the set of numbers if communication is frequent.
Proposal: The set of random numbers kept by pairs of senders and receivers is only the seed values for a shared PRNG. If the seeds ar... |
After reading a series of papers CL01 CL02 CL04, I feel like I understand the intuition behind the anonymous credential framework but I don't understand some details the mathematics behind it.
I placed myself in a case example where this system might be useful, namely imagine that you want to prove to some organization... |
If two or more encryption algorithms are used together, how do we compute the strength of the final encryption?
And how would the application perform against quantum computers?
The first two tables are accurate, correct?
In the third table where we combine two encryptions together, can we calculate the key length? And ... |
I've got the cypher text: cöimamiçknsyznhaczstş and a partial plain key: ?ğre??i
I've used "?" instead of unknown characters.
The question is: is it possible to find the whole key?
I've read about given partial text and unknown key some people found the key and text.
My problem is easier than others. I'm sure It can be... |
Does a passphrase with high entropy provide the same level of security as the private key itself?
General scenario: An attacker has access to a private key file that is protected with a passphrase that has the highest entropy imaginable. Does this provide an advantage to the attacker?
A more concrete scenario: Synology... |
To my understanding the LLL lattice reduction algorithm starts with a set of integer vectors $\{b_1, \dots, b_2\}$, which span a lattice, and tries to generate a new basis of shorter vectors of the same lattice.
It first defines the Gram-Schmidt orthogonal basis $\{b_1^\ast, \dots, b_2^\ast\}$ (which is in general not ... |
ColdBoot attack is introduced by Halderman et. al in 2009
Lest we remember: cold-boot attacks on encryption keys
In their articles, they represent experimented that
We found that the dimensions of the decay curves varied considerably between machines, with the fastest exhibiting complete data loss in approximately 2... |
I read from PGP spec RFC 1991, section 6.1 (August 1996):
The exclusion of the other fields ensures that detached signatures are exactly the same as attached signatures prefixed to the message. Detached signatures are calculated on a separate file that has none of the literal data packet header fields.
Can anyone exp... |
Nowadays, private key systems like AES have replaced RSA. Even for digital signatures, people mostly use ECC, so even if an efficient integer factorization algorithm is made, would it be a threat to digital security anymore? Or is this danger just an idea in the past?
|
To the best of my knowledge, most of the MPC protocol's are built on a ring $\mathbb{Z}_{2^\ell}$(usually $\mathbb{Z}_{2^{64}}$) or field $\mathbb{Z}_p$ ($p$ is a big prime), why? What is the difference between them?
Examples:
Ring examples such as ABY, SecureML.
Field example such as SecureGWAS.
Update:
This paper... |
I built an app that used AES encryption with 16 characters Key and IV. It seems it could easily be hacked, as someone did it in a day.
I feel that I made a few mistakes
Used key & IV which was only plain text length of 16
Key not hashed with SHA-256
It was an Android app ( Xamarin Forms) and I did not obfuscate the a... |
Say I have SHA256 hash result that produced from 2000 bits inputs. For example, 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef (64 bit hex representation) is the SHA256 output.
Theoretically, the collision is present as the number of bits of inputs is greater than the number of the SHA output bits.
My... |
I'm involved in the design of a communication protocol that requires mutual
remote attestation of both communicating parties prior to exchanging any other
data. We found several tools for symbolic security analysis of cryptographic
protocols such as ProVerif, Tamarin or Verifpal.
However, we barely have any experience ... |
Suppose $y=f(x)$ and $z=g(y)$ such that $y\in L_x[a,b]$ and $z\in L_y[c,d]$, where $L$ is the usual sub-exponential asymptotic notation
$$L_x[a,b] = \exp\left((b+o(1))(\log x)^a(\log\log x)^{1-a}\right)$$.
Can $z$ be written as $L_x[a',b']$ for some $a',b'$? I think the answer is yes, based on the following (using the ... |
I'm writing a web interface in PHP to generate keys. I'm familiar with gpg's command line options, particularly --batch. I'm also familiar with PHP's GnuPG API.
I can't find a way to safely pass the user's password from the web interface to the gpg command line because gpg uses a pinentry program? PHP's GnuPG functions... |
I have a question about the RSA signature.
Let's say Alice has $(d,n)$ as the private key and $(e,n)$ as the public key. In order to sign a message $m$, Alice computes $y = m^d \bmod n$ and sends $(m,y)$ to Bob. In order to verify the signature, Bob computes $x = y^e \bmod n$ and accepts the signature if $x = m$.
My q... |
I have a key size of 128 bits. My message size is fairly short (e.g., 32 bits - and widely known). Although I am doing a SHA256, the result of the HMAC will be truncated to 128 bits.
So my question is: is there a significant strength difference between the following?
HMAC256(K,m)
HMAC256(K,m||K)
HMAC256(K,K) 'note tha... |
I am starting a project where several categories of sensitive data have to be accessed within a table. Based on his role, a user can see clear text columns (not encrypted), accessible columns (decrypted for his role), and can't see the content of other columns (encrypted).
This implements segregation of duty (for examp... |
Is this a good practice ?.
How good or bad is this compared to appending a timestamp to the actual data and hashing it as represented below.
Signature = sign(sha256( File + Timestamp ))
|
I am currently doing my masters research on security of wireless sensor networks, the topic is "ENHANCING THE SECURITY OF WIRLESS SENSOR NETWORKS BY COMBINING GEOENCRYPTION AND LIGHT WEIGHT CRYPTOGRAPHIC HASH FUNCTION (LOCHA)"
The encryption process will use MiniAES which IS same as normal AES with all component reduce... |
Please forgive me if this is not the right place, however, I encountered this TLS implementation with a function that generates an ECDH key pair on an elliptic curve:
In addition to the private key and a point on the curve, the function also needs random inputs. Why and for what are the random variables required? Why i... |
Could I base a public and private key system on just using a hashing algorithm? For example:
privKey = sha256( randomGenerator() )
pubKey = sha256( privKey )
Why do I need to use different algorithms? For example, RSA or ECC?
|
From what I've read I know that FHE requires "circuits" to construct functions and gates to operate on the FHE encrypted data. I've also read that these circuits are constructed from just addition, multiplication, and mixed multiplication. How does this work? How, only using those operations, can we construct a NAND ga... |
If I encrypt my data using many different encryption algorithms (using different passwords)
how will an adversary be able to decipher the message?
|
This is a very newbie question.
SSL Pinning is "safe" in assumption that only the real server can decrypt the public key.
By design, it should be almost impossible to find the private key from the public key.
However, is it relatively easy to create a new certificate (private key) that generates the "same" public key w... |
I am reading this to understand more on abelian group. I could not understand some steps.
https://yutsumura.com/prove-a-group-is-abelian-if-ab3a3b3-and-no-elements-of-order-3/
"Taking the square of (**), we obtain:
$$(b^{−1} \cdot a^{−1} \cdot b \cdot a)^2 = a \cdot b \cdot a^{−1} \cdot b^{−1}$$
how was this being de... |
In his lecture on building Block Ciphers from PRGS, Dan Boneh says this
Let’s start by finding out if we can build PRF from a PRG?
Let $G:\ K \to K^2$ be a secure PRG
Define 1-bit PRF $F:\ K \times \{0,1\} \to K$ as $F(k, x\in\{0,1\}) = G(k)[x]$
$\quad F$: if $0$ choose $G(k)[0]$, if $1$, choose $G(k)[1]$
I am unab... |
Assume that we have the following signature scheme CL Signature:
Choose two cyclic groups $G = \langle g \rangle$ and $G_T = \langle g_T \rangle$ of order $q$, that have a pairing $e$.
Uniformly and randomly choose two elements $x,y \in \mathbb{Z}_q$, and compute $X = g^x$ and $Y = g^y$.
The secret key is $sk = (x,y)$... |
I'm curious if is it possible to recover a private key from insecure RSA implementation - each letter of the plaintext is encrypted separately (and no padding).
Let's say I have plain-letters, cipher-letters (for every value of plain-letters), public key $(e, n)$.
I know that it is insecure usage of RSA, but I want to ... |
$$m^{ed} \equiv m \bmod n$$
$n =pq$, so by Chinese Remainder Theorem it is equivalent to
$$m^{ed} \equiv m \bmod , m^{ed} \equiv m \bmod q$$
where $n=p\cdot q$
So how did 2 come from 1 by the Chinese remainder theorem?
I know Chinese algorithm but How did $m^{ed} \equiv m \bmod p$ and $q$ come?
|
Let $\it C$ be a ciphertext such that we have no information about the type of symmetric encryption algorithm used to generate $\it C$.
Let $\bf S$ be the source bank of most block and stream ciphers such as AES,DES,RC4 and so on. Let $s \in {\bf S}$.
Question:
Is there an algorithm, software, or method (especially bas... |
In academic pursuits, we often have people (and their ideas) who are considered fundamental to the subject, such as Bayes and probability.
In cryptography, it's obvious to see that the Diffie-Hellman problem is fundamental to modern key exchange algorithms.
Can modern day symmetric encryption methods be similarly trace... |
Referring to the standards of [BIP-39] and [BIP-44]: a 'master password' consisting of 12 words uniformly selected from a 2048-word dictionary corresponds to 128 bits of entropy, that is then used as a seed for the generation of keypairs in many wallet implementations.
While not contesting the sufficiency of the offere... |
The goal of this question is to allow a server/proxy to forward an encrypted message without being able to read it with this procedure being transparent to the original sender and receiver.
Assume we have Admin RSA Keys $(e,d,n)$ and Bob RSA Keys $(e_b,d_b,n_b)$ where Alice wants to send a message $m$ to Bob with only ... |
Let $\chi_\sigma$ be a discrete (or continuous) Gaussian distribution with standard deviation $\sigma$.
Then, it is known that for $y \in \mathbb{Z}$, a statistical distance between $\chi$ and $\chi + y$ is at most $|y|/\sigma$.
Similarly, I heard that there exists a similar result about Rényi divergence between $\chi$... |
I'm trying to construct a no-query-secure MAC $II=(Gen,Mac,Vrfy)$ without using any cryptographic primitives such as PRF, PRG, has function, etc.
My-attempt:
I learned that a message authentication code (MAC) is no-query-secure if in the security game the adversary is not allowed to query for any MAC.
I tried to get th... |
I was reading this set of lecture notes on commitment schemes, where they define a commitment scheme $\text{Com}(b, r) = f(r), h(r) \oplus b$ as a secure commitment scheme. In this case, $f : \{0,1\}^n \rightarrow \{0,1\}^n$ is a one-way permutation, $h : \{0,1\}^n \rightarrow \{0,1\}$ is a hard-core bit of $f(\cdot)$,... |
This is from Dan Boneh's Lecture where he talks about operating a PRF (AES, DES) in Deterministic Counter Mode.
Dan Boneh says
What we could do is we could use what's called a deterministic counter mode. So in a deterministic counter mode, basically we build a stream cipher out of the block cipher. So suppose we have... |
I'm following well with using the shifting method to try out the Montgomery reduction (1st round).
However, the computed result is actually equal to:
$$XYR^{-1} \bmod N$$
while the final goal is to obtain the result of
$$XY \bmod N$$
In order to get the final answer, I need to implement an extra step which is
$$(XYR^{-... |
I'm working at understanding the Wesolowski and Pietrzak RSA group based VDFs (verifiable delay functions). These basically work by requiring the prover to do a bunch of repeated squaring within a semiprime group G of unknown order, and then computing a proof that a verifier can check without having to do the time cons... |
How can I analyze a cryptographic algorithm performance to make a table and charts comparing them. I have seen several papers but there's no paper explaining how it is exactly done.
As comparing data block size through time, etc...
Like key size, block size, power, throughtput, data length, processed bytes (MiB/s) and ... |
I'm trying to understand Diffie–Hellman based on Elliptic-curves.
Can one explain at which point of time the domain parameters are shared? Are they shared trough a public channel and can they be always the same? Are they shared at a specific different point of time?
Literature doesn't clearly answer my question...
I'd ... |
In SSI (Self-Sovereign Identity), anyone can generate their own DID (Decentralized ID). No authority or authorization is needed to create one. Since a public key pair is associated with DID, the person can prove the ownership by using the private key. DID document, which includes DID, is stored in a blockchain that pre... |
Can a fake SHA-256 checksum be created trivially for any file by attacker after padding some data after original file i.e. using length extension attack?
E.g:
Alice creates fake linux installation ISO file using length extension attack by padding extra data after ISO and calculates fake
SHA256 checksum of the ISO
Bo... |
I've created an AES implementation in Python as a learning experience (mainly for encrypting/decrypting files), and wanted to make sure that I haven't made any huge mistakes in my logic (of course, implementation is another story).
The block cipher mode of operation is CTR. The implementation supports AES-128, AES-192,... |
Suppose Alice wishes to authenticate herself to Bob, by proving she knows a secret that they share. With pseudorandom number generators (PRNGs) they could proceed as follows.
They both seed a PRNG with the shared secret $s$.
Bob picks sends Alice some random number $i \in \mathbb{N}$.
Alice proves she knows the share ... |
I want to use PKI to encrypt a message. How this generally done is to PKI encrypt an AES key and then encrypt the message. The problem(in my case) with this method is that you can also ask someone to just decrypt the key.
The reason this is a problem is because I want to encrypt something and give a package to person A... |
I have a known input and a known output but how would I go about working out what the cipher was used. Below are a few examples of input and output.
On the last one I noticed a repeating pattern. Would that point me in a particular direction?
|
If I am multiplying two numbers $m$ and $n$, where $n$ has $k$ digits and $m$ has at most $n/2$ digits, will it be considered polynomial time or exponential time in terms of $k$?
Addition (by proxy of mod): This multiplication's time will be exponential in $k$ (answering the above), yet polynomial in size of $m$. Will ... |
Assume I have a plaintext and a ciphertext, encrypted using some key and AES with CBC mode. I don't have a service, that I can send something to, so I can't use the Padding Oracle attack. Are there any ways to get the key? I also know that the message was encrypted twice using random words from a very big dictionary.
|
I am following a wiki diagram for CTR mode of operation in AES256. The documentation states that for it to work you need a random nonce with 8 bytes and then a counter of 8 bytes. So I guess you can randomly generate nonce for instance: SgVkYp3s. And then you just add a count to it. Then you iterate over all of your pl... |
I have some trouble understanding how Kernel Attack to MinRank is implemented.
MinRank: Let $k, n, r$ be positive integers, and let $M_0, M_1, \dots, M_k$ be $n \times n$ matrices with entries in a finite field $\mathbb{F}_q$. We want to find (if they exist) $\lambda_1, \dots, \lambda_k \in \mathbb{F}_q$ such that $E_\... |
I am interested in Mega.nz cloud storage.
It is using end-to-end encryption.
It says that it uses AES-128 to encrypt files
And there are more details in their white paper
But I saw that quantum computers could be dangerous for AES-128:
Grover's algorithm allows brute-forcing an n-bit key in $\mathcal{O}(2^{n/2})$ time... |
I am a bit new to encryption and I've seen a lot of recommendations to use a KDF for encryption and decryption. I'm a bit confused since I've been trying to encrypt the data using PBKDF2 algorithm and salt is generated using get_random_bytes, but when I try to decrypt the data I try to derive a new key using a new salt... |
Consider a trivial example where two semi-honest parties want to flip a biased coin. Since the sender is semi-honest, the sender can locally flip a biased coin and send it to the receiver. A natural question is: What does the sender's random tape look like in the above trivial real protocol?
I know that, in the 2-party... |
A general digital certificate issued by a CA might contain information about the individual/organization to whom the certificate belongs. As an example, consider this sample scenario:
This PKC contains identifying information of the individual to whom is this certificate is issued, i.e. the Name (Mario Rossi), Organiz... |
I like Applied Cryptography, and I am returning to cryptography after a while. So I am wondering if that book is up to date or can be complemented with other references.
I am looking for a book, authoritative, well documented. Possibly including code.
I would prefer to have a book as a reference, instead of asking naiv... |
In signature creation in ECDSA we use a nonce, commonly identified as $k$.
To create an ECDSA signature, we need to calculate two integers, commonly identified as $r$ and $s$.
$r$ is simply the X-coordinate of the base point multiplied by $k \bmod n$.
$s$ is the actual signature, so it's $s = k^{-1}\cdot(z+d\cdot r)\te... |
Hey for universal hashing we say the following:
Definition:
A randomized algorithm $H$ for constructing hash functions $h\colon U \to \{1,\ldots,M\}$
is universal if for all $x \neq y$ in $U$, we have
$\Pr_{h\gets H} [h(x) = h(y)] \leq 1/M$
I actually just can´t understand how the probability can be $1/M$ in any case. ... |
In Maurer, Ueli. "Secure multi-party computation made simple." Discrete Applied Mathematics 154.2 (2006): 370-381. I have found the following technique for $k$-out-of-$k$ linear secret sharing:
And the note regarding the domain says this:
Is using as domain $\mathbb{Z}_p$ (additive group of integers modulo $p$) with ... |
Coin-tossing protocol is defined as a protocol between at least 2 non-trusting parties that allows them to obtain an unbias random bit in such a way that no involved party can influence the output. Hence, does it pertains to the notion of secure computation?
|
Is there a difference in the security provided by a One Time signature vs a Many time Signature or a Few time signature? Or are they all just different ways of providing the same service?
|
I'm currently trying to implement a solution for Vehicular ad hoc networks based on cryptography. I've chosen to use python to implement the solution, but I don't know which libraries I have to use to implement the cryptographic functions (methods and modules). I've searched about it, but I didn't find good ones: most ... |
I tried writing two hashing function and compared it to MurmurHash64A. To my disappointment one was better but maybe 1.5x slower and the other was slightly faster but had more collisions when I truncated the bits to put in my hash table ((Hash64bit^(Hash64bit>>32)) & 0x9FFFFF). Apparently it didn't distribute well.
Fro... |
We modify Merkle-Damgård construction by setting $z_0:=L$ (the length of the message), computing $z_i:=h(z_{i-1}||x_i)$ for $i=1,...,B$ and defining $H(x):=z_B.$ Is this construction collision-resistant?
I think that it can not be collision resistant, because by adding the input length in the beginning after many steps... |
In a book about cryptography and elliptic curves, there was a mention that not all curves are secure, and a statement than in order to pick a secure curve the curve must satisfy 3 requirements.
The curve's equation is $y^2 = x^3 + ax + b\quad\pmod p$
with $4a^3 + 27b^2 \neq 0\quad\pmod p $
and the order $\#E(\mathbb F... |
They are asking me to deliver encrypted text in ISO/IEC 8859-1. I have always encoded it to hexadecimal or base64. This text will be sent in a file with plaintext and encrypted text. In my opinion it won't work because of the non-visible characters.
I also wonder if there are characters that exist in hexadecimal and no... |
For a secure, n-bit hash function, what are the “costs” to find a pre-image, weak collision, or strong collision?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.