instruction stringlengths 32 27.2k |
|---|
What are the characteristics of quantum secure protocol, and does it always need to be information theoretic to be called as quantum secure? Are the current techniques used in bitcoins quantum secure?
|
Assume there is a secret-IV (hash-based) MAC scheme, i.e. $MAC_k(m) = H_k(m)$, where $H$ is a hash function, $k$ the secret key that initializes the hash function, and $m$ the message to protect with the MAC.
When using a Merkle-Damgård construction, length extension attacks can be performed trivially.
Let us further a... |
I was studying the Blind schnorr signatures in this paper (PDF) which says that the signer sends a commitment
$$r=g^{k}\bmod p$$
which the user blinds with 2 random elements $a,b$ to get
$$r'=r\cdot g^{-a}\cdot y^{-b}\bmod p$$
what is the intuition behind this blinding step?
Why can't we use the normal Schnorr signatu... |
I'm implementing an algorithm in order to recover the $y$ co-ordinate from $x$ in order to construct a co-ordinate pair that satisfies secp256k1's elliptic curve equation, which is:
$y^2 = x^3 + 7 \bmod q$.
$q$ is a prime and $q \equiv 3\bmod 4$ (I've checked) so we should be able to use:
$y = (x^3 + 7 \bmod q)^{\frac... |
I was reading up on blind signatures. I came across the following paragraph in this paper.
Previous methods of proofs used to establish security arguments for
signature schemes no longer work since, during the collusion between
the signer, the attacker and the random oracle, we lose control over
the value that ... |
What's the purpose of key-rotation?
Does it have any effect on the probability of keys being breached in the first place? Does it refer to avoiding access after a breach to all past data, all future data, both or none?
|
The Fialka was an electromechanical rotor machine.
How does the Fialka manage to have a letter encipher unto itself? I realize it does something clever by using transistors, but it has a reflector. With direct current circuits, there has to be a negative and a positive connector. If one simply attached a positive curre... |
For a one-time pad to be truly secure, do I need to use XOR? In other words, is a numerical OTP as secure as a XORed one?
I'm new to cryptography, so this might not even make sense.
|
I am currently working on a project which consist in the encryption of image using the GPU of a raspberry.
I would like to use LFSR to generate a stream cypher in each Core of the GPU.
In the wikipedia article they recommend to use combination of several LFSR, we could use 2 LFSR, one could tell if we use the current o... |
I'm going over hardcore predicates now and trying to understand the concept.
Some lecture slides I've seen online imply that there cannot be a generic hardcore predicate for all one way functions because for a OWF f(x) and predicate b(x) you can always define g(x) = (f(x), b(x)).
Which supposedly gives up the informa... |
Recently I came across an interesting looking cryptography article Ring-LWE Ciphertext Compression and Error Correction: Tools for Lightweight Post-Quantum Cryptography by Markku-Juhani O. Saarinen, which specifically state
Ciphertext compression can significantly increase the probability of decryption errors.
Which ... |
I have to protect a key pair with a passphrase and to store these information someway in a table. I read that I can protect the key pair (specifically, the private one) using a digest of the passphrase as a symmetric key for a symmetric algorithm.
I also found that a good way to store a password (and therefore, I think... |
We all know Fisher-Yates takes an array and shuffles it as per the output of a PRNG.
My question is in relation to what would be the "correct" implementation to select multiple sets (e.g. n sets of k lottery numbers). Is the answer :
Re-initialise array to default state, shuffle and pick ; or
Assuming the array is lo... |
I am reading Rogaway's original paper on EAC, page 7, where the MAC function is an OMAC with a 0.
Iwata´s web page only refers to versions 1 and 2 of the OMAC cipher. So which algorithm is used for OMAC 0?
|
I'm conducting a research regarding CDN security, and have noticed that in the following document https://community.akamai.com/docs/DOC-5175
A cipher suite named "ak-akamai-pfs-supported" includes the following:
ECDHE-ECDSA-AES256-GCM-SHA384
ECDHE-ECDSA-AES128-GCM-SHA256
ECDHE-RSA-AES256-GCM-SHA384
ECDHE-RSA-AES128-GCM... |
I am studying a script on the mathematical foundations of cryptography as part of which I am currently trying to wrap my head around some basic cryptographic reductions. I am stuck on one problem that I would like to request some help / advice on how to proceed:
Consider the (D)iscrete (L)ogarithm problem for a group $... |
The commitment schemes like Pedersen's or Hash based, either have information theoretic hiding and computational binding or computational hiding and information theoretic binding. So can we ever get both information theoretic hiding and binding? Is it ever possible to do, or it is proven to be impossible?
|
The index calculus algorithm can be used for computing discrete logarithms.
The basic idea is that you search for a set of linear independent vectors.
When you solve the corresponding matrix, you find the solutions for the discrete log problem of all the prime factors in your factor base. These can be used to solve the... |
From MD5,
Is there any explanation or reason why they assign the number of shifts and constants as the values below?
//s specifies the per-round shift amounts
s[ 0..15] := { 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22 }
s[16..31] := { 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20 }
s[3... |
The LWE cryptosystem is defined as follows:
Key Generation:
Secret key: random vector $s \in F_q^n$.
Public key: $\{c_i\}_{i=1}^m$, where $c_i = (\textbf{a}_i, \textbf{a}_i \cdot \textbf{s} + e_i)$, where $\textbf{a}_i$ are uniformly random, and the $e_i$ are chosen according to $D_e$.
Encryption:
Message is a bit $w... |
No SHA-1 collisions are actually known, though there are a number of cryptographic attacks to weaken it.
But, how likely is it that, of all the SHA-1 hashes computed since the invention of the algorithm, there has been a collision?
Not sure how to approach this, but it probably involves the Birthday Problem?
(if there'... |
Is it possible to calculate the private exponent when only the RSA public key (e;N) = (9292162750094637473537; 13029506445953503759481) is given?
|
We are given a variant of DESX, where $ENC(M)= DES_k(M \oplus k_1)$ (keys are 64bits). In DESX effective key length is $119-lb(M)$ according to wikipedia, but I have not found how this is calculated. I know that the effective key length should be less than that, but how do we find the exact length?
|
Why does pre-image resistance not guarantee strong collision resistance?
Logically I can make sense of this, but I am wondering if there's any general theorem that proves this?
|
Is it valid to XOR shift bytes to produce a hash/checksum? I can't find any evidence that it collides more than say CRC32.
This code seems to run about 40x faster than Java's util.zip.CRC32 class.
public static long hash64( byte[] bytes )
{
long x = 1;
for ( int i = 0; i < bytes.length; i++ )
{
... |
I'm validating the x509 signature of an XML document and I encounter the following error: "x509 certificate chain incomplete of leaf TP not found"
Any thoughts on what the impact is for a TLS connection?
|
I've been looking over this proposition and proof in the book "Introduction to modern cryptography" and am a little confused. Picture is attached at the bottom).
Why is it that we do not multiply the $2^{-n}$ by $\varepsilon$.
It is true that the probability of being in the generator range is $2^{-n}$ but even once we... |
I read somewhere MD5 is broken in terms of collision, but I am wondering if it is broken in terms of pre-image resistance?
Given a hash of Md5, is it possible to find the original message of it? If so, what would be the complexity and time to crack it?
|
In the Socialist Millionaire Protocol, the roles of Alice and Bob are almost symmetric. By this I mean they do almost the same thing, until the very last step.
In the final step, both parties check a value like $R_{ab} == P_{alice} / P_{bob}$. So the parties have to agree who's the numerator (alice), and who's the deno... |
There are plenty of articles all over the Internet talking about how most people are dangerously bad at crypto, and most people new to the field often fall victim to common pitfalls.
I'm new to crypto, but I've spent hours researching this and I cannot for the life of of me seem to come up with something that could be ... |
In case I am using CBC cipher in that case is it must that my encrypted text is in multiple of the BLOCK SIZE?
Is the same true for GCM?
|
What practical methods is there to reconstruct an RSA public key in unknown format?
As an illustration, in a database I find this (which doesn't look like ASN to me):
0x0602000000A40000525341310004000001000100170D33754DB739E6298F70465182848A72C980F7D15D45E3EC91448AFC6088FCED3A880A7CAD8EEF053064F6932183A29A102D3A390E99E... |
Consider the game-based security proofs, i.e. a game played between the challenger and a PPT adversary.
My question is... what is the source of random coins for the adversary?
Is is valid to say that the challenger provides the coins to the adversary?
"If" the challenger is the one giving the coins to the adversary, ... |
I have an embedded device with which I need to establish a secure Bluetooth LE connection. Unfortunately, the device does not have a display. However, the device will have a private key whose corresponding public key is signed by me. The client connecting to the device also has a private key whose public counterpart is... |
I know that block ciphers encrypts data in the shape of specified blocks and DES also belong to block cipher family. I totally understand the procedure of DES, but I am confused that is DES take all the blocks of 64 bits of any plaint text and apply the process to all of blocks at a time or it encrypts first blocks the... |
When someone claims that the private key corresponding to the public key has been stolen, and sends to the CA a statement of this fact signed with respect to public key pk.
Why doesn't the CA need to check his identity in this case, and why is there no concern
that the person who has stolen his key can forge signatur... |
When I was in grad school, I invented (discovered?) a new PRNG algorithm. This algorithm has an infinite period length (given infinite memory). This in itself cannot be new, because all you need to do to accomplish this is simply take digits from an irrational number. What does make this different, is that it is abl... |
Consider a hash function $H$ based on an iterated hash function $H_0$
with $l$-bit block messages an the Merkle–Damgård strenghtening pad.
That is, $m||pad(m)$ has a length multiple of $l$ and $H(m)
=H_0(m||pad(m))$
We consider the MAC algorithm defined given a $l$-bit secret key K and a
message m as $MAC_K(m)... |
My question is about the basics of the topic "creating digital cash".
At the very beginning of that topic the amount of the banknote and a serial number are the requirements for generating a signature. This signature is placed to avoid pirate copies of the banknote. That implies that the bank can trace the banknote and... |
A standard deck of $52$ shuffled playing cards can be used as a source of randomness.
Assuming cards are not replaced as they're drawn, a full deck of cards provides $225.58$ bits of entropy $- 52!$ combinations $= \log_2(52!)$ bits of entropy.
What is the correct way to calculate the bits of entropy supplied by multip... |
I'm creating my own symmetric-key algorithm that in many ways are similar to DES. My key is 16 bits long and is random generated, I will encrypt blocks of 16 bit strings that are split into two 8 bit strings. My approach is to make a 4x8 table where row one is selected if the decimal representation of the key is betwe... |
I am following a document here about CTR mode of encryption. I have some point uncleared.
At the part 1 Review of Counter-Mode Encryption.
Operation.
To encrypt using CTR-mode encryption, one starts with a plaintext M
(an arbitrary bit string), a key K, and a counter ctr , where ctr is
an n-bit string. Let C be ... |
Suppose we need a special Elliptic curve on prime field $Fp$, for some reason, that the order of the generator must be $6*q$, where q could be a big prime, does this weak the ECC encryption? What's the possible attack vector towards this kind of curves?
I'm just a beginner in ECC, so hope this is not a silly question.... |
What is use of Initialization Vector in cipher?
Initialization vector is being used in all the ciphers. What is the need of this initialization vector. Are we using standard initialization vector for each cipher or a user can define it.
|
Yao's garbled circuit is used to compute multiparty computation. I know that secure function evaluation is used to hide users input and circuit from each other.
Can any body tell me what is private function evaluation? and how is it different from secure function evaluation?
|
I am working on an seminar paper regarding key exchange protocols. Of course my first choice of protocol was DH. Second, I choose Otway Rees protocol since I found it very interesting that there is not much literature existing.
So I did a little bit of research and have some basic knowledge regarding OR-protocol. I thi... |
I am studying Attribute Based Encryption. Now my study concerns CP-ABE scheme. The authority make users private keys using attributes and a Master Secret Key (of Authority). How can the authority send the private keys to users ? Is there a technology or a PoC (in Java, python or any language). Can you hint me a approch... |
SHA-256 is a well know hash function that creates digests of 256 bits. This means that the size of the digest space is 2^256 (or at least it should be), ie, the range of the digest space is:
from 0x 00 00 00 ... 00 00 00
to 0x FF FF FF ... FF FF FF
Question
However, is there any kind of limitation in the SHA-256 al... |
We are trying to follow FIPS 186-2 for creating a pseudo random number generator for EAP AKA AT_MAC Calculation in SIM Authentication:
Choose a new, secret value for the seed-key, XKEY
In hexadecimal notation let t = 67452301 EFCDAB89 98BADCFE 10325476 C3D2E1F0. This is the initial value for H0|H1|H2|H3|H4 in the FIP... |
Do square or cube roots have properties that make them a better choice over, for example, the primes themselves? Or is it arbitrary - would random numbers work as effectively?
|
I've looked at NIST documents and done many Google searches, but I can't find an answer to this seemingly simple question.
I am storing data on harddrives, encrypted with AES-XTS 256 bit. Some of this data has a long lifetime, i.e. will still be valuable to an attacker and not good to lose into the future.
My scenario ... |
Secret key is included in cipher text. so how can we say that if hacker grab the cipher text he will not be able crack the code? if he cannot do with cipher-text then how receiver can crack the message from same cipher-text? what is difference?
|
Reading about the Decisional Diffie-Hellman on Wikipedia, I came across this section:
Importantly, the DDH assumption does not hold in the multiplicative group $\mathbb{Z}^*_p$, where $p$ is prime. This is because given $g^a$ and $g^b$, one can efficiently compute the [Legendre symbol] of $g^{ab}$, giving a successful... |
A message has 2003 characters, encrypted using a block cipher of 64 bits. What is the size of the padding and the number of blocks?
I tried this, but I'm sure it's not the right thing:
2003 mod 64 = 19, this is the number of bits that needs padding.
2003 / 64 = 31, this is the number of complete blocks, this + 1 = 3... |
I have a broadcast kind of system. Where sender knows what to send and receivers will know what sender has sent. Now the sender will sign the message with his own private key and receivers will verify with the provided public key.
Now, all the receivers will have the same public key and the sender will have one protect... |
What is the view of an algorithm/adversary? Is view just a term used to describe the output over a set of inputs for a probabilistic algorithm?
For example:
Consider experiment Mac-forgeA,Π (n). In that experiment, the view of
A when run as a subroutine by A is distributed identically to its view
in experiment Mac... |
Just a simple question about encryption.
If we have an image, we transform into a bits and we get 1001001...
Then, I flip the bits into 0110110... manually.
Can I said that I have done an image encryption?
Thanks.
|
I'm using a 'try and increment' method to hash to an Elliptic Curve point, explained below.
With security parameter $k$, EC equation $y^2 = x^3 + ax + b \mbox{ mod } q$, we have:
$ u = sha256(\mbox{message}) $
$\mbox{for } i = 0 \mbox{ to } k - 1, \mbox{ do:} $
$ \quad x = (u + i) \mbox{ mod } q$
$ \quad \mbox{if } x^3... |
While bcrypt is often regarded as an irreversible hashing function, it's based on the reversible Blowfish cipher. I'm just curious about how does this work. Here's the pseudocode from the wiki:
bcrypt(cost, salt, input)
state ← EksBlowfishSetup(cost, salt, input)
ctext ← "OrpheanBeholderScryDoubt" //three 64-bit bl... |
Suppose I have Encryption in CTR-Mode and a CBC-MAC. Why should I also encrypt the MAC?
In the documentation of NIST stands: "By encrypting T we avoid CBC-MAC collision attacks".
But I can not imagine an attack based on an not-encrypted MAC.
Can anyone give me an example of such an attack?
|
According to the Wikipedia article on Galois/Counter Mode, GCM is limited to encrypting $2^{39} − 256$ bits of plain text (64 GiB) for any given key and initialization vector. In light of this limit, what considerations should be made for a TLS 1.2 connection with an AES GCM cipher suite?
Should the session/connection... |
It is common to use cryptographic hash functions to extract randomness from entropy sources. One of the quantitative criteria for this is that if 2n bits of entropy are put through a hash, n bits of uniformly distributed random numbers can be extracted.
Why is this? Where do the other n bits of entropy go? Perhaps n... |
Today I realised that every key exchange protocol I know, without a priori any shared information or trust relations (i.e. any ability to sign anything), is utterly broken by an active man in the middle attack.
I asked a professor of mine today whether there a proof of this in a formal setting and he said "yes, it's so... |
Let's say I have a key value of 5.
The message I want to encrypt is "AAAA"
A = 1,
B = 2,
C = 3,
and so on...
the final message is "FLRX"
Each letter will be the value of itself + the value of the previous + the key
1. A = A + previous + key = 1 + 0 + 5 = 6
*6 corresponds to the letter F
2. A = A + previous + key = 1 + ... |
I know the problem of memory-hard password-based key derivation functions is better left to the likes of scrypt, argon2, etc...
But validated implementations of those algorithims are not always available (hell, .NET's standard library only includes PBKDF2-HMAC-SHA1). So while i was toying with password storage i came ... |
I need to generate thousands of random 128-bit IVs per second and would like to amortize calls to /dev/urandom.
How can AES-256-CTR be used to construct a CSPRNG?
For example, would the following be acceptable?
Get 48 bytes from /dev/urandom.
Use the first 32 bytes as the AES-256-CTR key.
Use the next 16 bytes as the ... |
The question is not about mathematical cryptography but about the practical usage of certificates and their chained verification. Please let me know, if this is the wrong place to post the question.
Lets say I have the end certificate E, signed by S, which is itself signed by the (self signed) root R:
R <--- S <--- E
R... |
Prove that the following modification of $\operatorname{CBC-MAC}$ does not yield a secure fixed-length $\operatorname{MAC}$:
Modify $\operatorname{CBC-MAC}$ so that a random $IV$ is used each time a tag is computed (and the $IV$ is output along with $t_l$). I.e., $t_0 \leftarrow \{0, 1\}^n$ is chosen uniformly at rand... |
This linear secret sharing scheme allows us to share a secret between n parties, such that only an honest majority can reconstruct it.
I understand that – because I do not allow the user to certify the authenticity of the shares nor the value they reconstruct (using for instance VSS or some kind of homomorphic MAC) – ... |
I'm reading papers related to the IPS compiler.
I'm confused about one point: The paper IPS08 (PDF) proposed a protocol with $O(s)$ communication for a circuit of size $s$ in the OT-Hybrid model.
Are they actually assuming a bit-OT Hybrid model, where parties can perform OT on single bits? For example, the communicati... |
I've been trying this problem:
Use the prototype function to hash message bit string into a length 16 message digest. Append (at the right end) the shortest nonce to the string (the spaces are just for easier reading)
1110 1011 0001 1011 0001 1100 1110 0111 1101 01
that will produce a message digest that begins with ... |
Is there any report on comparing quadratic and number field sieve performance in theory vs actual data for discrete logarithm over primes?
Is actual data better than theory in any way unexplained (I think I read this somewhere and cannot recollect)?
My query was more about distinction between theory and practice of qua... |
I understand for prime curves it is just
bytes(0x02 + flag) + bytes(x)
where flag is the LSB of y. For the F2m curves I cannot make out how to do it.
IEEE P1363 section 5.6.6.1.2 appears to say flag is '1 if y of point > y of inverse point else 0' which I think just means if y > x.
These slides (slide 15) by Julio L... |
I'm coding(in C#) an offline(no network or server), hybrid file encryption app, implementing Inferno's ECIES. The user's private key is to be stored either on the pc drive or on a usb key, after being encrypted with a key(password) hashed with ~ 1 million Scrypt iterations. The user can load his key into protected mem... |
I am using ElGamal encryption to encrypt an integer message $m$ as,
$E[m]$ = ($g^x$, $g^m.h^x$)
Can I write a zero-knowledge proof to prove to a verifier that $m > 0$ ?
I can create the bit representation of $m$ and encrypt each bit to prove this, but I have a lot of integers and am trying to avoid this approach.
|
I'm a complete cryptography beginner and I'm interested in the cryptography behind Bitcoin, hashing, key cryptography etc.
I suspect that SHA-256 can only take Alpha-Numerics but I was wondering if anybody could confirm this or explain otherwise, I've scrubbed the web for answers but found nothing.
|
Can one calc the 16 subkeys in DES in one step ? I mean that we create for example a new “box“ where we directly permute the key k in 16 subkeys
|
With this Elgamal variant defined below, we have covered in lecture but I do not still understand how a CCA could work against it. Is the use of the homomorphic nature of the encryption something you could use?
$c=\langle g^r, \mathcal{H}(y^r)\oplus m \rangle$
What could be a CCA against this type?
|
I was trying to understand Learning with Errors for Lattice-based Cryptography and I came across this.
The learning with errors problem is: Given an $m \times n$ matrix $A$ and a vector $b \equiv As + e \pmod q$, where $e \in \mathbb{Z}^m_Q$ is a "short" error vector, to compute $s \in \mathbb{Z}^n_q$.
Can somebody e... |
Let us assume that we have a very large number of known plaintexts.
How can we prove that $c= DES(K1,M \oplus K2)$ offers no advantage compared to DES?
|
I'm a 12th grade student interested in a science project in cryptography and steganography for my school's science fair. I chose this path of computer science partly because my coding skills are weak (even though I've taken computer classes for 3 years) and partly because I wanted a more math-oriented field. After doin... |
For a school project we have been given some example hexadecimal numbers to hash like the following:
Len = 2 (in bits)
Msg = c0
SHA 256 - MD = 1e1cea10a23697dc97b423c259842ac12ee679d6b43f088f3c32b26dbbfb0d79
The binary representation of c0 is 11000000, but as the length is 2 units, I assume that the binary number to ... |
I'm learning about cryptographic hash functions and know why certain boolean functions were chosen to be used in the compression function of cryptographic hash functions (older question).
Hash functions like MD5, SHA-1 and SHA-2 all use boolean function with three inputs. However, SHA-2 uses two functions per round.
SH... |
The Stanford JS Crypto Library appears to be trusted by many people. Unfortunately there isn't a lot of documentation. Their encrypt function is documented as a "simple encryption function" (that's it). The default values in the source code look like it's AES-128? Are there any restrictions on input, like length, speci... |
How the use of unsafe prime in DH key exchange makes DH vulnerable to be broken?
can anyone explain to me what is safe prime, and what is the difference between safe and strong prime?
How the attacker can solve DL problem if safe prime hasn't been used even if the prime is large enough says >1024 bits
|
I was reading secure MPC protocol for finding a secret representation of whether a secret value equals zero, from Catrina and de Hoogh (summarized here).
In the paper, the communication complexity costs are measured in terms of "invocations of a primitive in which every party sends a share ... to the others" (page 3). ... |
In the NIST documentation for the Secure Hash Standard, it says to pad every message by appending the bit "1" to the end of the message, followed by k zero bits, where k is equal to the equation l (length of message in bits) + 1 + k = 448 mod 512. Then, it says to append a 64-bit block that is equal to the length expre... |
I am in a case where I can not share a mac key, only the encryption key. I need to provide authentication and integrity with the cipher so I would like to send a mac with the cipher. I cannot use AES-GCM for example, I am limited to AES-CBC.
Is it ok to embed mac key in the cipher in this case in term of security?
For ... |
When I have experimented with using a key higher than 26 on a Caesar cipher, I have had some very ...interesting... results. The encryption works fine, but when I attempt to decrypt the encrypted message, I am unable to decrypt the message successful.
I understand that a Caesar can theoretically have a key size of 26,... |
I'm having trouble understanding why and how an oblivious transfer (OT) is used in e-voting systems.
According to many descriptions of OT's, a receiver (I suppose that's the ballot collector?) can choose whether he wants to receive $m_0$ or $m_1$ from the sender (the voter?).
How is it used in e-voting, and what secu... |
I have a hybrid scenario of public key cryptography in which messages between users are encrypted using AES with a symmetric key generated ad hoc.
A typical hybrid system scheme considers for every message to send the couple composed of:
The message encrypted with the symmetric key
The symmetric key (using AES GCM I ... |
Learning the basics of elliptic curve cryptography. The question is a mathematical one.
While finding the points in the elliptic group $E_{23}(1,1)$,this is how one proceeds :
How is $y^2= 7$ giving $y = 7$? or $y^2 = 8$ giving $y=10$. The perfect squares I can understand but how are the others being calculated? Is... |
I'm implementing a Hash based signature algorithm and this paper recommends the use of $F(X,\mathit{salt})=\operatorname{AES}_\mathit{salt}(X)\oplus X$ as a hard one way function. The salt plays the same role here as it does in password hashing and is a fixed public value that varies across small groups of calculations... |
Consider RSA variation with public key $(e,N)$ where we take $e=3$ and $N=pq$ where:
$p \equiv 1 \text{(mod 3)}$ so that we don't have $\text{gcd}(e,(p-1)(q-1)) \neq 1$
$p \equiv 7 \text{(mod 9)}$ so that we can compute a cubic root of x by doing $x^{\frac{p+2}{9}} \equiv 1 \text{(mod p)}$
For decryption take $d_p = \... |
I was just wondering if there is a MAC scheme where the key provided after part of the message has been hashed. I was just looking at TLS 1.3 and a comment of Thomas Pornin where the messages needed to be stored before they were hashed with the session key. But I wonder if it isn't easier to first hash the messages and... |
The NIST (National institute of standards and technology) defines the HMAC standard as the following: $$\operatorname{MAC}(\text{text}) = \operatorname{HMAC}(K, \text{text}) = H((K_0 \oplus \text{opad} )|| H((K_0\oplus \text{ipad}) || \text{text}))$$ available in FIPS 198-1 (PDF).
I can see that the pre-shared key is X... |
I understand that if DDH (Decisional Diffie–Hellman) is hard then ElGamal is CPA secure. But I'm having confusion on what part the DDH applies to.
So, given $pk=(G, g, y), y=g^x$ and $sk=(pk,x), x \leftarrow Z_q$
Encryption: pick random $r \leftarrow Z_q$ then $(u,v)=(g^r, y^rm)$
Decryption: $m=u^{-x}v$ because $u^{-x}... |
I know that NMAC is mathematically proved with two different keys with length $L$.
But, if I choose to implement a MAC this way: $$H(k \operatorname\| H(k \operatorname\| msg))$$ with a key $k$ of length $2L$, am I vulnerable to some attacks?
|
So I'm new to this area of Stack Exchange, and to cryptography in general, but I just wanted to ask this question here to see if I could get any advice. I don't understand a lot of the technical jargon used around here, so go easy on me.
I'm programming something where I need to use a hash algorithm to convert a 96-bit... |
I wont give the name of the company, but here's a quote from a white paper they published:
Our innovative Polymorphic Key Progression Algorithm (PKPA) technology is designed to overcome the flaws and inadequacies associated with today’s encryption algorithms.
I know enough about crypto to be dangerous, but my though... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.