instruction stringlengths 32 27.2k |
|---|
I am now studying AES encryption for real-time video streaming. It seems that Netflix uses the AES-GCM (or CBC + MAC) mode for real-time video encryption and authentication. With MAC authentication, the client can only get the MAC message after the whole video is encrypted and authenticated. After that, the client can ... |
I've recently heard of the idea of using a blockchain for secure communication. No details were given so it's a little hard for me to say that it can't be done. But as far as I know:
Secure communication doesn't need blockchains. We have AES, MACs,
digital signatures, etc. for that.
Blockchains are only useful for doc... |
I'm trying to make an GHASH() function and need some clarification.
Implementation is based on gcm-spec. Page 8 describes polynomial mult and page 27 has a "Test Case 2" which I use to verify result.
From my understanding X1 is a first round of GHASH function and effectively a result of multiplication of 16B of cipher... |
I use a smart card - as read only device - for user identity as well as a password:
The smart card (holds the user ID) is something I have;
The password is something I know.
Is this still two-factor authentication?
|
I was wondering if it is possible to decrypt a cipher-text using a single key which was encrypted twice.
For example: Let's assume that we encrypt a plaintext using AES-CTR and encrypt the output again with AES-CTR using a different key. It's clear that there exists a keystream that can be used to decrypt the message i... |
In the ECIES scheme, the sender generates an ephemeral public key per each message it encrypts. This public key, together with the receiver's private key, is used in order to generate a shared secret that is input to a KDF function that outputs both the encryption symmetric key and the MAC key. However, if instead of t... |
Let $f: \{0,1\}^n \times \{0,1\}^n \rightarrow \{0,1\}^n$ be a secure PRF.
Define $F(k, x) = f(x, k)$.
Is $F(k, x)$ also a secure PRF?
|
This is a question about standard every day web authentication.
I have the following assumptions:
one of the reasons public key user authentication is not used as bread and butter on the web is that it is expensive for the server to verify signatures (the other is that it is not convenient for the client, but let's ig... |
I am attempting to decrypt a 90 GB file that is encrypted using AES-256. I have the password. How long should this take to complete? I've had the process running for over 3 days with no progress.
|
Is hashing the individual items, and then XOR-ing the results together, a good way of uniquely hashing an arbitrary unordered set of items?
I am thinking of using hash-then-XOR since I want some sort of function that can compute the hash of a set incrementally: given the $H(S)$, I want to be able to calculate $H(S \cup... |
I've been trying to understand how the number of rounds are picked for ciphers. There seems to be a minimum number of rounds that is analyzed for "strength" and then some security margin is added.
M. Luby and C. Rackoff showed that you need only three rounds for a Feistel network if you have sufficiently random keys... |
I have two related questions:
Version 1: Let $B=\{b_1,b_2,\dots,b_n\}$ be an orthogonal basis for $R^n$. What is the associated reduced basis obtained by applying LLL algorithm to $B$?
I know how to apply LLL algorithm and I can apply it for $R^3$ case. (Since for $n=3$ it takes reasonable time in the exam, this is... |
In preparing an input for SHA256 or RIPEMD-160 a single bit (1) is appended to the message before adding any necessary zero padding and before adding the bitlength (64 bits) to form 1 or more 512 bit blocks. What is the purpose of adding the single bit (1)?
|
Do we need one of the factors of two factor authentication to be one-time use?
TOTP and password are considered two factor authentication, but does smart card and password also count as two-factor authentication?
|
Bingo is the game of chance where each player matches the numbers on their card with the numbers that the caller draws at random. When the first player has collected enough called numbers on their card, they declare that they have won, and their card is verified.
Imagine this game being played online with players allow... |
How do you know if an isogeny is surjective or not, and how do you tell how many points on E maps to E'? Does the answer lie in the degree of the isogeny function?
|
Assume a Player chooses a seed $s$ and he wants to prove that he uses it as a seed to CSPRNG function, where the seed is not public.
How can he prove it?
Thanks.
|
Modern hash functions are considered to be efficient to calculate by boolean circuits (i.e their implementation are using bits- operations).
I'm looking for a cryptographic hash function, that can be efficient calculate by arithmetic circuits (i.e they use OR and AND gates (or $+$ and $\cdot$ gates) and work over $\ope... |
Wikipedia defines ANSI X.923 padding as follows:
In ANSI X.923 bytes filled with zeros are padded and the last byte
defines the padding boundaries or the number of padded bytes.
Example: In the following example the block size is 8 bytes, and
padding is required for 4 bytes (in hexadecimal format)
... | DD DD DD D... |
While reading Laurent Bussard's thesis, Section 4.5.1, p91 (p119 of the pdf) I wondered about the following paragraph (emphasis mine):
the prover first picks a random symmetric key $k \in_R \{0, 1\}^m$ and uses
it to encrypt her private key $x$ according to a publicly known
symmetric key encryption method $\mathca... |
I have a problem that I'll simplify here. Let's say I want to store a table of {person, fav color}. Only, I don't want anyone to ever be able to look up a person't favorite color; the only thing someone should be able to do is group people if their favorite color is exactly the same (not just merely similar). The obvio... |
In zkSNARKs in a Nutshell, page 12, what exactly are $I_{free}$ and $V_{free}$? Why do we have $V_{free}$ but not $W_{free}$?
|
For example, there are three signers, A, B, C:
A: PK(a) SK(a) MessageA SignatureA
B: PK(b) SK(b) MessageB SignatureB
C: PK(c) SK(c) MessageC SignatureC
and generate a signature aggregation : SignatureAgg.
Is exist a method to check that if SignatureB contains in SignatureAgg, and do not know SignatureA and SignatureC.... |
What does $1^\lambda$ mean when you pass it as a parameter to the functions of a cryptosystem. The cryptosystem in question is this and a picture reference is this.
I have been told it signifies the "security parameter of the cryptosystem" but this is not clear to me. In this picture, you can see that
$\lvert p \rver... |
I'm not a cryptography expert myself, and know enough to know that I shouldn't design my own crypto schemes, so I thought I'd seek advice here.
In an application, let's say we have two database tables: Lawyers and Clients. There exists a many-to-many relationship between these two models, so a Lawyer can have many Clie... |
SIDH is quantum secure, why is it quantum secure? Exactly which part of the algorithm is proven to be NP-hard? Computing the isogeny function?
|
I was reading the Zero knowledge property for Interactive Proofs. It said that for the proof to be zero knowledge, there should exist a simulator that runs in expected polynomial time for all verifiers, such that the simulator can generate a distribution which is identical to the view of the Verifier.
What was the need... |
In public key encryption from LWE, we do the following steps
$\textbf{PKE.KeyGen($1^n$)}$ takes as input the security parameter n, samples $A \leftarrow \mathbb{Z}_p^{n \times m}$ and $\textbf{e} \leftarrow \chi^m$, and outputs a key-pair $(pk,sk)$ where $sk = s \in \mathbb{Z}^n_q$ and $pk = (A,s^T\cdot A + \textbf{e}... |
The RC6 symmetric block cipher is parameterized with three parameters :
W : The number of bits in a machine word (8 , 16 , 32 , 64)
B : The number of bytes specifying key length (0 to 255)
R : The number of rounds to execute (1 to 255)
A data block is specified as 'uint_t data [4]' where 'uint_t' can be 8, 16, 32, or... |
Why not have each person simply treated as a counterparty to an off-the-record chat?
People show up in groups and show an ID which is cross-referenced against a central database to prevent Sybil attacks.
They have their apps generate a set of random numbers by each committing to one or more values and then revealing t... |
The doc of pycrypto gives an example of using AES in CTR mode:
>>> from Crypto.Cipher import AES
>>> from Crypto.Util import Counter
>>>
>>> pt = b''*1000000
>>> ctr = Counter.new(128)
>>> cipher = AES.new(b''*16, AES.MODE_CTR, counter=ctr)
>>> ct = cipher.encrypt(pt)
I think this isn't safe for encryption of multipl... |
I am currently working on a hardware project that will utilize the native USB and keyboard emulation capabilities of the Teensy device. Essentially, the user will store an encrypted password database on a mounted SD card that the Teensy will read and send to the host computer. This prevents the requirement of storing p... |
I have two keys and they have the same KCV. How is this possible?
I have encrypted data with both keys and I have the same result. Both keys are the result of the derivation of the same IMK, one was done by a software and the other one was done by manual process.
Key A: 04 A4 49 F2 DC 46 D3 2A 3E A7 C7 E3 D3 A1 AB BA
K... |
I used "AES/CBC/PKCS5Padding" to encrypt some files. But I did not provide any identifier to detect if the file is encrypted or not. Now one way to detect if a file is encrypted or not, that I can think of, is to try to decrypt it and see if there is a padding miss match.
Now my question is,
Is it possible for some r... |
The complexity of solving the discrete logarithm problem depends on the choice of the group $G$. A popular choice is $Z_p^*$ where $p$ is a safe prime (${p=2p' +1}$ and $p'$ is also prime). In this case, $G$ is a group of prime order so every element in it is a generator. We can do then:
Pick ${g}$ as a random element... |
When proving theorems in crypto we often make use of the concept of negligible functions or, more simply, negligible parameters.
As a rule of thumb, given today (2018) computational power, what is the smallest inverse power of 2 that we can consider negligible?
I expect this to be something around $2^{-64}$.
|
Say a have a group $G$ chosen as $Z_N^*$ where $N=pq$ and both $p$ and $q$ are safe primes. The algorithm for discrete logarithm is as follows:
Pick $g$ as a random element from $Z_N^*$
Pick $x$ as a random element from $(0, N')$ where ${N' = p' q'}$ where ${p=2p' + 1}$ and ${q=2q' + 1}$
Evaluate ${y = g^x \: mod \: ... |
Ferguson, Schneier and Kohno's Cryptography Engineering §5.4.2 describes a construction, $\operatorname{SHA}_d\text-X(m)$, which is just $\operatorname{SHA-\!}X(\operatorname{SHA-\!}X(0^b\mathbin\|m))$ (where $\operatorname{SHA-\!}X$ is any particular SHA-2 hash, and $0^b$ represents a full input block of zero bits).
I... |
Given the following situation, what sort of cryptographic construction am I looking for?
Alice has a bitfield (vector, polynomial representation, etc.)
Bob has a different bitfield of the same length
Alice and Bob want to know the bitwise AND of their two bitfields without revealing the result to others and without re... |
Given $v \in Z$, a prover knows $v$ and the verifier knows an encryption of $v$.
The prover provides the verifier with the encryptions of two values $m$ and $n$
How can the verifier verify that $m+n=v$ ?
I cannot find any scheme/algorithm in the literature I have searched, other than range proofs, and I am looking for ... |
As I know ECDH can be used with a fixed public key. I read there are two types of static ECDH, ephemeral-static ECDH, and static-static ECDH.
What are the differences between these two types?
|
More of a theoretical question...
Taking a system where Lib Sodium has been used for asymmetric encryption, where a "crypto_box_keypair" has been generated, and the public key has been distributed to a number of different systems.
Would it be possible to sign a message using that keypair?
As in, the message remains in ... |
Given a hash function:
$H(x)$ = y
$y$ is publicly known.
Alice wants to prove to Bob that she knows $x$. Alice could create a non-interactive zero-knowledge proof, and share it with Bob. Then Bob could verify that Alice has a valid $x$.
The protocol is describe here:
https://media.consensys.net/introduction-to-zksnarks... |
With no background in higher math or computer science, I could not quite grasp the value of modular math for simple OTP systems as described in other posts here.
I have an alphabet size of 40 characters, valued from 0 to 39.
The pad uses alphabetics "A" through "Z", valued from 0 to 25.
I am using modulo 40 math.
If my... |
During the heyday of rotor machines, the internal rotor wiring was always a closely guarded secret. Even fully cleared repair staff was not allowed to do anything that could reveal it.
As the wiring seems to be considered part of the algorithm 1 and not some form of long time key, would it be even possible to design a ... |
Schnorr protocol is known to be honest-verifier zero-knowledge and not perfectly zero-knowledge.
What are the practical consequences of this fact? Does it mean a dishonest verifier can do something to discover the secret exponent $x$?
Setup
$P$ chooses a large prime $p$ and a generator $g$ of the $q$ order subgroup ... |
Biggest flaw in VeraCrypt(or other Encryption programs) is Hash Algorithm.
VeraCrypt hashes (SHA,Whirlpool,Streebog) it is the only point where can break an encrypted disk. Because break algorithm (AES,Towish,Camellia,Serpent,Kuznyechik) it is practically impossible.
VeraCrypt hashes can be broken by Police with the... |
I recently read a piece of protocol that avoided sending ephemeral x25519 keys in the clear as an effort to foil deep-packet inspection.
I understand that x25519 public keys are effectively 255 bits, which must be serialized as 256 bits, leaving one unused bit that libraries typically fix as 0. For the purposes of this... |
A 128 bit ideal substitution block cipher substitutes 128 bit blocks with randomly assigned 128 bit blocks using a key table.
How secure is this type of algorithm?
Is this practical?
Thanks!
|
We use true random number generators as a source of keys for encryption. What I can not wrap my head around is: How is this cipher text decrypted in case of symmetric key algorithm as we need the same random number to decrypt the cipher text.
What I could guess is:
Is this random number used as a session key and trans... |
I'm currently implementing a group signature verification on Ethereum and it seems that the Pairing check can only return a boolean.
According to the BBS algorithm, to validate a signature $s$, you need to check $$
e(T_3,g_2)^{s_x}.e(h,w)^{-s_\alpha-s_\beta}.e(h,g_2)^{-s_{\delta_1}-s_{\delta_2}} = (e(g_1,g_2)/e(T_3,w)... |
Suppose we have a policy $A \wedge ( D \vee (B \wedge C))$ with attributes ${\{A,B,C,D}\}$. The set of subsets of attributes which satisfy this policy is ${\{{\{A,D}\},{\{A,B,C}\},{\{A,B,D}\},{\{A,C,D}\}}\}$ of which ${\{{\{A,D}\},{\{A,B,C}\}}\}$ is the set of minimal subsets.
We convert the above boolean formula into ... |
I am implementing shake in 32-bits microcontroller, so I would like to use bit interleaving.
I checked the code in: https://github.com/floodyberry/supercop/blob/master/crypto_hash/keccak/simple32bi/Keccak-simple32BI.c but I do not understand how is the bit interleaving transformation done in this code. Could anyone giv... |
Some background: I am using the MicroChip ATAES132a for hardware encryption/decryption. The ATAES132a is very configurable and can be misconfigured in such a way that the encryption/decryption will be performed using the same nonce. In theory, if the nonce is known I can do an encryption of the plain text and get the s... |
I am wondering if there are any theoretical reasons why obfuscated programs cannot be nearly as efficient as the plaintext programs and whether there is any necessary computational overhead from running obfuscated code instead of plaintext code.
Let $\mathcal{O}$ denote an indistinguishability obfuscator; for each circ... |
The need we have is to pass encrypted messages but such that the encryption key can't be generated from the decryption key.
This sounds like with vanilla asymmetrical crypto I know, but in every schema I've seen, one can generate public key from the private key in a reasonable order of time.
Use case: we have a networ... |
Is there a hierarchical key construction algorithm that achieves forward/backward privacy with any (unlimited) leakage of private non-master keys?
What I mean is that if there's an unbounded number of generated keys where their private key is revealed, the master private information is still safe.
The paper "Hierarchic... |
This is regarding an online roulette game that claims to be fair. Here is the explanation:
Two strings are created:
STRING1 = "[NONCE]:[SERVER SEED]:[NONCE]"
STRING2 = "[NONCE]:[CLIENT SEED]:[NONCE]"
HMAC-SHA512 is used to hash STRING1 with STRING2 as the secret key, giving us a 128-character hex string.
The first 8... |
I'm working with SJCL, specifically using ElGamal to encrypt messages. Behind the scenes, this is doing something similar to what's described in this SO post (emphasis mine):
Regardless how big prime p is, you can always generate a random m
number in the range of 1 to p-1 and use that to produce your
asymmetric ci... |
I'm continuing doing some personal research on rainbow tables, but forsome reason I cannot understand how to choose the correct reduction function. Wikipedia states that
"Only when the attacker has a good idea of what the likely plaintexts will be they can choose a function R that makes sure time and space are only us... |
I know that this depends on which techniques you're using, but roughly speaking, when modern cryptography makes use of so-called "large prime numbers", how large (in bits or digits) are these primes typically?
|
Is there an additive homomorphic encryption scheme which guarantees that if provided with
$E(v)$, $E(m_1)$ and $E(m_2)$
and $E(v)=E(m_1).E(m_2)$ then $v=m_1+m_2$
Please note this is not $v \equiv m_1+m_2 \pmod p$
To illustrate, assuming a group of order $p$, the additive version of ElGamal does not seem to match the... |
Looking at the PKCS#11 2.4 spec, C_Login returns CKR_USER_PIN_NOT_INITIALIZED when a "normal user's PIN has not yet been initialized with C_InitPIN". However, I can not find anything that would be analogous to a situation when a user calls C_Login for a CKU_SO user on a token that has not been initialized using C_Init... |
Shamir's Secret Sharing scheme is really interesting but the pain point is that the secret is generated by one trusted party, then the shares are distributed to other peoples.
Is there any scheme using distributed key generation in order to:
Generate a public key using multiple private keys
Generate a private key using... |
The inversive congruential generator over the prime field $k=Z/pZ$ is given by the iterations of the map $x\mapsto a/x+b$ if $x\neq 0$ or $b$ if $x=0$.
One can choose $a,b$ in $k$ such that the orbit length of the iteration is exactly $p$. My question is very simple:
Is the Inversive Congruential Generator actually use... |
zk-SNARK researcher Eran Tromer came up with the following workflow when describing how these proofs are created:
What I am struggling to understand is how a LIP becomes a zk-SNARK. Is the SNARK a hash of the LIP?
I would appreciate any help, or recommendations for reading materials.
|
Would you please explain to me why in the security definition of ideal/real model paradigm which is described in the efficient secure two-party protocol book(Hazay, Lindell), the simulator tries to simulate inputs and outputs of a party(in the semi-honest model), but the simulator just tries to simulate outputs and not... |
Quite a specific question, but are there any threshold signatures that are also homomorphic? Preferably ones that work in the discrete log setting and don't require any pairings.
|
I just finished reading about padding oracle attacks at https://blog.skullsecurity.org/2013/a-padding-oracle-example, and it blew my mind. I think I understand almost all of it, but I do not understand one critical thing:
When looking for good padding, why should the first one (last byte of the message) be 0x01 when y... |
I am calculating the minimum number of active s_boxes for block cipher using mixed integer programming, when can we say that block cipher is resistance to differential cryptanalysis after which round?
For example AES algorithm or LED
|
I have one question that I couldn't come up with a nice solution.
So let's have this analogy, I have a box full of money and I want to deliver to this my friend. Here if we think of a potential attacker there are two possible ways, first the attacker would be between us , so called postman or he could pretend like he i... |
Any advice would be appreciated:
It seems to me that using an uncomplicated combination of a shamir scheme and schnorr it's fairly trivial to have a threshold signature scheme.
I think it's also easier than other scheme's I've read about, and also probably more secure.
Is there some reason this construction doesn't wor... |
Let's say Alice has access only to a value $a$ and Bob has access to both $a$ and $b$. I need Alice to be able to check whether $a<b$ holds, like a relaxed version of the Yao's Millionaire Problem, given that one of them knows both values. The challenge is that the comparison result cannot be trusted if done by Bob, as... |
Suppose I've got a response from a website using https. Is it possible to store the certificate and keys exchange to prove to a third-party that the response came from that domain?
|
There are multiple S-boxes type, as DES uses 4 bit S-box and AES uses 8 bit S-box. I want to know how this effect the security?? If we use 4 bit or 8 bit. apart from the DC attack. Both provides confusion then why 4 bit and 8 bit different size
|
I am reading the book "Efficient Secure Two-Party Protocol". A question came to my mind. why has the author used a probabilistic polynomial time algorithm for security definition of ideal/real model in the semi-honest model, but used a non-uniform probabilistic polynomial time algorithm in the malicious model?
Thanks f... |
$\mathbb{Z}^*_p$ vs $\mathbb{Z}^*_{p-1}$ vs $\mathbb{Z}^*_{p^2}$ vs $\mathbb{Z}^+_{p^2}$
I know $p$ is the value. The value create must be coprime to $p$.
Does that mean that the value create must be coprime to $p-1$?
What about the rest?
|
I am using block cipher mode (CTR Mode) for the transmission of voice data. Need to know, how can I transfer the same IV at the decryption side (for every call) as the IV for the same packets on encryption and decryption sides must be the same.
|
Can I use the security definition in the malicious model in order to prove the security of a two-party protocol which is in the semi-honest model? (I am using IDEAL/REAL Model paradigm)
Would you please explain it to me?
These definitions are from "Efficient Secure Two-Party Protocols-Hazay-Lindell"
Definition 2.3.1 (M... |
One of my friends is creating his own cryptocurrency, just as a fun project, and he made some design choices that I think are insecure, but I personally don't have enough expertise to evaluate.
Assuming we're considering an secp256k1 private/public key pair and a Bitcoin style address (just a hash of the pubkey), would... |
I have designed a two-party protocol where two parties outsource their input to the cloud. For example, Alice and Bob have inputs $X$ and $Y$, respectively, after which Alice and Bob encrypt their input independently and then each one outsources the encrypted data to the cloud, independently. Afterward, the cloud perfo... |
In CPA, it is said that the adversaries get ciphertext for the choice of plaintext of adversaries through an encryption oracle. Is this a realistic assumption in real-world, in which the adversaries get ciphertext for the choice of their plaintexts? If so, please provide me with some example scenarios illustrating how ... |
If we encrypt our data with a longer SSH key which is protected by a shorter passphrase (with a decent entropy), then the limiting factor is entropy of the passphrase. So why do we use a longer key at all? We could simply encrypt the data with the passphrase.
|
According to the above protocol(Efficient Secure Two-Pary Protocols-Hazay-Lindell-page 27), the authors proved the security of this protocol according to the two paragraphs below:
We separately consider the case where P1 is corrupted and the case where P2 is corrupted. If P1 is corrupted, then the simulator S receive... |
In Anonymous Hierarchical Identity-Based Encryption (Without Random Oracles) by Boyen, to prove security it defined challenge ciphertext like
I actually can't get how does the proof work? Why we should define challenge ciphertext like this?
|
My question is about choosing the rotation values in ARX design such as SIMON-like or SPECK-like ciphers to provide optimal differential and linear immunity. According to this, the selection of $a$ and $b$ values (shown in SIMON-like figure below) must comply with the condition $\text{gcd}(n, a-b) = 1$ where $n$ is the... |
I am writing a paper. One of my references is
1)Barreto, P. and Rijmen, V., “The Khazad Legacy-Level Block Cipher,” Submission
to the NESSIE Project, vol. 97, 2004.
My professor criticize me that why I wrote submission to the NESSIE Project or why you did not write the journal of this paper or did not wrote t... |
Requirements:
only publisher can create messages
publisher & subscriber can both read messages and authenticate the publisher
offline message transfer
messages can't be read by non-participants
subscribers can be mobile platforms (Android, iPhone), i.e. less powerful processors
messages lifetime target is 15 years
mes... |
I used OpenSSL s_client to connect to a test server.
Because OpenSSL generated client side private DH key, I think there will be a way to show the private key or enforce a specific private key to be used in negotiation for test purposes.
How can I do this?
|
Any decent hash algorithm will produce basically "random like" values for any given input including the empty input.
For example MD5 produces d41d8cd98f00b204e9800998ecf8427e on an empty input.
I wonder, however, why the MD5 algorithm wasn't defined to have a final step where the output is XORed with d41d8cd98f00b204e... |
I took a cryptanalysis class in university and I learned Caesar Cipher. But I cannot understand why frequency gives me the "key".
In a meterial, the following sentences are explained:
When Eve tabulates the frequency of letters in this ciphertext, she
gets: I=14, V=13, S=12, and so on. The most common character is I... |
In this paper I found the statement "We reduce the fairness problem in MPC to the problem of fair decryption [...] Fair decryption was shown to be a complete functionality for fair MPC in [GIM+10]".
How is decryption considered to be complete functionality for fair multiparty computation? What do you mean by complete ... |
I wanted to get an idea on how the whole cold-storage private/public key generation works for different cryptocurrencies. So I was playing around with BIP32 deriviation path on:
https://iancoleman.io/bip39/#english
I noticed that for example BTC, XRP, PIRL all have the same BIP32 root key and BIP32 extended private/pub... |
This example is from “Efficient Secure Two-Party Protocols-Carmit Hazay-Yehuda Lindell”.
And the security proof of the above example is this:
I have drawn a picture that is deduced from the above security proof.
Picture1:
[
Picture 2:
I have several questions:
Please, explain to me how the simulator and the adve... |
OpenSSH uses a slightly different ChaCha20Poly1305 AEAD construct then the one proposed by A. Langley and others for TLS.
The TLS version
The openSSH version (and here)
The openSSH version uses two 256bit keys.
First key is used for deriving the Poly1305 MAC key and for encrypting the actual payload
The second key i... |
I'm trying to understand cryptographic protocols, and I've started with the DES algorithm.
DES specs: it uses 64 bits for the plaintext, 56 bits for the key, with a result of the same 64 bits of ciphertext.
But encrypting on online websites I see a totally different thing.
Encrypting the string "hello" with the key "ke... |
I hope the title already explains the problem I have in mind; but let me lay out some more details.
Given public-private key pairs $P_A, P_B, P_C, ... P_Z$, (first $3$ of which are owned by our usual suspects $A$lice, $B$ob and $C$harlie; we want to be able to do a key exchange as defined below:
Alice, Bob and Charlie ... |
I'm working on factorizing a ~450 bit key that I know has been generated with RSALib and thus is vulnerable to ROCA. Now reading the original paper, I can see that the primes are generated in the following form:
$$p = k \cdot M + (65537^{\,\large{a}} \bmod M)$$
where $k$ and $a$ are unknown value to us but where $M$ is... |
I want to make a product cipher containing s box and p box.
where message
$m = \{m_1, m_2, m_3, m_4\}$ where $m_i \in \{0, 1, \dots 25\}$ for $i=1,2,3,4$.
p-box: $P(x_1, x_2, x_3, x_4) = (x_1, x_3, x_2, x_4)$
S-box: $\mathbb{Z}^2 \rightarrow \mathbb{Z}^2$ where $\mathbb{Z} \in \{0, 1, \dots, 25\}$
$S(x,y)=(x+k_1 y \bmo... |
The paper has the following relation:
$$y^{(p-1)/p_i} \equiv \alpha^{x(p-1)/p_i} \equiv \gamma_i^x \equiv \gamma_i^{b_0} \pmod p$$
where $\gamma_i = \alpha^{(p-1)/p_i}$. I understand this relation and can show how each step is derived. However I'm stuck at the next step. From the paper:
$\gamma_i$ is primitive $p_i$t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.