instruction stringlengths 32 27.2k |
|---|
I was reading about Encrypt-then-MAC and everywhere I go it seems people include the IV with the ciphertext generated for each message then MAC that and send all the information concatenated.
Why do I need to send the IV more than once?
|
I got asked this question and I didn't know what to answer.
How do you test the security of your cipher?
What comes to my mind now would be to test it with famous attacks: padding attacks, exhaustive searches by modifying the input and expecting the output, timing attack…
Any idea?
|
I'm trying to understand a paper that uses the notation $E_y(1,r_{i,j,1})$ (full text available in link, used just once on Page #35, 6th page of pdf, Section 3.3, Step 1c) in the context of an encryption similar to ElGamal. I don't understand why/how $E_y()$ takes two inputs.
The $r_{i,j,n}$ part is well defined (seri... |
Question is a follow-up to this one. The question was about accelerating SHA1. I am writing an application, where I do have a choice of hash algorithm, as long as it's a strong one. I want to be able to use the one which could be CPU-accelerated on consumer grade AMD and/or Intel processors. Which one should I take?
|
Could a code be developed where one uses intentional errors say in english, as a text to encode? For example someone might have a message 'Agent X must report to station 5'. This could be distorted to 'A Gentex missed repaired 2 stationS.' The distorted message then encoded. If the distortions are recognizable to the ... |
If there a proof in the literature which says the CONF Problem is equivalent to solving the discrete log ?
Let $g$ be a generator of a cyclic group $\mathbb{G}$ of prime order $q$
CONF problem: given $q,g, g^a, g^{ab}$ find $g^b$
Discrete log problem: given $q, g, g^x$ find $x$
|
I've read several texts which say that if the entire plaintext is a multiple of the block-size padding is not required (and not using padding would not mean a loss of security).
I generally disagree on this. In some special cases, for example in CTR of OFB mode padding could even unveil more information about the block... |
in Bilinear pairings, what is the difference between Type 2 and Type 3?
I understand in Type 2, there exists an efficiently computable homomorphic function $\phi : G_2 \rightarrow G_1$ , which is not present in Type 3 pairings.
But what I don't understand is what is the use of the homomorphism in cryptography?
For tho... |
Identicons are used to create unique images based on IP address or strings. Lots of programs are available to generate identicons based on an input string.
My question is how hard is to do the reverse. Identify the source string of an identicon. In other words what is the strength of the hash function used to generate... |
Is there a difference between PRF and a hash function?
For example: Creation of a secret key is using PRF and creating a secret key is using hash function.
|
I'm trying to analyze the strength of a block cipher with CBC mode or with ECB mode on the scenario of an exhaustive search attack with knowledge of pairs of plaintext – ciphertext (known plaintext attack).
I understand that, for a block cipher that receives a key of $k$ bits and processes blocks of $n$ bits ($n>k$), o... |
If someone or some group found an efficient way to factor large composites with two distinct prime divisors, would this make it easier to decode any messages?
|
I have used AES to secure my short term wireless network(1 day lifetime). The same symmetric key is used for securing entire network traffic. is it possible to improve security with onetime password scheme? ie, Again AES encryption,but with different 128 bit keys each time.
|
I have just made my own program to encipher, using AES in counter mode, and have validated it using NIST data. So I know I have done it properly.
I have read that AES-CTR can produce a stream of random numbers. To achieve this, what do I feed in as the plaintext? Will any text do? Does it matter if the plaintext has re... |
How well is it known that for $i$ such that $1 \leq i \leq \frac{p − 1}2$:
$$
g^{i+(p−1)/2} = g^{i−1+(p−1)/2} − g^i + g^{i−1} \pmod p
$$
Whilst working in the finite cyclic group of prime moduli $(Z/pZ)^*$, given g to be a primitive root of p.
This property can be used to slightly improve the trial multiplication algo... |
I'm trying to make a strong authentication software and embedded software in a java card. I have found many papers and publications about the subject… too much information to process and I'm working on a very tight schedule, given that the Java card implementation I have supports ECC ( Elliptic curve cryptography ) and... |
The Wikipedia entry on SHA-2 contains a usable pseudocode recipe. In the hope of some deeper understanding, I implemented SHA-256 and SHA-512 from it. This was helpful, but I still don't think I have joined together my understanding of how the hashing works, and how it achieves its goals.
In short, I can see some non-... |
There is a cipher called PRINCE proposed in ASIACRYPT two years ago.
See the paper: “PRINCE – A Low-latency Block Cipher for
Pervasive Computing Applications”
The cipher divides the 128-bit key into 64-bit k0 and k1. If I remove the key whitening at the beginning and end. Then the cipher is stripped down to PRINCEcore ... |
AES 256 is used widely in hybrid crypto systems (e.g. SSL/TLS). According to keylength.com a 2048 bit public key corresponds to 112 bits of security.
Does it make sense to use AES 256 in this context?
If yes, how it improves security in comparison with AES 128?
|
Let $X\in \Bbb F_2^p$ be some information.
How do I create $Y_1,\dots,Y_n \in \Bbb F_2^q$ so that having less than $n-1$ of the $Y_i$s gives you no information on $X$ but having $n-1$ of them allows you to recover $X$?
I first though of error correcting codes, but I don't think those would be able to ensure that havin... |
Recently, I have been reading some dual system encryption papers. In these systems, is the adversary able to generate “semi-functional ciphertexts”?
|
Reading the question “HMAC-SHA1 vs HMAC-SHA256”, I figured out that the known attacks on SHA1 don't apply to its HMAC version. So, HMAC-SHA1 is quite strong right now.
In a protocol like SSL, if it gets broken tomorrow, we can “simply” turn off all the cipher-suites that use HMAC-SHA1. But what if it is used as MAC pro... |
A basic ZKPP (Zero Knowledge Password Proof) is based on the server being able to challenge the client, and the client can then prove it knows the password (in such a way that is verifiable to the server) without transmitting the password itself.
However, in order for the server to issue the challenge and verify the re... |
The two text having relation as "\x10\x11" → "\x90\x91" (80+10) will have relation after encryption/decryption also in RC4. Following code clearly describes the problem I am mentioning.
from Crypto.Cipher import ARC4
key = '12345678'
obj1 = ARC4.new(key)
obj2 = ARC4.new(key)
d1= obj1.decrypt('\x01\x02\x03\x04\x05\... |
In general every public key cryptosystem ``has'' a probabilistic polynomial time algorithm $G$ such that $G(1^k)=(\textrm{public key}, \textrm{private key=trapdoor})$; $G$ is called the key generator. Now for the RSA cryptosystem the keys, can be found in the following way:
Bob decides the key length $k$, then $G(1^k)... |
I have been told that one advantage of using a hash function is that it spreads entropy over all input bits. But it also seems to be true that a bad hash algorithm can make things less random. But how do I know if the hash I am using doesn’t make things less random?
Currently, I’m hashing (SHA2) a few extracted bytes I... |
Given
$$c_1x = k_1 + y_1 $$
$$c_2x = k_2 + y_2 $$
$$\vdots $$
$$c_nx = k_n + y_n $$
where the values of $\{c_1 \ldots c_n \}$ and $\{ k_1 \ldots k_n \}$ are known, and $x, \{y_1 \ldots y_n \}$ are unknown. $y_i$ is chosen uniformly at random.
We are working in a field of $GF(p)$, so all $c_i, k_i, x, y_i ∈ \mathbb{Z}_... |
http://en.wikipedia.org/wiki/ISAAC_(cipher)
This question was asked before but the answers seem vague, and I want to know about ISAAC specifically, not ISAAC+.
It seems some cryptanalysis was performed on it and the only seemingly major drawback to security is that some initial rounds may be biased (although on the off... |
I'm studing Shor's algorithm, and I have a question regarding the following step:
$$a^r -1 = (a^{r/2}+1)(a^{r/2}-1)=0 \pmod n$$
What would be the result if ${r/2}$ was -1? This will mean it's going to be like this: $(1/a+1)(1/a-1)$.
Will it also be $= 0 \pmod n$?
|
What is "Perceptual Encryption", and where do we use it?
I came across it whilst reading a paper on ECC in a multimedia context, from which I quote:
Hence, to achieve perceptual encryption, the higher-order biplanes were selected to be encrypted.
In addition to a formal definition, I would appreciate some examples of... |
With block chipers can I assume that
Enc(k,Dec(k,m))=m
Meaning if I decrypt something with a key k and then encrypt the result with the same key k, do I get what I originally had? Using the same BC scheme of course.
I can't right? It's possible that it has some random parts, no?
|
It is often said that RSA encryption of a cryptographic hash with a private key is the same as signing (signature generation). And that verification consists of decryption using a public key.
Is RSA encryption with a private key over a cryptographic hash equivalent to signature generation?
|
I implemented a pseudonymous PKI scheme (by K. Zeng @Springer Link), where all peers can change their public keys including its signature on their own. I am looking for a way to extend it with some authorisation functionality in that way, that an Authorisation Instance can provide specific credentials to a peer. (e.g. ... |
I know the generic difference between a nonce and an IV. I am specifically looking for a clarification on these terms as used in the "Evaluation of Some Blockcipher Modes of Operation" by Phil Rogaway. In that when describing the block cipher modes for e.g. CBC he says the following (table in page 5) --
Confidentialit... |
I would like to map integer values to points on Ed25519, and then back again.
Is there a technique that takes advantage of the specific structure of Ed25519?
|
SHA1's compression function has two distinct parts: one where 16 words are expanded into 80 words, and one where the 80 words are used over 80 rounds. Are there specific names or terms for each of these parts, and if so, what are they?
|
I am reading on the Ed25519 curve, and I am trying to understand a claim. Here is the claim:
Foolproof session keys. Signatures are generated deterministically;
key generation consumes new randomness but new signatures do not. This
is not only a speed feature but also a security feature, directly
relevant to the... |
Does anybody know an efficient mechanism to prove the possession of a digital signature (e.g. RSA) on a certain attribute (message) in zero-knowledge? That is, without revealing the actual signature (against tracking, for privacy) prove that you have one? Thanks a lot in advance!
|
I've recently read a question about the irreducible polynomial behind the subBytes() operation in the Rijndael that has awakened and old curiosity I have:
Why $\,m(x)$ was chosen as $\,x^8+x^4+x^3+x+1$?
In the comments in the referenced question it has been mention that it was the first that fulfilled the task (be irre... |
how can we prove that if there is a secure PRG then P!=NP or in reverse order?(is there any reduction?)
a secure PRG is a pseudo random generator that for every eficient (running in probabilistic polynomial time) statistical test algorithm A , A cannot distinguish PRG from a truly random generator with a non-neglogible... |
Recently I've found the following work on the internet: An ECC-Based Blind Signature Scheme
The paper claims to be an ECDSA blind signature however it seems that their scheme has a flaw in it.
The process they describe is pretty standard:
Requester blinds a message using his key and sends blinded message to signer
The... |
Wikipedia's TLS article says:
The client responds with a ClientKeyExchange message, which may contain a PreMasterSecret, public key, or nothing. (Again, this depends on the selected cipher.) This PreMasterSecret is encrypted using the public key of the server certificate.
The parenthetical remark is interesting. It i... |
Signature algorithms with elliptic curves have smaller output sizes compared to RSA for the same level of security.
What about the processing time to generate a signature ?
I've seen figures giving the advantage to RSA. That seems curious.
Leaving aside the implementation aspects, what could justify (in terms of number... |
Skein is defined for three different internal state sizes: 256 bits, 512 bits, and 1024 bits – with Skein-512 as the “primary proposal”.
Is there any advantage, other than potential memory or speed performance reasons, when picking a state size different from 512? If there is, what would the advantage(s) be?
|
Is the following function a secure PRG?
Given $F$ is a secure PRG and $k$ is choosen random from key space $K$.
$$G(x) = F(k,x) \oplus F(k,x \oplus 1^s)$$
My solution is $x \oplus 1^s = x'$ so $G(x)$ becomes $f \oplus f'$ with $f = F(k,x)$ and $f' = F(k,x')$. Clearly $f$ and $f'$ are PRG, i.e. generate random strings... |
In RSA proof it can be proved that $\mathbb{Z}^*_n$ is closed under multiplication. Can it be also proved that $\mathbb{Z}_n$ is closed under multiplication? If yes, then how?
|
Given the RSA modulus $N$ the fastest method to factor it is of sub-exponent order. But, now if I know the private key $d$ of RSA, does that mean I can factor $N$ efficiently?. It intuitively seems true as I know the public/private key pair. Can someone help me to prove this?
Please provide references so that I can rea... |
Still trying to design a fully binary cryptography container format for my mobile app, I am here asking if container is ever relevant.
Thanks to Apple, I cannot use GPG directly because I can neither call GPG through GPGME (fork(2) is not allowed) nor embed it (license conflicts)
The container format is simple ar(1) fo... |
Continued from Is there a flaw in this ECC blind signature scheme?
The problem
I needed a partially blind signature scheme for one of my projects, but couldn't find one on the internet, so I've made one (I think).
Is there anyone who can verify my results
Actors
Alice (signer, i.e. bank)
Bob (requester, i.e. payer)
Bi... |
From Wikipedia:
(1) Alice → Bob : g^x
(2) Alice ← Bob : g^y, E_K(S_B(g^y, g^x))
(3) Alice → Bob : E_K(S_A(g^x, g^y))
I know there should be something I'm missing, but I cannot think of why E_K(...) is used. Isn't the signature sufficient? Even if there was a MITM, having S_B(...) or S_A(...) isn't very useful. What am... |
I have read the post Why should I use Authenticated Encryption instead of just encryption? When is it safe to not use authenticated encryption?
I assumed hard drive volume encryption or per file encryption that is not transmitted over an insecure network should be considered safe to do without a MAC. Is that right?
The... |
The "new" kind of ransomware invade your computer and crypt all your files using the RSA-2048.
Personally, I have been victim of cryptodefense: 40000 files encrypted...
I'm not going to pay anything to this &? but this is a big loss. I have a lot of files in both form: crypted and uncrypted (backup from 2011...)
Is the... |
Given a secret $K \bmod q$ which is shared among entities $E_1,…,E_n$ using polynomial Shamir's Secret Sharing, how can the inverse of $k$ be shared without revealing $k$ and $k^{-1}$?
|
After reading many papers about group signature schemes, I saw that basically all of them employ the possibility of "signature opening": The Group Manager (GM) can identify any signature made by his group's members. But I would like to completely eradicate that feature and rather revoke group members by their public ke... |
As I understand, when you want to send a confidential message to someone, you encrypt the message with his public key. And he use his private key to decrypt the message.
At the same time, one can use his private key to sign a message, and other people use his public key to verify that it's him who sign it.
How the math... |
Suppose we have a one-way function F(x) that exhibits the property F(a + b) = F(a) + F(b). Such a function could be used as a cryptographic primitive, no?
|
In the ElGamal cryptosystem, I was wondering whether the $m$ (message) should be less than $p$ (large prime). Because on decryption, we are getting $m \bmod p$. For $m \bmod p$ to be equal to $m$, shouldn't $m$ be less than $p$? So what should be the size of $p$? Should it be a very very large prime number if I need to... |
Is it considered bad practice to use the same N and q parameters for all users in an SRP-6A based authentication system?
I know that q MUST be a Sophie Germain prime and N a safe prime, but can they be generated ahead of time and be somewhat fixed / hardcoded in the client and server? Or should I generate a fresh pair ... |
I already found a protocol to find out who is richer (older) between two parties, but Is there any protocol to find the youngest person among 3 parties, without revealing actual ages?
|
How can one model a random oracle hash function which maps $\mathbb{G}_1 \rightarrow \mathbb{G}_2$?
(Assume $\mathbb{G}_1$ and $\mathbb{G}_2 $ to be additive and multiplicative groups of prime order $q$.)
Normally, for a hash $H: \mathbb{G}_1 \rightarrow \mathbb{G}_1$, we would model it as something like as follows
pi... |
Consider the Triple DES encryption calculated as:
$$C= E_{K_1}(D_{K_2}(E_{K_1}(P))).$$
For a chosen plaintext attack, given plaintext $P$, we compute the result of $D_{K_2}(E_{K_1}(P))$ and store it as a table of length $2^{112}$, then decrypt the cipertext $C$ using $2^{56}$ possible $K_1$. I think we also have a mee... |
Quoting part of my homework/assignment:
How many keys are required for secure communication among 1000 person if:
Symmetric key encryption algorithm is used?
Asymmetric key encryption algorithm is used?
My guess:
For symmetric they each need to maintain and transfer their own key, so probably $1000 \times 1000$, a... |
I know that the private and public key in asymmetric cryptography are different and the public is used for encryption while the private for decryption. My question is if they are symmetrical to each other in a mathematical way? They must be because the one is inverting what is done by the other.
|
I just migrated CodesInChaos' C# port of Ed25519(ref10) to Java, and everything works fine. (I.e. I get the same results for key generation, signature and verification.)
Now, I would like to do a Diffie-Hellman key exchange directly on Ed25519. Therefore I am examining the functions for point addition, doubling and mul... |
I could not find any mention on the Internet of a proven/known cryptographically secure keyed rolling hash function (ie rolling MAC). Has the question been studied, is it possible to build one ?
By cryptographically secure I mean properties equivalent to HMAC with a cryptographic hash function :
without knowing the ke... |
Suppose that $N=pq$ where $p$ and $q$ are safe primes. $\mathbb{QR}_N$ is the group of quadratic residues which is a cyclic group with order $\frac{\phi(N)}{4}$. Let $g$ be the generator of $\mathbb{QR}_N$.
The computational Diffie-Hellman problem is defined as : given $U=g^u\in\mathbb{QR}_N$ and $V=g^v\in\mathbb{QR}_N... |
So the other day, I was piqued by a ciphertext that was trivially encoded through substitution. Solvable only because we can use our eyes to determine word boundary word detection, etc. Trawling the net, there didn't seem to be any automated way of doing this, other than of course to generate a key the size of the alph... |
I was reading the paper Fully Homomorphic Encryption over the Integers, and started
wondering if there is a known quantum attack on their main scheme, because
There is an efficient quantum attack on their "even slightly simpler scheme", as follows:
completely factor $x_{\hspace{.025 in}0}$,
for each [product of a ve... |
I am currently using the ElGamalEngine of bouncy castle to implement exponential ElGamal for the purpose of making ElGamal additively homomorphic. To do this i raise the message to be encrypted to the generator g and modulo it with the group parameter p, like this:
private BigInteger g;
private BigInteger p;
public Bi... |
We know there is a man in the middle vulnerability with unauthenticated DH key establishment. And the way to negate that is to use authenticate the keys used. But what if I only verify the signature of one end. Is there any vulnerability then?
EDIT: To be clear, I am not referring to the fact that the authenticated par... |
I have ten piece of ciphered texts. I know that they ciphered with a same-length key. Any idea how I can decrypt the ciphertexts? What kind of algorithms should I use? What are the points of taking care of 'XORing' these texts with each other and space character?
(text ciphered with the asymmetric key)
should we use th... |
I want to:
Encrypt my whole HDD with a keyfile and a password (meaning that both are required to decrypt it),
Be able to back up pieces of the keyfile in several distant locations using Secret Sharing,
Be able to change the password often and easily.
Notes:
The keyfile is made of 4096 random bits and is done using d... |
Let's say that we have a cryptosystem where Forward Secrecy and Man-In-The-Middle attacks are not an issue, purely hypothetically.
Would it be correct for a key exchange with any given public-key algorithm to simply work as follows?
Alice calculates public & private key
Alice sends the public key to Bob (and Eve inter... |
I read about Asymmetric key cryptography like EG-ECC , RSA, ECDH. I understand the concept of mathematics to these algorithms. But I have wondered about the public key for sender and private key for recipient. In other words,
Any other user who wants to send an encrypted message can get the intended recipient's public ... |
In Merkle Signature, it also requires one-time signature to be used once for a message. The signature in Merkle scheme is even longer compared to Lamport one time signature. The verifier also has more work to do.
Hence, what is the advantages of Merkle compared the one-time (Lamport) signature?
|
So far as I can find, every method better at producing hash collisions in cryptographic hashes than generic collision search involves finding some metric for the distance between two messages' hashes and calculating alterations to each that will iteratively reduce that distance.
And further, unless I'm misreading it, n... |
If the public key $(e,n)$ and the private key $(d,n)$ are known, what is the easiest way to find the primes $p$ and $q$?
When $n$ and $\phi(n)$ are given this is easy to solve. But I can't manage it given just $(e,d,n)$.
Thanks for any help.
|
I’ve looked around this site and the web quite a bit, but can’t find a definitive answer on whether or not the secret key $k$ used in the AES crypto-system has to be a prime number? Or can you just use any random values for the $128,192$ or $256$ bit long keys?
As a personal educational exercise, I’m working on my own ... |
If the decrypting key is 448, then what is the key size? Suppose I am encrypting a plain text with a key by choosing some random numbers between 0 to 1000 then how I can calculate the key size?
|
Is it possible to figure out what $arg1 is if I know both $arg2 and $arg3 in addition to $hash?
$hash = hash('sha512', $arg1 . $arg2 . $arg3);
|
I have read numerous times that the RC4 cipher itself is considered broken in TLS. Still many websites are using the TLS_RSA_WITH_RC4_128_SHA configuration even to date.
Now, I know that sometimes different uses of a cipher mitigate different attack scenarios, so my question is straightforward: Is this particular ciphe... |
Recently, I have surveyed a few research papers related to roaming authentication protocol for wireless networks. For example: “Efficient Privacy-Preserving Authentication in Wireless Mobile Networks” by Hyo Jin Jo, Jung Ha Paik, and Dong Hoon Lee and “Secure and Efficient Handover authentication Based on Bilinear Pair... |
Use case: I have a random number generator that can generate random numbers in a range that is limited by a number $x$, say $x$ ranges from $2$ to $2^{(n - 1)} - 1$ exclusive. In this case $n$ is $16$, i.e. we can generate a number from $0$ to $32767$ exclusive. Programmers will directly identify the upper bound to be ... |
I have a little confusion in understanding explanation of SHA256 by FIPS
a, b, c, d, e, f, g, h
are being initialized as (this is what i don't understand)
2 . Initialize the eight working variables, $a,b,c,d,e,f,g,$ and $h$, with the $(i-1)^{st}$ hash value:
$\ \ \ \ a = H_0^{(i-1)}$
$\ \ \ \ b = H_1^{(i-1)}$
$\... |
I was looking the answer to the following question (Timing attack on modular exponentiation), discussing the Private Key Blinding as a countermeasure for timing attacks.
Therefore I'm asking if someone could point me to a reference for the presented algorithm and if there are other alternatives to implement Key Blindin... |
Vigenère's weakness is Kasiski's test and index of coincidence. However, if you put columnar transposition on top of Vigenère, that weakness is gone. The text is now shuffled and you can't search for digrams/trigrams, because they will give you wrong key length pattern.
You also can't solve Columnar Transposition. For... |
I'm looking into "bitcoin like" mining processes. Say a security process uses a hash of data as proof that the data was known at some point in time.
From what I understand, hash functions are pseudorandomly generated based on the initial seed (the raw data).
If the hash function is chaotic, then the seed data should ... |
I am implementing ring signatures as a part of an authorization system. Since the number of users could get high enough to make computation on end-user devices infeasible, I am thinking of "subgrouping" them.
My idea is the following:
There are $n$ users and there is an untrusted third party, the server $S$ which regul... |
On page 21 of the Rivest's Cryptology chapter, he defines a trapdoor predicate as a boolean function for which it is easy to choose an x such that B(x) = v, but hard for an adversary to compute B(x) given x, without the trapdoor information.
He goes on to say that Alice's public key contains a description of B.
What ... |
For our privacy-preserving protocol, an encrypted channel is established. In order to protect our system from man-in-the-middle attacks, a signature-based approach is used. After we've implemented it with RSA, we decided to optimize the protocol a bit by using ECDSA. The result was very surprising: on Android, signing ... |
I've encountered this term many times in the fields of Fully-Homomorphic Encryption and Obfuscation.
I want to learn those subjects and Cryptographic Linear Maps seems to be an obstacle in the way.
Can you help me with that and explain it in simple words (as much as you can)?
|
RSA primes are 100 bit. You know first 80 bits of one of the primes. In this system, come up with an efficient way to decrypt the cipher-text.
This was the question on my quiz. I'm not sure how to go about it. Any hints?
|
I'm a pentester and currently analysing a web application which are using some strange encryption scheme.
The point is: They encrypt using AES-128, generate a (not cryptographic secure) key and use this as encryption key AND initialization vector.
I'm not a crypto expert, but I know that this is bad (aside of the insec... |
While educating my self I'm having hard time to understand what an 128 bit AES key actually means?
Is it a key length or entropy?
Please explain to me trough following example (assuming AES):
Password length in characters (L) = 20 (characters)
Symbols used (N) = 95 (ASCII set)
Entropy = log2 (N^L) = 128 (is this what ... |
Hashcash is a proof-of-work system in which the Sender needs to find $Y$ such as the first (let's say 20) bits of $H(X+Y)$ are zeros where $H$ is a one-way hash function, $X$ is a fixed value and $+$ means concatenation.
The Sender starts with an initial random number $Y$. It then computes the hash of $X+Y$. If the fi... |
I know that the public exponent is always a prime, but what about the private exponent? Is it always a prime too?
|
Given, say, the Blowfish block cipher, which is considered secure but only has a 64-bit block size, can we construct a secure block cipher of 128-bit block size?
Say we run the key through two KDFs, and encrypt the first half of the block with the first key, and the second half of the block with the second key. This se... |
Am not a mathematician.
Every crypto specification I see uses the modulo operation. For example RSA -
If $e$ is the public key and $m$ is the plaintext with a modulus $n$ - the cipher text is $c = m^{e} \bmod n$
Why is this $\bmod\ n$ there? By definition isn't the modulo operation introduces an uncertainty? I mean ... |
Wikipedia claims that the best attack on the surprisingly simple TEA block cipher, that isn't a related-key attack, has a time complexity of $2^{121.5}$.
So despite how unsophisticated the cipher looks, if I use a KDF properly and don't use related keys, TEA is secure?
|
I understand that RSA encryption uses this formula:
C = M^e (mod N)
public key is e and N
N is pq - p and q are private key.
mod N makes above function one-way - ie cannot be reversed. Hence given C, e and N, it is not possible (easily) to find M.
Basic idea is that modulo arithmetic on an exponent is a one way funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.