instruction stringlengths 32 27.2k |
|---|
Like several previous askers, I seem to have made a mistake in my RSA calculation, but despite going back over it three times, I cannot spot it.
I picked 1000003 and 6000011 as my primes, p and q.
n = 1000003 * 6000011 = 6000029000033
z = φ(n) = (1000003 - 1) * (6000011 - 1) = 6000022000020
e = 17 (arbitrary pick of sm... |
Few homomorphic encryption schemes like Paillier , Ring-LWE support homomorphic multiplication operation by a scalar apart from additive homomorphic property.
Loosely they could be defined as below
$ Additive : Dec(Enc(a)+Enc(b)) = (a+b) $
and
$ MultiByScalar: Dec(Enc(a)\times b) = a \times b $
Is this any class of h... |
Last week I came upon this problem in my h.w.:
Let $OT^m$ denote 1-out-of-2 oblivious transfer of $m$ bit inputs.
Let $RandOT^m$ denote the following primitive:
The sender’s input consists of two m-bit strings, $x_0, x_1$.
The receiver has no input.
At the end of the protocol the receiver learns $(b,x_b)$, for a rand... |
Why do we use hex representation as default for the output of a hash function's result?
For example, the SHA-256 hash function: the output of SHA-256 in hex representation uses 64 characters, while using Base64 on the raw output produces 44 characters.
Demo:
<?php
$password = "password";
$sha256 = hash('sha256',$passwo... |
If some plaintext encrypted twice with the same AES function (CBC-mode), same IV and same key, is it possible to retrieve either the key or the plaintext?
|
Are there universal, consensus definitions for the following terms?
Cryptographically secure pseudo-random number generator ("CSPRNG")
Deterministic random bit generator ("DRBG")
Stream cipher
This is primarily a question about the terminology rather than the concepts (although I do not master the concepts by any mea... |
RC4 and GOST are two major ciphers (defined as being widely used to encrypt large amounts of data) that fell to cryptanalysis (relatively) suddenly. The first becoming totally broken and the second fell from $2^{256}$ bit security to $2^{99.5}$ bit security, weaker than AES-128.
Have any other modern and widely used c... |
How much is GCM weakened by using the same MAC key $H = E_K(0^*)$ for all messages that use the same key (which is what GCM actually does) instead of using $E_K(N||0_{32})$ (which is different for each message)?
|
What is the strength of $H(k \| H(m))$ compared to HMAC? Compared to $H(m \| k)$? What is the strength in bits of a given key/output size?
|
I was wondering a couple of days ago whether I could reverse the normal encryption order to produce a good AES based cipher variant. The method is as follows:
Two users, Alice and Bob, each have a copy of a shared key they want to use for AES. They each also have one shared seed to use for the CSPRNG. For Alice to tal... |
I want to create 2 Bilinear Pairing $e_1$,$e_2$ such that
$$e_1:G_0 \times G_0 \rightarrow G_1$$
$$e_2:G_1 \times G_1 \rightarrow G_T$$
and use this to encrypt a message $M$ in the form $$M e_2(e_1(g,g),e_1(g,g))^{xy}$$ To decrypt the message, first one has to retrieve $e_1(g,g)^{x}$ and $e_1(g,g)^{y}$ using linear s... |
I have to roll database access keys often, but it's important to know which key each system is using in order to avoid unavailability. I want the systems to report that without exposing the key itself, of course.
I'm using randomly-generated 512-bit keys, and from each key I'm planning to make a 32-bit hash. I only nee... |
Suppose triple DES is performed by choosing two keys $K_1$ and $K_2$ and computing $C = T (T (T (L, K_1), K_2), K_2)$. How to attack this modified version with a meet-in-the-middle attack, in which the attacker knows at least one $(L,C)$ pair?
|
Consider the following simplification of DES: a plaintext message block of $2n$ bits of length is divided into two blocks of length $n$ (left half $L_0$ and right half $L_1$). In other words, the input to the algorithm is $L_0 \mathbin{\|}L_1$, where $\mathbin{\|}$ denotes concatenation. The same key $K$ of $n$ bits i... |
If the order of elliptic group is prime then every point is a generator of that group.
I tested the above statement on some elliptic curves and found it true.
Does that really work on all curves?
Is there any lemma or theorem which states that?
|
I see very often proofs of security for asymmetric crypto algorithms, for instance, using reductions to known hard problems, or game based proofs...
In the field of protocols (like authentication) it happens too, for instance proofs using formal models...
But what about the symmetric crypto? More specifically, the bloc... |
This seems odd to me, because there are a lot of resources out there saying that the initializer values of SHA-512 and SHA-384 are the first 64 bits of the fractional parts of the square roots of prime numbers. For SHA-256 and SHA-224, the 32 LSBs or MSBs of those values are used.
But this question came into my mind th... |
I am implementing TLS 1.2 and using ECDHE_RSA_AES_128_GCM_SHA256 cipher suit.
According to RFC 5246 finished messages have {verify_data[verify_data_length]} and verify_data = PRF(master_secret, finished_label, hash(handshake_messages)
Some people said client finished contain Authentication tag and nonce along whit veri... |
I'm currently reading about Yao' Millionaire Problem: http://research.cs.wisc.edu/areas/sec/yao1982-ocr.pdf
Alice and Bob want to know which of them is richer.
Let $j \in \{1, \cdots 10\}$ be Bobs fortune, and $i$ Alice's.
They share a public-private key pair where $E_A$ is the encryption with Alice's public key and $... |
I've implemented both the Salsa20 and Rabbit ciphers in C#. My implementation is for academic purposes and I've tested both of them against the test vectors. I implemented a system that encrypts a file twice, once with each form of encryption. I want to find out what kind of analysis I can perform to test their various... |
Is there any good paper or research carried out till now that a data is encrypted by a single key or onwer(user) and their are 2 or more decryption keys. One key can decrypt the entire data. Other keys decrypt partial data or a portion of data. A person having no key cannot decrypt the data but those having keys can fu... |
If I want to generate a few one-time pads, is it OK to just read required number of bytes from /dev/urandom without weakening information-theoretical security?
|
I'm currently trying to convert a 5-bit sbox (the one from this cipher: http://primates.ae/wp-content/uploads/primatesv1.02.pdf) to its bit-sliced format (i.e. to a boolean network).
Most papers only address techniques for converting up to 4-bit s-boxes into their bitsliced format.
I have done some work trying to brut... |
I will start with an example. Some beacon like estimote Beacons use something called secure ID. The ID transmitted by the beacon change every 10 minutes autonomously without contacting the server. When the new ID are sent to the server, this one can identify the beacon generating the ID.
This is exactly what I want to ... |
Are there randomized almost universal hashes that are fast for extremely short messages (usually <10 bytes)?
Edit: This is for hash tables, so it only needs to be hard enough to break to make the HashDOS attack not worthwhile. I am specifically looking for a solution for LuaJIT. Since Lua interns all strings, this ne... |
symmetric key cipher (block or stream cipher) providing partial decryption of data at some points. Although the entire data has not been decrypted, the data decrypted to that specific point should be viewed or accessed.
The partial decryption keys can be inherited form the main symmetric key to do partial decryptions ... |
Given two points $P$ and $Q = \sum_{i=1}^{n} x_i.P$ over $E_p(a, b)$ for $x_1,x_2,...,x_n \in \mathbb F_p$. The Elliptic Curve Factorization Problem (ECFP) is to find the points $x_1.P,x_2.P,...,x_n.P$
Is ECFP harder than ECDLP ? Can anyone provide me the proof ?
|
Mr. Craig S. Wright might be Satoshi Nakamoto - the inventor of bitcoin. He is currently proving the case.
But how is the base64 encoded proof, that is published by himself on his blog post constructed? Is it random or some sort of collision attack?
My following PHP code "proves" that the signature is valid. It takes t... |
Is there a pratical application to PRNG that generates a sequence which is not a binary one? A ternary, quaternary sequence, for instance. If so, how can we test this? Is there any alternative test suite, like NIST test suite in order to test the randomness for non-binary sequences? For example, what if I generate a se... |
As far as I understand ECDSA keys are smaller than RSA because all of the value of the ECDSA (up to a high number) are valid private keys.
Is there any method of compressing RSA keys, based on some form of description of the key?
e.g. This is the $M^{\text{th}}$ possible value of $n$, given that $e = E$ and $A \leq n <... |
I am trying to prove that the following MAC is insecure, but I don't know how to exploit the properties of the pseudorandom function $F$ involved:
Gen generates a uniform $k \in \{0, 1\}^n$.
To authenticate a message $m_1 || m_2$ with $|m_1| = |m_2| = n$, compute the tag $F_k(m_1)||F_k(F_k(m_2))$.
Any help?
|
Hypothesis: We define the messages on a field $\mathtt{F}_p$, where $p$ is a large prime number.
I am considering a dynamic outsourced private data scenario.
Assume we have 3 messages: $m_1=2, m_2=4$ and $m_3=77$.
We encrypt them using FHE, so we would have: $E(m_1), E(m_2)$ and $E(m_3)$.
We send the three cipherte... |
The limitations are:
it should be a function.
passphrase is so weak, that if hash of it is known (or big part of hash), then it can be brute forced.
I want to get N passwords from one passphrase. Lets imagine, that N hackers have web sites with login pages, and I want to use my N passwords as passwords for accounts ... |
We have the following matrix:
$$\begin{pmatrix}0&1&1&1\\
1&0&1&1\\
1&1&0&1\\
1&1&1&0\end{pmatrix}$$
What is the branch number?
Is this a MDS marix?
|
I'm designing the security for a smartphone app that can be used to make car reservations.
Clients have to register them with their driver's licence through the application and can then book a car.
Is it a good practice to hardcode the server's public key in the application and then encipher a secret using this public ... |
I've designed the following protocol to send the client's public key to the server. Initially, the client knows server's public key, but the server does not know the client's public key.
client draws a random AES key
client enciphers the AES key using the server's RSA public key and sends the result
server receives th... |
For every find in password that cracks someone's account, does that particular password have a higher probability of cracking someone else's account more than a brute force dictionary choice?
How novel are people's password choices in relation to other people's?
Curious if there are papers about this. There's probably ... |
I'm very new to cryptography, and I need help understanding the security claims made in Aumasson and Bernstein's paper on the SipHash. In particular, I'm trying to understand the following statement at the end of section 3 (p. 6):
We comment that SipHash is not meant to be, and (obviously) is not, collision-resistant... |
When generating RSA keys in the original RSA paper it is stated:
to gain additional protection against sophisticated factoring algorithms, p and q should differ in length by a few digits
Why is this? How many is "a few digits"? And how important is this?
|
I need help with a practice problem for an upcoming test. I've learned the answer to the problem is "well done", but don't know how to get there. Any help is greatly appreciated.
Suppose that the RSA modulus of $n := 42313421$ used with an encryption exponent of $2015$ produces the pair $(27285537, 25251845)$ of ciphe... |
Correct me if I am wrong, but PKCS8 is format to store private key info. It could be binary-enoded (DER) or Base64 encoded (PEM).
man ssh-config
-m key_format
Specify a key format for the -i (import) or -e (export) conver‐
sion options. The supported key formats are: “RFC4716” (RFC
... |
I have an encryption routine that works very well in VBA. But now I need to program the decryption routine, and I'm stuck. For encryption I'm using HMACSHA1 and transferring the encrypted byte to base 64. I can decode the base 64 and get the same byte array back, but any suggestion on how to use the HMACSHA1 to decrypt... |
In the Fortuna CSPRNG, can I use ChaCha20 instead of a block cipher and Blake2b instead of double SHA256, and still retain security?
My hypothesis is "yes" because:
The block cipher's only use is in CTR mode (i.e. as a stream cipher). ChaCha20 is a PRF used in CTR mode. In fact, I think this should increase security... |
I have hard time finding introductory book talking about details of secure multiple party computation. Is there any recommendations? Thanks for the help.
Hope this is not off topic.
|
Something about encryption and hashing has always bothered me.
Given a cryptographically secure hash function $H$, I can produce an arbitrarily long key from any seed $s$ by recursively applying $H$ to the seed $(s, H(s), H(H(s)), ...)$.
Then I can XOR the resulting array with any plaintext $x$ to produce my ciphertext... |
Is anyone aware of an algorithm/method that allows me to validate just a few letters (or other characters) from a password. For example, the application asks for the 2nd, 3rd, 6th and 9th letters from the password. Which letters are requested is determined randomly.
I really, really don't want to store passwords in pla... |
Are there known attacks on AES that uses a 16-bit key?
Assuming the data can be 95MB size, and that I can request the same data over and over.
For example, can someone explain to me how this code vulnerable? I know my around C, but can’t seems to find anything here. Usual CRIME attack won’t work.
#include <string.h>
#d... |
If I understand correctly SHA-3 (Keccak) is resistant against more attacks than SHA-2. This would make it possible - again if I understand correctly - to use SHA-3 with a simpler scheme than HMAC.
Would there still be a reason to use the HMAC construction with SHA-3? Would it be a better idea to simply use $H(C(k, M))$... |
In BB84 protocol, when Alice and Bob make key distribution, what is the private thing?
They select randomly bases and then make a measurement according to these bases. Used bases are private? I mean that does Eve know which basis was used at each position? If Eve dont know these bases, then How can Alice and Bod share... |
I'm reading about bit-slicing techniques, and one thing about it caught my mind.
The strength with bit sliced implementations are (apart from that they are fast) that they are running in constant time. This outrules side-channel attacks based on timings.
Now, my question is:
How can ciphers such as AES run in constan... |
I have solved till here .....
$$n=p*q$$
$$n=5*11$$
$$\varphi(n)=(p-1)*(q-1)=4*10=40$$
Now, how to find $e$, when $d$ is given as $27$ and message for encryption is $\text{abcdefghij}$.
We have to take $a=1, b=2, c=3$ and so on.
|
So in the news this week, IBM have created a universal quantum computer with 5 fully functional qubits. Logic and Moore's law dictates they will be able to scale this up to a lot more qubits within a few years. With Shor's algorithm, elliptic curve cryptography will likely be the first to fall as it has lower key lengt... |
My understanding of Yao's Garbled Circuit (based mostly on this summary) is as follows:
Alice creates a garbled circuit based on the function f to be computed. She then hard-codes her input into the circuit and rearranges the gates in such a way that Bob will not be able to figure out what the circuit does. She then a... |
I have a question for a course I am doing. In an RSA question, it asks "Is it possible to select $e$ in such a way that it coincides with the corresponding private key $d$? If it is possible, provide a value for such an $e$.
So, this is only part of the question (last part really).
$$n = 22499$$
$$\varphi(n) = 22200$$
... |
I know for proving a scheme is not IND-CPA or not IND-CCA you can construct an Adversary which has an unfair advantage in an experiment/game, but how would you prove a scheme is IND-CPA or IND-CCA?
|
Does there exist a protocol $\pi$ for some functionality $F$ which is information theoretically secure protocol that is not cryptographically secure for some threshold number of corrupt parties? Intuitively, such a protocol cannot exist, because if a protocol is not secure in the presence of a poly time adversary, then... |
What is the noise in homomorphic encryption schemes? (or where does the noise come from, I see that its inbuilt in the scheme and is not a side channel or disturbance noise)
Is it also due to the noise that HE is a probabilistic scheme ?
|
Can someone confirm that SSLv2, SSLv3, and TLS have the same Handshake process (ClientHello/ServerHello, ..., ClientKeyExchange ...)?
If not, can you tell me the main differences between theses three protocols?
I am asking this because, as you can see in the image below, I can see ClientMasterKey (SSLv2) instead of Cli... |
In order to get the session key used in TLS communication, an attacker must capture X TLS handshakes based on RSA key encryption, and switch to a server supporting SSLv2 protocol, and sharing the same private key.
The same RSA key lenght is used for encryption between SSLv2 server / TLS 1.2 server in order to use the a... |
I have the task to calculate the private key from the given public key and have the hint that the secret exponent lies in the range from $-2^{31} < e < 2^{31}$.
To find the exponent I calculate a public key and compare it to the given key.
$$k_{pub} = 2^{e} \bmod {prime}$$ I start with $e = -2^{31}$ and then iterate m... |
We have a $PRP : \{0,1\}^{3n} \rightarrow \{0,1\}^{3n}$ and encryption scheme constructed from this $PRP$.
$E_k(x\|r\|0^n)$, where $r$ is randomly chosen from $\{0,1\}^n$ and $0^n$ is a block of zeros with length equal to $n$.
To decrypt $y \in \{0,1\}^{3n}$, we compute $x\|r\|w = E_k^{-1}(y)$.
If $w \neq 0^n$ then ... |
Say I have a simple hash function where $x$ is a sequence of integers:
$$h(x)=(a_1\cdot x_1+...+ a_n\cdot x_n) \bmod N=\sum_i a_i\cdot x_i \bmod N$$
where $a_1,a_2,a_3,...,a_n$ is the coefficient known to the attacker,
size of $x$ can be anything smaller than $N$.
How to find 2 different inputs that hashes to the same... |
I'm looking for a standard way of encrypting and signing a message using RSA and AES. I understand that in pseudo-code the actions taking place are like this:
Alice's actions for sending a secret signed message to Bob:
AES = random()
message' = encrypt(message, AES)
AES' = encrypt(AES, Bob's public RSA)
messa... |
I'm just getting used to SIP for my first time using Linphone. Which encryption is better and why? My Settings > Network > Media Encryption has the options of SRTP, ZRTP, and DTLS.
|
I asked a question about whether the circuit structure for Yao's garbled circuit needs to be rearranged. I understand from Yehuda Lindell's response that the circuit structure itself does not need to be changed or garbled, only the gate ciphertexts need to be garbled.
New question: does this mean it is safe for Bob to ... |
Say I have a simple hash function where $x$ is a sequence of integers:
$$h(x)=(a_1\cdot x_1+...+ a_n\cdot x_n) \bmod N=\sum_i a_i\cdot x_i \bmod N$$
where $a_1,a_2,a_3,...,a_n$ is the coefficient known.
n can be any number less than 256.
How to find 2 different inputs that hashes to 0 in particular?
I guess I understan... |
It's hard to say exact QC specs, but let's assume we have decent a quantum computer using Grover's algorithm that is able to half AES-128 keyspace to that of AES-64.
How long will a bruteforce attack take on a AES-64 protected key? What about AES-128 or AES-256? Also, would we be able to increase to AES-512 and still m... |
How can I show, that RSA with OAEP is IND-CPA secure by using G,H one way function?
|
I want to derive a key a number of times for a deterministic scenario, where I can get n keys from a single one.
The logic looks something like this:
masterKey = random 128-bit
For i from 0 to n:
let key[i] = CMAC(masterKey, i)
Is this a proper way to generate a number of keys or does this have a flaw?
|
Suppose Alice publishes a book with a public key in it, and later wants to prove that she wrote the book. She could sign challenge messages with her private key, and others could verify those signed messages. Alice is proving she knows a private key without revealing anything about it.
Is this an example of an interact... |
Suppose Alive and Bob have shares of two polynomials $P,Q$, say, Alice knows $P_A,Q_A$, Bob knows $P_B,Q_B$ s.t. $P=P_A+P_B$ and $Q=Q_A+Q_B$. They perform some operation $f$ over the shared values, to obtain shares of $f(P,Q)$.
If they reveal the shares of $f(P,Q)$, will this give hints on their individual shares of $P... |
Suppose a common message ($M$) is XOR'ed with two different keys $K_1,K_2$ producing two ciphertexts $C_1,C_2$. Thus,
$$M \oplus K_1 = C_1\\
M \oplus K_2 = C_2$$
On observing $C_1$ and $C_2$, an adversary can obtain the value of $C_1 \oplus C_2 = K_1 \oplus K_2$. Is this scheme semantically secure? Note that $|K_1|=|K_... |
According to this Matasano Crypto challenge, the NIST "likes" the following prime modulus, which appears to be expressed in hexadecimal:
ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5c... |
Let $p$ be a public prime of $n$ bits. Define the sequence $x_i=z_{i-1}^e \bmod p$, where $z_i$ is the $k$ high-order bits of $x_i$, and $r_i$ the remaining $n-k$ bits of $x_i$ (thus $z_i=\Big\lfloor\frac{x_i}{2^{n-k}}\Big\rfloor$ and $r_i=x_i\bmod2^{n-k}$).
Suppose $k>\max(2n/e, s)$, for some security parameter $s$ an... |
So I've heard that MD5 is broken because it's possible to engineer collisions. So instead we should use, say, SHA256. The problem which SHA256 digests is that they are long. So I've come up with this:
function mdsha( input ) { return md5( sha256( input ) ); }
So I can retain MD5 digest lengths and avoid malicious coll... |
I see often in literature related to cryptographic protocols that MACs (Message Authentication Codes) are not included in protocol definitions.
For example:
A -> S: {TA, B}KAS
S -> A: {TS, KAB, B}KAS
S -> B: {T'S, KAB, A}KBS
Shouldn't it be defined as follows ? (Encrypt-then-MAC + using second key for MACs)
A -> S: {T... |
Oblivious Ram (ORAM) is a cryptographic technique that is used for secure DB querying without leakage on the access patterns. There are several schemes for ORAM, amongst the most popular ones, there is Path ORAM. However, and as far as I understand it, ORAM is tied to a client/server(s) configuration, in other words, ... |
I am doing practice problems for my upcoming final exam, and am having trouble with this RSA encryption problem. If any one could check to see if i did these correctly, it would be greatly appreciated.
For (a) I got $\mathbb{Z}^*_8 = \{1,2,3,4,5,6,7\}$,
(b) i got $3*3 = 1 \text{ mod } 8 = 3^{-1} = 3$
(c) this one i a... |
Fernet is a described as a "high level symmetric encryption recipe" (source) that seems to be the default high level encryption scheme in the cryptography python library. The construction is described in full here, it basically takes a message $m$ and produces a token as follows:
Encrypt $m$ via AES-CBC i.e. $IV \gets... |
I am not sure whether the title is proper or not, but this question comes to my mind when I was reading $k-n$ oblivious transfers.
In a $k-n$ oblivious transfer (OT) protocol, a party A has $n$ messages and another party B wants to retrieve $k$ of them. There are two basic requirements for OT:
A should not know which ... |
Assume we have a protocol in which a party receives an encrypted random polynomial. The polynomial is encrypted using his public key.
We want to construct a simulator for this party (so this party is corrupted). We want to show that in both models (i.e. real and ideal) it receives the random polynomial so they are ind... |
Twofish was an AES candidate and it uses $4 \times 4$ Matrix as MDS followed by a PHT.
The Branch Number of MDS and PHT is 5 and 2 Respectively.
from formula
$Branch~Number = Minimum~of~[HammingWeight(Input) + HammingWeight(Output)]$
Now if i want to represent the MDS and PHT with a black box operation with a branch nu... |
I have read this article, but I can't understand why after decrypting ServerVerify, the client needs to send the export grade PMS again...
When exploiting these flaws the attacker will send its candidate
cipher-text to the server and receive the “ServerVerify” message. The
attacker will then perform a brute-force ... |
The only way I see it possible to do the matrix-multiplication in the MixColumns operation of AES is by shifting the bits in the multiplied number, and then reduce with the polynomial if needed.
This can be done in constant time for a bitsliced implementation as shown below in C-like pseudo-code (the example is for mu... |
I am implementing DTLS 1.2 and using ECDHE_RSA_AES_128_GCM_SHA256 cipher suit.
Below is my client finished message
Can anyone explain this message?
How many bytes for verify data?
Is there authentication tag if yes then how many bytes for authentication tag?
And how many bytes for nonce?
And is all the message encrypt... |
From this paper, there are two conditions for a successful DPA attack:
i) there exists an intermediate variable in the implementation that is correlated with the power consumption and
ii) this variable exclusively depends on the plaintext (or ciphertext) and a small part of the key.
My question is that, on the condit... |
I have this scenario:
The same plain text (that is part of an unkown bigger message) is being ecrypted multiple times using AES 128 CTR with a random key, the key is being transfered encrypted using RSA public key.
For example:
(www.myBlog.com, some_random_text)
The location and the content of the plain text doesnt cha... |
Evaluate $17^{93} \mod 23$
\begin{align}e &= 93\\
&= 1 × 2^6 + 0 × 2^5 + 1 × 2^4+ 1 × 2^3 + 1 × 2^2 + 0 × 2^1 + 1 × 2^0\\
&= |\ 1011101\ |_2
\end{align}
Then we have:
\begin{align}17^{93} \mod 23 &= (((((((17^1 )^2 17^0 )^2 17^1 )^2 17^1 )^2 17^1 )^2 17^0 )^2 17^1\\
&= (((17^4 17)^2 17)^2 17)^4 17 \text{ $\leftarro... |
I want to create a Server S1, that publish a different value every 10 minutes on the internet. The value looks something like f7826da6-4fa2-4e98-8024-bc5b71e0893e.
I want a create another server, S2 able to verify at anytime if a value is generated by S1 or not.
Everyone on the internet can see and collect the values ... |
I'm implementing an SRP-6a login system. What security checks do I need to do? Note that the modulus is sent to the client at algorithm startup.
Here is the list I have so far. I'm using the Wikipedia names for the variables.
Verify that $N$ is an appropriate size.
Verify that $N$ is prime.
Verify that $q = \frac{N... |
This may be very easy thing, but i am just unable to understand this.
I have a string "Hi", and in HEXA its written like this 0111 0010 0111 0011
Can someone please help me in understanding this conversion.
How do they convert string into binaries
Thanks
|
$G$ is a secure PRG in range $\{0,1\}^n\rightarrow\{0,1\}^{n+1}$.
Let us define $G'(S)=G(S\oplus G(S)_{1,...,n})$, s.t. $G(S)_{1,...,n}$ is the first n bits of $G(S)$.
Is $G'(S)$ a secure PRG?
Intuition
I'd like to say that since $G(S)$ is a secure PRG then it's first n bits should also be pseudo random, else if they w... |
The Miller-Rabin primality test is an algorithm for checking if number is a prime. What would be best way to test implementation of such algorithm (or any primality test in general)?
|
What would be a good way to go about attacking a Quagmire 3 cipher?
I understand that it is polyalphabetic with a key and an indicator. I have started by taking the cipher text, taking every n-th letter and putting that in a string, computing the index of coincidence for the n strings I get and then averaging that. I w... |
I have $N$ users, all of them creating a group digital signature. Also I have user $A$. How can I check if user a signed or not signet in this signature? Is it possible ? Are there other methods how I can check if user $A$ is one of the group $N$?
|
I am testing CTR mode on STM32 board. I want to know how the auto increment of counter happens and what is the method to follow if I have to increment the counter manually.
|
The Coursera course on Cryptography 1 has a section about Carter-Wegman MAC. Here is the image of slide:
Now my question is both $F$ and $S$ output $n$-bit strings. We XOR two $n$-bit strings and we should get an $n$-bit string as a result. But the slide says the output result is a $2n$-bit string. How is this possibl... |
There is RSA signature check which has following properties:
RSA modulus N which is 2048-bit
RSA public exponent equal 41 (0x29)
Genuine Signature uses EMSA-PKCS1-v1_5 padding of SHA1 hash, however the verifier only compares 20 least significant bytes which are the SHA1 hash. In order to trick verifier, forged signatu... |
My Problem
I want to serve sesible data for users as a webservice that is accessed by the user via the browser.
Restrictions:
I may not be able to technically acces the data of the user
Data is accessable for one or several users, number may change over time. Who has acces to the data is decided by one user for his d... |
In a 128-bits Feistel Cipher:
I need suggestions about two variations of the Round Function
Variation-1
$64$ bit input is divided into $8$ bytes
Byte $0,1,2,3$ are substituted with Sbox1
Byte $4,5,6,7$ are substituted with Sbox2.
Then a $8 \times 8$ Binary Matrix is applied on the 8 bytes from 8 rows (Matrix similar t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.