instruction stringlengths 32 27.2k |
|---|
If I download https://example.com/foo.txt, how can I prove to a third party that I got it from https://example.com.
I understand that their private key is used to secure the channel, rather than to sign the content of URLs.
Is there a way of downloading https://example.com/foo.txt and providing a chain of proof that my... |
The company I work for wants me to implement some C functions to automatically sign their software. After doing some research I've found that openSSL is great for doing so.
Before starting the implementation in C, I wanted to get a feeling of the workflow by executing it in the CLI first. But that left me a bit confuse... |
I'm having difficulty finding a detailed proof for one of the most basic protocols in cryptography, that is the Schnorr protocol, or the sigma protocol for proving knowledge of a discrete log.
Most proofs I can find gloss over the running time of the extractor, or just assume the prover works with probability 1. But th... |
I need to sign a message using a private key and verify the message with a public key, while making sure the message hasn’t been tampered.
I know that SHA-256 itself is prone to length-extension attacks.
I also know that things like HMAC have been specifically designed to circumvent such attacks.
But what if I sign a m... |
So for my diploma thesis I'm writing about Regev's LWE cryptosystem from his original 2005 paper. I'm done with with correctness and security (only reduction from LWE-search via average-to-worst and decision-to-search reductions, however the main point of that paper - GapSVP to LWE-search reduction is outside of scope ... |
According to RFC4880 standard
1.Refer to section 2.1 Confidentiality via Encryption --> OpenPGP combines symmetric-key encryption and public-key encryption to provide confidentiality
+To protect the session key --> encrypted with the receiver’s public key
+To decrypt session key --> use receiver’s private key
2.Refer t... |
Assume elliptic curve in Weierstrass form.
$y^2 = x^3 + a x + b$ where $x,y,a,b \in F$
I noticed the point addition formula does not involve parameters $a,b$.
Furthermore, one can always solve for $a,b$ given two distinct points.
Thus one can "add" 3 or more distinct points, as long as their coordinates are on $F$, wit... |
Let's say that we have a classic RSA encryption, with n = p*q. For a given C, I saw on internet the RSA might be weak if we know that the plaintext M and n have a common factor. However, I wasn't able to find a proof of that.
We know that $M=C^e \space mod\;n$, with e being the public key. I tried to say that $M = a + ... |
Let $(Enc, Dec)$ be an IND-CPA secure encryption scheme, where $Enc: \mathcal{K} \times \mathcal{M}_1 \rightarrow \mathcal{C}_1$, and $F: \mathcal{K} \times \mathcal{M}_2 \rightarrow \mathcal{C}_2$ be a pseudorandom function.
Consider a simple example where we may want to prove the distribution $(Enc_k(m_1), F_k(m_2))$... |
Proof of Elapsed Time (PoET) was discovered by Intel in 2016 as a consensus mechanism primarily for permissioned blockchain networks. Importantly, we can only use this concept in permissioned blockchain, not public or private.
I think it is better than all other consensus algorithms as all miners are treated equally he... |
I've recently tried to replicate the results of the question Ruggero asked and which Samuel Neves answered here: Understanding Twist Security with respect to short Weierstrass curves
In my attempt to replicate this, I found that the attack does not work for some points. Initially my assumption was that this was because... |
Which impact on security (factorization) has a common prime factor among the prime factors $P$,$Q$ of a number $N$
$$N=P\cdot Q$$
$$P=2\cdot F\cdot p+1$$
$$Q=2\cdot F\cdot q+1$$
with $F,q,p$ different primes and $F$ the biggest prime factor of $P$ and $Q$ with
$$F\gg p,q$$
A potential adversary who want to factorize $... |
In Katz's Introduction to Modern Cryptography,
Chapter 7 Practical Constructions of Symmetric-Key Primitives
In previous chapters we have demonstrated how secure encryption
schemes and message authentication codes can be constructed from
cryptographic primitives such as pseudorandom generators (aka stream
ciphers), ps... |
A client has requested us to setup SSL certificate public key pinning for an internal desktop application we are developing for them. They have requested us to pin a specific pubkey but we are not aware of what format it is in.
The pubkey provided is WY*Nhx$kk@PTTz7Ykp*t!q#*8taRR84ZnyT7Rjqc%^29!7zx5GdYa!HSmpM^KQ!D. Any... |
Is there a standard way to generate ID numbers one after the other such that:
You can guarantee, or almost guarantee, that you avoid collisions. (By "almost guarantee", I mean for example if you generated completely random 24-digit numbers, and you "only" generated 1 million of them, then even with the birthday parad... |
For generator $g$ of order $n$ the group elements $y=g^x$mod $n$ are uniformly distributed because of the modulo operation.
Suppose however that from the original output space $Y$, we only consider those elements $y$ which have some bits "fixed" in their binary representation. For example, for $y = y_1,y_2...y_m$ (wher... |
Given a number $N$ with
$$N=Q\cdot R$$
$$Q=2\cdot q_1 \cdot q_2+1$$
$$R=2\cdot r_1\cdot r_2+1$$
with different primes $P,Q,q_1,q_2,r_1,r_2$.
If we now choose an exponent $\alpha$ containing prime factors of $Q,R$ with
$$\alpha=2 \cdot q_2 \cdot r_2$$
we can generate a sequence $S$ with elements
$$s_{i+1} = s_i^\alpha \... |
Before you ask, this is neither for a CTF or homework, this is on problems in implementing non-standard RSA. If it feels like it is a CTF problem I will remove this post if necessary.
Murru Saettone RSA is a variant and quite vulnerable (to a continued fraction attack) RSA scheme based on the cubic pell equation. When ... |
If I understand correctly, the way DSA in a group $G$ with a hash function $H$ works is: Peggy (signer) has a private/public key pair $x$, $g^x$. For signing, she produces a random session key $k$, $g^k$ then computes the signature: $s=\frac{H(m)+xF(g^k)}{k}$ where F is some "reasonably uniform function" $F: G \rightar... |
I need to implement following operation:
w = (z mod (n-1)) + 1
where
z: 40-byte array
n: the order n of base point defined for NIST P-256.
I assume that resulted 'w' could be a point on the curve.
Any opinions are more than welcome
|
It is known that we can transfer an ECDLP instance on a curve $E$ defined over $\mathbb{F}_p$ for prime $p$, to a discrete-log instance in $\mathbb{F}_{p^k}$ for some $k$. It is referred to as the embedding degree, and is the smallest integer $k$ such that the order of the curve divides $p^k-1$.
(One way to do this is ... |
Good afternoon . Please tell me how to change the md5 hash of one wav file to the md5 hash of another wav file. I want to bypass the anti-cheat check on md5. Maybe there are online paid services? I know English badly. I know that there have already been similar topics, but I could not do anything. Thanks!
|
I am trying to show that by breaking the Computational Diffie-Hellmann (CDH) assumption one also breaks the Diffie-Hellmann inverse assumption. Unfortunately, I am a bit stuck and do not know where to go. I suspect that bilinearity property from the pairing group given by $PGGen$ is at fault, but I do not know quite su... |
I want to sign all of the HTML and JavaScript from my site with the site's TLS private key.
(The hex signature will be preceded with a <!-- comment which is valid for both HTML and JavaScript, and attached to the end of the text files.)
This is so that end users can prove that malicious JavaScript came from us, and so ... |
There is a statement in the paper "Asymptotically Efficient Lattice-Based Digital
Signatures" by Lyubashevsky and Micciancio that says that "it is important that the ring of integers of $\mathbb{Q}(ζ)$, is efficiently samplable in practice - which is not known to be the case for particularly compact choices." Note tha... |
In BLS multi-signature aggregation scheme we can combine different signatures of different peers into one single signature, and then we can verify whether the aggregated signature is truly signed by the claimed peers.
My questions is, having an aggregated signature, is it possible to separate the signatures and achieve... |
Linear feedback shift registers (LFSR's) work by taking a fixed-length bit-string $b\in\{0,1\}^n$, as well as fixed "taps" (bit positions) and applying XOR to the taps, giving one output bit, which is appended at the $b$ after shifting it.
Now XOR is a linear function. A natural non-linear function that can be used on ... |
I'm junior software developer and I need to implement a very simple authentication system based on Chaum-Pedersen ZKP Protocol.
I know nothing about cryptography and I ask you to help me understand one thing in algorithm. An algorithm looks as follows:
I just can't get what $q$ is. I've read about protocol in Cryptogr... |
Consider the group $$ℤ^*_{55}$$
Is exponentiating to the 3rd power a permutation of: $$ℤ^*_{55}$$ And exponentiation to the 5th power?
I'm trying to solve this problem related to groups, but I don't know how to do it. Is there a mechanical way to find it? Something like a formula?
|
I've been working on the RSA method for several weeks and I don't understand what this residual class ring is all about.
I understand that if
$
x^e \bmod n$ there must be $x<n$ because of the clarity of the results
However, I don't understand what other advantages it brings.
When I look for manipulation attempts... |
About collision-resistant hash functions, in Katz's Introduction to Modern Cryptography,
6.1 Definitions
Hash functions are simply functions that take inputs of some length and
compress them into short, fixed-length outputs. The classic use of (non-
cryptographic) hash functions is in data structures, where they can b... |
Let's suppose I want to convert a Substitution-permutation network block cipher like Kuznyechik to a version with a larger block size.
Should its S-boxes be enlarged too in order to achieve similar security?
|
I just learnt the definition of hardcore bit, and I have no intuition about this. I want to know what are the possible approaches to this problem.
|
In a searchable encryption scheme based on the certificateless cryptosystem, the trapdoor generation algorithm only has a hash function that outputs an integer value. Does the scheme satisfy trapdoor indistinguishability? If so, how can we prove it?
|
Am following the instructions on https://datatracker.ietf.org/doc/html/rfc5649#section-3 ("AES Key Wrap with Padding Algorithm") and I have gotten to a point where I need to generate the LSB(32,A) for the Alternative Initial Value (AIV). Am using NodeJS with buffers to implement the algorithm. My understanding is 32-bi... |
I am evaluating ways to reduce the overhead of (H)MACs on small messages. I was primarily wondering if there is a difference between halving the MAC length or keeping the same MAC length but using it to authenticate a message of twice the size.
My initial thought was that the message/MAC ration would be the same though... |
Black box generic models prohibit calculation of discrete logarithm in groups of order $q=2p+1$ where $p,q$ are random primes to $\Omega(\sqrt{p})$ steps (refer Discrete Logarithm in the generic group model is hard - Theorem by Shoup).
Do the black box generic models also prohibit MSB of discrete logarithm to $\Omega(\... |
I am trying to understand the AES-256 encryption algorithm as it would be implemented on a gated quantum computer (actually, a simulator), and I am having some trouble understanding the theory behind it. The papers I read start with the ring of polynomials given by $F_2[x]/(1 + x + x^3 + x^6 + x^8)$. What is the signif... |
i just a bit confused that is it reasonable to assume that the probability of sending message $m \in M$ is uniformly distributed over the message space $M$? How is this different from assuming that the key $k$ is uniformly selected from the key space $K$?
|
For some encryption scheme $(\mathcal{E}, \mathcal{D})$:
In the definition of IND-CCA, the adversary $\mathcal{A}$ can access the decryption oracle $\mathcal{D}$. The deep reason of this setting is to make sure that our scheme is able to "protect the ciphertexts" (e.g. the integrity and authenticity).
So "protecting t... |
I know about ECDH when you need 2 pairs of public/private keys.
But I wonder what is a simplest way to encrypt with just single public key?
Should I select a second random pair of public/private keys for each "boxing"?
or
I can have a pre-selected publicly known pair of public/"private" keys?
or
Is there other sim... |
Having this web of trust scheme, I have a question concerning third scenario in which we assign Dharma and Chloe a marginal trust. In case of Dharma the situation is clear, we sign her public key and assign our marginal trust in it. But how physically we can assign a marginal trust in Chloe's public key when we don't ... |
I understand that PUFs (physically unclonable functions) produce unique output based on challenge input because of their sensitivity to manufacturing differences, but not how the actual authentication works. It sounds like one approach is to have a server that keeps a table of known responses to challenges, but wouldn'... |
Why do we limit the number of queries to Encryption or Decryption oracles in the security analysis of various encryption schemes to be polynomial in the security parameter n?
|
In OFB mode, I understand that a bit flip in $c_i$ for $i > 0$ only causes a bit flip in message block $m_i$. However, how is it possible for a bit flip in $c_0$ (i.e, in IV) will result in all the plaintext blocks being recovered incorrectly.
|
When $x < N$, there cannot be the same encrypted message with different outgoing messages.
But why?
|
Let $(K_{enc},K_{dec})$ be an asymmetric key-pair. It seems to me that a signature scheme can be created by letting the public verification key be $K_{ver}=K_{dec}$ (the asymmetric decryption key) and the secret signing key be $K_{sign}=K_{enc}$ (the asymmetric encryption key). Say with $H$ some hash function and $m$... |
I'm aware that the Miller–Rabin primality test will claim primality for a composite number with at most a $\frac{1}{4}$ probability for some arbitrary, odd composite $n$ and a random witness $a$ chosen uniformly in the range $[2,n-1)$. What is the actual average chance that that the test falsely claims that the number ... |
can we still consider the second function negligible ? is there any main differences between them?
|
I've come across a form of cryptographic security that I've never heard of: entropic security. I've read the Russel et al abstract and that doesn't seem to bear much relation to the wiki article.
Things that confuse me are like:-
"Deterministic encryption" :A deterministic encryption scheme (as opposed to a probabilist... |
In my hobbyist project implementation of RSA-OAEP, I omitted support for labels at the beginning. I set the label to empty string on encryption and ignored the label on decryption.
Now I'm adding a special function to set and test the label, but it's not constant-time yet. The security note in PKCS#1v2.2 says that the ... |
Let's suppose someone creates a block cipher with 8192-bytes of the block size (65536-bits) or maybe 16384-bytes of the block size (131072-bits).
What would be its disadvantages over a block cipher with smaller block sizes like 128 or 256-bits?
|
I have a RS256 JWT, I'd like to find out its public key. Because I know the header, payload and I have the encrypted signature, is there a way to obtain the public key that made the signature from these elements?
|
I believe this question should be directed to the authors of Kalyna block cipher, but I think they cannot answer me because of the war they are facing in their country actually.
I know that AES uses this criteria for adjusting the rounds in accord to different key sizes: [key size]/32+6
Kalyna block cipher has 10 round... |
I am finding the post-processing method to improve the randomness of the True Random Number Generator. Especially, TRNG can pass the NIST SP 800-22 after applying the post-processing.
I tried to apply the Enocoro-128_v2 Pseudo-Random Number Generator as a post-processing method for TRNG. TRNG will supply the seed for E... |
The screenshot from a book with Chaum–Pedersen Protocol description is below.
I'm trying to implement it for my own. And I don't get math here.
My assumptions:
Discrete Logarythm functions:
The dot in the formula below is a usual multiplication: 2 • 2 = 4
Examples:
|
Assume $g$ is generator of multiplicative group modulo prime $p=2q+1$ where $q$ is prime.
Assume we know $g^{2t}\bmod p$ and $g^{2}\bmod p$ and assume we can have access to a Diffie-Hellman oracle.
Can we find $g^t\bmod p$ in polynomial time?
Note if we can do that we can break discrete log with access to a DH oracle... |
The paper Breaking Symmetric Cryptosystems using Quantum Period Finding shows how to break the Even-Mansour Cipher using Simon's algorithm. The Even-Mansour uses two keys $k_1, k_2$ and a random public permutation $P$ to encrypt a message $x$:
$$E_{k_1, k_2}(x) = P(x \oplus k_1) \oplus k_2$$
In a quantum known plaintex... |
I'm learning the rainbow table and hellman table and I'm curious about the difference between them, so I left a question like this.
Wikipedia describes the following sentence:
The term, "Rainbow Tables," was first used in Oechslin's initial paper. The term refers to the way different reduction functions are used to in... |
Kaweichel is a port of Blowfish for 64-bit architectures, its key size accepted is 1920-bytes, instead of 16 rounds it has 32 rounds, the double of Blowfish.
ICE is a feistel block cipher that has a variant called ICE-n that accepts any key size being a multiple of 64, for this variant the number of rounds should be mu... |
Let's say client side has a secret password $\pi$. The server has a series of indices $0..n-1$ and a salt associated value $s_i$ for all $i \in \{0,n-1\}$ call it set $S=\{s_i |
i \in \{0,n-1\}\}$ for each client. Client wishes to compute an OPRF function $f(\pi,s)$ such that he does not learn $s$ and the server does ... |
I want to use symmetric encryption to create a digital signature.
What can be the possible scenarios where symmetric encryption is used to create digital signatures?
|
Background
In the paper "Minimizing Embedding Impact in Steganography using
Trellis-Coded Quantization" and in this question on this forum, a so called Syndrome Trellis is built from a parity check matrix. The figure below shows the example from the paper, where the trellis on the right is built from matrix $\hat{\math... |
My implementation requires me to generate randomly a valid scalar on the curve. As far as I understand it is not a random number generation but more complicated thing.
I have to generate such scalars on the server and the client side according following scheme:
Client:
X = x × G + w0 × M
where
x - generated scalar!
G... |
I would like to know if sub-public keys of PGP keys can be published separately, if I create a pair of master keys and multiple sub keys to be used in multiple emails, and normally use only the sub keys to encrypt, decrypt and sign. But then won't it be discovered by others that these emails are actually one person?
I'... |
I'm getting mixed reports on this one. I have a web host and multiple SSL scanning tools (including the one run by Qualsys SSL Labs), saying that the cipher suite TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 is NOT vulnerable to Zombie POODLE/GOLDENDOODLE, and at the same time I have a PCI compliance firm indicating that it i... |
I was reading this paper.
And on Page 2 the following claim was made:
Consider a public-key encryption scheme with a deterministic encryption
algorithm, and suppose that the set of valid public-keys is in coNP. Then if retrieving the plaintext
from the (ciphertext, public-key) pair is NP-Hard then NP = coNP.
I guess wh... |
There is an efficient variant of the RSA using the CRT:
\begin{align*}
d_p &= d \pmod{p-1}\\
d_q &= d \pmod{p-1} \\
q_{\operatorname{inv}} &= q^{-1} \pmod{p}
\end{align*}
where the decryption is done as follows:
\begin{align*}
c_p &= c \pmod{p} \\
c_q &= c \pmod{q} \\
m_p &= c_p^{d_p} \pmod{p} \\
m_q &= c_q^{d_q} \pmod... |
The paper on the "SNEIKEN and SNEIKHA" AE and HASH sponge-based algorithms, respectively, presents a 512-bit permutation function "SNEIK512" that, unlike other permutations (ie: Keccak-f1600, gimli, etc.) takes a domain parameter. Their AE and HASH algorithms use this parameter to establish domain separation.
All othe... |
I'm part of a team of students from the Vienna University of Economics, which have the task to find application fields for a new technology. The technology itself is provided by an external partner, so I do not possess a lot of technical knowledge about it. As far as I understand, it is an encryption method that is abl... |
I want to start off by being very clear: I'm not designing a system around this, this is 100% a hypothetical I was toying with.
Is there any harm in using the cryptographic hash of a plaintext as the key? For instance, if my message was Hello, world!, that produces the SHA256 315f5bdb76d078c43b8ac0064e4a0164612b1fce77c... |
Consider a variable one-time pad, that is, $\mathcal{M}:=\{0,1\}^{\leq \ell}$ is the set of plain text. Now, this scheme is not perfectly secret, since you can take two plain text of different size, say $|m_1| = 1, |m_2| = 2$ and considering a cipher text $c$ of length 1, the next happens:
$$Pr(E(k, m_1) = c) = \frac{1... |
I intend to design a model to comply with RFC4880.
According to RFC6637, ECC in OpenPGP
+ECDSA to sign message
+ECDH + KeyWrap for session key encryption
-MAC: is used for key confirmation (with C(1e, 1s) Scheme at https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-56Ar3.pdf)
-MDC: is Modification Detect... |
This weekend I participated in a CTF, but came across a task that I wasn't able to solve. I can't find any write-ups so I hope you can help me.
Given:
$$
n = pq\\
c_1\cong m_1^{\hspace{.3em}p} \mod n\\
c_2\cong m_2^{\hspace{.3em}q} \mod n
$$
Knowing the values of $c_1,c_2,n$ and that $p$ is 1024 bit and $q$ is 1000 bit... |
The curve I am using is secp256r1. Its formulae is
$y^2 == x^3 + a\cdot x + b$
$a$ = 0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc (115792089210356248762697446949407573530086143415290314195533631308867097853948)
$b$ = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b (4105836372515... |
I read in this paper that keeping the S-boxes secret in AES raise its security from 128-256-bits to 1812-1940-bits.
Let's suppose I use one different S-Boxes set per single round.
/\ Does this increases security even more than using only the same S-boxes set in entire cipher?
|
I know that if only one character is encrypted using a shift cipher, then the shift cipher is perfectly secure. But what if the space of keys is greater than the space of messages? Would it still be perfectly secure? I think it would still be a yes, but I don't know how to deal with unused keys.
The theorem 2.10 (Intro... |
as the title says, for example, A uses B's public key to encrypt a message and sent it to B. In later stages, a new member C joins and B would like to let C be able to see this encrypted message (i.e., give the decryption ability to C). How to achieve this without letting A encrypt the message again using C's public ke... |
I'm trying to solve a CTF problem relating to RSA encryption.
I can run a challenge binary that will read a flag from a file, the flag will match the following RegEx:
AB1234C\{[0-9a-f]{32}\}\n
So in total the flag is 42 bytes including the newline
The flag is then padded with random padding to a total of 128 bytes.
I c... |
RFC 8446 limits the maximum data carried withing single TLSv1.3 message to $2^{14}$ bytes, specifically in section 5.1:
The record layer fragments information blocks into TLSPlaintext
records carrying data in chunks of 2^14 bytes or less.
The length field in the TLS header is represented by 16 bits so the maximum len... |
I have the following Diffie-Hellman ciphers on one of my servers
TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
TLS_DHE_DSS_WITH_AES_256_CBC_SHA
TLS_DHE_DSS_WITH_AES_128_CBC_SHA
TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
I have been asked to disable any and al Diffie-Hellman moduli of less than 2048 bits
I've managed ... |
As far as I know, JPG is a lossy image compression format
Meanwhile, BMP is a generally uncompressed image format, whose file structure consists of bitmapFileHeader (14 bytes) and bitmapInfoHeader (40 bytes), the rest of which is pixel data.
So I just need to pass the first 54 bytes and store it as a HEADER variable, a... |
Hey i do have a question about cryptography:
I know that Elliptic curve is cryptography algorithm and Diffie–Hellman is mechanism which is provide the two parties who wish to encrypt some data with a identical key (symmetric key) and elliptic curve algorithm is used in conjunction with DH to provide authentication.
I a... |
Assume AES in XEX mode, so we encrypt a plaintext $x$ as $E_K[x \oplus k_1] \oplus k_2$ where $E_K$ is the usual AES Block cipher (assume $x$ is of block size).
Assume the implementation of AES is vulnerable to cache-side channel attacks. Have any attacks against this XEX mode of AES been demonstrated? It seems to me q... |
I've been doing some reading on hash based signature schemes, specifically XMSS and thus the underlying Winternitz scheme (WOTS+ to be precise).
As their names suggests, WOTS and WOTS+ are one time schemes, so signing multiple messages with the same key should leak some info. I have however not been able to come up wit... |
I came up with a rather simple FHE scheme that shouldn't work, but I can't figure out how it breaks. Any help with this is appreciated!
Part one
First, note that if we had an abelian field where computing the multiplicative inverse was difficult, then we could construct a homomorphic scheme for addition and multiplicat... |
Is there any indistinguishability proof (e.g., IND-CPA, IND-CCA, IND-CCA1, IND-CCA2, IND-CKA) based on games that involve breaking the AES security? Usually the proof involve breaking hard problems like DL, CDH, DDH, BDH.
|
Given a EC with cardinality $C=P^3+c$ with $P$ a prime $P \approx \sqrt[3]{C}$ and $c>0$.
Out of a given generator $G$ we generate two additional generator $F,H$ with
$$F = P \cdot G$$
$$H = P^2 \cdot G$$
(all would still generate a sequence of length $P^3+c$)
Given now a random member $M_1$ of that EC we can generate ... |
Given $n$-bit block cipher $E$ (and its inverse $E^{-1}$), define block cipher $E^\prime_k(m) = E_k(E_{f(k)}^{-1}(m))$ where $k,f(k) \in \{0,1\}^n$ and $\forall k:f(k) \ne k$. Under the ideal block cipher model, there exists no function $f$ which would give an attacker an advantage against $E^\prime$. Are there any rea... |
In substitution–permutation network block ciphers like AES, when encrypting a plaintext into a ciphertext, will each bit of the ciphertext be associated to each bit of the S-boxes set in the cipher?
I have seen the Kuznyechik reference implementation and I have doubts if each bit of the ciphertext will be associated wi... |
Depending on $\alpha,N,x$ the sequence $x\mapsto x^\alpha \mod N$ can have a different length. If the first element $x_0$ is initialized with $x_0 = x_r^\alpha$ for a random $x_r$ the sequence will almost always have the same constant size.
We will focus here only at the most common sequences with max size $N_L$ (for g... |
I am having an idea to create a cryptographic hashing algorithm. I found a mathematical function $f: x \rightarrow y$ . By using Merkle-Damgård construction wide pipe, I designed a hashing function. Now I have some problems to solve before writing a research paper.
How to find if my hash is strong or not?
How to find ... |
I'm looking for / working on an algorithm that must be very small and simple, with no extra libraries and stuff that looks suspicious to a user using the code. You can see what I mean by reading the below. The user just keeps the dead simple code that he can even understand, and remembers his passcode, and the files ar... |
relic, the library used by the majority of BLS implementations, is rather difficult to build cross-platform.
Because of this, I've been looking for other pure BLS implementations that don't rely on C - and I've found one in Go and another in Rust.
However, the nomenclature seems to be different between each library.
I ... |
Is there any existing approach to construct perfect hash function that map [0, M) to [0, M)? It should be one to one mapping and one-way.
f(value, salt) -> hashed_value
|
I am looking to see if using a digital signature is a secure and reasonable way to generate a key for AES encryption.
To flow would be as follows:
A user signs a message m with their private key. They actually sign the hash of m but this is taken care of as part of the digital signature creation function. This returns ... |
I'd like to derive two independent 256 bit keys for symmetric encryption from a user password. I'm using Argon2id as the password-based key derivation function. I'm planning to do the following:
Generate a 256 bit random salt.
Generate a 512 bit tag with Argon2id using the user's password and the salt.
Take the first ... |
I have a C# solution that encrypts a bunch of small data chunks using AES.
//This is how I'm configuring the Aes object
var aes = Aes.Create();
aes.Mode = CipherMode.CBC;
aes.KeySize = 256;
aes.Padding = PaddingMode.PKCS7;
I then write the raw ciphertext bytes to SQL Server VARB... |
Semantic Security may be defined using the distinguishability experiment/game, which we recall as follows:
Let $(E,D)$ be an encryption scheme. After the challenger chooses a security parameter $n$ and random key $k$, the (semantic security) adversary choosing two messages $m_0, m_1$ that depend on $n$. The challenger ... |
I am trying to understand this article. Can someone explain to me how the ECDSA adaptor signing is work?
From the article:
1.
ECDSA adaptor signing
$$s' = (H(m) + R t p)r^{-1}$$
As I understand this is standard formula where $x = t p$ - is a private key for the signature s'. So public key is $P = t p G$
2.
Decryption E... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.