instruction
stringlengths
32
27.2k
I need some insight in how to break the following RSA problem: From an RSA encryption scheme you know that the algorithm that generated the RSA modulus $N$ always outputs moduli of the form $N = pq$ such that the difference between $q^2$ and $p$ is not bigger than $2^8$ in absolute value. My question is: Shall I ...
I need some insight for the following problem in ElGamal encryption procedure. It is stated that ElGamal problem in a group $\mathbb{Z}_p^*$ becomes easier in subgroups. Assume I have a subgroup of index 2. Can you explain how is easier the discrete logarithm problem in this case?
I know that balanced boolean functions are required for creating S-boxes. I want to create four balanced Boolean functions for 4X4 Sbox and as far as I’ve understood, the maximum order of the balanced Boolean function should be <= (number of var)/2. But… how many terms should there be in my boolean functions?
I want to develop an app which allows to pair between pc using bluetooth then you can send the signal from the phone to unlock the PC(on the same network). I need help with the process after bluetooth pairing. My idea is the app on the phone will generate a secret key send to PC for storage. The pc will then encrypt t...
I've read Intro to Modern Cryptography PRF section (and example 3.26) and on stackexchange(1, 2), but I still don't fully know how to prove it (with probabilities) To prove it's a PRF, I know you have to prove that no adversary can distinguish $F'_k(x)$ from a random function or I show a possible attack. So the questio...
I need to encrypt and authenticate a stream of data so that it is resilient against unexpected power loss, so I cannot write authentication data at the end of the stream. I am currently using AES-GCM, just for encryption, as my understanding is that the authentication tag for GCM must be written at the end of the strea...
$$G:\{0,1\}^n\rightarrow\{0,1\}^{n+1}$$ If above function is a pseudorandom generator then is the same $G$ a one way function. I tried to prove this but failed a lot of time. Would be helpful if someone could provide some insight on this.
We all know the classic definitions of perfect secrecy, being $$\Pr[M=m|C=c]=\Pr[M=m]$$ and $$H(M|C)=H(M)$$ But now what I've asked myself: If we were to remove the polynomial restriction on the attacker, which game-based security definition would be equivalent to perfect secrecy and how would one show this? Of course...
From what I understand here https://en.wikipedia.org/wiki/ElGamal_encryption and here: https://ritter.vg/security_adventures_elgamal.html, any number can be used as a generator. Is there something wrong with using 2 as the generator? Are there other constraints?
I know that authenticated encryption modes of operation like GCM offer certain security advantages, as well as increased performance. (On my laptop with AES-NI, the benchmark performance of AES-128-GCM is about 3.7× faster than AES-128-CBC-SHA1.) What I'm less certain about is whether authenticated encryption modes off...
So lately I've been studying the TLS Protocol. In particular, going through RFC 2246, section 7.4.7.1, i.e, RSA Encrypted Premaster Secret Message, I encountered: If RSA is being used for key agreement and authentication, the client generates a 48-byte premaster secret, encrypts it using the public key from the se...
Alice has a long message to send. She is using mono alphabetic substitution cipher. She thinks that if she compresses the message it may protect the text from single letter frequency attack by Eve. Does the compression help? Should she compress the message before the encryption or after the encryption? Defend. Will c...
I'm stuck with the following problem on ElGammal encryption. We work on $\mathbb{Z}_{p}^*$ where $p$ is prime and we are given $p$, the generator $g$ of $\mathbb{Z}_{p}^*$ , the public key used $y$ and five encryptions $(u_1,v_1), \cdots, (u_5,v_5)$ where each of them is a encryption of a message $m$ that can be...
I'm curious how I could make an app or add a function to an app that will encrypt the data, then a key that will decrypt it. Specifically, I am wanting to be able to add a "button" or setting on the camera app on my phone that will encrypt the image (I imagine encryption via altering the pixels of the image for cool ef...
Suppose integer $m$ has $\phi(m)=2pq^5r^2$ where $p,q,r$ are primes. Hellman-Pohlig says that finding discrete log $z\bmod p$, $z\bmod q^5$, $z\bmod r^2$ and $z\bmod 2$ suffices to find $z\bmod\phi(m)$ in $g^z=h\bmod m$. It could be that $p,q^5,r^2$ are still very large and there is a Big-step-small-step which is still...
I know both nonces and timestamps are used to prevent replay attacks, and nonces may offer increased security in the situation a message could be replayed with the timestamp in the allowable window. However, if a nonce can provide all the protection a timestamp does, why would they ever be used together?
PERSON A sends messages to PERSON B using AES, CBC, PKCS5Padding with an IV that is incremented by one after each message. If PERSON Z knows that the first block of the plain-text of any message is either "Yes" or "No", can she launch an attack that decrypts the first block of a given message? Hint: Chosen Plaintex...
I imagine there is a class of algorithms for this, but I don't know the name to google for more info. To describe the desired behavior: 0 or 1 + "some seed" -> ciphertext-1 0 or 1 + "different seed" -> ciphertext-2 ... 0 or 1 + "yet another seed" -> ciphertext-n ciphertext-1 + ciphertext-2 + ... + ciphertext-n = ciphe...
I can use an example: the case where we have $x$ such that $f(x)=g(x)$. The quotient is $1$, a non-negligible function. However, we can't conclude that all functions $f(x)/g(x)$ are also negligible. How can I formally prove this?
Is there a good candidate for an algorithm that would takes n days to break depending on how many bytes of the key are missing? I'm writing a story where you need to collect pieces (bytes) of a key and depending on how you have you get an head start in brute-forcing the message. The message is around 200 chars long (s...
Could someone explain to me how they formulated the equation and how it equals to $0^{n}$ (like what F(x, x) equals to or how they cancel each other out?) on the first box and if its related to the second. I know that PRF output plus itself would make all the bits 0, so $F_K(x) + F_K(x) = 0^{n}$
I'm implementing some cryptographic functions on an ARM Cortex-M4 and would like to be safe against side-channel attacks, like power and timing attacks. For efficiency I'd like to use conditional versions of common single-cycle instructions such as moveq, movne, umaaleq etc. The cycle timing will be constant regardless...
Can you think of any way to evaluate the similarity between two time series without revealing any information on the time series ? More precisely, considering two time series $x$ and $y$ of length 130 each, is there a way to get the minimum distance (using DTW for example) without reveling x or y ? Recent work has bee...
It's a very quick question, but I couldn't find the answer from the sources I have. I've been coding EC based D-H key exchange, and I'm almost done with it. So here's what I've understood so far. Michael and Nikita agree on an Elliptic Curve $E:y^2=x^3+ax+b $, a prime number $p$, and a point $P$ on $E$ over $Z/pZ$. Th...
AES-NI optimized processors can be used to accelerate AES, which is a symmetric crypto. Can it also be used to accelerate asymmetric crypto?
Recently (2016) I've been researching on post-quantum digital signature schemes, and read about BLISS, BLZZRD, REBLISS schemes. What I've noticed about them is that they lack a parameter set for 256-bit security level. I went to the Wikipedia page on NSA Suite B and learned that CNSSP-15 require only 384-bit curve for ...
I understand the Zero Proof Knowledge Protocol concept but find it tricky to implement sometimes for real world cases. What I would need is, given a file with some key/value (numbers mainly) pairs, the verifier to verify that some values are within a certain range without knowing the information in the file. Would that...
Everytime we use the generator with itself there is security loss. Even if this loss is not enough to loose all cryptographic security, there is still some small loss in security. Is there any way to calculate as to how much do we loose in aspect to security?
I have the following modified version of RSA apparently proposed by Shamir. To check the original version of RSA check the first scheme in this other question. The modified version goes as follows: que take $p$ a prime number of $s$ bits and $q$ a random number not necesseraily prime of size $ts$ where $t \simeq ...
If Alice sends an encrypted message to Bob, how can Bob prove to Charlie that the message he received from Alice is part of a set of predefined messages, without disclosing the encryption key or the message itself. Let's say we use El Gammal encryption scheme and let's say the predefined messages are M = {1,2}. Bob's p...
I want know the advantages of using digital signatures over HMAC for message by message authentication. I know that HMACs are inexpensive to implement compared to DS, but DS provides a very strong security also uses more processing power. Are these two the main differences?
What are the advantages of using end-to-end and link encryption together? In which situation we can use both? If I understand correctly. In link encryption, all data are encrypted, including headers, addresses, and routing information. So at each router it is decrypted to see the details and encrypted again and forwar...
Common FDE software (TrueCrypt, BitLocker, dm-crypt) doesn't authenticate ciphertext stored on the disk. The commonly cited reason is "it would take too much space", reasoning that you would need an authentication tag for every sector and that would eat significant percentage of available space. With 512-byte sectors a...
I have a sequence of integers between 0 to 100. Is there any free software like Sage, where I can test randomness of this sequence? I have Linux machine. To clarify: I have huge data set. Actually I have my own generator. I want to test its randomness.
First, sorry for my english which is not my natural language and secondly, I hope I am posting on the right section. So let's explain my problem. I am trying to implement the Pohlig-Hellman algorithm based on elliptic curves with the Baby-Steps-Giant-Steps for each iteration. My Python implementation use a curve on fi...
I'm working through An Introduction to Mathematical Cryptography and one of the exercises asks Suppose that we run the Miller–Rabin test N times on the integer n and that it fails to prove that n is composite. Show that the probability that n is prime satisfies (approximately) Pr($n$ is prime $\mid$ the Miller–Rabin t...
We all know that signing a document is to encrypt its hash using signer's private key. https://commons.wikimedia.org/wiki/File:Digital_Signature_diagram.svg I've been searching the web for days, looking for a simple online page where you can sign a text using your private key (you can do this part offline), and others ...
I'm doing a penetration testing for a web application that uses AES CBC PADDING encryption for the parameter ?email=ciphertext then it's printing the plaintext email on html body. I would like to know if is there any possibility to : Crack the IV or the KEY using chosen plaintext attack? Can i encrypt a given plainte...
I've read in Wiki that XXTEA cipher is vulnerable to "a chosen-plaintext attack requiring 2^59 queries". I'dont exactly understand how bad is that, but something tell me that it's extremely hard to implement such attack on practice. Am I right? Another question: is it possible just to increase number of rounds to make ...
I'm trying to find the difference between the two aforementioned algorithms. It seems that one is either a subset of the other. Could someone explain the similarities/differences?
I'm working on a project which requires encryption of sensitive data, with communication of said data between a mobile app and a website (via an API). I'm new to encryption and security, but my current thoughts are this: Data will always be input into the app and viewed via the website, so only users of the website wi...
I'm reading the Wikipedia entry where we have Alice and Bob agrees on a prime number, p, and a base, g, in advance. For our example, let's assume that p=23 and g=5. Alice chooses a secret integer a whose value is 6 and computes A = g^a mod p. In this example, A has the value of 8. Bob chooses a secret integer b whose...
Is there any way to theoretically, by the use of mathematics, to calculate the time taken to brute-force RSA keys? I know there is a way to do so with a classical computer and time taken to brute-force RSA keys, but I'd like to specifically know how one calculates the time. Furthermore, since the technology for brut...
It seems to me (a non-expert obviously) that the brute-force breakability of symmetric encryption algorithms is usually (always?) expressed as "would take approximately N time on such-and-such hardware". But in practice, how would one single attempt among trillions at finding the key be identified as "the right one" th...
Daniel Roesler's personal page has a live examples table for WebCrypto support. https://diafygi.github.io/webcrypto-examples/ Without explination he marks several as "Discouraged! Only use for backwards compatibility!". Two of them i am using in my application are RSA-OAEP for encryption, RSASSA-PKCS1-v1_5 for signing....
In this paper the authors describe a differential attack against FEAL-8. They find several short differential trails, then extend the attack to the full 8-Rounds of the cipher by algebraic means. In the diagram below, the differential trail includes a zero difference. How is this possible? If the inputs lead to a zero ...
My question is simple: where is a good article to learn how GCM/GMAC works? I mean not the description of the algorihm, but why this pair of algorithms for encryption/decryption is really inverse. For me it is not obvous, why encryption of (A+P) --> (C+T) followed by decyption gives again P and the same Tag T...
This might be a stupid question but: When RSA key pairs are generated, there is a pubkey and a private key file. Where is the modulus? Is it appended to the keys? I can't find any information about that.
I am using HMAC-SHA256 as a pseudorandom function family (PRF). I read somewhere that a pseudorandom permutation family (PRP) can be implemented by applying a PRF and sorting the output. For example, if $x_1$ mapped to $4$ under a specific key in the PRF, and $x_2$ mapped to $2$, then the PRP for $\{x_1, x_2\}$ would ...
I am attempting to manually step through the AES algorithm. I have reached the MixColumns step, and am working with the following values: 30 CA 96 24 32 92 09 23 3F CA 43 63 7D 5A F8 96 My output for the first "row" (multiplying the first row of the constant matrix by each of the four columns in the matrix shown above...
In the binary case of Elliptic-Curve-Diffie-Hellman (ECDH) exchange protocol the domain parameters are $T = (m,f(x),a,b,G,n,h)$. What is the meaning of parameter $f(x)$? You may find the definition of the protocol in wikipedia I've gone trough other books and materials but found nothing.
I'm looking for Test Vectors to test my implementation of PICCOLO. I would like to test a different input from the usual where the key and the plaintext are either 000..000 or FFF...FFF. I wrote algorithm in C, like described one in paper http://www.iacr.org/archive/ches2011/69170343/69170343.pdf but i did not get t...
I searched the answer but I'm not sure if I understood exactly, and have some other questions. I understood that the reason for CBC-MAC not to have random IV is if CBC-MAC has a random IV, the attacker can change the P1 block, making the tag arbitrary, so the CBC-MAC scheme can be insecure. Am I right? 1-1. Attacker c...
If $F$ a PRF, and we construct $G$ using $F$ in the following way: $$G(s) = F_s(1)\|F_s(2)\|\cdots \|F_s(n+1)$$ where $|s|= n$. Is $G$ then a PRG? If so how can I prove this? If not how can $G(s)$ be distinguished from a random $r$? And what if $n+1 <$ range of $F_s$? or it could be for any $n > |s|$.
I'm learning about cryptographic hash functions and I have some questions about the functions used in the compression function. MD5 uses the following functions: $f_{1}(B,C,D)=(B\wedge C)\lor(D\wedge \lnot B)$ $f_{2}(B,C,D)=(B\wedge D)\lor(C\wedge\lnot D)$ $f_{3}(B,C,D)=B\oplus C\oplus D$ $f_{4}(B,C,D)=C\oplus(B\lor\ln...
I'm just starting out with cryptography now and have gone over the various defnitions for a perfectly secret cipher. One of the equvilant definitons is adversarial indistinguishability. When trying to prove the equivilance I had a bit of trouble with one of the directions and ended up finding this proof online: (Sourc...
I'm trying to understand how the messages $m_0$ and $m_1$ can be distinguished here. I understand the adversary game, so in short: Adv chooses $m_0$ and $m_1$, one them is encrypted and Adv is able to tell which one has been encrypted. My understanding is that (ignoring the ctr for the moment, because its the same for...
I am working with this black box cryptography scheme. I know the plain text, cipher text, and everything else except how they whiten the data (or key?). Everything is 128 bit, 16 bytes. I have two keys, one is the called the 'WhiteningKey' and the other is called the 'AESKey.' If I set the 'WhiteningKey' to zero bytes,...
I read this post Does RSA work for any message M?, but I cant prove that $(M^e)^d-M\equiv 0\pmod{p}$ like this:
Choose randomly $P\in G_1, (s,a \in Z_q)$. let the attackers know $a,P$ and keep $s$ as secret. Also the following is given. $$sP,(a+s)^{-1}P$$ Individually, From $sP$, trying to reveal ($s$) will be discrete logarithm problem. However, I don't know (computational assumption) how to prove $s$ value cannot be revealed...
The assumption is you have a Collision Resistant function(CRF) Family F. How do you use F to build a One Way function (OWF). One Idea I have is to use 2 functions from the CRF Family. Both these functions have n input and n/2 output. You as a user inputs n bits ({0,1}^n) and get an output of n, by using 2 of these func...
some times when see a problem like : if some G is a PRG then G' is also a PRG. we prove this by reduction in the following way: we assume there is a Distinguisher A for G' and we construct distinguisher D for G. and then we prove that the probability that D returns 1 is negligible using out assumption about A. my quest...
In the paper on high throughput MPC for 3 party computation it was written that for semi-honest adversary, each party is required to send three field elements to each other per multiplication gate, How? Is this about beaver triplet or what?
I was taking a look into the paper PHANTOM: Practical Oblivious Computation in a Secure Processor. The introduction says, Confidentiality of data is a major concern for enterprises and individuals who wish to offload computation to the cloud. In particular, cloud operators have physical access to machines and can...
Although there are several implementations of ECDSA secp256k1 public available over the internet (the most popular being OpenSSL), it seems that there are no complete set of test-vectors available. The few test vectors I could find always miss some important information: do not provide the hash integer or the secu...
I've just used the FIPS 140-2 tests as implemented in rngtools, the rngtest. I ran it on a 12.3MB file of pak8 compressed ASCII text. It passed most of the tests, with a 0.2% failure rate. Monobit and Continuous runs tests actually complete without any failures. It seems very lax at detecting randomness. What's the...
Given the exact same question and answer here: https://crypto.stackexchange.com/a/37212/40935. How does one derive/figure out (using equation, combination of equations, or "knowledge") the bold marked parts in the following: How does one know to put 0.5 and 1/(26^2) in the following places: Pr[C=ff | M=dd] x Pr[M=dd]...
I'm developing an app that uses blind signatures. I'm having a hard time finding tools, and best practices for blinding. There is no PKCS. And everywhere I go, I find caveats of different blind signature schemes. I've read mixed things about RSA blinding, and looked at this RSA blinding algorithm. But it doesn't seem ...
If the encryption key that you use doesn't correspond to the decryption key used by the crypto system, it is assumed that it will not be possible to decrypt the message or you'll know that there has been some mischief. I wanted to know how will one know that the decrypted text is not correct? My point is that whether t...
With most encryption methods, if a message is encrypted first using key $k_1$ and then using $k_2$, to decrypt it you have to use first $k_2$ and then $k_1$. I was wondering if there are any encryption methods that can be decrypted using the keys in any order. For example, if a message is encrypted using the keys $k_1$...
I'm looking for a special signature scheme that has the following features: There is a group. The group consists of $n$ key centers and 1 user. All group members have their own private keys, and public keys that satisfies feature 3. If the user signs (or, private key operation) a message using his private key, then th...
I'm interested in finding the best, or maybe just a good linear approximation of the function $F^{(19)}: V_{56}\to V_8$, where $$ \begin{array}{l} F^{(1)}(x_1,x_2,\ldots, x_7) = P(x_2+x_6); \\ F^{(2)}(x_1,\ldots,x_7) = F^{(1)}(x_2,\ldots,x_7,F^{(1)}(x_1,\ldots,x_7)), \\ F^{(3)}(x_1,\ldots,x_7) = F^{(1)}\left(x_3,\l...
I'm encrypting in C++ with openssl library. Basically I'm using these functions: RAND_bytes(key, 32); AES_set_encrypt_key(...) AES_ctr128_encrypt(...) My purpose is to encrypt parallelly with different threads. Obviously, every encryption/decryption will be on completely different objects. Does these functions thread...
Is it possible to use CP-ABE to provide a layered (hierarchical) organization? For example, If I have 100 records, I will encrypt the first 10 records (lowest level) to be decrypted using certain attributes. The next level can for instance decrypt up to 20 records. Encryption depends on a secret $s$ for the first ten ...
What's the industry standard for generating single-use SMS codes verifying phone number ownership? I'm currently evaluating two main alternatives, both based on sending a verification code to that phone number via SMS. How would one properly generate such code? Obtain an OS-generated random GUID and somehow shorten i...
Path ORAM block headers store nonce that is used to re-encrypt the data on access. Every time a block is accessed, the nonce is updated. If the header itself is encrypted, how's the decryption done when the block is fetched next time? If the header itself is NOT encrypted, isn't it trivial for an attacker to recover th...
I have been reading Canetti, Cohen and Lindell's paper, "A Simpler Variant of Universally Composable Security for Standard Multiparty Computation", and there are some parts that I didn't understand. In page eight the authors mention that we cannot guarantee fairness in the SUC framework, nor model local computation...
According to my understanding there are some pretty solid seeming roadblocks to carrying out an index calculus on an elliptic curve over a finite field. The general strategy is to take points over $E(\mathbb{F}_p)$, lift them to points over $E(\mathbb{Q})$, and then hope that the curve over $\mathbb{Q}$ has high rank. ...
Cipher is GCM-AES. Is it acceptable/recommended to store the IV as AAD? Any popular examples?
If we are given a ciphertext which is not coprime with our N (N = p*q), is there any way to get the secret key from this information in RSA? I first thought you could divide the N by our ciphertext C, giving us a non-trivial factorization of N i.e. C * (N/C). But then we would be stuck trying to find $\phi(C)$ and $\ph...
If you are given the ciphertext and the first half bytes (8 bytes) of the encryption key (key is 16 bytes in total), can you use this to break AES-128 ECB encryption and determine the last 8 bytes of the encryption key? (As opposed to trying all 256^8 possibilities for the last 8 bytes of the key, which is A LOT of pos...
Suppose this simple protocol with three parties: $X$ (with secret input $x$), $Y$ (with secret input $y$), and $Z$ (no input). Suppose that we are operating with elements from a finite field. The goal is that after the execution of the protocol, $Z$ knows $x\cdot y$ but not $x$ nor $y$, and $X$ and $Y$ does not learn a...
Whirlpool uses a modified version of the AES / Rijndael algorithm. Can Whirlpool take advantage of AES-NI instructions (or possibly other specialized constructs) on Intel and Intel compatible processors? Or is the underlying AES algorithm modified too much for AES-NI to be compatible with the algorithm? As an addition...
I'm trying to implement Floyd's cycle finding algorithm on SHA256 function. I think I understood the method used to find cycles but what bothers me is how to properly feed the repeated hashing function. Let's say I hash string "abc". What I will get as a result is : "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410...
If I execute a proof by reduction using a given adversary A as a subroutine to A'. How do I know that using adversary A which can solve a given hard subproblem, is the most efficient subroutine to use to solve the larger problem that A' solves? Thanks in advance.
AES-NI speeds up both encryption and decryption. The encryption is as secure as the time needed to brute force the decryption. Doesn't it mean that the application developers will just need to increase key length until the time taken is almost the same as without AES-NI?
Would it be possible to use a block cipher such as CBC in order to encrypt a wireless communication? For example, could I use CBC-MAC, on each block, for encryption for WiFi?
The SPDZ paper explains how the SPDZ protocol can be used to find the sum/product of secret values and find the sum/product of a secret and a non-secret value (page 6). The paper seems to say that from this you can do any other operation. How would you use this to do secure less-than comparison? The Bristol SPDZ imple...
We have this special use case that our session typically only last for less than 30 minutes, no more than 1 hour at most, after the session finished, the information protected does not matter. Each time a new session start, a new group (p, q, g, k) choose randomly, where p=k*q + 1, g is the generator of subgroup q, p, ...
I asked a question about using 16 different Sboxes in AES each for one state byte instead of using same One Sbox for substituting 16 state bytes (See the Question Increase in AES SBox). The answers i got are like given below at least one disadvantage of using 16 S-box to change the 16 bytes. The size of the code and t...
How to make cipher resist against Side channel Attacks. Specially Timing Attack, Cachet Timing Attach, Simple/ Differential Power Analysis. Uptil now it seems all Standard Algorithms like AES, Cameillia etc have been successfully broken using side channel Attacks. What are the design criteria to counter these?
I refer to elliptic curve groups over prime fields and their application in cryptography. If the order of a group is prime, it follows (am I wrong?) that: the group is cyclic and every element beside the zero element is a generator. To my knowledge the first statement is well known and last statement is a consequenc...
What is the deeper reason, a group must have prime order for usage in cryptography?
Below shows the hexadecimal pair which collides in MD5 (http://www.mscs.dal.ca/~selinger/md5collision/): d131dd02c5e6eec4693d9a0698aff95c 2fcab58712467eab4004583eb8fb7f89 55ad340609f4b30283e488832571415a 085125e8f7cdc99fd91dbdf280373c5b d8823e3156348f5bae6dacd436c919c6 dd53e2b487da03fd02396306d248cda0 e99f33420f577ee8c...
If I understand it correctly the security of $\operatorname{Keccak}$ depends on the capacity $c$, which means that I get a security level of $2^{128}$ for $c=128$ (I omitted the value $r$ here because I think that it is irrelevant to my question...but correct me if I'm wrong). But in every publication I found (and eve...
While thinking about additive DH key exchanges, I somehow had the idea that additive DH key exchange may always be easy to break, if we are in a field. So here's (directly) the question: In any finite field, is the additive discrete logarithm and / or the computational diffie-hellman problem always easy? Here's some mo...
In WEP, the 128-bit challenge string generated by an access point would allow for approximately 340 undecillion unique strings. Would it be problematic were a string to be reused? I suppose with $2^{128}$ possible strings it would take a very long time for an access point, with an average amount of associations, to eve...
I have worries about security defined in BACnet protocol (ASHRAE/ANSI Standard 135, ISO 16484-5). Full text of security is here: http://bacnet.org/Addenda/Add-135-2008g.pdf and here is my summary: In my message I have header containing unique message ID and timestamp (along with some other data) and payload. I sign who...
It is know that for a perfect secrecy scheme, for all m1,m2 and c: $Pr[C=c | M=m1] = Pr[C=c | M=m2]$ I also know that for all distributions of M, m1,m2 and c: $Pr[M=m1 | C=c] = Pr[M=m2 | C=c]$ Does not imply perfect secrecy (by counter example). My question is, how does the "for all distributions of M" affect the answe...
If f(n) is a negligible function, is -f(n) also negligible by definition? Since $$f(n) < \frac{1}{p(n)}$$ for all positive polynomials $p(n)$ and for some integer N such that $n > N$ Thus $$-f(n) < \frac{1}{p(n)}$$ Thanks very much in advance.