instruction stringlengths 32 27.2k |
|---|
I have a system that signs plain text messages using a message authentication code (MAC) encrypted with 3-key Triple DES. The short message is used on connection to establish a session key, so it would take an attacker a long time to compile a lot of plaintext / MAC examples.
I need to establish a key expiration policy... |
By encrypt in place I mean the following. Suppose I have an input plaintext of length L and I have also allocated an extra E bytes at the start and/or end of the buffer, with E << L. So the length of the input buffer is L+E and I'd like to use the same buffer for output (the encrypted data). I understand some fixed ... |
I'm generating a key & iv with OpenSSL via:
key = OpenSSL::Cipher::Cipher.new('aes-256-cbc').random_key
iv = OpenSSL::Cipher::Cipher.new('aes-256-cbc').random_iv
Then I am running the random key through:
salt = OpenSSL::Random.random_bytes(32)
OpenSSL::PKCS5.pbkdf2_hmac_sha1(key, salt, 2000, cipher.key_len)
My questi... |
The strength of symmetric and asymmetric encryption schemes scales with the key length, but there is a difference between symmetric algorithms like AES and asymmetric algorithms like RSA.
For example, according to some sources, 128 bit symmetric keys are equivalent to 3072-4096 bit asymmetric keys; but to get 256-bit e... |
Suppose I send a message using AES (private keys already negotiated securely) and I send a hash of this message using RSA (encrypted with private key) with OAEP to verify the authenticity and integrity of the message.
I can decrypt the hash with the public key (authentication) and compare the decrypted hash with a hash... |
I have a question about Pseudo Random Functions.
Let $f:\{0,1\}^m \times \{0,1\}^n → \{0,1\}^n$ be a secure PRF.
Define $F(k,x) = f(k,x) - f(k, x-1 \bmod 2^{n}) \bmod 2^{n}$.
Is $F$ is a secure PRF?
|
I'm just started to studying elliptic curve cryptosystems. My one month-goal is to write a simple signature system based on the Weil-pairing. Some parts of it can be written without deeper understanding, so I decided to start it with the easier parts right now.
I've searched for some ideas on internet, but all I've fo... |
I am beginner to Cryptography. And recently I came across the requirement like "use of SHA-256 in cryptography".
Does "use of SHA-256 in cryptography" imply use of SHA-256 both in HMAC and DH key exchange, assuming these are the only uses of hash in system?
I would be very thankful if people can provide their views.
ED... |
For a simple proof of concept project i'm (attempting!) to do, i've started looking into openSSL elliptic curve cryptography.
However instead of the standard key lengths, 160-512. I'm interested in a resultant key of just 64 bits (less secure I know but that's my projects purpose). Is it possible using elliptic curve ... |
Hello I want to know how to go about this problem
I know the plaintext "abcdef" and the ciphertext. The key size is 2.
I really can't figure out how to find the key for decrypting and encrypting.
|
I was lucky enough to, by brute force, have found two different messages, whose SHA-256 hashes collide in the first 9 hexadecimal characters, which are 36 bits, let's call this hash-prefix.
Given the Birthday Problem, I had to put together 2^18 or rather 2^(36/2) hashes so the chance of success at finding the two mess... |
I'm developing the login part of my application and I was asking myself how to do it right. My application stores some users' data server-side that must be inaccessible from us, so all the content must be encrypted using AES-256 with a password derived from the user's login password and this key would never leave the u... |
So for the play fair case, the number of possible keys is : 26x26 = 676 possible keys
But if we consider the repeated letters, how many unique keys will the play fair have? I mean how will considering the redundant letters affect the number of possible keys?
|
My best interpretation of this question is that Java's crypto API has been subverted to perform RSA signature using PKCS#1 v1.5 encryption padding.
Assume the signature $S$ of a message $M$ is obtained by:
hashing $M$ using SHA-1, yielding the 20-byte $H$;
generating a 105-byte uniformly (true) random $R$;
forming the... |
Would reseeding a PRNG with the PRN from the previous generation have any effects whatsoever on the quality of the generated numbers; if so, does this depend on the PRNG used, or are the effects generally applicable to any algorithm?
Perhaps I'll enhance the question with some pseudo-code:
firstSeed := get_seed_from_e... |
I am given
p = 4916335901
q = 88903
and am asked to show these are prime as well as q|(p-1) in DSA.
I am unsure on how to do this, what does q|(p-1) mean exactly?
|
I've read that one of the vulnerabilites of ecryptfs is leaks to swap memory, and that the solution is to encrypt swap. But even if swap is encrypted, it's still open until I reboot. I've also read in this answer, from the designer of the ecryptfs crypto, that "eCryptfs makes no special effort to prevent key proliferat... |
I have the function $H(x) = x^2\bmod p$ , where $p$ is a prime of length n bits and this function maps to the message $x$ to a n-bit hash value $H(x)$.
I need to find out if it is pre-image resistant, second pre-image resistant and/or collision resistant; and if it isn't collision resistant, what are some simple collid... |
In the classic description of Zero Knowledge Proof of Knowledge, Victor must wait outside the entrance to the cave while Peggy goes to the fork and choose a side. It's only once Peggy has entered a tunnel and is out of view that Victor comes at the fork and shout the side he wants her to come out from.
I am wondering w... |
Given the elliptic curve
$$E:y^2 = x^3+17x+5 \mod 59$$
with point $P = (4,14)$, how do I find $x$ such that compute $x\cdot P = (11,44)$
Is there a mathematical method to compute $x$, or do I simply compute a lot of $x$'s and hope for the best?
If it helps, I know $8P = (16,40)$
|
According to the article "Lest We Remember: Cold Boot Attacks on Encryption Keys" there is a quick and dirty entropy test that can help to find possible AES Key Schedules in memory dumps. Although there are references to this algorithm in blogs of other famouse cryptographers (for example, this post), I haven't been ab... |
I'll keep my question short. If I keep handing out different codes generated by this function, will it be trivial to figure out the secret key?
secret_key = {random bytes}
function generate_code(parameters)
return sha256(parameters + secret_key)
I know little about these things. What I like about this function is t... |
I am trying to understand how an attacker knows when he has successfully decrypted a ciphertext for an assignment. As such, some pointers/hints for the following questions would be greatly appreciated.
If you double encrypt secret data with two different algorithms. How does the attacker know if he already broke the '... |
I am reading through the AES specification and am not able to wrap my head around the multiplication definition (section 4.2).
In section 4.2 why is the modulo chosen as {01}{1b} which is $283$ and not $255$? The irreducible polynomial is $m(x)=x^8 +x^4 +x^3 +x+1$. Is there a significance to this seemingly random cho... |
I am trying to understand how differential Cryptanalysis works. Here I read how to use differential cryptoanalysis for cracking FEAL4 cipher.
The big gotcha with this process is that you cannot just reuse the above differential path to crack rounds 2 and 3. You must build new differential characteristics that only cov... |
Follow-up to: Parallel-resistant proof-of-work scheme?
Is there a proof-of-work scheme that:
can only be solved serially;
given the solution, can be verified in minimal time;
deterministically constructs the problem from some input, where the difficulty varies randomly dependent upon the input;
can be verified by an... |
I understand that the word size is the internal "working package size" below the block size of a cryptographic hash function (and a block cipher), as each block is broken into words an than processed round-based. Does this size have any practical relevance when using that function? For instance do algorithms with 64b w... |
After an answer here, about generate elliptic curves, I've start thinking about the algorithm. The mentioned algorithm will produce curves in the Weierstraß Reduced Form (WRF) over finite fields:
$y^2 = x^3 + ax +b$ with $a,b\in \mathbb{F}_p$
And this WRF is the representation used in the NIST (where $a\equiv-3\pmod ... |
I'm looking to do some research into how RSA is used in the wild. I've read through a few papers and it seems other researchers have had no trouble collecting millions of keys to perform analysis on.
I've done some preliminary research but can't seem to find any one site from which to download other people's public key... |
I am writing an application in Java that will be using SHA-1 HMAC message authentication. From what I understand, a connection over HTTPS is considered secure enough to share a secret key in plain text, and there is little added benefit to hashing the key before sending it from the client to the server.
So, my imple... |
Bitcoin uses SHA-256, Base58Check, ECDSA (Sep256k1) and RIPEMD-160 as the basis of its encryption (see this article for a short guide on how addresses are created).
I would like to create an iOS-based wallet app that offers reasonable security.
OpenSSL is not available on iOS, and is quite a large dependency. What I'm... |
I'm thinking of implementing rainbow tables for a specific blowfish problem, but I have trouble thinking of the proper way to apply the original paper (and its application to hash functions) to blowfish.
Say we have a not too clever password hashing function, which just uses the password as a key to blowfish-encrypt a ... |
I have a situation in which I need to combine a 32-bit datum, G, and a 64-bit datum, I, to produce a 64-bit datum. No two tuples with the same I value will have the same G value, and vice versa. Collision resistance must be very high (data corruption will result if not).
Technically, I don't need encryption, but most... |
Alice has a set $S$ of words. Bob has a set $T$ of words. They want to compute the intersection $S \cap T$ of their words, with the help of a semi-trusted third party Trent. Trent runs a central server. The server is normally well-intentioned and not malicious. However, we are concerned about the risk of server co... |
I am building an open source hardware system that will be used to control things over the internet. The system consists of a Base Station and Modules which use wireless communication at 2.4GHz to exchange data.
Now I have come to the point where I need to protect the transmitted RF data against re-transmission and decr... |
My company just implemented whole disk encryption on all laptops (Symantec) and the concept seems flawed. Please correct me if I'm wrong, but if I have known file in plain text and that same file in encrypted text, it possible to use that information to find the key for decryption.
If there is a better stack to ask ... |
I have been reading about “Timing Attacks on RSA: Revealing Your Secrets through the Fourth Dimension” by Wing H. Wong. I was wondering if this attack is feasible while signing with RSA and, if yes, how?
Also, how this kind of attack is applied with DH?
Talking about timing attacks in general, in which way AES is af... |
Does anyone know the purpose of the "purpose" byte in the PBKDF2 implementation in Crypto++? It appears that the PBKDF2 does not use this byte, but I want to make sure I am not setting the option to some stupid default.
Here is the method signature.
If you look at line 42 of the pwdbase.h file, it seems to indicate th... |
Given two arbitrary/random $n$-bit words, how could one best mix them to get one $n$-bit word for general crypto usages?
I suppose that one should have an adequate measure of goodness of the mix before being able
to answer that question. So I would like to first ask: If $z=f(x,y) \bmod 2**n$ is the result of the mixing... |
I'm reading A Practical Public Key Cryptosystem Provably Secure against Adaptive Chosen Ciphertext Attack and here define Semantic Security ...
Semantic security, dened by Goldwasser and Micali [14], captures the intu-
ition that an adversary should not be able to obtain any partial information
about a message giv... |
If Linear Cryptanalysis exploits the fact that the plaintext and ciphertext are not completely unrelated, is the attack possible without having access to the plaintext?
|
I'm pretty sure I understand how public/private key cryptography works. Anybody can encrypt a message using a well-known public key, but only the person who holds the private key can decrypt it.
My question concerns securely sending a message to multiple people. Say there are n public/private key pairs. Is there a way ... |
I'm not sure what this attack model is called - it's not known-plaintext and also not quite cipher-text-only. It is similar to this question except the general case (not just two keys) and using keys you'd find in the wild.
Say you have one hundred ciphertexts which you know are the result of encrypting exactly the sam... |
One thing cryptography articles never seem to explain is how the message actually gets encrypted. You get this long-winded lecture on number theory which ends with, Ta Da! and we have a public and private key. Then, they never explain the process of exactly how some 100,000 byte word document gets encrypted using the p... |
I'm learning modular exponentiation with Chinese remainder theorem.
I found a great answer from below
How can I use eulers totient and the chinese remainder theorem for modular exponentiation?
But I can't understand the last step of construction from $C_p$ and $C_q$ very well. Can someone explain it to me? Moreover, if... |
I have trouble to understand how I can show that the Decisional Diffie-Hellman problem (DDH) is self-reducible.
I found this as a description of a random self-reducible problem.
Given an instance I1, it can be solved as follows:
(a) transform I1 into a uniformly random instance I2
(b) solve I2 and
(c) transform the sol... |
If I want to check the integrity of some piece of data, I can check that a cryptographic hash of the data corresponds to a known hash.
Alternatively I can also check a digital signature on the data and see that it corresponds to a known authority for the data. I can use certificates or not for this.
I can also verify ... |
I would like to perform a variant of Elliptic Curve ElGamal in java using the BouncyCastle libraries.
I currently face the difficulty of mapping a message $m$ onto the elliptic curve $E_p$. I have so far multiplied the generator $g$ of $E_p$ by the message $m$. However, this is hardly reversible. Hence I cannot retriev... |
I am trying to find the article to reference when discussing the Diffie-Hellman key exchange.
According to Wikipedia Hellman said that
The system...has since become known as Diffie–Hellman key exchange. While that system was first described in a paper by Diffie and me, it is a public key distribution system, a concept... |
I am currently trying to create an ECCCurve for E-521. Unfortunately, it is not currently a named curve in the library I am using, so I will have to define it manually.
I am using the definition of the E-521 curve provided here:
E521 is a curve over GF(2^521-1), formula x^2+y^2=1-376014x^2y^2,
basepoint
(15710548941849... |
One-Time-Pad is information theoretically secure as long as the random number stream is evenly long or longer than the data stream it encrypts, for a "deciphered" message could have been any message with the same length as the given with the same probabillity. Does the same apply to symmetric ciphers, too?
For instanc... |
The likelihood of breaking, for instance, an AES-128 cipher is 100% after $2^{128}$ tries in brute force, meaning that I've got to try $2^{128}$ keys to certainly break it.
What if I (hypothetically) had recorded $2^{128}$ bits of data encrypted with the same AES-128 key? How does this help in cryptoanalysis?
And how i... |
I need to uniquely assign a 32 bit integer to a collection of human readable strings (i.e. they will not be generated with hash collision in mind). I don't expect more than a few thousand strings. I would like to evaluate the possibility of using the first 32 bits of the md5 sum for this. What is the distribution of... |
Can a monoalphabetic substitution cipher attain perfect secrecy?
Definition of perfect secrecy:
$${\rm Pr}[\,{\rm Enc}_k(m_1) = c\,] = {\rm Pr}[\,{\rm Enc}_k(m_2) = c\,]$$
|
Why does SHA-1 algorithm have exactly 80 rounds? Is it to reduce collisions? If yes, then why do SHA-2 and SHA-3 have a lower number of rounds?
|
I was trying to figure out how HOTP kept from wrapping over, when I saw this explanation of how it works, by Thomas Pornin [source]:
The intended scenario is the following: the client has a handheld device which outputs the
successive passwords, one new password per button-press. The client may press the button a
... |
I am very curious on the fact that SHA, MD5 and all related Hash Functions change the output even by changing one bit in input Message. Why is that?
|
I am trying to find how much time an AES encryption and decryption takes for a given amount of data and key. In all the cases encryption takes way lesser processing time than decryption. I tried to get this answer somewhere else but can't find. May I know why does decryption takes a lot more time than encryption for AE... |
I'm writing some code to digitally sign certain files (JSON, if you must know), and I'm trying to understand the use cases, not being a crypto guy myself.
I understand there are use cases where several parties all need to sign the same content, e.g. the two parties who enter a contract sign it to indicate their approva... |
I'm looking for a pseudorandom function (PRF) with "traitor-tracing" properties.
More specifically, I'd like there to be multiple equivalent keys, so I can give different parties different keys, but have them yield the same operation. In a standard PRF, there is a single key $k$, and everyone who uses the PRF is given... |
Is it possible to accomplish the following scheme?
There is a Server (S) and many clients.
Each client enrolls with S, exposing its real identity; S saves the real identity information in its database and executes some keys/identifiers exchange with each client (could be something like DHE or RSA).
Then, someone sends... |
First I'd like to note that I'm really a beginner at cryptography, and while this interests me and while I have researched it in the past few months, there is still a lot of things that simply aren't clear to me, and I would like to have them clarified so I can move on.
Let's say (because this scenario is what I have p... |
I can't understand how the "cryptographic functions" are to be selected RSA + OAEP which are used in OAEP. How to choose these "cryptographic functions"(G and H)?
|
There are standard schemes for obfuscating a point function; I'm wondering if we know how to obfuscate a slight generalization of a point function. I'll elaborate more precisely.
Definition 1. A point function is a function $f_{v,w}$ defined by $f_{v,w}(x) = w$ if $v=x$ and $f_{v,w}(x)=0$ otherwise.
We know how to obf... |
Recently, there has been a major theoretical breakthrough in program obfuscation, in the area of indistinguishability obfuscation.
Background: Indistinguishability obfuscation is a form of program obfuscation, with the following security property: if $C_1,C_2$ are two different circuits that both compute the same funct... |
I’m implementing some file encryption module with random-access capability and AES-CTR seems the right way to go.
I understand that reusing Keys and IVs can expose the file to ‘Stream Cipher Attacks’ when portions of the file are being modified (assuming previous versions of the file are still available).
I want to av... |
Let $f(x) = ax + b$ be an affine encryption function. $a$ and the cardinal of the field of our keys $K$ (in English, 26) must be coprime so that the encryption function is bijective and the decryption function defined and bijective as well.
Could you please clarify how (in terms of congruences) the two having a $pgcd>1... |
Looking at http://safecurves.cr.yp.to/ to find a safe curve, I find that most curves described here are of a different form from that generally used.
In Bouncy Castle, for example, FpCurves take curves of the form $y^2 = x^3+ax+b$ (Weierstrass), whereas the (safe) curves found on the above linked have different forms, ... |
I know that RSA normally is made to make it with big integers, but i trying to make the algorithm myself (with the help of wikipedia) and I´m making it with small numbers to track the problems easily.
The problem is that sometimes the decryption of the encrypted message is wrong!
Exactly when I choose p=11 and q=5, the... |
I want to create a brain wallet using a custom diceware since I don't like the original one. Instead of 7776 words it has 46656 because I use 6 dice for each word instead of 5, and also it only has words with many characters.
So this is what I got so far, please tell me if I made a mistake:
$$\frac{2 ^ {\log_2(46656) ·... |
I am trying to learn about the Elliptic Curve Digital Signature Algorithm (ECDSA) by verifying the results in some example calculations. I found a PDF of example ECDSA calculations from NIST here:
http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/ECDSA_Prime.pdf
In the section "Example of ECDSA with P-256", NI... |
You plan to use a public-key cryptosystem based on the RSA trapdoor permutation in three different real-life applications, in which the attacker has, respectively, only one of the following resources:
a single computer,
a collection of computers distributed across the Internet, and
a quantum computer.
When choosin... |
It's easy to create an RSA modulus where almost no one knows the factors: for example, I can generate two 1024-bit primes $p$ and $q$ and set $n=pq$. If I publish $n$, I will be the only person in the world who knows, or can know, $p$ and $q$.
The (now defunct) RSA Factoring Challenge numbers were generated like thi... |
Creating a 2048bits RSA keypair I figured that doing this using
openssl takes as an input 32bytes of "randomness" from /dev/urandom
pgp (openPGP) takes as input 300 bytes of "randomness" from /dev/random
My questions is. Does the number of randomness influence the cryptographic qualities of the resulting keypairs?
|
I am looking at the different attacks on RSA. I came across known-plaintext attack where the public key can be used to encrypt all possible messages until it finds a match on the sent encrypted message. However, on the book I found in the library it seems this form of attack is also called "Forward search attack".
If... |
I am a beginner to the concept of homomorphic encryption. One thing that makes me very confused is why we use the circuit concept or approach to homomorphic encryption. Gentry's paper does not discuss it in detail. Are there any papers or books could make me have a better understanding of it?
(I mean the circuits part... |
In the recent iOS Security white paper from Apple (February 2014), the section on iMessage discusses using two different asymmetric key types as part of its standard operation:
When a user turns on iMessage, the device generates two pairs of keys for use with the service: an RSA 1280-bit key for encryption and an ECDS... |
I am learning SSH protocol. With my current understanding of SSH protocol, I think that message digest algorithms for using in digital signature should be derived from Key Exchange. But Openssh implementation uses only SHA1 for signing and verifying of digital signatures. SHA1 is hard coded in these two functions, ssh_... |
In FIPS 140-1 there are 4 statistical random number generator tests (The Monobit Test, The Poker Test, The Runs Test and The Long Runs Test. Then FIPS 140-2 came along and supposedly tightened the criteria for these tests. I'll provide a short summary of the changes here:
The Monobit Test
Count the number of ones in th... |
First of all, I know it's a very bad idea to invent your own encryption algorithm. It's better to use existing known, trusted, extensively tested and studied algorithms with a proven track record.
The idea below is purely theoretical, from a studying point of view. I thought of a rather simplistic encryption method, an... |
First of all, I know it's a very bad idea to invent your own encryption algorithm. It's better to use existing known, trusted, extensively tested and studied algorithms with a proven track record.
The idea below is purely theoretical, from a studying point of view. I thought of a rather simplistic encryption method, an... |
In here different byte padding standards are listed as ANSI X.923, ISO 101.26, PKCS7, ISO/IEC 7816-4 and zero padding. All of them seems to apply padding to the last byte blocks. Odds are rare but what happens if the actual data is an integer product of the block size and last bytes conflict with a padding scheme.
For ... |
I clearly understand the story of Alice and Bob:
Alice and Bob are going to use double DES. They know the keys K1 and K2.
Alice sends to Bob the encrypted message c= EK1(EK2(m)). Bob decrypts the message m = DK2(DK1(c)). Alice and Bob believe that Eve (the hacker) will need to discover both keys K1 and K2 by brute for... |
Disclaimer: School work.
I am trying to implement Groestl through Java, and have got stuck on the MixBytes section which can be found here section 3.4.5 page 11. As per the description of matrix multiplication, following was my first naive attempt to do it in matrix multiplication way.
public static final byte[][] B = ... |
I read about the following "safe" ECC curves and notably, secp256 and all the NIST curves are marked as "unsafe" when compared to more modern curves.
I need a curve for signing or encryption, (or both) but not sure how to choose from the following:
M-221
E-222
Curve1174
Curve25519
E-382
M-383
Curve383187
Curve41417
... |
Consider a cryptographic hash function that maps $n$-bit strings to $n$-bit strings:
$$
\DeclareMathOperator{\H}{H}
\DeclareMathOperator{\SHA}{SHA-256}
\H(x) : \left\{0,1\right\}^{n} \mapsto \left\{0,1\right\}^{n}.
$$
Let $\H^i$ denote the result of iterating $\H$ $i$ times, i.e., $\H^1 = \H$, $\H^2 = \H \circ \H$, etc... |
Consider the accepted answer to the question: Why are elliptic curves better than cyclic groups?
It seems to suggest there are subexponential algorithms (i.e., algorithms with running time
$$
L_n[\alpha,c]=e^{(c+o(1))(\ln n)^\alpha(\ln\ln n)^{1-\alpha}},
$$
where $\ln n$ is the input size, $c > 0$, and $0 < \alpha < 1$... |
On Wikipedia it is said that HMAC is basically (without taking into account padding):
$H(key\ \Vert\ H(key\ \Vert\ message))$
where $\Vert$ denotes concatenation.
I understand the need to hash twice, but why concatenate the key a second time in the outter hashing?
Why not simply hash twice, but without reusing the key,... |
I have just started studying Elliptic Curve Cryptography, and I have this doubt. In ECC the group operation is addition (and not multiplication). So, why is ECDLP stated as a variation of the discrete log problem? Wouldn't "discrete multiplier problem" or "discrete factor problem" be more apt?
|
After reading some information on the way iMessage works I have been working on writing some code to try my hand at securely transferring messages in a similar manner and I wanted to confirm that the technique I'm using is considered secure and preferably best practice.
This process assumes that the sender and receive... |
What is the importance of the $r$ and $c$ values?
Keccak[r=1600,c=0] is stated on a calculator on the Keccak website to be a checksum. But I figured if c=0, then there's only one possible output?
If C is 128, is there only 2^64 possible outputs, despite have infinite output length and an infinite number of inputs?
|
I’m looking for a one-way accumulator which can safely add new members (deletion is not necessary) and does not rely on a trusted party in any way. Unfortunately it appears that it does not exist yet.
My project has an authentication based on a block chain (like Bitcoin) so it's manually initialized and after that it r... |
Factoring some 20-45 digit values n with a (simple) quadratic sieve, the quadratic sieve may end up with pairs of x and y s.t. $x^2 \equiv y^2 \pmod n$, but neither x+y nor x-y has a nontrivial gcd with n for any of the pairs.
The contini pdf (www.crypto-world.com/documents/contini_siqs.pdf) is an excellent resource fo... |
I have a laptop without the AES-NI CPU instructions but with SSE4.1.
I'm using Linux and tried the (in-memory) cryptsetup benchmark to get the rough tendency which returned:
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 101,4 MiB/s 159,6 MiB/s
serpent-cbc 128b 52,7 MiB/s 203,4 MiB/s
tw... |
In general it's hard to calculate the roots of a given polynomial $P(x)$.
But the other way back calculating the coefficients is much easier (Vieta's formulas).
If this is a one-way function, is it possible to create a public-key cryptosystem
based on these facts? Or does it already exist?
|
I am generating a key & iv with Ruby's OpenSSL wrapper for an AES CBC 256 setup:
cipher = OpenSSL::Cipher::Cipher.new('aes-256-cbc')
key = cipher.random_key
iv = cipher.random_iv
I am then storing the generated key / iv in blob columns in the database. When trying to display the key or iv it looks something similar to... |
I'd like to create a PSK key to use with TLS-RSA-PSK-WITH-AES-256-CBC-SHA - what is the format of this key?
|
Suppose we use Additive ElGamal defined as follows:
Let $(K,E,D)$ be a triple. The key-generator $K$ outputs the description of a
finite multiplicative group $G$ of prime order $q$, with three generators
$(g,h,f)$ which are set to be the public-key $p_k$ of the system; the
secret-key $s_k$ is set to the value $\... |
I want to ask again about distinguishing attack on CBC MAC, based on the paper published by Ketting Jia, Xiaoyun Wang, Zheng Yuan, and Guangwu Xu: Distinguishing Attack and Second-Preimage Attack on the CBC-like MACs.
That paper says: "The adversary makes $2^{(n+1)/2}$ queries with $m$-block messages that have the same... |
There's a lot of references about McEliece key size being the barrier for proper usage of the algorithm, exactly (or roughly) how large are the keys?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.