instruction stringlengths 32 27.2k |
|---|
I need your advice on following scheme of exchange protocol between remote lock and key. I'm planning to use following algorithm:
Key generates unique value that never repeats (in reality it's just counter that increments every time the button is pressed), let's call it "NONCE1".
Key sends a request to the lock which ... |
I know the concept of key generation, as well as encryption and decryption using public and private keys.
When it comes to authenticating a user by a server, in general there are three types:
password based,
certificate based, and
hybrid (encrypting the symmetric key using asymmetric algorithm).
I am a bit confus... |
This question is modified version of this:
Can we use merely permutation to hide a message?
I have an English name $m=m_1 || m_2 ||..||m_{30}$.
I pick a random string $d=d_1 ||..||d_{70}$
I mix the values $m_i$ and $d_i$ together and permute them (using pseudorandom permutation) to get a value $v$. So $v$ will be a s... |
Is it theoretically possible to find $P$, $K$, and $K^\prime$ such that $E_K(P) = E_{K^\prime}(P)$ where $E$ is AES-128 and $K \ne K^\prime$? I'd imagine this would be infeasible, but is it actually impossible?
|
I realize it's generally considered bad idea to use the same password everywhere.
I can use icloud / lastpass to generate my passwords for me, but that leaves me clueless when I don't have access to these services, or attacks to those services.
Does it make sense to use 1 "master password", but modified for each websit... |
This is a theoretical question.
I have a idea, encryption by bit rotation in byte.
Do not know if something like this already exists.
General concept is:
First n bytes is rotated to left or right by value between 1 and 7.
Next n bytes are rotated to left or right by different value between 1 and 7.
While keeping n betw... |
The owner of the random.org service recommends that you do not use randomly generated numbers from their website in cryptographic keys. This makes sense, but it got me wondering. Is it possible to securely transfer random values in such a way that they are still viable for use in cryptography?
They can be trivially t... |
Assume we have a processor with a symmetric co-processor that supports AES. This processor does however not provide co-processor support for hash algorithms such as SHA-1 or SHA-256.
I've got the following strongly related questions:
Would an HMAC implementation based on a hash implementation in software - which is no... |
While using some crypto implementations I got to see that many times a comment is added to the ciphertext.
For example:
-----BEGIN PGP MESSAGE-----
Version: OpenPGP.js v1.5.0
Comment: http://openpgpjs.org
wcBMAyJd6d8o7Y2pAQf/WZM1LV/iq3R8QGK7fUiQoUVzR8nEow+RJcBh6ujH
MBGWKcm4Y//a76hOL4r/Htbt7lwnfGe2HLrznRQip1TaONW897zr... |
Let $a$ be the plaintext message, $e$ be a small prime exponent (such as 11, 13, 17 etc.), $b$ be cipher text and $n$ be a large modulo (non-prime).
Suppose that:
$b \equiv a^e \space mod \space n$
If we know $b$, $e$ and $n$, can we possibly calculate $a$?
|
Let $n$ be the modular arithmetic, $p$ and $q$ the two large primes such that $n=p*q$ and $e$ the public exponent. Here they are two "simple" numerical questions:
If $p = 13$ and $q = 17$, what is the range for exponent e?
Let be $p = 7$, $q = 11$ and $e = 3$. What is the max integer that can be encrypted?
About 1), ... |
Let's say I'm naive and want to generate a random integer in the range [0, m), so I do the following:
k = cryptographically_secure_rng() % m
where cryptographically_secure_rng returns a random integer in the range [0,n).
Obviously, assume m <= n.
Now in general k isn't distributed uniformly anymore.
It seems to me tha... |
Decrypting messages can be done by using the following formula:
$$M = C^d \mod n$$
Where $M$ is the decrypted message, $C$ is the encrypted message and $d$ is the private key
Theoretically speaking, Assuming $M$, $C$ and $n$ are known, is it possible for one to calculate $d$ easily? Even for say, large numbers (more th... |
I need to store passwords for a web application, and was looking at Bcrypt for a possible solution. After some research, it appears only the first 72 bytes influence the final hash output. While it is possible for the application to limit input to 72 characters, this hurts users with password managers that produce very... |
A message coded with RSA is broken up into blocks, then padded/transformed prior to encryption via modular exponentiation with the public key. However, the encryption result for each block is not necessarily a fixed length of bits, octets or characters. What are the accepted protocols for delimiting these encrypted bl... |
I'm working in Python, and my goal is to hash a list of strings with a cryptographic hash function such as sha256. It would need the property that a change in any string, or the order of the strings, will affect the outcome. For example, this would not be sufficient.
sha256(''.join(['string1', 'string2'])).digest()
... |
As far as I know, all stream ciphers work by generating a stream of pseudo random bytes, and XOR it with the plain text to get the cipher text. It has the property that one bit change in the cipher text results only the corresponding bit change in the decrypted message.
Is there any stream cipher that has the avalanche... |
I'm trying to prove one of the properties of the “Modified Rabin Signature Scheme”:
If $\gcd(x, n) = 1$, then $x^{\frac{(p−1)(q−1)}{2}} \equiv 1 \pmod n$
This is what I’ve got so far…
Proof
Let $p$ and $q$ be primes such that $p \equiv 3 \pmod 4$ and $q \equiv 3 \pmod 4$
$$p = 4 t_1 + 3 , \, q = 4 t_2 + 3 \,\,\,\,\,\... |
I am working on a steganography technique. Sometimes I need to send my steganographed images online to my friends but in the process the image gets compressed destroying all the data. I found ways to surpass it by using Google Drive or simply mailing them to the destination. But still I am not able to find a reason as ... |
In NTRUEncryption, I seen the trucated polynimials, but I cannot understand the trunacated polynomial calculation.
So, could tell me anyone How do we calculate the truncated polynomial?
|
Can anyone explain to me why this is a bad idea? I cannot see anything wrong with it except that key K should be different for MAC and AES.
MAC algorithm consists of letting the MAC of message M
(which consists of message blocks M1,M2,... ,Mn) be the AES encryption with key K of the XOR of all the message blocks.
i.e. ... |
Suppose we use $(t,n)$ Shamir secret sharing as follows:
We share the secret $\beta$ as $S=[s_1,..., s_n]$, where $X=[x_1,...,x_n]$ are the public values. For the sake of simplicity, lets assume that $n>100$ and $t=2$.
We permute the elements in the vector $S$.
Question 1: Given the permuted vector, can an adversar... |
If I have a AESX-192 be a block cipher which is similar to DESX but has the DES being replaced by AES and the AES key size is 192 bits.
How should I compute the total effective key length of the AESX-192.
|
Is it theoretically possible to passively snoop into the HTTPS traffic, reliably detect whether or not TLS SNI is attempted to be used by the client, and, if it is, redirect the stream of the connection as-is to one of the many different upstreams (each one of which requires HTTPS in order to connect and may have its o... |
While reading a paper about Dynamic cube attack, I saw two terms:
full-codebook and non-full-codebook attacks.
What do they mean?
What is the difference?
Regards
|
Is it possible to send a single encrypted data message to multiple users so that the users receiving the message can only decrypt certain parts of the message, depending on their rights.
For example, I send a message "Hello World", User A could decrypt and receive the whole message(hello world), but user B could only d... |
I have a question in regards to Ransomware type viruses. I know that a number of these viruses use the AES-256 algorithm to encrypt user's files using a randomly generated key. I work in IT support and I had one client the other week who had lost a large number of important files this way but one thing which struck me ... |
I am in process of implementing a AES 128 encryption in AVX2 assembly (using AES NI), and am having some problems with decryption logic. I have implemented the encryption sequence without any trouble. However, decryption has been giving many problems.So, my questions regarding the decryption are :
Are the keys identic... |
What will it mean for ECDSA using SHA1 when we have practical attacks breaking the collision resistance property of SHA1?
[UPDATE] Added a bit more details to be clear.
If $(r,s)$ is the ECDSA signature for $m$, is it possible to give a different message $m'$ that will have the same signature.
|
I am interested in ElGamal due to the fact that you can achieve some degree of homomorphic properties. I became interested in applying ElGamal to elliptic curves, and found this other question with an answer that shows 2 different ways to apply ElGamal to elliptic curves, but from what I can tell neither approach has t... |
It's easy to scramble a Rubik's cube but it is hard to solve, unless you know the algorithms for solving it. This makes it a trapdoor function, correct?
|
Please suggest how can i solve the below question
What is the inverse of {03} in GF (2^8) with the irreducible polynomial x8+x4+x3+x+1?
|
How would one classify a stream cipher that is neither synchronous, nor self synchronizing? I would have thought asynchronous, but from all the sources I can find, asynchronous is synonymous with self synchronizing.
The internal state of the cipher is initialized by a key and initialization vector. The internal state... |
In the context an of hash functions we have three required properties.
Preimage resistance
Second preimage resistance
Collision resistance.
The bounds for Pre image collision is $O(2^{n-1})$, the bounds for collision resistance is $2^{n/2}$, what are the bounds for breaking second preimage resistance?
|
For RIPEMD hashing algorithm on hardware
I am not exactly getting how padding works
So as per my understanding padding will work like explained below:
For ripemd 160 message should be multiple of 512 bits. So, along with message to make it 512 bits, after message we pad 1 following zeros. Last 64 bits of 512 block are ... |
I am trying to decrypt PKCS8-Shrouded Key Bag inside a PKCS#12 pfx file.
The oid for the encrypted data is PbeWithSHAAnd3-KeyTripleDES CBC.
Iteration count and salt has been provided within the pfx file, and I know
the password.
As far as I know, 3Key Triple DES needs 3 × 56 = 168 bits of key.
I am not sure what I n... |
Assumption and Notations: All the values defined over the field $\mathbb{F}_p$, where $p$ is a large prime number. We denote multiplicative inverse of value $v$ by $v^{-1}$. All values are non-zero values.
We all know that one time pad should not be used more than once. Let
$v_1=b\cdot z$
$v_2=b+ z^{-1}$
Where $z... |
I want to write the sequence of events of how a MAC encryption works for documentation at work.
For this purpose I have a document (given by my boss to me) in German and I am trying to translate it into english. However I think there might be a mistake on step 4. I am not sure and some how cannot find anything on the I... |
How would I be able to show that a key $K=(a,b)$ is involutary for an Affine Cipher over the integers modulo n?
Similarly, is there a way to generalize the conditions for a key to be involutary for a substitution cipher?
(Involutary keys are keys for which the encryption function is equal to the decryption function $e_... |
I'm reading this article, CP-ABE with constant-size keys for lightweight devices and in the Table 1, are there these access structure: Threshold, Tree, ($n$,$n$)-Threshold, LSSS, AND gates. I have 2 questions.
1) What are the differences between these access structures ?
2) How can i measure the performance of a scheme... |
Recently someone found that a Diffie-Hellman modulus used in a unix tool (socat) was not prime. This led some people to shout "backdoor".
What I don't understand is, how could this allow for a backdoor?
I'm guessing the problem could be small subgroup attacks. But this can be as much of a problem as when the modulus is... |
There isn't a whole lot of information on steganography in the modern age, from what I can tell. A google search for steganography usually brings up a list of very impractical methods (e.g. tattooing a message on a guy's head then waiting for hair to grow over it). The only modern (and practical) method I've seen invol... |
If we have the following block cipher, $E(k,m)$, which is a permutation, why is $f_2 (x,y)$ not collision resistant?
$$f_2(x, y) = E(x, x \oplus y)$$
|
I am working on a cryptography application which is to be used in my country. I tried looking up to see if there are any algorithms that support the Cyrillic alphabet, but I found none. Do you know of any? Can mainstream algorithms (Like AES) work with Cyrillic letters?
|
Suppose all the values and operations are defined over a finite field $\mathbb{F}_p$ where $p$ is a large prime number. Assume all values are non-zero. Here $(z)^{-1}$ denotes multiplicative inverse of value $z$.
We give away the values $v_1$ and $v_2$ to an adversary and ask him to compute their product:
$v_1=a\cdot ... |
Lets say I generate 192 bits using some secure PRNG. If I now take first 128 bits is it equivalent of generating 128 bits in the first place?
P.S. More practical application for me is that I need a machineKey for the ASP.NET, I use IIS UI for it and it generates a string that corresponds to 192 bit key used for AES, bu... |
This is the scheme of a parallelizable block cipher mode of operation:
$IV$ is the initialization vector.
$BN$ is the zero-based index number of a block in a stream of data.
$BT$ is the tweak that is used in the encryption process of each block.
$K$ is the key.
$PT$ is a plaintext block.
$CT$ is a ciphertext block.
E... |
128-bit block ciphers are vulnerable to multi-target attacks where the attacker seeks to attack a collection of keys instead of a single key. A simple example:
Generate keys $k_1, k_2, ...,k_{2^{40}}$.
Pick a 128-bit message block $m$ and provide $m$ to the attacker.
Compute $E(k_1, m), E(k_2, m), ..., E(k_{2^{40}}, ... |
Dual_EC_DRBG has the property that if $Q = e\cdot P$, someone who knows $e$ can break the PRNG.
This seems to lead to a public-key stream cipher:
Alice chooses a random $P, e$, where $P$ is a generator.
Alice computes $Q = e\cdot P$.
Alice publishes $(P, Q)$ as her public key. She retains $(P, e)$ as her secret key.
... |
I am looking for a lightweight and fast (almost real time) data integrity checker for a very time critical application. Is it possible to provide data integrity using a steganographic method, lets say by inserting a tamper-proof fingerprint inside the data. If so what would be the security threats as opposed to hashing... |
Is there any knowledge or research on the use of different hash functions within a Merkle tree? My use case is file integrity protection. I am thinking about using different hash functions due to performance restrictions:
Linux device mapper verity target allows you to select different hash functions. I originally aime... |
This might be a dumb question but I will go for it.
Let's say we have a data set $D$ consisting of sensitive data, and we want to be able to match if a new piece of data $S$ already exists in $D$ ($S\stackrel{?}{\in} D$) or not, and we want to be able to know which of the entries matches $S$ in $D$.
Our approach consi... |
SHA-1 and SHA-2 share the same structure and mathematical operation as their predecessors - SHA-0 and MD5. Both SHA-0 and MD5 have been broken. This is one of the main reasons why SHA-1 is considered insecure and is being phased out for SHA-2.
NIST announced in 2007 a competition to produce the next generation NIST ha... |
I am wondering how to solve the problem below:
Suppose we have a $MAC$ scheme $I=(S,V)$. There is another algorithm that can find a pair of texts $(m0,m1)$, with $m0≠m1$ such that $S(k,m0)=S(k,m1)$ for $1/10$ of the Keys $K$.What is the minimum $Adv$$MAC$$[A,I]$ for every adversary $A$?
MAC defined over $(K,M,T)$ is ... |
In reading about this topic recently, to my understanding, the encryption schemes used on top of the Navajo language were very simple and definitely could have been broken (my research shows they mapped Navajo words to various different meanings).
The Navajo language alone is obscure, had few speakers, and was not a wr... |
To encrypt a value from a set (say a range of years from 1001 to 2001)
Rank the set
{0 = 1001, 1 = 1002, 2 = 1003...999 = 2001}
Take the value you want to encrypt from the set (year = 1995) and determine the ranked value = 996
convert this to binary 996 = 1111100100
Encrypt binary value using FPE(1111100100) = En wher... |
I am searching test vectors of the HMAC-SHA256 primitive to verify the correctness of an implementation.
Without hesitation I go on the NIST website to see what they offer.
While reading the corresponding file (HMAC.rsp from hmactestvectors.zip) I can see that the given test vectors associated to the SHA256 hash funct... |
Here is the protocol:
Bunch of players connected to server.
Server creates nonce and hashes it - send hash to clients as bit commitment.
Clients make nonces and send hashes to server as their bit commitment.
Unknown to clients one of the clients is the server itself. Server runs through candidate nonces from that clie... |
We all know it is possible to perform addition and multiplication operations on encrypted data by means of homomorphic encryption methods. My questions are:
Is there any cryptosystem that is able to perform these operations on
compressed data
first-encrypted then-compressed data
first-compressed then-encrypted data
w... |
What is the recommended way to derive a key for an HMAC-SHA256, from a passphrase and salt?
I'd like to compute an HMAC-SHA256. I have a passphrase, and a message.
I note that RFC-7518 (JWA) states that for HMAC,
A key of the same size as the hash output (for instance, 256 bits for
"HS256") or larger MUST be used wit... |
Our goal is find a faster discrete Gaussian sampling to solve $"SVP"$ problem in lattice:
A lattice is discrete subgroup of $R^n$ such that define as below:
let $\{b_1,\cdots ,b_n\}$ be a basis in $R^n$. Then $L:=\{a_1b_1+\cdots+a_nb_n | a_i \in Z\}$ is a lattice.
Shortest vector problem in $L$ is:
$SVP(L)$ = shortest ... |
I'm trying to understand the construction of the division polynomials used in Schoof's algorithm. I firstly followed this report of Charlap and Robbins.
I stuck with the definition of the leading term p11.
I'm also reading this book, which does the construction also in characteristic 2. However I have the same problem ... |
I'm a starter to cryptanalysis and in fact to cryptology. Last night I was decrypting a message from a book that I would quite odd. It doesn't make sense. The decrypted message is "Royal Flags Waves Kings Above".
This is what the book says:
"The plaintext message is a mnemonic to remember the turnover positions on the... |
One of the main reasons for not using OTP in everydays life is that it is highly impractical - for encrypting 4GB of files we need a 4GB key that needs to be exchanged secure.
I've had an idea on how to get past this problem and want the opinions of experts (thats you!) about it. The main goal is to maintain the advant... |
Before encrypting a letter the first rotor advances by one, right? So there could be a way, once the first rotor turns 26 times, make the second rotor advance two positions instead of one. Or three. Did the Enigma take advantage of it?
|
I want to run statistical tests on my implementation of AES. How should I convert it into a PRNG? Is there a standard way to go about doing this? I could not find much information about this although this was done by NIST while during the selection of AES back in the days.
|
Kurve : EC : $y^2=x^3 + x + 1$
Generator:$(1,7)$
$p=23$
Result in Affine use Excel:
$P=(1,7)$, $Q=(7,11) \implies P+Q=(18,20)$
Result in Projective use Excel:
$P=(1:7:1), Q=(7:11:1) \implies P+Q=(15:2:9)$
$U = U_1 - U_2\ $ where $\ U_1 = Y_2 ⇤ Z_1, U_2 = Y_1 ⇤ Z_2$
$V = V_1 - V_2\ $ where $\ V_1 = X_2 ⇤ Z_1, V_2 = X_1 ... |
Modern processors support hardware acceleration for various crypto functions such as AES directly, or general vector operations which can be used in crypto functions, such as SSE SSE2 SSSE3 AVX.
On my machine, I can see the difference in speed between AES in software and in hardware, which gives speeds up to 5 times fa... |
Let p be a prime, and g be an element of $ℤ^*p$ of prime order q.
Let x ∈ ℤq be the private key, and $h = g^x$ (mod p) be the public key.
To encrypt a message m ∈ $ℤ^*p$, pick two random values r, s ∈ ℤq, and compute the ciphertext as follows:
(a, b, c, d) = ($g^r$, $h^r$, $g^s$, $mh^s$).
Now, let assume :
p = 0x800... |
I want to calculate a simple example of the RSA common modulus attack. However, the result is not correct and I do not find my mistake.
p=$29,
q=37,
n=p*q = 1073,
\phi(n) = 1008,
e1 = 5,
e2 = 11$
Let $m = 999$.
$c_1 = m^{e_1} \pmod n = 296$,
$c_2 = m^{e_2} \pmod n = 555$
The extended Euclidean algorithm gives me $y_... |
I understand what is going on in higher level. But I don't understand what's really going on in page 3 and 4 of this slide.
Specifically,
How $S_0$ and $S_1$ is used? What goes in what goes out?
How exactly do key bits determine which s-box is to be used at each position? Position refers to what?
Is the function $f$ ... |
Let $F$ be a length-preserving pseudorandom function. For the following constructions of a keyed function $F' : \{0, 1\}^n \times \{0, 1\}^{n−1} \to \{0, 1\}^{2n}$, state whether $F'$ is a pseudorandom function. If yes, prove it; if not, show an attack.
$$F'_k(x) = F_k(0 ∥ x) ∥ F_k(1 ∥ x) \tag{a}$$
and
$$F'_k(x) = F_k... |
I am doing research on cryptography primitives at a basic level and I faced a question on encryption methods. I understood that ECDH is an approach to for secure key exchange between two parties before the encryption process begins. It is quite useful in symmetric methods that use the same key for encryption and decryp... |
I have a question about an RSA academic example.
If we are using block-RSA with a block-size of 3 and we have this message: "android". It is broken into 'and', 'roi', 'd'.
How to encrypt the last character 'd'?
|
can't we do a nobus backdoor with DH modulus prime? Some have argued that with a prime modulus you can just get the order by doing p-1 and then factor it, thus it is easy to reverse. I argue that this is not true.
The prime case
Our modulus is a prime $p$ such that the order of the group is $p-1 = p_1^{k_1} \times \cdo... |
Does anyone have a pseudo-code or an algorithm or even a diagram of the compression (pc2) of the DES algorithm?
I can't find a relation between the bits that are dropped, even when I do it manually it does not generate the right result. I mean put as the first bit of the output (subkey $K_i$) the 14th bit of $C$, the 2... |
As reusing a widely used group for Diffie-Hellman key exchanges might lead to far easier third-party key discovery through precomputation for that specific group, I would like to know what can possibly go wrong when generating custom groups for use as Diffie-Hellman parameters.
Here is what I currently believe to be tr... |
I have some doubts regarding the SET protocol. Let say the Alice payment information runs through a sha-1 hash function which is a one-way algorithm, irreversible to create a message digest. How do bob verify that the message is really from alice since he can't see the content of the message which bob shouldn't see in ... |
I'm making a video game which has some basic cryptography as a main base for puzzle design. I'm hoping players will get great puzzle challenge and learn a few cryptography concepts through playing the game.
Can you suggest some of interesting areas of cryptography that would be interesting/fun/easy to learn and unders... |
$f(x)$is any nth degree equation $n>0$, how to find roots of $f(x)$ over prime modulo.
|
I once heard that if implementing a password hashing scheme, simply concatenating the password and salt together before hashing could lead to some subtle vulnerabilities, and I'm trying to figure out if this is actually the case.
According to this anecdote, the following should not be used:
hash(salt + password)
hash(p... |
I came up with this question while unit testing a function that includes an HMAC. What is the expected behavior of an HMAC with a well-defined key and a set of data with no elements in it? Is there such a concept as a "null HMAC"?
For example,
byte[] key = RNG.RandomData(32);
byte[] data = { };
byte[] hmac_result = HMA... |
It's easy to see that additive blinding (e.g., $x+r$ for secret x and random r) is perfectly secure in a finite field (this is a one-time-pad) and statistically secure for $r$ uniformly distributed in a domain sufficiently larger than $x$.
What I'm confused about is multiplicative blinding (i.e., $x \cdot r$) - in some... |
I have a file that I am generating a signature for using OpenSSL, and each time I generate the signature, it is different to the last time.
openssl dgst -sha1 -sign update_key.pem TERM010134.bin > Update.sig
Anyone able to tell me why that might be?
|
Assume we have 4 values: $v_1,v_2,v_3$ and $v_4$. We construct a Merkle tree on top of them such that the values are leaves of the tree.
I send the values and the tree to an untrusted server. But I keep the root of the tree locally.
Later on I want to modify (or replace) $v_4$ with new value $v_5$. Note that I Do NOT... |
If I make use of RSA PKCS#1 in v1.5 what padding length is used. Basically, it is not allowed that the plaintext is bigger than the modulus. But what if the length in bits is the same (padding to modulus size) but then the plaintext value is bigger than the modulus. How to avoid that?
|
I have been asked to integrate a home-grown CRM system with a 3rd-party data service provider (DSP). The DSP has encrypted the information they are providing. I only have their decryption instructions, which are as follows (verbatim):
Encryption Type: AES128
Mode: CBC
Padding: PKCS5 (.net usesPKCS7)
Password: jayjay
... |
Suppose we have a hash table, $HT$, consisting of $100$ bins.The hash table uses a hash function $H$ that is public.
We all know that given value $a$ we can compute the address in the hash by $H(a)=j$, where $j$ is the $j^{th}$ bin the the table.
Assume we construct an empty hash table of size $100$, then we permu... |
I am integrating with 3rd party software that uses AES 128 encryption. I know this is not ideal, but the choice of encryption is up to the 3rd party software. I am using C#.
My problem is in deriving the key from the password. The third party has told me that the key is generated using the CryptoAPI's CryptDeriveKey. I... |
I'm really hoping someone can explain to me what is going on in the second major component of this form of analysis.
If you wish, for convenience, here's a page that already has some ciphered text and a known codeword: http://www.martani.net/2011/04/cracking-vigenere.html
Anyhow, I think I understand how to get the key... |
I'm new to both bilinear mapping and ABE. I have a vague idea of how bilinear mapping works now, but I don't understand how it applies to ABE. Can someone give me an example?
|
Why does setting the secret key to a fixed, public value not make MACs like CBC-MAC or EMAC into secure unkeyed cryptographic hash functions?
In other words, why is the resulting hash function not 1st pre-image, 2nd pre-image, and collision resistant?
What about HMAC? Still not pre-image and collision resistant?
|
I want to design a cryptographic protocol for encrypted search without pairing. I have seen some papers for protocols without pairing. How would I compare pairing computation and modular operations?
|
In linear crypt analysis, partial sub keys are guessed and verified for its correctness with the help of plaintext and ciphertext.
From the partial sub key, how it is possible to guess the complete key?
For example, if we are guessing and verifying the key bits $K_5,K_6,\ldots,K_8,K_{13},\ldots,K_{16}$ for its correctn... |
I know reusing keys is a bad idea, especially for CBC and CBC-MAC, but the example for why on Wikipedia seemed to use encrypt-and-MAC. It seems obvious that the last block of encryption will be equal to the MAC when used in this way.
If it's instead used in encrypt-then-MAC, wouldn't that be acceptable? Every bit of th... |
I have a ciphertext encrypted with an unknown method. It is part of a challenge (personal quest), so I can not post it.
The letter statistics is the following:
y : 10
w : 8
x : 8
t : 5
v : 5
e : 5
c : 5
d : 5
u : 4
z : 4
f : 3
b : 2
Because of the uneven letter distribution and repeating two letter sentences, I tried ... |
Trying to get my head around digital signatures and hit a slight block. The book I am using gives the following information
Device A hashes a message to create a message digest
Device A encrypts the digest with device A's private key to create a signature
Device A adds the signature to the message Device A encryp... |
I'm trying to manually decrypt DTLS traffic using OpenSSL and TLS 1.2. The cipher suite im using is AES256-SHA256 as listed here. Im able to decrypt the packets with the key that the server and the client negotiate during the handshake without issues, but what i don't understand is that i can set the initialization vec... |
I understand what's going on in higher level. But i don't understand what's really going on in page 3 and 4 of this slide.
Specifically,
How S0 and S1 is used? What goes in what goes out?
How exactly key bits determine
which s-box is to be
used at each position? Position refers to what?
is the function "f" in page 4... |
${\text{Let }}g:{\{ 0,1\} ^n} \to {\{ 0,1\} ^n}$ be a round function of an $n$-bit iterated block cipher and let $K \in {\{ 0,1\} ^n}$ be a fixed round-key, and denote ${g_K}(x) = g(x \oplus K).$ Show that $${\text{cor}}(u \cdot x,v \cdot {g_K}(x)) = {( - 1)^{u \cdot K}}{\text{cor}}(u \cdot x,v \cdot g(x))$$
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.