instruction stringlengths 32 27.2k |
|---|
I'm working with one-way accumulators, but I'm not knowledgable in cryptography. Is there an easy peasy way to hash numbers (or whatever) into prime numbers?
Obviously I'd like it to be collision resistant and all that, but this project is huge, I'm alone and I'm confident someone else in the field will pick up from th... |
Imagine a SSL-like protocol that instead of using certificates signed by a trusted CA, has the server's public key hard-coded in the client.
My question is: what happens if the server's private key is compromised?
Without certificates, the system doesn't have a CRL (Certificate Revocation List) and until the users upda... |
Is there a map between the group of $\mathbb{Z}_{N^2}^*$ where $N$ is a composite number , a product of two equal size secure prime numbers $p$ and $q$ and a finite field $\mathbb{F}$, such that for all $x \in \mathbb{Z}_{N^2}^*$ there is a polynomial representation of $x \in \mathbb{F}$ ?
|
I am working on Du Atallah's multiplicative secret sharing scheme for more than 2 party scenario.
Is anyone aware of its multiparty version (more than 2 parties).
The paper for 2 party can be found in Section 4.1 of this link.
|
Suppose I have n hash/MAC functions, of which n-1 are extremely insecure, leaving only one that is in fact cryptographically secure. If I use all of them on a message and the XOR them together the result will be cryptographically secure or not?
I believe it would, because if 1 is secure than it's output is undistinguis... |
Referring to both
Wikipedia page and
ECDSA-cert paper
I can understand that, given $\mathcal{E} = \mathcal{E}(a,\,b,\,\mathbb{F}_{2^m})$ as our elliptic curve on $\mathbb{F}_{2^m}$ group
$G \in \mathcal{E}$ is a generator of the group, i.e. $\exists n: n\times G = O$
$n$ is the order of point $G$ with respect to th... |
If we assume the strength of RSA is based on the difficulty of factoring (which I know we can't guarantee) and we compose the modulus of some other quadratic ring that is a unique factorization domain like the Gaussian integers, what is the resistance to attacks based on factoring with classical computing techniques?
A... |
I would like to understand how secure the permutation cipher is.
I would specifically like to understand the following concrete setup: If the alphabet is $L = \{0,1,\dots , 255\}$ and $\sigma_1, \sigma_2, \dots, \sigma_n $ are permutations on $L$, then we can create a cipher by encrypting the first character in the pla... |
I did work on the encryption algorithm and the decryption using the XOR method noticed that when more the key length, the less time spent on encryption and decryption.
I have two questions in particular:
Why the greater the key length less time?
in encryption algorithms using the XOR. Is the key should be a certain... |
Is ElGamal still unforgeable if the adversary knows the value of $r$ that was calculated by $g^k$?
When we do sign the message $msg$, we calculate $r = g^k$.
As we know, the regular ElGamal is existentially forgeable:
$e$ is picked randomly from $\mathbb{Z}_{p-1}$
$r = g^e \cdot y$ mod $p$ and $s$ is $-r$ mod $p$
Whe... |
Do Chosen-Chiphertext attacks (CCA-1/2) only apply to public-key Cryptosystem?
|
Are there any guidelines or justification for converting a stream cipher algorithm for use as a CSPRNG?
For instance, lets say I wanted to convert one of the eStream portfolio Profile 1 (software) selections for use as a CSPRNG. What I could do is generate a really unique hash from some other algorithm and use it as t... |
The symmetric cryptosystem one-time pad (OTP) seems to be very beautiful since it is perfectly secret according to Shannon. Many books, however, point out the main drawback: one must create a secret key the same length as the plaintext. For this reason, the concept of perfect secrecy has these days been abandoned, and ... |
If I have a private key of (43, 341). What would be the steps I need to take to decrypt a small message using RSA? I have looked online and everything seems very confusing. Any tips or advice would be helpful.
I have gotten this far:
p=31 q=11
p*q=341
O(n)=(31-1)(11-1)=300
e=7
(43*e)%300=1 e=7
public key (e,n) (7,34... |
I am trying to understand why the constants differ in this SHA1 implementation:
https://code.google.com/p/crypto-js/source/browse/tags/3.1.2/src/sha1.js
this._hash = new WordArray.init([
0x67452301, 0xefcdab89,
0x98badcfe, 0x10325476,
0xc3d2e1f0
]);
https://code.google.com/p/google-authenticator/source/br... |
I just learned about the basics of public cryptography a few weeks ago and I am curious as to why the C rand() function should not be used for crypto schemes. For example, say I want to generate a private key using the C rand() function, along with srand(). Lets say srand() generates a seed based on system time (as in ... |
Let's say I have fileA and fileB, both encrypted somehow, but in the same method with different keys.
If I xor them together, they will make a repeating pattern of 32 bytes length.
What does that say about the repeating pattern, the encryption pattern, and the likelihood of the unencrypted files to be identical?
Is the... |
I wrote a simple python script to preform one time pad encryption
I would like to be able to decrypt the ciphertext by hand. In my script I use mod 26.
This is how I was shown to calculate a mod using a calculator:
467%26 = 25
467/26 = 17.9615...
17*26=442
467-442=25
I used this code to preform the one time pad in m... |
I've been working on a project that will require secure communication over the internet, so I've been thinking of TLS 1.2. After looking around I chose Botan but then I thought about using a more common one, OpenSSL. But since Heartbleed I've been reading quite a bit about problems with OpenSSL, and it seems to be rath... |
It's still common to come across implementations of KDF1 and KDF2. Basically these are KDF's that simply derive multiple keys from the key seed and a counter:
$K_i = \operatorname{KDF}(K_{master}, i) = \operatorname{H}(K_{master} | c)$
In this function $|$ means concatenation and $c$ is the encoded value of $i$ in 4 by... |
I have been looking at the scrypt hashing algorithm and am confused as to why the N value, which determines the overall cost, is limited to powers of two. There are only 3 things that the N value actually affects
The amount of times to mix with salsa (via two loops with N being the count)
The amount of memory required... |
The usual definition of MAC security is (roughly) that there is no "efficient" adversary that has non-negligible advantage in the "MAC game" where the MAC game is as follows: the challenger chooses a random key, the adversary sends some messages to the challenger, the challenger sends the MACs of those messages with th... |
I am writing a application that encrypts text several times and stores the result. The result looks like complete random bytes, therefore I add some random bytes at the end. To let the program know where the real encrypted text ends I put an header at the beginning of the file. The header consists of 8 bytes: If $h$ is... |
The popular command line utility ssss implements the classic Shamir's secret sharing scheme over the generic field $GF(2^q)$ with $8 \le q \le 1024$.
When $q>=64$, the constant coefficient ($c_0$) is not the secret but a transformed version of it, obtained by means of 40 rounds of XTEA-based permutation. As result, the... |
"a block cipher is a deterministic algorithm operating on fixed-length groups of bits, called blocks, with an unvarying transformation that is specified by a symmetric key. - Wikipedia "
But with a native tweak support inside a block cipher, one can achieve "varying" transformation with same symmetric key but differen... |
I am trying to implement a password manager in C and I had a question about the proper steps in implementing the crypto. I looked at some implementations, google talks on crypto and what the standards are.
so I just wanted to list out the steps in the program and I wanted to make sure I was doing it right.
If its a ... |
I want to encrypt user's files on our server. For this purpose I decided to use the PHP Mcrypt library. I chose to use the Rijandel-128 algorithm and CBC mode for encryption. Since files are quite large, I decided to encrypt/decrypt files by chunks.
Everything works well when I use one chunk size for encryption and de... |
I've got an academic curiosity regarding some of the old Japanese naval codes used during World War II specifically. I'm wondering if any of the codebooks from this era have been made available, or if they are still protected materials?
|
Merkle-Winternitz signatures based on fractal hash trees are an attractive alternative to other post-quantum cryptographic schemes, in particular since they are conceptually simple, the security properties are easily understood and they are easy to implement correctly.
However, all schemes based on Merkle trees appear ... |
The AES GCM example for Ruby / OpenSSL shown at: http://ruby-doc.org/stdlib-2.0/libdoc/openssl/rdoc/OpenSSL/Cipher.html has a GCM example of the following:
cipher = OpenSSL::Cipher::AES.new(128, :GCM)
cipher.encrypt
key = cipher.random_key
iv = cipher.random_iv
cipher.auth_data = ""
encrypted = cipher.update(data) + c... |
Notation: $\Sigma^k$ is the set of $k$-strings on the alphabet $\Sigma$; $\Sigma^\ast$ is the set of all finite dimensional strings on the alphabet $\Sigma$.
In the context of computer-science a strong one-way function is generally defined as follows:
A function $f:\Sigma^{\ast}\longrightarrow\Sigma^\ast$ where $\Sigm... |
My example code is as follows:
/*
* Example 1
* 1) Calculate g^a
* 2) calculate g^{-a}
* 3) multiply g^a * g^{-a}
*
*/
Note: here pub->p is a type A pairing.
element_t g, gA,gInverseA, a;
element_init_G1(g,pub->p);
element_init_G1(gA,pub->p);
element_init_G1(gInverseA,pub->p);
element_init_Zr(a,pub->p);
... |
The Full Cramer-Shoup Encryption scheme needs to choose six random numbers from $\mathbb{Z}_q$, which we denote them by $ x_1,x_2,y_1,y_2,z_1,z_2 $. Then the scheme hides these random numbers in the values $c=g_1^{x{1}}g_2^{x{2}}$, $d=g_1^{y{1}}g_2^{y{2}}$, $h=g_1^{z{1}}g_2^{z{2}}$.
It is clear that the proportion of p... |
Criticisms of a cipher system such as 'the ciphertext from one message must be indistinguishable from the ciphertext of a second message" surely only apply when there are very large amounts of ciphertext available. If a stream cipher involves a limited number of messages (say 10) of limited length (say 1000 characters ... |
Here's a paper that just made its way into Cryptology ePrint Archive: Fine grain Cross-VM Attacks on Xen and VMware are possible!.
Its a good survey of past attacks and presents a couple of new techniques for AES against OpenSSL, PolarSSL and Libgcrypt.
Why did the authors use OpenSSL 0.9.7? That's from 2007, and I don... |
Both can be used to verify the integrity of a message. Assuming you have the needed primitives available to you (i.e. the code space of needing both a cipher and a hash function isn't prohibitive), is there any reason to prefer one over an other? In practice HMAC seems to be much more widely used, is that a result of c... |
Please help me pick right design of software…
I have to design client-server software, where the server should verify that the client runs software from specific source code. It has to be verifiable that the software doesn't simulate actions (results of algorithms). So, we accept that client could be compromised. We ju... |
Assuming a publicly known set $\Psi$ with $N$ unique elements.
I have a set $\Sigma=\{\sigma_1,\sigma_2,...,\sigma_m\}$ where $m\leqslant N$. I would like to publicly prove that all the elements in $\Sigma$ are unique and are also elements of $\Psi$. I would like to do this without actually revealing the elements of $... |
I just noticed that on the NIST website there is a PDF with a draft of the SHA-3 standard (i.e. FIPS 202) (marked as "new", and seemingly the page was last changed on April 7, 2014).
Previously it was discussed here that NIST would be changing stuff compared to the submission, which was seen as problematic (mainly from... |
Apple is releasing some updates today. They have not published the bulletins yet, but they are available here: https://gist.github.com/FredericJacobs/11189734.
In the writeup for CVE-2014-1295:
Security - Secure Transport
...
Impact: An attacker with a privileged network position may capture
data or change the operat... |
I noticed that several hash algorithms, in this case MD5, defines some constants.
MD5 defines 64 constant values (the shift count per round) which also gets expand (via sine) to a summand for a specific round. It is like a lookup table.
But I cannot see anything (no documentation, no implementation,...) that calls this... |
In Encryption Schemes for Computer Confidentiality, Pless describes how to use the J-K flip flop as a nonlinear combiner for linear feedback shift registers.
This generator was broken because the J-K flip flops are not correlation immune but my question concerns the basic nonlinearity of the J-K function itself: how do... |
There is any cryptography system that have a good reputation based on NP complete problem?
I read about the knapsack, but it was cracked.
|
Suppose $H$ is a hash function; why is $$H(k\mathbin\|H(k\mathbin\|m))$$ not secure?
See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $$H(k_1\mathbin\|H(k_2\mathbin\|m)).$$ Why don't we use $$H(k\mathbin\|H(k\mathbin\|m)),$$ which has only one key?
|
I'm working on a chat server for a mobile app I am writing. I would like to use a different application server for non-chat related operations and another application for chat operations.
I would like to encrypt the user's id, the user's username, and the name of the chat stream and pass those to the client—and store t... |
It doesn't need to be crazy secure. I wanted to figure out if there's a popular practice when encrypting a short phrase (less than 32 letter long) into two keys (two strings 32 length). Doesn't need to be complicated. It's for a hobby project.
For example:
Key 1: JFHEL1J2J1KD1FK4J4K3LA5D7EKSJX323
Key 2: 1HFK6SJDHG2JEK3... |
Is there any possible way to filter a key space in a crypto-system to get a set of keys that decrypts out a valid text (text that is in same language or readable)?
I tried a random approach and got certain set of keys but its not that appreciative to actually required text size
code
from Crypto.Cipher import ARC4
impo... |
After some digging around in the HMAC spec I found this (paraphrased):
Step 1: If the length of Key equals the block size of the hash
function (512 bits/64 Bytes for SHA-256), set the key equal to the
key. Go straight to step 4.
Step 2: If the length of key is greater than the block size of hash
function, hash t... |
I'm trying to crack a cypher that I believe is Vigenère encrypted and I'm currently stuck.
I calculated the key length by finding repeated sequences in the cypher and calculating the the common factors.
Word distance factors
agzd 16 2,4,8,16
zna 92 2,4,23,46,92
zdc 54 2,3,6,9,18,2... |
I want to pre-compute the result for all possible ciphertext of a homomorphic encryption. Is it acheivable?
Is there a fully homomorphic encryption scheme that has the same size of plaintext space and ciphertext space?
|
I would like to know if there is an algorithm to generate a RSA key at the state of the art of the present cryptanalysis.
Beside the key lenght I know there are some weakness in the choice of prime numbers that could help an attacker to factor the modulus $N$.
The standard key generation, as far as I know, generate a r... |
I am looking for a method of making random numbers that is off-line and is also independent of specialist equipment like a Geiger counter.
|
Can we do frequency analysis of transposition ciphers?
If yes, please tell me the procedure and I would be happy if you provide me with some links related to it.
I heard that it can be done using bi-gram frequency.
I did it for substitution ciphers but am unable to do it for transposition ciphers.
|
I am facing this problem in calculating the order of a process which involves ECC point addition: $P+Q$ , scalar multiplication: $aP$, and selecting random points in the group. The group is of prime order say $q$.
What is the time complexity order of these operations? Is it $O(n)$, $O(log(n))$ or something different?
|
Suppose there are two elements $a = g^x$ and $b = h^x$, where $g$ and $h$ are generators in $Z^*_p$ and $p$ is a large prime. How can we prove that $a$ and $b$ have the same discrete logarithms with respect to $g$ and $h$ respectively without leaking the knowledge of $x$?
|
There are many cases in maths where doing the same thing over and over again will bring you closer to a value. Derivation of polynomials is the striking example: no matter what you start with, you end up with 0. In a series expansion, the longer you continue the sequence the closer you get to the real value.
This conce... |
I have the following question about TLS security:
Assume TLS-PSK protected HTTP with AES256-CBC cipher.
When a TLS connection is established, client sends some encrypted data, where the
plaintext is well known to an attacker.
For example, it can be a HTTP request, like:
GET /some_resource HTTP/1.1
...
Can an attacke... |
I am trying to figure out this question:
Generalize the Merkle–Damgård construction for any compression function that compresses by at least one bit . You should refer to a general
input length $£'$ and general output length $E$ (with $£' > E$).
It is in my understanding that the Merkle–Damgård takes an input of $... |
I'm tasked to apply tiger encryption to my string(key). Does anyone have any idea how to find the entropy of the hex output by tiger encryption?
|
On my exam, we had to solve this problem:
message matrix is: [20, 19, 14; 17, 0 10]
and the ciphertext matrix is: [18, 15, 16; 3, 24, 24].
Find key matrix.
I couldn't solve this problem, because I tried to find key matrix by multiplying
[20, 19, 14; 17, 0 10]^-1 and [18, 15, 16; 3, 24, 24], but I wasn't able to ... |
Classic Feistel Networks and various types of FN's are sequential in nature. [1]has a good overview of different types. But is there a way we can do Feistel Networks in parallel and achieve good security bounds ?
Hoang, Viet Tung, and Phillip Rogaway. "On generalized Feistel
networks." Advances in Cryptology–CRYPTO 20... |
It would be possible to implement the HMAC construction with (draft) SHA-3, leading to HMAC-SHA3-224, HMAC-SHA3-256, HMAC-SHA3-384, HMAC-SHA3-512 (the last 3 digits are the output size $\ell$, where $\ell/8$ is the $L$ parameter in HMAC). All that's missing to apply the familiar
$$\text{HMAC}_K(\text{message})=H(K\oplu... |
I am setting up a Python program to encipher messages on the following basis:
-from my password, generate 32-byte key from SHA256(password)
-generate a 16-byte IV from a PRNG
-measure the length of the plaintext and express as 2 bytes (my plaintext will be shorter than 2^16 characters)
-pad the plaintext to be a multip... |
Pls I need explanation on How i can design a Cryptography that use multiple passwords or passphrase to open a safe(Lock). For example, if i need five people to unlock a secured device whereby all the five need to enter their individual password before the device can be opened.
Please how can this be done? I don't have ... |
I've seen that encrypting an image with AES-CBC then calculating the HMAC-MD5 value for authentication is a somewhat common and sound way to secure data. Alternatively, can I just calculate the CRC of the data, and then encrypt the data+CRC with AES-CBC?
I am concerned about a ciphertext-only attack modifying the data... |
I have taken a course in my undergraduate on the theory part of abstract algebra.Now am interested to know how can abstract algebra be applied to cryptography.Thanks
|
Let's say we have a timestamping scheme of the following characteristics,
The hashes of the documents we are trying to timestamp are XOR'ed with "events" whose time of occurrence are very publicly known (i.e. the hash of the latest block on the blockchain),
$$M_{i}=(H_{D_{i}} \oplus B_{t_{i}})$$
Where,
$M_{i} =$ the ... |
What is/are difference/s between leveled Fully Homomorphic Encryption
and normal Fully Homomorphic Encryption?
|
The bilinear map in Identity-based encryption should satisfy $e(aP,bQ)=e(P,Q)^{a\cdot b}$ whereas Attribute-based encryption schemes use $e(P^a,Q^a)=e(P,Q)^{a\cdot b}$ with $a,b\in\mathbb{Z}_p$ and $e:\mathbb{G}_1\times\mathbb{G}_2\rightarrow\mathbb{G}_T$.
Why are they different and are there reasons to prefer one over... |
Do we have any library or any mechanism where we can use true 7 byte key for DES instead of 8 byte key. I need it for keys analysis in DES and 8 byte key requirement for associated library is creating problem in getting actual keys analysis.
|
Perhaps, this is a really obvious question, but I am still having trouble understanding how this all fits together. Why is knowing the number of points on an Elliptic Curve helpful in cracking it?
Because it can help factor $n$ (as in “mod $n$”) if it's composite? Is it because knowing the order of different points is ... |
Can Skein be used as a secure MAC in format H(k || m)?
I understand it can work with HMAC, but it is fine as a one-pass MAC in the format above and resists length extension attacks. Is this assumption correct?
One of the Skein authors mentions that Skein has another MAC construction with a security proof in their paper... |
I have three quick questions concerning the reduction of the scheme to the approximate gcd problem:
What exactly do the authors mean by $q_p(z_1')$ being the odd part of the gcd? (last line of step 3)
In step 4 (recovering p): Where does the $\pi^2/6$ come from? I'm guessing it has something to do with prime distribut... |
The question is as per the subject line. Does the fundamental theorem of arithmetic imply (prove?) that if I multiply two primes, then those two primes are the only factors of the product? I.e. 17 x 23 = 391 and the only factors of 391 are 17 and 23. I have searched, but can't find an answer to this precise question.
|
I was wondering if a group like the 1536-bit MODP Group from RFC 3526 was a
Schnorr group?
A Schnorr group must apparently have:
$p$ and $q$ being primes
$p = q\cdot r+1$
$1 < h < p$
$h^r\not\equiv 1\pmod p$
And then $g = h^r\bmod p$ is the generator.
In RFC3526's 1536-bit MODP, there's a prime:
$$2^{1536}-2^{1472}-... |
I have non-negative integers $x,y,z$. I'm going to give you commitments $C(x),C(y),C(z)$ to them. Then, I would like to prove in zero knowledge that $xy=z$. I can choose the commitment scheme to make the zero-knowledge proof easy, if that helps. What protocol should I use? Is there a highly efficient protocol for ... |
In standard RSA, the modulus $n=p_1 p_2$ is a product of two primes $p_1,p_2$ of the same size. Suppose we construct the modulus as a product of multiple primes $p_1,\dots,p_k$, i.e., $n=p_1 p_2 \cdots p_k$, where all the primes are of about the same size. I'm wondering how much this reduces the security of RSA, for ... |
I'm implementing the Camenish-Lysyanskaya dynamic accumulator. It seems to me that the accumulator is provably secure because the trapdoor is unknown to the attacker.
The risks should be the fact that, given the Euler theorem, I can forge an element that is was not accumulated but still passes the test, namely:
$v^x\eq... |
Suppose that we want to develop a MAC scheme which is
as secure as Triple-DES CBC-MAC and at the same time as efficient as Single-DES
CBC-MAC. We come up with the following idea: Except the last plaintext block, we
apply Single-DES CBC with key K1 and for the last one, we apply 2-key Triple-DES
CBC-MAC using keys (K1, ... |
Strange question maybe, but say I want to specify a protocol that complies with NIST SP 800-108. This lists a whole set of key based key derivation functions, with a very loose set of parameters.
How should I identify the KDF used? It seems that the KDF's in this document have neither a name, an OID nor an ASN.1 module... |
Is there any advantage of using Tiger Tree Hash over any other hash function organized as the Merkle tree? Are there maybe any properties of TIGER that, say, SHA-2 or BLAKE in Merkle tree do not have?
And in general, is there any point of chosing Tiger Tree Hash over anything else in modern applications for file sharin... |
Let $i, j \in GF(2^q)$ and $i \neq j$ and $i,j\neq0$.
Is that possible that $i^n=j^n$ for some $n$ such that $0 < n < 2^q-1$?
I am looking for a proof if the answer is no, or for a method to find $n$ if the answer is yes.
|
I'm implementing the Schnorr Identification protocol as part of a larger protocol. In a large percentage of cases, around 20%, my test fails. I don't think it's a code problem, although possible, but I think it's a problem with my understanding of the protocol.
Here's how I currently perform Schnorr Identification:
Us... |
I'm looking for help in understanding why the algorithm described here would not deliver adequate protection of confidentiality. We don't care about other criteria such as authenticity or integrity. In other words, we only want to make sure our key material is secret.
Given a key $k$ that is $l$ bits long, a hashing ... |
I know that the AES MixColumn step is calculated as follows
$b(x) = (a(x)c(x)) \mod l(x)$
with $a(x)$ being the column to encode, $c(x)$ the fixed polynomial $c(x) = 3x^3 + x^2 + x + 2$ and $l(x) = x^4+1$ which is reducible over $GF(2^8)$ since $x^4 + 1 = (x+1)^4$.
I wondered about the purpose of the reducibility prope... |
Two or three years ago, I was reading something interesting, but then I lost the paper. The paper described building secure and fast P2P networks (not like tor or I2P).
Unfortunately, I only remember some parts of the protocol/algorithm:
Peer logical address not equal to physical address, actually logical address is p... |
I'm looking to implement modular exponentiation (for RSA) in constant time, but most of the examples I've found are more mathematical descriptions of the operations. Are there any references with descriptions in psuedo-code, which are understandable (and implementable!) by someone without much of a math background?
|
I'm currently testing one among those many interesting cryptographic protocols based on bilinear maps.
It's quite hard to understand the underlying fundamentals, especially since there are several types of pairing and different underlying algorithms like Weil, Tate and Ate (again with subtypes?). Although I understand ... |
I am interested in making a PRNG which, after being initially seeded, can accept and incorporate client data as the only ongoing source of "entropy". It is not directly for a cryptographic purpose, but I wish to get a sense of how much the resulting system might compromise the integrity of the generator.
A simplified ... |
I am interested in MD5 collisions for small input messages.
The collision examples given at http://www.mscs.dal.ca/~selinger/md5collision/ show two different strings, where only a tiny amount of data has been changed to give the same md5, but it feels more like just changing values that are not factored into the calcul... |
I'm trying to understand the logic of CAs, trust and client certificates. I have a general understanding but am having a tough time bridging some gaps.
In a hypothetical situation a software system might be composed of n machines. I want to generate a custom CA for this system and have it self signed. The CA would con... |
As we know that in DH key exchange, both Alice and Bob would agree on the parameter $p$ and $g$. Next, Alice would choose a secret key $A$ while Bob would choose a secret key $B$. Alice would compute $g^A\mod p$ and Bob would compute $g^B\mod p$. They would exchange these computed values and each side would raise their... |
I implemented an Ansi 9.19 mac generator in java, but now I don't know how to validate its functionality. I couldn't find any sample of a {plain text,key,mac} on the internet, and I want to know if there is a good way to test my implementation.
|
From today's standpoint, most people would claim RSA to be secure. However, to my knowledge, this is purely based on the speculation that no one knows a computational feasible way to find a $d$ for given $n$ and $e$, s.t. $ed \equiv 1 \mod \varphi(n)$ - which can be reduced to the factorization problem.
However, it is ... |
I need three pseudo random functions which all take a
seed S (t-bits long).
The functions should map from
$d$ bits to $d$ bits
$d$ bits to $1$ bit
$d$ bits to $t$ bits
$d$ is $10$ bits
$t$ is $2048$ bits
Can you link me to some c++ implementation(or any language) or tell me how to implement it?
|
I'm currently working on a project where I want to establish a secure and authenticated communication channel between to entities, using Elliptic Curve Cryptography. Now I'm not really sure how to proceed after the key exchange. The current exchange looks like this:
$Alice$ sends her public key $K_A$ to $Bob$
$Bob$ se... |
This is a very newbie question...
I have to quickly implement a solution for our application that works like this... We have a binary executable that is given a configuration file. I need to encrypt the configuration file such that a non-trusted user can be given the binary and the encrypted config file (and maybe a pu... |
Judging by the algorithm on the Blowfish Wikipedia article, there is no way for the process to fail with an error. How then does GnuPG know when to tell you your password is correct when decrypting a file, rather than proceeding to decrypt meaningless data?
|
I´m implementing the AES-encrypt algorithm for the SSE2 instruction set.
For the Subbyte function i use movzx, having loaded the S-box in the cache of the CPU for more performance. That cost about 56 OPS wing CPU.
I was wondering if you could calculate the value of the bytes without having to change the vector so serio... |
XEX Mode (with two tweaks) is the following scheme:
$X = E_{k}(I) \otimes \alpha^j \\
C = E_{K}(P \oplus X) \oplus X$
where $I$ and $j$ are both tweaks (sector number and block number respectively). If I wanted to use only one tweak, $I$, is the following correct and safe?
$X = E_{k}(I) \\
C = E_{K}(P \oplus X) \oplus... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.