instruction stringlengths 33 27.2k |
|---|
I have imagined a way to break through any kind of censorship but since I don't have enough professional knowledge of cryptography I don't know whether it is feasible or not.
If there is a method that can only enables the recipient to know this message is for him, and when others catch this message they don't even know... |
If you have the cyclic group of integers modulo $p$, where $p$ is not a safe prime, as well as a generator $g$ with which for all factors $q$ of $(p-1)$,
$g^{(p-1)/q} \ne 1$,
This answer says that given $g$ and $g^x \bmod p$, we can determine $x \bmod q$ in $O(\sqrt{q})$ time.
What algorithm lets us do that?
|
The equation for the elliptic curve is $y^{2} = x^{3} + x$ and is defined over the field $F_{q}$ for some prime $q\equiv 3 \pmod 4$, and set $q=307$. Choose random generator $g=[182, 240]$. My question is that how do I construct a bilinear map $e$ and compute $g_{1} = e(g, g)$?
|
The tag wiki for sha-256 says, in part:
SHA-256 ... processes the input in 512-bit block and has a 256-bit output, for a 128-bit security level.
I'm not a cryptographer, just an interested amateur, but how does it follow that SHA-256 has only a 128-bit security level? (More generally about the whole SHA-2 and SHA-3 f... |
I have quite a big problem, because of a software implementation of TLS I had to adapt I had to create something which is now biting me.
It all comes down to this: I need to know the length of the plaintext when I want to decrypt it and the length of the ciphertext when I want to encrypt it. For the 2nd one I've made a... |
EDIT: Fixed for clarity of intention
I was reading "The FFX Mode of Operation for Format-Preserving Encryption" when I came across Figure 1 (see below). It's obvious why it's reversible (top-down then down-top) but it's not clear why it should strictly be bijective instead of not-injective or not-surjective? What rules... |
size_t decrypt(unsigned char *buffer, size_t buflen)
{
size_t i = 0, j = 0;
signed int seed = 7, temp = 0;
for( ; (temp = (signed int) buffer[i]) && i < buflen; ++i)
{
if (temp == 0x5C) continue;
if (temp >= 0x20)
{
temp -= seed;
if (temp < 0x20)
... |
Occasionally I hear people say that one-time pads are "useless" or even "broken".
"modern cryptography knows more security definitions, under some of
which the one-time pad is completely broken."
-- How do we know a cryptographic primitive won't fail suddenly?
...
One time pad: why is it useless in practice?
..... |
So I am curious about the security analysis of Marvin32, the randomized hash algorithm used in .NET (to prevent hash-table DoS). I found the source code here: marvin32.h, marvin32.c.
At first glance, the construction looks really similar to that of SipHash, but:
Marvin32: 1 round per block and 2 finalization rounds
Si... |
I just have gotten into cryptography and learned about the Vigenère block. I think it's a very good idea because, if used correctly, it is unbreakable. But the only downsite is, the key must be the same length as the message. Well, can't you just simply make the block 27x27 big by adding the space into it. That way you... |
A block cipher in counter mode creates a key stream by:
$$z_i = E_K(IV || i)$$
Where $IV$ is some chosen initialisation vector (with some length $l$ less that $n$ bits) and $i$ is the binary representation of the number $i$ in $n-l$ bits. The keystream is then $z_1 || z_2 || z_3 || \cdot \cdot \cdot$
How can we disting... |
What is the SHA-256 hash if the input is null, i.e. an empty bitstring? (Not the hash of 0 or "0".)
|
Recently Bi-clique Cryptanalysis allowed to obtain following results on full AES ES that claim to have
The first key recovery attack on the full AES-128 with computational
complexity $2^{126.1}$
The first key recovery attack on the full AES-192 with computational complexity $2^{189.7}$
The first key recovery attack on... |
I saw Martijn Grooten's talk on elliptic curves at BSides London this year, and it helped me understand how elliptic curve crypto works, especially in the case of Diffie-Hellman (ECDH). He also touched on the use of EC for random number generators (e.g. Dual_EC_DRBG) and why they can be flawed / backdoored.
This got me... |
I'm a beginner to ECC crypto programming. Can anyone explain to me the difference between using ECDH for shared key exchange and the use of ECIES by encrypting a shared key with the public key of the receiver?
I feel that ECIES could also provide me with secure key exchange as long as the private key is kept secret.
|
Say that one uses a known LFG (2 known lags $a$ & $b$, known inner state length $N$, known modulo $m$) to hide some text with a basic à la Vigenère cipher: $C_i=(P_i + {PRNG}_i) \bmod 26$.
Say that the adversary intercepts some ciphered text (not the LFG output),
could they use it to perform a correlation attack to ge... |
Prover is going to convince verifier that 2 objects are distinct, do you know any Arthur-Merlin protocol for this problem?
|
I haven't really seen what computational complexity class of decryption of AES is. Can anyone provide reference papers or answers here?
|
I am quite confused calculating the unicity distance and I was hoping that someone can clarify some things for me.
My main issue comes from somewhat a difference of the calculation given by our teacher and the one I find in wikipedia/other topics in here
as stated in this question / answer.
$U=\frac{H(k)}{D}$
With dis... |
I am using randomsound because I thought it would be a good idea to inject some additional entropy into the entropy pools of my linux machines (clearly those machines have a corresponding sound card).
(Un)fortunately, I am a quite paranoid person, and, therefore, I am reviewing the source of randomsound in the moment a... |
I was reading the Wikipedia article on Post Quantum Cryptography and was interested in opinions as to whether the Supersingular Elliptic Curve Isogeny Diffie-Hellman listed there would be a good Post Quantum replacement for Elliptic Curve Diffie-Hellman that is being implemented today?
|
I am wondering if there is a feasible way that, given a specific elliptic curve (such as secp256r1), I could create a keypair where the public key has a given $x$-coordinate. If it is not possible, is there a way to choose the most significant digits of that coordinate?
For example, is there a way to make a secp256r1 E... |
For some project, I need to store some short string in encrypted form. It would be ideal for the current purposes to encrypt it using itself.
# This would be the usual way:
result = AES_ENCRYPT(string, key)
# but I would like to do it this way:
result = AES_ENCRYPT(string, string)
The same string itself would be used... |
Assume we are given a small fixed number of LWE samples with secret $s$ and error $e$, where the error distribution is taken so that the LWE problem is hard.
My question: How can one further generate LWE samples (with the same secret $s$), given the LWE samples.
It was briefly noted in [Reg10] (Sec2. "Other implicatio... |
8 bit / byte would be perfect obviously.
head -c 1M /dev/urandom | ent
gives ~ 7.9998 bits per byte.
Now, if I have a physical entropy source, how much entropy is sufficent. E.g. my sound card produces 7.8 to 7.9 bits per byte for 1M raw data generated via randomsound.
My main question: Is this amount of entropy suffi... |
I've reading on GPG since yesterday and I have a doubt: the whole system of double key encryption does make sense but it looks to me like either way you are compromising something in terms of security.
If someone sends me an encrypted file using GPG and he/she wants to make sure that I'm the only one able to decrypt it... |
Is there any cryptographic algorithm immune to side channel attacks based on scan chain? In VLSI point of view.
|
Is it possible (how) to recover public (512 bit long) RSA key from multiple signatures having corresponding plain texts. Padding is not randomized.
I need it to verify any future message comming from the same source.
|
I'm reading Bernstein's RSA signatures and Rabin–Williams signatures: the state of the art. In section 6, Bernstein states:
Recall that Rabin’s system needed to try several values of r, on
average about 4 values, before finding a square H(r,m) modulo pq. The
Rabin–Williams system eliminates this problem by using t... |
Recently, Fujisaki and Okamoto provided a revised version of the Fujisaki-Okamoto transformation [1], a generic transformation for achieving IND-CCA2 security in the Random Oracle model. This new version is slightly different than the original [2] and the security proof does not define a knowledge extractor (the origin... |
I'm writing a C++ program to use the Kasiski method to crack the Vigenère cipher. I'm testing it with a bit of Shakespeare encrypted with the key ABCDEFGHIJKL. It can find the key length, (even when I changed it), but when I started using frequency analysis, the poem's frequency doesn't seem to fit with normal english;... |
I am looking for a zk framework that could be used for proving correct execution of programs written in C (or any other high level language) such as:
I know x s.t. SHA-256(x) = y (y is public, x is prover's private input)
or in pseude code:
void compute(_ *prover_input, _ *verifier_input, _ *output){
*output = ... |
It seems like the brain-dead simplest KDF would have a key-stretching structure that is not substantially different from $\text{hash}(S | P | S | P |\dots|S|P)$, where $S$ is a salt and $P$ is a password. Other protocols generally require lots of hashes-of-hashes-of-hashes; this one builds up one big string to hash. Th... |
I'm working on a zero knowledge proof system that uses ECC over $\mathbb{Z}_p$ (currently using NIST P-256 since mbed TLS doesn't support group operations on Curve25519, but the problem should be general). Part of this involves calculating the inverse of a group element. For some point $a=(x,y)$ I calculate
$$a^{-1}=\... |
I'm trying to determine the residue requirements of Rabin-Williams. An older copy of P1363's Public Key Cryptography states the following in Section 8.1.3.2 RW key pairs:
An RW public key consists of a modulus n, which is the product of two
odd positive prime integers $p$ and $q$, such that $p\not≡q\pmod8$, and an
... |
Assume that $h:\{0,1\}^* \rightarrow \{0,1\}^\lambda$ is a cryptologic hash function, $r$ is taken randomly from $\{0,1\}^\lambda$, $p$ is a low-entropy password and $p^*$ is a guess. Now we get $h(p) \oplus h(p^*) \oplus r$ and $h(r)$ but don't know $h(p)$ or $h(p^*)$.
Then there are two problems is a problem:
Can w... |
I'm using an older copy of P1363 Public Key Cryptography was used below. It may (or may not) reflect the current state of affairs.
P1363 has the following requirement in section 8.2.8 IFSP-RW, p. 45:
Output: The signature, which is an integer $s$ such that $0 ≤ s < n/2$
8.2.5 IFVP-RSA1 (p. 43) does not have the same ... |
I know the garbled circuit solution, but is there any more efficient method?
|
The SHA-2 hashes in FIPS 180 define $\Sigma$ and $\sigma$ bijections of words, with $\Sigma$ used in the round function, and $\sigma$ used in preparing 48 words of message schedule from 16 words of a message block. For example, in SHA-256 (using 32-bit words)
$$\begin{align*}
\Sigma_0^{\{256\}}(x)&=\operatorname{ROTR}^... |
I have written a program with the help of the bouncy castle for C# library.
I am monitoring the traffic which is send between the client and the server and found something (i find) strange. The client sends application data to the server using the following ciphersuite: TLS_PSK_WITH_AES_128_GCM_SHA256. The GCM nonce st... |
I know bit independence is good in SHA2 function output, but is it truly 100% secure? For example:
Y = SHA512(secretKeyNonce256bit)
A = first 32ytes / 256bits of Y, used as message encryption key
B = next 16bytes/128bits used as authentication HMAC key for message
C = next 16bytes/128bits used as access code. NON-SEC... |
I think we all know RSA. And of course we also know DJB (a.k.a. Daniel J. Bernstein).
Now some already have noticed that he has an opinion towards cryptographic questions.
In his 2008 paper ("RSA signatures and Rabin–Williams signatures:
the state of the art" by Bernstein) on state-of-the-art signature schemes he docu... |
I need to generate some session keys from a master key that was generated from an ECDH key exchange. The master key is 256 bits and I need 256 bit sessions keys.
Is it safe to use SHA256_HMAC with a counter as the HMAC input to get the session keys?
skey1 = SHA256_HMAC(master_key, 1);
skey2 = SHA256_HMAC(master_key... |
I'm working with an implementation that creates a blinding value for RW signatures with the following C++ code:
Integer r, rInv;
ModularArithmetic modn(m_n);
do {
// Do this in a loop for people using small numbers for testing
r.Randomize(rng, Integer::One() /*min*/, m_n - Integer::One() /*max*/);
rInv = m... |
Though I can get the basic idea of UC Framework, namely let the environment cannot distinguish the real protocol with the real adversary and the functionality with the simulator, I am still puzzled in details:
What's the principle to design the functionality, if it aims to a new scene that Canetti hasn't treated? Are ... |
I need to write a first program in one language that saves data in a text file, and write a second program in a second language to decrypt that file. The two languages in question don't include any crypto libraries, so I'm on my own.
Could someone recommend, point me to, or summarize a simple algorithm (pseudo code) th... |
I have been reading that DES is slow. Is it only slow in software or slow overall? Also, as far as Triple DES being slow is concerned, is double AES with two 128 bit keys slower than single AES with a 256 bit key?
|
Lately I've been studying cryptography and in the current course I'm taking we're reviewing statistical tests and how they can be used to determine if a pseudo-random generator is secure or not. Essentially, one of the requirements for a Pseudo-random generator to be secure is that the probability of guessing the next ... |
Are there any instances where a combination of industry standard encryption algorithms can weaken the overall encryption of the data?
As a Naive example using non-standard encryption algorithms, running ROT13 on textual data a second time would actually unencrypt the text.
|
I am unable to prove the following theorem:
If for a $1/(\log(n))$ fraction of the quadratic residues $q\pmod n$ one could find a square root of $q$, then one could factor $n$ in random polynomial time.
$n$ is the product of two large distinct primes.
|
I've run into this issue a couple of times in my career. I'll see if I can explain with an example (please ignore the fact that this is implausible in the real-world).
Suppose I sell computers, and I have account data on the person that purchased every computer I sell. I also install tracking software on every computer... |
I just recently concerned myself with cryptography due to Snowden's revelations and there are a few things I cannot really wrap my head around but maybe you can help me with that. I am not a mathematican or a programmer and most of the stuff I know about cryptography comes straigt from The Imitation Game, so pleas excu... |
I am using SpongyCastle for a project on android. I have used RSA to encrypt the data and then decrypt it in another activity, the keys are stored in the shared preferences.
I discovered a thing I cannot explain.
My keys are generated only once and stored for future use without being changed. On encrypting the same pla... |
I have a key pair, say $(d, Q)$. I send my public key $Q$ to 2 different people. I also get their public keys $Q_1$ and $Q_2$. Now I can derive 2 shared secrets, $d*Q_1$ and $d*Q_2$. The 2 other people can also derive secrets $d_1*Q$ and $d_2*Q$. Assuming all key pairs were generated from the same elliptic curve, is i... |
I need to find RSA private key $(d, N)$ knowing $(e, N)$. It's "own" RSA implementation. As i know
$p$ is random 70 bit number, then $q$ is $p-2^{10} < q < p+2^{10}$
$d$ is max 16 bit long with low number of ones in binary representation.
$e= 4223234360740816682261885795416553301541344119$
$N = 50747722912864592067740... |
I recently started learning cryptography. I have learned some basic stuff. I'm also started learning about pc security, so I was wondering how do hackers use cryptography for bypassing antivirus software? I don't have some deep understanding on how Antivirus software works but I know that every Antivirus has base of ... |
Let $G$ be a cyclic multiplicative group of order $n$. Let $g$ be a (public) generator of $G$.
The Diffie-Hellman (DH) problem asks: Given $g^x, g^y\in G$ for $x, y\in \mathbb{Z}^*_n$, to compute $g^{xy}\in G$.
Let $O$ be an oracle that works as follows: it takes as input $g^x\in G$ for any $x \in \mathbb{Z}^*_n$, it... |
Let $\mathsf{Exp}_{A,\Pi}(\lambda)$ be some indistinguishability experiment that finally outputs 1 if A outputs $b'$ that satisfies $b' = b$, otherwise 0. Then the textbooks often define the security like this:
If for all PPT adversary A, there exists a negligible function $\mathsf{negl}$ satisfies $\Pr[\mathsf{Exp}_... |
I have a tiny device that has a challenge-response authentication mechanism where the device signs 8 bytes of any data with it's internal 2048 bit RSA key.
I would like to be able to certify any data using this mechanism by using a number of challenge-response pairs securely chained together (using only 1 pair already ... |
i'm reading the article of Massey and Sain (here) and i cannot unserstand - what is "foreforward inversion"?
I mean
There is a description of circles in convolutional codes and a little bit description about catastrophic codes (i mean, codes that makes an infinite amount of errors on decoding if there was a couple of e... |
I was reading this wiki section on the countermeasures against replay attacks and it basically suggests that:
If Bob wants to confirm Alice's identity he can send a one-time token (I think it should be called a 'salt') to Alice which she appends to her password and hashes it before sending it back to Bob, who in turn ... |
Say I have a polynomial adversary $A$ that can distinguish with a non-negligible adventage between $x$ generated from a probability $X$ and $y$ generated from a probability $Y$.
Obviously, this implies that it is possible to either efficiently distinguish between $X$ and the uniform distribution, or between $Y$ and the... |
Imagine I want to send imaginary defcon levels to another party over the internet. I know there are good protocols for this like SSL, but lets say I only have a blackbox tool where I can input an AES key, and a plaintext. The output of the box is the encrypted plaintext with the input key.
If I send my encrypted defco... |
UMAC uses a key to choose a random hash function from a family of universal hash functions. The value of the hash function is always encrypted using yet another key, and the resulting ciphertext becomes the MAC code.
What would go wrong if I skipped the encryption step?
In case I have to skip the encryption step (but ... |
From NIST SP 800 - 90A from January 2012 (see http://csrc.nist.gov/publications/nistpubs/800-90A/SP800-90A.pdf), page 6:
For the purposes of this Recommendation, an n-bit string is said to have
full entropy if that bit string is estimated to contain at least
$(1-\epsilon) n$ bits of entropy, where $0 <= \epsilon... |
Are there any optimised implementations of the Supersingular Isogeny Key Exchange by Defeo, Jao, and Plut. It seems like this would be a great drop-in replacement for Diffie-Hellman in both OpenSSL and GPG. I'm wondering if that code is available or if someone is working on it.
|
This semester I am taking the course Cryptography. I will have a presentation about the topic "Voting Scheme".
I am preparing myself by reading from the book “Cryptography : an Introduction” by N.Smart and I came across some points at which I am facing some difficulties.
The part that I am reading is this:
The voting... |
I'm working with the elliptic curve $\mathcal{E} : y^2 = x^3 + 11x^2 + 17x + 25$ over $(\mathbb{Z}_{31},+,\cdot)$ and am trying to double $P=[2,7]$.
Following the instructions here, I'm doing the following:
$$s = \frac{3\cdot2^2+17}{2\cdot7} \equiv 29\cdot14^{-1} \equiv 29\cdot20 \equiv 22 \pmod{31}$$
$$x_R = s^2 - 4 =... |
I recently came across a project called rsyncrypto that sacrifices some security so that you can have rsync-friendly files. My understanding is that it works by generating a symmetric key for each file you're encrypting, and saving that symmetric key to a file. It then encrypts the file using that symmetric key, encryp... |
I am developing a software to encrypt/decrypt files/streams using symmetrical encryption algorithm. During encryption phase data wil be compressed and encrypted.
When decrypting data, I want to be able to check whether supplied password is correct. For that purpose encrypted file contains header (which I would like to ... |
I get a request from a client who encrypts the message with the wrong AES key. Is there a way for me to know what AES key the client actually used? I understand I may get the decrypted msg which is likely to be wrong, but from what I understand, the key itself cannot be retrieved from the request sent by the client.
In... |
I understand that RSA is great for 1-to-1 digital signature. In the group chat of N people, other than storing and maintaining N public keys, is there a simpler way of authenticating each and everyone in the room? Perhaps with just one public key per client?
|
When using symmetric encryption is it important to compress the data first?
I think that compression will make data look "more random" and therefore be more difficult to crack, but I am not sure if this is a requirement.
Could compression be necessary for some ciphers but not for others?
|
NOTE: Pardon my ignorance of encryption, I learned about these concepts today
Going to rephrase this question, but I think I already have fine answers provided. I need to have a block of data containing a message (user imputed) that is included in what I want to encrypt. I also need to have some means of authenticati... |
(Context: I'm auditing some code which I suspect to be insecure, but I'd
like to be able to quantify this.)
Suppose you have a 56-bit secret key ($secret), and suppose you have revealed the following information to untrusted parties:
$salt – An easily discovered string
$prefix – The first 32-bits from sha1($secret + $... |
I was reading about the Linear Feedback Shift Registers and I am confused about the technique to find the period of a primitive polynomial. Consider the polynomial $x^5 + x^2 + 1$. As this is a primitive polynomial, it should be a maximal period LFSR. Its period should be $2^5 - 1 = 31$. However, when I tried to genera... |
I think we're all aware of the "classical" Weierstrass (short?) elliptic curve equation: $y^2\equiv x^3 + ax +b \pmod p$. Well known examples of these curves include the NIST's and Brainpool ones.
Now there's also the "Montgomery" representation: $by^2\equiv x^3 + ax^2 + x \pmod p$ where the famous Curve25519 is an exa... |
From BSI-TR-03111 (PDF), on page 15:
The class number of the principal order belonging to the endomorphism ring of E SHOULD be at least 200.
This value commonly is referred to as $h$ in that publication.
I‘ve got two questions related to this:
What does $h$ mean/denote?
Why should it be 200 or larger?
|
I know that the algorithm used to generate the Brainpool curves and the NIST curves is published. The algorithm should be this one (RFC5639 Appendix A). From what it looks like it's rather slow to find secure parameters.
After some research I've also found "Efficient Algorithms for Generating Elliptic Curves over Finit... |
I read in a book that: let $f(K,R)$ is cryptographic transformation of $R$ using $K$, $K\{R\}$ means $R$ is encrypted using $K$ and $h\{R\}$ is the hash of $R$ and then the example follows.
I want to know what is difference between cryptographic transformation of $R$ and encryption of $R$ using the same key? Aren't the... |
I'm getting this strange result that SHA-512 is around 50% faster than SHA-256. I'm using .net's SHA512Managed and SHA256Managed classes. The code is similar to the one posted here but I'm referring to tests taking caching into account (from the second time reading the file onwards it seems that it's cached completely)... |
I know how standard HMAC(key,msg) function works, and I want to write a Delphi port of HMAC class that implements Update function. The problem is that I don't understand how this Update function works (for example of Update function, see SSL definition here: https://www.openssl.org/docs/crypto/hmac.html).
If I understa... |
I'd like to know if using the ECDH shared secret of a static EC Private Key with it's own corresponding static EC Public Key causes a problem / weakness.
(edit) not asking if it's ok to re-use the keys multiple times. Static EC Keys are known to be ok in this usage case.
Background:
In this environment, several agents... |
Suppose we have three parties, Alice, Bob, and Carol. Alice can receive messages from Bob and Carol individually, but can only send messages to both simultaneously. Additionally, Alice cannot tell if Bob and Carol can send/receive messages to/from each other. This is what Alice wants to figure out
Bob and Carol are alw... |
Here is a relevant question: With OpenSSL and ECDHE, how to show the actual curve being used?
Using
openssl s_client -msg -connect google.com:443 -cipher ECDHE-RSA-AES128-SHA
I got something like:
<<< TLS 1.2 Handshake [length 014d], ServerKeyExchange
0c 00 01 49 03 00 17 41 04 1b cf 0c 41 e4 3a b7 ...
I've gone thro... |
What does the acronym "CRT" stand for in the PKCS #1 specification? Does it stand for "Chinese Remainder Theorem"?
Thanks,
Pete
|
I'm trying to get my server to establish trust with a client. Neither is on the Internet, so there are no certificate authorities. The typical way to establish trust in my domain is for a client to "request a seed", the server provides a seed, and the client "provides a key", and the server "verifies the key". (In c... |
We have the voting protocol that is described here.
I am looking at the following exercise:
Determine how many dishonest tallying centres the protocol can cope with before the following properties no longer hold.
Only authorized voters will be able to vote.
No one will be able to vote more than once.
No stakehold... |
I have been studying data compression for a while. For educational purposes, after a lot of reading, I managed to create a software that performs encryption and authentication using AES256-GCM. However, I have now reached a point after which I cannot find a possible answer and this is confusing me.
My software allows t... |
Are we able to use order preserving encryption in asymmetric schemes, is this work efficiently. is this secure at any one of the situations
|
Edward curves were considered initially because they provide a unified formula for both doubling and addition, thus having inherent side-channel resistance. But a lot of work has been done recently involving construction of a different class of addition and doubling formula (e.g. differential addition formula, w-coordi... |
I'm configuring a PKI infrastructure with an offline root CA and several issuing CAs. Among other topics, I'm struggling to decide how the revokation of an Issuing CA certificate works.
My Root CA will issue CRL once a year, and as far as I know, a machine with a CRL cached won't download a new CRL until the current on... |
I want to send/receive messages with A (an peer) using TCP socket.
I want to encrypt messages using AES CBC.
Only I and A know a symmetric key K1 used in AES CBC, and K2 used in HMAC.
The size of each message is small( < 100 bytes).
Low latency is needed.
(verification per message is needed.)
Then, I want to verify i... |
I am using a Java JWT library jose4j.
There is a list of digital signatures algorithms which can be used.
HMAC using SHA-2
RSASSA-PKCS1-V1_5 Digital Signatures with with SHA-2
Elliptic Curve Digital Signatures (ECDSA) with SHA-2
RSASSA-PSS Digital Signatures with SHA-2
I tried to understand what the advantages/disadv... |
From my understanding both types of attack, collision and birthday, are based on the principle of two randomly/pseudo-randomly chosen plaintext to hash to the same value. I don't want to launch any biased supposition, but aren't they the same?
From Collision attack wikipedia article I learned that every cryptographic ... |
Here is the pseudocode for a routine I am designing:
encrypt(password, string):
nonce1 := generate_random_nonce()
nonce2 := generate_random_nonce()
key := derive_key(nonce1, password)
encrypted := cipher(nonce2, key, string)
return (nonce1 || nonce2 || encrypted || mac(key, encrypted))
I realized that an att... |
I have to find a solution to this problem: I have a network composed by 1 server and some client. The server has a couple of keys (public and private) and it shares a secret key with each client. My goal is to exchange a session key between the server and the clients.
I've evaluated some solutions, but I am unsure if m... |
I thought a problem and want to ask if there's a more elegant solution.
The scenario:
A company with a fileserver, which hosts encrypted documents.
The files need to be accessible by about a dozen employees.
Now the condition is, that each employee has different key material but all the employees can still access the f... |
Is it possible to use DES or 3DES over Galois Counter Mode (GCM) to provide authenticated encryption?
I haven't seen any implementation yet.
|
There are quite a few block cipher modes of operation that require 128 bits. There are also modes of operation where a higher block size than 128, e.g. a block size of 256 bit would even be practical.
Is there a generic method of combining two blocks together in such a way that two 64 bit blocks can be seen as one 128 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.