instruction stringlengths 32 27.2k |
|---|
Must the prime finite field, Fp, an elliptic curve is defined over always have a greater number of elements than the cardinality of an elliptic curve.
For example, If I have Elliptic Curve defined by y^2 = x^3 + x + 1 and I can calculate that the
E.cardinality() = 14. Must the prime field I chose be >14?
Would there ... |
I am willing to write a Whitebox Crypto unit using ChaCha20 algorithm (Bernstein, D. 2008) for an input consisting of a single block. The fact it is going to be a single block cipher is of special importance here, as otherwise, the simple algorithm below wouldn't apply.
The principle is quite simple and reuses some log... |
Which of the parameters of a block cipher (e.g., algorithm name, mode of operation, IV (if any), key length) are essential to keep secret?
|
I understand that a completion flag parameter with Boolean value of 1 is used by Blake2 when it’s compressing the final block of the digested message.
This ensures that one cannot load the state of a blake2 implementation with a blake2 digest and continue on (length extension attack).
However I was just thinking, give... |
I'm a little confused over how exactly Linear Feedback Shift Registers (LFSR) work, I kind of get it, but not really, can someone help me understand it? I know it XORs bits in a loop against some mask, how is the shuffling defined?
A content scrambling system is a synchronous stream cipher made from 2 LFSRs of differen... |
From Wikipedia:
Check that $Q_a$ is not equal to the identity element $O$, and its
coordinates are otherwise valid.
Check that $Q_a$ lies on the curve.
Check that $n*Q_a = O$
Verify that $r$ and $s$ are integers in $[\![1;n-1]\!]$. If not, the signature
is invalid.
What is the mathematical reason for these checks and... |
Define
$$\rho_{s,c}(x) = exp(-\pi \cdot \frac{\|x - c\|^2}{s^2})$$
and
$$\rho_{s,c}(L) = \sum_{x \in L} \rho_{s,c}(x)$$
Then Discrete Gaussian over $L$ with center $c$ and standard deviation $s$ is the following distribution over lattice points: probability of $v \in L$ equals:
$$ \mathbb{P}[v] = \frac{\rho_{s,c}(v)}... |
AFAIK, HMAC solves the collision problem of hash algorithms by mixing in a pre shared secret.
Can't we just use the pre shared secret to symmetrically encrypt data and leave out the hashing?
|
I have two devices, and each has a private key xPriv-i. Each device computes the corresponding EC public key xPub-i, shares it, and the linear combination of the keys is the "real" public key xPub. As a simplification, please assume this is all done securely and correctly.
I use ECIES to encrypt an archival file: I ... |
In the implementation of RSA-CRT, the exponent d is reduced mod p-1 ($d_p = d \bmod {(p-1)}$). The only proof I've found for that, is the following (considering $d = k\varphi(p) + d \bmod {\varphi(p)}$:
$$c^d = c^{k\varphi(n) + d \bmod {\varphi(p)}}$$
$$(c^{\varphi(p)})^k * c^{d\bmod {\varphi(p)}} \equiv (1)^k * c^{d\b... |
I've been studying this article and since I'm not studying cryptography in English and it is not my native language, I don't understand some of the terminology. More precisely: what are diffusion matrices as mentioned on page 3 right at the beginning of chapter 2? Do they have something to do with diffusion defined in ... |
I am wondering what is the exact post-quantum security of a PRF. I know that for most symmetric mechanisms, it is assumed it is sufficient to double the key size, but I am looking for a more precise analysis in the case of Pseudo-Random Functions (like $2^{(n/2)}$ operations with Grover algorithm for the preimage).
To ... |
I have a need to produce URLs to allow the downloading of a single file, without authentication. These links will be sent through email, and I understand and accept the risk of a given link being shared by its recipient (or intercepted in transit).
Each file is identified by a UUID, generated in SQL Server using NEWID... |
I am reading Pragmatic MPC (link) about the BGW protocol.
I also cross-reference here (click on lecture link for slides) *The BGW Construction for the Information Theoretic Setting – Benny Pinkas
I do not understand why the multiplication gate calculation can work.
First, let's say of $N$ parties, party $P_i$ has share... |
If I have an encrypted value $Enc(x)$ with Paillier cryptosystem, is it feasible to compute an encryption form of $\ln(x)$ or its approximation using homomorphic properties? The input $x$ is always positive. The $\ln$ function satisfies $\ln(1)=0$ and the derivative of $\ln$ function is $1/x$. Or if I want to compute i... |
I'm trying to wrap my head around how different padding methods affect the strength of CBC-MAC's. Suppose a message is split into different blocks, m1, m2, m3 etc. and the last block is padded with 0's to fill it if needed.
If the message is intercepted, why can an attacker easily create another message with the same M... |
I have become quite familiar with Bulletproofs the last few months. Bulletproofs is the name given to a zero-knowledge proof system for arithmetic circuits, by Benedikt Bünz et al. It is a specific protocol with specific properties.
When Bulletproofs are discussed, they are often contrasted with zk-SNARKs and zk-STARKs... |
Is a hash function created by using CBC-MAC with one public key that does not change secure against preimage attacks? If not, how could you exploit this to find a single block message that hashes to a given digest?
|
EDIT: I've migrated the question by deleting the same question I asked on mathematics stackexchange.
2 questions: (1) I am confused about the definition of support used in the proof given in the textbook Computational Complexity: A Modern Approach lemma 9.2 by Arora and Barak (2) The usage of the assumption that $\bold... |
I'm trying to understand how the maximum Index of Coincidence (IC) is found. This is the only description I have for it:
"For a given period $P$ you can divide a cipher into $P$ groups, calculate the IC for each group, then take the average of these $P$ values. Doing this for all periods from 1 to 15 and selecting the ... |
IBM just announced "a new 53-qubit quantum computer".
How does it compare to classical computers, performance-wise, for cryptanalytic tasks? E.g. finding a 48- or 64-bit value whose SHA-256 has a certain value (edit: or factoring the product of two distinct primes, or computing some discrete logarithm).
|
The word "rotate" in respect to "key-rotation" has connotations of looping/repeating variable values like a rotor, but as far as I can tell there isn't a single definition available for "key-rotation" that involves re-using a key that was previously replaced.
So why don't we call it key-replacement or something else l... |
I'm doing linear attack for 8 rounds DES. And I just wondering about the difference between Matsui's notation and Biham's notation. In Matsui's paper, numbers bits from 0 to 63 from right to left. In contrast, Biham numbers bits from 1 to 64 form left to right (Because of this, P-permutation, S-box, E-permutation, IP, ... |
While there are plenty of PAKE protocols, especially those augmented ones which are practical in C/S model, actually they seem to be not widely used. Even TLS-Standardized SRP, the most popular one among them, I just know it's used in apple's iCloud. In addition, J-PAKE was used in Mozilla's synchronization but aborted... |
it might be a silly question but i need help please
given RSA system , where $n=pq , p\ and \ q \ are \ primes $ , $ v_0,v_1,v_2, v_3 \ are \ known $
$p^p \equiv v_0 \mod q$
$q^q \equiv v_1 \mod p$
$q^p + p^q \equiv v_2 \mod pq$
$(p+q)^{p+q} \equiv v_3 \mod pq$
Mathmatical facts:
$p^{q-1} \equiv 1 \mod q$
is obta... |
I am looking into building a merkle tree algorithm and I need to know if SHA256 is resistant to second preimage attack.
|
I was configuring a VPN on a firewall (fortigate) and realized that I could use AES-GCM for encryption in the IKEv1 phase 2 but not in the phase 1 and I was wondering why knowing that in IKEv2 we could use it in both phases. I have already checked the RFC articles but there was no explanation. Is it only because AES-GC... |
When we apply the differential privacy on medical data to protect the personal data of the patients, how the doctors can access the original data to analyze them and to intervene in real-time. In other words, the added noise to disturb the data, can be eliminated?
|
Question:
How is it possible to adapt a ZKP for a homomorphic ciphertext to still be valid after said ciphertext has been re-randomized?
Context:
In a lot of e-voting systems homomorphic encryption is used to tally the individual votes preserving the privacy of the individual voters as only the total tally is revealed.... |
Is the CECPQ2 key exchange, as deployed by Google[1] and Cloudflare[2] in TLS 1.3 forward secure against quantum computers?
I know that it is using HRSS+SKY as the post-quantum part of the key exchange, but the papers I could find that were describing it do not speak of forward secrecy (either as a present or an absent... |
According to me, every OT takes a constant number of rounds and since we have to do an OT for every input of one party, we'll have to do O(n) OTs which would correspond to O(n) rounds. But I have read at various places that the number of rounds in Yao's Protocol is constant. Am I missing something?
|
I have 4 functions to analyze. I need to determine if they are or are not pseudorandom and give a proof/counterexample. I'm having trouble just determining if they are - let alone proving or giving counterexamples. For reference, I'm using Katz and Lindell:
(a) $F^1_k(x) = F_k(x) \mathbin\| 0$
I think this is pseudoran... |
In probabilistic encryption schemes, different notions of security exists. I'm interested in the relationship between two notions. One is the indistinguishability-from-random notion of security and the other is the right-or-left notion of security. In crypto literature, it's often asserted that the former is stronge... |
I have a set of data that I want to sync, and instead of sending an entire set of data, I wanted to use a hash.
It is basically a list of GUIDs with either "true" or "false".
eaa54efe-2b10-4d3b-b9c2-30d2bcca7e06 : true
94297d72-573a-4e6c-a45e-37a390750b64 : false
36d1acbd-b2dc-4a90-a7be-fb65b63639a5 : true
I plan to g... |
So while I knew hill ciphers were a form of block cipher (I'm assuming all the ones I have solved to date were ECB or something similar), so that got me thinking. Is it possible to use hill ciphers in other modes (ctr, ecb, cbc etc) on a binary alphabet?
A) Could you provide formula/examples of how it would work?
B) ... |
I am reading an intro book about cryptography and the author tries to explain why using pseudo random number generators is vulnerable.
Given PRNG equation;
\begin{align}
S_0 &= \text{seed}\\
S_{i+1} &\equiv A\cdot S_i + B \mod m, i = 0,1,\ldots
\end{align}
where we choose $m$ to be 100 bits long and $S_i,A,B \in \{0,1,... |
If an attacker had a padded message and its corresponding CBC-MAC tag, how would they construct another message which produces the same tag for the same key as the original? The padding scheme used in this scenario is to add 0's to the end of the message until is it a full block.
What about when the attacker has an no... |
So XCBC was made to counteract lengths attacks against CBC-MAC, but how exactly does the modification made defeat this attack? All I can find are a few papers on why 2-key XCBC isn't actually secure.
|
I hear of randomized reduction, deterministic reduction and non-deterministic reduction of complexity from A to B problems. This could make things impossible for polynomial time adversary prying into NP - hard problems.
Are these biases in complexity what makes the computation infeasible if a problem cannot be solved ... |
I've got a cipher I've been challenged to crack by hand. It's a monoalphabetic substitution cipher, and the English spacing is intact, so all of the words are the right size.
Is there a more efficient way to crack this cipher than frequency analysis?
|
I am using gpg to make encrypt a tar.gz.
My first try uses --verbose --symmetric and then the decryption is done with --verbose --decrypt. The --verbose shows that encryption was done with CAST5 and then the decryption uses CAST5.
I check all the file contents as a sanity check
My second try uses --verbose --cipher... |
I have a system comprising N >1000 nodes. At each node I would like to use HKDF to derive a unique 256-bit key, Kn (for the nth node), from a pre-shared master key, K0, and a locally-generated random bit string, Rn.
Kn would then be used to apply AES-GCM to UDP packets that the nth node sends to other nodes and the... |
So I've run into this challenge where I was given the guess $g$, and the power $p$ of Shor's algorithm.
All I have to do now is $g^{p/2} - 1$ and then GCD the result with n. But the problem is computing $g^{p/2}$ takes a RIDICULOUS amount of time, even with the exponentiation by squaring method.
Is there any possibilit... |
I'm trying to determine if $F_{k_1, k_2}(x) = F_{k_1}(x) \oplus F_{k_2}(x)$ ($k_1 \neq k_2$ because that would be lame) is a pseudorandom function. My hunch is that it is. My reduction proof proceeds like this (but I get stuck halfway through)
Suppose $F$ is not secure. Then there is a PPT distinguisher D' s.t. for all... |
I am working on one interesting question. There is a ciphertext that has 10,000 letters. We need to distingish whether this ciphertext was encrypted by a transposition cipher or a simple subsitution cipher.
I understand a transposition cipher will keep the identity of each letter and a substitution cipher will change t... |
I understand how fractionation is used in the straddling keyboard, which is an important feature of the VIC Cipher, and in the Polybius Square of the ADFGVX cipher, but I am not sure how to describe its cryptographic function and benefit.
It helps spread the redundancies of the plaintext over the ciphertext, and that i... |
Was reviewing some Bitcoin public-key hash literature and the use of RIPEMD-160 and the SHA-256 as below:
RIPEMD160(SHA256(ECDSA_publicKey))
The Proof-of-work on the other hand uses SHA256 two times (instead of RIPEMD-160).
There is some notes on why RIPEMD160 was chosen (here).
Considering the 256-bit output space o... |
I was reading the book Efficient Secure Two-Party Protocols by Y. Lindell and C. Hazay. Page 92 of the book says
This check is crucial and thus the order of first running the oblivious transfer and then sending the circuits and commitments is not at all arbitrary
I don't understand what difference would it make in th... |
I'm trying to calculate $d$. I have the following parameters given:
$p = 239$
$q = 181$
$n = p \times q = 43259$
$\phi(n) = (p - 1) \times (q - 1) = 42840$
$e = 11$
For calculating $d$ I use the Euclidean Algorithm:
$a = qb + r$
$42840 = 3894 \times 11 + 6$
$11 = 1 \times 6 + 5$
$6 = 1 \times 5 + 1$
$5 = 5 \times 1 + 0... |
When the sigma functions are defined in equations (4.4) and (4.5) in FIPS PUB 180-4, the defined functions show the traditional sigma summation symbol, with limits 0 to {256} and 1 to {256}. The definitions, however, are in terms of circular right shift and XOR operations. Why is a summation symbol used here?
|
The Domingo-Ferrer cryptosystem is a fully homomorphic cryptosystem. It works fast enough. I have only seen known-plaintext attacks. Is this a reason not to use it in practice? Or are there more significant shortcomings due to which it is not recommended to be used?
|
For any vector $\mathbf{c}$, real $s > 0$, and lattice $\Lambda$, define the probability distribution $D_{\Lambda, s,\mathbf{c}}$ over $\Lambda$ by
$$D_{\Lambda, s,\mathbf{c}}(\mathbf{x})=\frac{D_{s,\mathbf{c}}(\mathbf{x})}{D_{s,\mathbf{c}}(\Lambda)}=\frac{\rho_{s, \mathbf{c}}(\mathbf{x})}{\rho_{s, \mathbf{c}}(\Lamb... |
I have read about AES and different modes of operation (CBC, ECB etc) and have 2 questions related to disk encryption:
-AES data block is 16 bytes - how does it relate to sector sizes on the drive which is typically 512 bytes? Also who or what is responsible for dividing disk sectors into data blocks?
-disk encryption ... |
So I've been reading about cryptography and one-time pads, which seem to provide theoretically perfect secrecy. My question is does any form of technology today allow data to be stored in a practical way such that information is destroyed upon reading it? I think that magnetic core memory works in a similar way:
To r... |
Most block ciphers encrypt a plaintext deterministically into a ciphertext which allows decryption in the opposite direction. Now, instead of encrypting just one plaintext, I'm looking for a cyclic 'chain-function' which starts at a random value and always allows computation of the previous and next element. In additio... |
I enjoy making notes and passing them to my friends, and I also like making them encrypted for no reason. My friends enjoy it too, but it's a bit annoying to use the Caesar cipher for everything because its repetitive and takes forever. Is there a better pen-and-paper way of encrypting messages?
|
Please help with this question.
|
Q: Does a digital signature algorithm exist which has a normal, a blind, an elliptic curve and an elliptic curve blind version?
I am searching for an algorithm where you can see what happens if you try to transfer it into a blinded or EC version.
There are some algorithms, which have two versions e.g. DSA and ECDSA but... |
In ElGamal encryption, it says that the message M that is about to get encrypted must be mapped to its m counterpart in the group G using a reversible mapping function.
Map the message M to an element m of G using a reversible mapping function
Can someone help me understand (and point to some explanatory source) exac... |
Is the message divided into chunks, each chunk hashed separately, or something else?
|
I am trying to learn about password encryption by creating a simple password hashing algorithm, although many online articles did warn "Do not create your own algorithm".
I discovered that most of the encryption outputs are represented in bits instead of characters. Initially, I misunderstood this, how bits should be ... |
I've been challenged to crack a code. All I know about it is that is was hand-enciphered, and that it is a transposition cipher of some kind. When I was given it, I started plugging it into my permutation decryption engine. As you can guess, when I realised that the ciphertext was 26 letters long, meaning permutations ... |
Only for hobby I made some ciphers, it is not my intention to use them in the real world but I am trying to compare them with existing ciphers.
An important function of my ciphers is a key stretching function with the following properties:
Kn = increase(Kn-1) where Kn is totaly different from Kn-1 and the length of Kn ... |
have few more questions about disk encryption with AES cipher:
Do we consider all zeros (0000000) as empty block of data or is it still a data?
Do we really need padding to the data blocks if a disk sector is multiplication of data block?
Also if one data block is empty (all 000000) why we just dont apply encryption o... |
Forward secrecy with RSA is asked here:
Is perfect-forward secrecy achieved with RSA? and fgrieu gave an answer based on creating temporary RSA keys and signing them. And, in the end, he mentions
The scheme is inefficient because the generation of a new RSA key pair is relatively expensive (and normally rare, thus n... |
I have a question about cryptanalysis.
A transmit message to B with radio waves, A use modulator to transmit bytes with radio, B obviously use demodulator. A encrypts and B decrypts the messages received from A, a certain point an attacker is able to always get the key used by the two even though they always change it,... |
Update: with the help of @SqueamishOssifrage and @PaulUzdak, we discovered that my NIST SP 800-22 has a broken universal test. So this becomes a moot question.
Check this report. It seems to sail through all tests, but all p-values of the universal test fall in the first 10-percentile. I've set the generator's seed... |
I present a modified version of AES-ECB. Suppose I want to encrypt the string hello, world. this is a test. For each block, I use the first eight bytes as my actual message, while the second eight bytes are random. For the last block, I'll pad my first eight bytes deterministically. So my four blocks are (I'll use * to... |
I'm given a very simple 8 bit block cipher in which to encrypt plaintext x with k k one performs $ x \oplus k $. I am given IV = 0101 and a CTR of value CCCCCCCC (36bits).
My understanding is that counter mode relies on the output block size of my cipher to yield a stream key of b (in this case 8) bits which will then... |
I'm trying to better understand the "cost" of randomness usage/generation in practice. I understand that generally, some (small) amount of "true" randomness is generated, and then a CSPRNG is applied to expand this out to a larger amount of pseudo-randomness.
I'm curious as to precisely how these "small" and "large" am... |
Suppose Bob managed to obtain 220 different digests that were generated
by a hash function employed by a target system. The hash function outputs 8-byte
digest of a message. Bob now wants to find a message that hashes into 1 (one) of the
obtained digests. How many different messages should Bob approximately hash until
... |
I was reading a paper, Practical and Provably-Secure Commitment Schemes from Collision-Free Hashing where there was a reference to message digests being 'regular'
Here, MD is a message digest. I've not been able to find anything online about the regular property of message digests/hash functions. Does anyone here know... |
If some modes of operations of AES are not secure (like ECB or CBC), which are prone to bit flipping / manipulation attacks, and why they haven't they been banned or advised against by NIST for other bodies and are still recommended?
The last publication that I am aware of is: Recommendation for Block Cipher Modes of O... |
Alice and Bob have a pre-shared long-term Ed25519 key used for veryfying/signing ephemeral keys.
They have a shared key which resulted from the DH exchange. They compute HKDF SHA256 of the shared key to use as the AES GCM key.
Should they sign the cipher to make sure a man in the middle didn't change it? If yes, is it ... |
I am reading a book on cryptography and the author states that one of the complaints of the research community was that DES key length was chosen to be too short.
I am trying to depict how DES would look like if the key was 128 bits instead of 56(64) and why it would be more secure. I managed to express some ideas, but... |
Suppose $m$ clients split their own input into $n$ shares using additive secret sharing scheme (mod something).
Then, each of the clients sends each share to each of $n$ external servers.
After receiving the shares from the clients, the servers run MPC protocols where no client will be involved in the protocol.
(Later,... |
This check was deposited in the 1930s, and it was issued by OCBL (an old bank in Singapore). The checks issued by this bank had an interesting feature - an obfuscated pattern printed on the back of the check.
All original documents about the design of this check have certainly been lost, and there isn't any later docu... |
My wireless sensor nodes and gateway application use timestamps as nonces and guarantee that different messages use different nonces so that security is not compromised.
If the gateway does not include logic to discard packets with old timestamps relative to its own clock for some reason, a replay attack can be sent to... |
I am trying to achieve AWS KMS envelope encryption on both iOS and Android. From the KMS API I get a 256 bit data key in both plaintext and encrypted forms (encrypted by a master key held only on KMS HSMs).
Right now, I am using iOS CommonCrypto and Android's built-in Cryptography library to encrypt sensitive data fiel... |
I have read papers [1], [2] that have presented techniques on extracting symmetric encryption keys from memory during the process of encryption. There are tools [3] that can extract AES keys from memory.
These techniques look for round keys in the memory using a sliding window approach. However, I have only seen them i... |
I have a list of the random values (each 65 bytes long). One of the items is a private key which is used to sign the data:
Private key = KeyFactory.getInstance("EC").generatePrivate(
new ECPrivateKeySpec(new BigInteger(<ONE OF THE ITEM FROM THE LIST>), ECNamedCurveTable.getParameterSpec("SECP521R1"))
);
Signature si... |
Examining different implementations of encryption / decryption with cipher on Node.js, I paid attention that some implementations use hex encoding:
let encrypted = cipher.update(value, "utf8", "hex");
while other prefer base64:
let encrypted = cipher.update(value, "utf8", "base64");
Questions:
Does encoding choice ... |
I have on more than one instance come across statements which suggest that zero-knowledge proofs are not practical. One example is: "Our theoretical constructions use zero-knowledge proofs, and therefore they do not suggest a practical way of implementing a pseudonym system." from the paper Pseudonym Systems.
What is t... |
In question about associative pseudo-random permutation the definition uses:
$f(k_1, f(k_2, m)) = f(f(k_1, k_2), m)$
What is defined by that? No luck with google so far.
As far as I know a permutation is defined by item number at a certain index. If $f$ is a table the item number count would be higher than the number o... |
I'm studying Differential-Linear Cryptanalysis, and I'm trying to understand the context from the article Enhancing Differential-Linear Cryptanalysis by Eli Biham et al. There are some difficult points.
This is the distinguisher based on differential-linear cryptanalysis:
And this is the article I'm reading:
Q1) [No... |
Am implementing x25519 (in 64 bit and 512 bit assembly) following the specifications in RFC 7748 (and its errata list !).
Need two clarifications please.
The private key is randomly generated 32 byte string with MSB set to 0 and MSB-1 set to 1, and, last 3 bits set to zero. Now, once a random 256 key has been generate... |
Basic Station-to-Station protocol which authenticates Bob and Alice if they safely shared their long-term asymmetric public keys.
Alice sends Bob her public key $A_K$
Bob receives $A_K$ and computes the shared secret key $K$
Bob signs with his long-term key $S_B(\mathit{B_K, A_K})$ and encrypts $E(S_B(B_K,A_K), K)$ u... |
I understand that when you are using RNS you need a co-prime moduli-set e.g. ${\{m_1, m_2, m_3\}}$, and the dynamic range is the product of each modulus in that set $M = m_1.m_2.m_3$. Also it's advantageous to select modulus values that are generalized mersenne numbers, so that operations in RNS are easier. And when yo... |
In their press release a company called Crown Sterling describes they are working a paper that
includes four different geometric and arithmetic methods for public key (semiprime) factorization and one of the methods titled, “The Reciprocal Factoring Method” includes an analysis of reciprocal values of public keys and ... |
AES-CTR is nice for its parallelizability and simplicity but if you duplicate an IV you reveal plaintext.
Chaining modes like CFB and CBC don't have that problem per se but they are not parallelizable. (CBC-type modes have padding issues too but that's a separate problem.)
Naive ECB mode is not secure because it reveal... |
Both in terms of statistical analysis (mean/variance, histograms, contingency tables, etc) and machine learning data sets. The question has also been asked here.
|
I need an advice:
I found a paper describing an authentication exchange using a PSK done in this way:
A ---> B
"A" and "B" have a common PSK.
"A" extracts a random number and then send 2 values to "B"
Value1: hash( "TAG" XOR "PSK|RANDOM NUMBER" )
Value2: "RANDOM NUMBER" XOR "PSK"
So, V1 is a hash on an ... |
Bob wants to generate four thousand English letters for a proper one-time pad without resorting to hand-thrown dice, despite the advantages. Rolling dice would be too slow and tiresome.
Bob does not trust commercially available TRNG software, and he wants to oversee the process. Nevertheless, he still wants to use a co... |
I am using OpenSSL 1.1.1 to implement a TLS 1.3 communication module so I tried to learn how data integrity and authentication is ensured. I read a lot about AEAD, GCM, CBC, Poly1305, EtM, MtE and E&M to the point that I know what they are, but I do not know how they are related to each other. My Questions are
I know ... |
I am reading an introductory paper on multi-party computation (MPC), and it makes a distinction between outsourced computation and MPC.
In an outsourced computation, one party owns the data and wants to be
able to obtain the result of computation on that data. The second
party receives and stores the data in an en... |
(I am not a cryptography expert; I do write software)
I am working with some youth (ages 11-13) and wanted to explore for an hour or so some basic cryptography. Doing symmetric ciphers is pretty straightforward. It's easy to explain the various "two key" metaphors of asymmetric encryption, but I'm finding it hard to fi... |
I need a SHA3-255 or 511. What if I simply truncate a standard SHA3-256 or 512? Apart from the doubled probability of hash collision, are there any other things I should be aware of? I could also truncate one byte instead of one bit, if useful.
What I need is being able to store something different than the hash, in th... |
What are the best practices for IV generation for AES and other algorithms?
Is RNG enough?
What if I cannot use RNG and need to use a variable that is related to some characteristic of the encrypted message? For example, file number or ObjectGUID? Will encryption of the IV do the job?
If encryption of the IV is a solu... |
Wikipedia article on Montgomery modular multiplication contains the following statement:
Many operations of interest modulo $N$ can be expressed equally well in Montgomery form. Addition, subtraction, negation, comparison for equality, multiplication by an integer not in Montgomery form, and greatest common divisors w... |
I'm using a bcryptjs to generate a computationally slow hash function for storing passwords:
BCRYPT.hash(plainTextPassword, HASH_ROUNDS_NUM);
Now I want to add a pepper before a hash is calculated:
BCRYPT.hash(pepperedPassword, HASH_ROUNDS_NUM);
where pepperedPassword = plainTextPassword + PEPPER;
Questions:
Should ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.