instruction
stringlengths
32
27.2k
I'm working on a quantum random number generator based on the shot noise of CMOS camera sensor. Shot noise in an image is caused by the variance of the number of photons hitting the sensor per unit of time. The distribution follows the Poisson distribution. To collect shot noise, I have to illuminate the sensor with a ...
Message Authentication Code as far as I know works on the shared secret key. Do they work in the same way. Is there no difference between symmetric and asymmetric processes. Can anyone please explain me from message integrity and authentication perspective?
Joux presents an elegant way to generate k-way multi-collisions with about as much effort as generating a single collision: https://www.iacr.org/archive/crypto2004/31520306/multicollisions.pdf However, so far I have only found applications of this attack on full-length hash functions like SHA-256 or MD-5. Therefore, co...
I want am making an application, demonstrating an attack on a weakly performed diffie-hellman. I need to implement an algorithm that can use the shared variables in order to compute the key. Searching for resources, I keep running into the logjam attack. However I can't really filter out the number crunching from all t...
So I've been stuck on this question for a very long time. How do you use double encryption to encrypt a hard disk so that all of the following conditions are met: All data on the hard disk is encrypted. There are multiple users and each user has his own key to make the harddisk readable/writable. Think for example of ...
So I have implemented a client and a server performing Diffie-Hellmann, however sometimes the symmetric key is not valid? Example: Prime: 23 Primitive root: 5 client secret: 14 server secret: 16 This results in a faulty generated symmetric key. Client shared key: $${5^{14}\mod 23}=13$$ Server shared key: ...
Suppose you have a public program P(n) which takes message n and generates an encrypted output (utilizing asymmetric cryptography) for some entity which has the private key to decrypt it. Using a scheme such as Elligator (for elliptic curves) it is possible to have P which has output indistinguishable from random. But ...
I wonder if someone can help me find the algorithm used to generate validation codes from a serial number. I already have some working examples of serials->codes pairs: 19003148 -> 523254 19003162 -> 458091 19003064 -> 618138 20000589 -> 138224 I understand that the validation code is somehow calculated directly from S...
Suppose there is an elliptic curve $E:y^2=x^3+(p-1)\cdot x\bmod{p}$ with $p>3$. The question is: What are the points that have an order of 2?
Let $k$ by a randomly generated $n$ bit string, and $m$ a $n$ bit message. Then putting $c = m \oplus k$ is the one-time pad and is perfectly secure. Now assume the transmitter and receiver wanted to share more messages: then they could publicly choose a random $n$ bit string $b$, and then by putting $k' = b \oplus k...
I am curious to know whether (Yao's) garbled circuits are actually deployed in practice. There has a lot of works on optimising garbled circuits (e.g., here and here) and I am interested in whether these simply of theoretical interest or with practical applications in mind. (A quick Google search did not yield much.)
I read one answer to a similar question that put forth that a hash function is distinct from a PRF, however I've also found materials purporting that cryptographic hash functions are PRFs, and I'm not sure now. Also, is HMAC a PRP because of being keyed? I thought that a cryptographic hash function being keyed (i.e., w...
For a hash set where the values are supplied by a third party, one concern is that an attacker can run a denial of service attack by creating many values that all fall into one bucket of the hash table, causing accesses to take linear time instead of amortized constant time and overloading the system. (Since it’s a set...
RSA is homomorphic wrt multiplication and therefore it is not IND-CCA2. But how to show it. What are the steps to win IND-CCA2 game? How is the probability of winning calculated?
So I have build an application which purpose is to demonstrate Diffie-Hellman. I don't fully understand some of the arguments for the sizes of the numbers used in the algorithm. It seems like there is a general concensus that the prime used should be atleast 1024 bit, more preferably 2048 bit. Doesn't that just make th...
The Post Quantum Cryptography is a type of cryptography that lies on physics properties instead of mathematics , it has many algorithms and implementations like NTRU , McEliece , SIDH ... etc But there is a difference between Post Quantum Cryptography and Quantum Cryptography , i'd like to know some algorithms of that...
The proof I'm struggling with is the following: Let $\mathcal{E}$ be a cipher defined over $(K, M, C)$. Suppose that $SSadv[A, \mathcal{E}] ≤ \epsilon$ for all adversaries $A$, even including computationally unbounded ones. Show that $|K| \geq (1 − \epsilon)|M|$. The semantic security advantage, $SSadv[A, \mathcal{E}]$...
When Argon2, Balloon, scrypt, bcrypt¹, PBKDF2… are used for a password, we can call them password hash (for password storage) or password-based key derivation function (for use in encryption). But that might not be understood when the context involves no passwords. Purposely-slowed hash is more descriptive, but awkward...
First of all, I want to make sure I understand stream ciphers correctly: I put a plainchar (e.g. byte?) through the stream cipher and receive a cipherchar. Correct? When I now have a pair of plaintext/ciphertext, I could then brute-force all secrets which map plainchar[0] to cipherchar[0]. For the next character, I onl...
I am wondering if someone can say if the following qualifies as a PRNG. Input a random bit seed of length $n$ into the generator, and over $k$ steps the generator uses $k$ publicly known integers to compute the pseudo random bit sequence, outputting a stream of $kn$ pseudo random bits. I am wondering if the use of the...
I’m not an expert in crypto, and I would like to design draw system (like a lottery, but choosing one of the participants), the most open possible, allowing a third party to verify the data/draws, and even replaying it with the data, giving the exact same results. Would it be helpful to verify the draw, if I publish th...
It is the Exercise 9.14 (9.1) from the book A graduate course in applied cryptography by Boneh and Shoup. Let $(E, D)$ be an AE-secure cipher. a. $E_1(k,m):=(E(k,m), E(k,m));$ $$D_1(k,(c_1,c_2)):= \begin{cases} D(k,c_1) & & \text{ if } D(k,c_1)=D(k,c_2),\\ \text{ reject } & & otherwise \end{cases}$$ b. $E_2(k,m):=...
A basic cryptographic accumulator can be implemented by simply multiplying prime numbers to form a composite number such that the membership of any given prime can be determined simply by dividing it into the composite and ascertaining the quotient is a whole number (and not 1 or the composite number). Imagine that Ali...
Supposing that the (3 total) primes are kept secret? Does the reuse of $p_1$ allow an attacker to compromise $n_1$ and $n_2$ if the attacker guesses that both were generated with a shared prime between them (each having one unique prime)?
Suppose I intercept the same message m sent to 2 friends. I know what the message is and I know the used modulus n, as well as the ciphertexts but I don't know the respective public exponents. I.e. my system of equations is: $c_1 = m^{e_1} \ mod \ n$ $c_2 = m^{e_2} \ mod \ n$ Is there a way to retrieve the public ex...
In one my classes, I have the following exercise: Prove that, in the DSA signature scheme, if a DSA signature is accepted, it is also correct. How would I go about proving this? In cryptography, what is one usually referring to when saying a signature is correct? Does it mean that if the verifier accepts the signatu...
I am trying to understand the safety precautions regarding the variables used in Diffie-Hellman and I was refered to this post answer Does the generator size matter in Diffie-Hellman?. In more details: for DH, we use a subgroup of size q of the integers modulo p (a big prime) with the multiplication as group operation...
I am currently writing Python script that initiates a secure handshake. I am kind of reinventing the wheel here, so that I can properly learn it. Now, I have Diffie-Hellman mostly working from scratch, and both client and server has agreed on a key to use. This key is an integer of ~2048 bits (2047 most of the time. 20...
Just saw this string of letters: picture here's a raw text version: bgedrf,jeidiqghe gq-gfdchcubfe--q iqhogmebhbiehc ticdcf x geheedajftc,dieieff hggyiddifeetshdccf cdxhd-hcvddhie-cgi efgfih-rlixeffeii-hd feigfg someone has already tried a Caesar Cipher, but I'm not exactly an expert on encryption and cryptography. ...
This is a bit vauge and long winded. Any partial answers or comments/ways to make this more precise would be greatly appreciated. Fix some general structure for a cipher, for example Sbox then Permutation then add round key iterated n times. Consider all ciphers obtained by this method where we choose the S-box and per...
I have found some contradicting answers regarding finding a safe prime. When p is a "safe prime", this means that $(p−1)/2$ is also prime. We then define $q=(p−1)2$. In that situation, the order of any non-zero $g\mod p$ (except 1 and p−1) is either $q$ or $2q$ If it can produce a group of size $2q$ then the groups ...
I assume 1 atleast is excluded from the set of possible secret keys, since you can compromise the key just by looking at the equation if it is 1 $g^1 \mod p \equiv g$. In case g is less than $p$ obviously. What about lower numbers like anything below 100, would it be clever to discard them from the possible keys in ca...
For convenience I had an id_rsa keypair and duplicated them with a new name. I may or may not use them consistently on different machines. (The reason was to keep an existing id_rsa on a machine I didn't own.) Today I decided to give them new passwords ssh-keygen -f id_rsa -p. Just to make sure, I checked md5 on both s...
Most successive squaring time lock puzzles I've seen appear to be broken by Shor's algorithm. Is there another practical and efficient time lock protocol that is not broken by Shor's algorithm? If not, what will I need to make one? time lock requirements What I mean as a time lock puzzle is something that balances bein...
In the Diffie-Hellman protocol, each participant selects a secret number $x$ and sends the other participant $α^x\bmod q$ for some public number $α$. What would happen if the participants sent each other $x\,α\bmod q$ for some public number $α$ instead? Give at least one method Alice and Bob could use to agree on a key...
I'm currently working on a Python implementation of the BFV[12] cryptosystem. I got to a point where key generation, encryption, addition and decryption works as expected. Where I'm struggling with however is multiplication and relinearization. In particular relinearization "Version 1". I do understand that given the m...
Consider I knew the seed of the random number generator that Bob uses to send encrypted emails to Alice. Would I have an advantage in deciphering the message? Also, how does, for example, openssl generate a completely random seed so the rest of the generated sequence isn't discovered? Am I missing something here?
In ECDSA, the public key $P$ is computed via the private key $k$ and the generator point $G$: $P=[k]G$ The scalar $k$ (private key) has to be an integer. However, I am wondering - does the private key/scalar need to be an integer in the first place? Would it be acceptable if the scalar is a decimal (example: $k=111254...
Kerberos transforms the user password to obtain a secret key, which is also stored in the kerberos database. That way what travels through the network is the derived key, not the password itself, which defends against network eavesdropping attacks. After authentication a session key is obtained. However, what's the rea...
When I read about DLP, I found that there are groups where the computation is easy. I found that it is known that computing discrete logarithms in the subgroup generated by 1 + N is easy. For example : $ (1+N)^{x} = 1+ xN $. Is this correct? And what is the mathematical foundation of this computation? Why is consider...
What is the difference between an encryption protocol and an encryption standard? Am I missing something here? Or are they in fact two different concepts altogether?
The complexity of computing discrete logarithms in a multiplicative group modulo a prime $p$ is assumed to be sub-exponential time. The complexity is determined by $q$, the biggest factor of the group order $p-1$. Is there any group $\mathbb{Z}_p^*$ such that discrete logarithms are easier than subexponential in $q$?
I am creating a web app that applies Python's random algorithm (Mersenne Twister) to generate random 12-bit integers. I am concerned as to how a user can predict future results by recording the needed number of sequence using API calls import random def rand12bits(): return random.randint(0, 4095) How many of thes...
Does the output hash of simple hash and Merkle hash are same for same data>>??
I'm studying reductions in cryptography and confused about the way people use the word "reduction". My question is almost the same as a past question, but what I want to ask is slightly different. A lot of papers or articles (e.g. Wikipedia "Reduction (complexity)" or "The Algebraic Group Model and its Applications" by...
Assume it's proven: "Security of protocol $\Pi$ can be deduced from hardness of problem $P$". Is it correct to state: "Security of protocol $\Pi$ can be reduced to (hardness of) problem $P$" ? My question is about accepted VOCABULARY in the field of cryptography with provable security. This is a simplified version of...
How would I attempt to brute force a RSA encrypted message with a 64bit computer if it the memory can't put up with calculations bigger than 64bit? Without going that far to attempting to crack it, how does my computer encrypt a message with a public key that's bigger than 64bit (e.g 2048)?
I'm thinking about doing this as a project, but I'm not sure how I'm supposed to proceed. So I have an 128-bit ECDSA, which would provide about 128 bits of security (if we do not use special methods like the baby-step giant-step algorithm or Pollard Rho's algorithm). I generate a list of 2^64 public keys, and I want t...
This question is about the proof of the differential privacy of the laplace mechanism. All more detailled explanations I found of the proof, that the laplace mechanism is $\epsilon$-differentially private, use deterministic functions as the query f that is made on the database (e.g. counting queries). But is the state...
I apologize for the newbie question. If I were to use a 256-bit key and AES256 (assuming I had the function instead of AES128, the length of the for loops in the functions xor_128, leftshift_bit, generate_subkey, etc would remain as 16 correct? Since AES256 also returns a 128-bit result example xor_128 function void xo...
I was reading the abstract of "Non-deterministic Processors" paper by "David MayHenk L. MullerNigel P. Smart", in the abstract, they have mentioned the Kocher paper about "Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems" What is the application of Non-deterministic Processors on a side-...
In the paper CL signature scheme, the authors describe the scheme to generate and verify credentials. I have a question regarding the credential generation from issuer. In page 11, section 4.4, protocol 2 (2:2), the organizer $O$ generates a random prime $e$, and calculates $c= (P\cdot d)^{1/e}\bmod{n}$. My question ...
Let's say there's this blackbox app that has a known modulus $N$, private exponent $e$, and takes ciphertext $C$ encrypted against $N$ and $e$ input and outputs plaintext $M$. The encryption is done via textbook RSA (i.e. $C=M^e\bmod N$ and $M = C^d\bmod N$). Is there any way, using some form of CCA or whatever the sor...
I'm interested in cryptography, but unfortunately haven't found the time to dive into the topic much. I have done some quantum encryption stuff back in the day, but that isn't helping me with my current challenge. I hope this community can help me to get going with the following. I am currently implementing security me...
When I create a VeraCrypt file container using the GUI, it displays a warning whenever I type in a password under a given number of characters. I was wondering just how insecure, in practical terms, such a method of encryption really is. To give a concrete example, suppose: I have a 4 GB VeraCrypt-generated container...
My client creates a private/public key pair and sends it securely to a server (the "public" key is not really public, only the server is supposed to know it). The server then sends messages to the client, encrypted using the public key. Now a customer wants to add a proxy that inspects these messages. Obviously the pr...
I am working on a code generating Edwards curve (Ed25519) keys in a HSM using PKCS#11 API. In the public key template the CKA_EC_PARAMS uses an OID to specify the curve. The encoding for Ed25519 is 06 09 2B 06 01 04 01 DA 47 0F 01. I understand the tag (06 for OID), the length (9) but the OID itself does not match the...
The basic composition theorem in differential privacy states, that if I have mechanisms $M_1$, which is $(\epsilon_1, \delta_1)$-differential private, and $M_2$, which is $(\epsilon_2, \delta_2)$-differential private, then $M=(M_1,M_2)$ is $(\epsilon_1+\epsilon_2, \delta_1+\delta_2)$-differential private. (It works for...
So, according to the elliptic curve discrete logarithm problem: $$A=[r]B$$ In which $A$ and $B$ are points on the curve, and r is the scalar. It is trivial to compute $A=[r]B$ if $r$ is known, but it would be incredibly difficult to find $r$ if $r$ is unknown. Now, take bitcoin's elliptic curve as an example - secp256...
A proxy re-encryption scheme is collusion resistant, if the proxy and a delegatee are not able to recover the secret key of the delegator. For example, when we have a message that was originally encrypted for Alice and a proxy re-encrypts it for Bob, Alice is the delegator and Bob the delegatee. Bob and the proxy shoul...
I have been trying to find a solution to this question and wasn't able. When it comes to signatures and Hash Functions, how would be possible to show that $\pmod n$ and modular exponent $g^x \pmod n$ are not cryptographic hash functions? Any help will be very appreciated
I am trying to encrypt/decrypt multiple user documents (consider text) in an application. Unlike the use case of passwords where decryption happens once during an API call, in this application during each API call the server has to decrypt multiple documents. Currently, I am using AES-256 with random salt and PBKDF2 (1...
I have multiple blobs each (symmetrically) encrypted with its own randomly generated key. Now I want to encrypt these blob keys with user keys and store them in a database. A table could have the following columns: blob_id user_id (unencrypted) blob_key (encrypted with user key) expiry (unencrypted) Now I would like ...
I was looking for a means to perform a key exchange without relying on a PKI. I discovered Password Authenticated Key Exchange (PAKE) and after reading J-PAKE; I have the following questions: Do PAKE assumes that involved parties already have a shared message? in J-PAKE, they used an extension of Diffie-Hellman Key a...
The classical One-Way Trapdoor Permutation is RSA. The permutation that it implements on a set of $n$ elements¹ is invertible by an adversary knowing only the public key with work $w$ conjecturally² such that $$\log w=\Theta\left(\left(\log n\right)^{1/3}\left(\log\log n\right)^{2/3}\right)$$ Is it known any other One-...
Background I'm working on a framework for crypto-based authentication and authorization that is largely inspired by the way Keybase's Teams product works. Keybase uses the same process to generate per-user keys and per-team keys. Quoting their docs: A user generates a 32-byte random seed s. She computes e = HMAC(s, ...
I was wondering why some groups provide more security to cryptosystems relying on DL-Problem.
We all are using zoom application for joining/hosting meetings in this corona virus period. As we create a meeting, a new id, password and a url is generated. Some real examples follow- Id: 83500199576 Pwd: 0Wnim6 URL: us02web.zoom.us/j/83500199576?pwd=NVhJV0ExejMwcDQ2MV0wUlFxdnBWZz09 Id: 86043075733 Pwd: ...
Now i know that the F function doesn't have to be injective, but is it NEVER injective? or is it possible to have an injective F function?
My question is a follow-up to a recent question regarding quantum-secure time-lock puzzles (TLPs). TLPs can be built (in principle) from indistinguishability obfuscation (iO) [BGJ+,BGL+] as noted in this thread. As a corollary, quantum-secure iO would lead to quantum-secure TLPs (provided that there are inherently-sequ...
According to study of "Universal Accumulators with Efficient Nonmembership Proofs", I don't understand exactly how to update non-member witness in construction 4.2. In the addition step, I understood the point until finding $r$. I can't understand why new non-member witness $d' = d \cdot c^r$. Can somebody explain how ...
I asked these questions from a very superficial level, without wanting to get too far into the maths as I lack the experience. p = 47, q = 53. In real life these would be larger. Euler(47*53) = (47-1)(53-1) Where the Euler's totient function is defined my question is can x be any number from 0 to 47, and 0 to 53 respe...
I have designed an encryption algorithm. The algorithm will probably use CFB mode. The algorithm can encrypt any block size and this does not change the size of the key. There are always about $20$ rounds and the key is always around $128$-bits. However, the algorithm works much slower when it works on $128$-bits block...
I am new to Cryptography and has a trouble of understanding the difference between perfect and computationally hiding (binding) properties of a commitment scheme. I also would like to ask what does it mean to be a computationally bounded (unbounded) adversary? I tried to look at these through Google search but none pro...
Let $f$ be the function used in a round of DES, as defined in FIPS 46-3: $$\begin{align} f:\{0,1\}^{32}\times\{0,1\}^{48}&\to\ \{0,1\}^{32}\\ (R,K)\ &\mapsto f(R,K)\underset{\mathsf{def}}=P(S(E(R)\oplus K))\end{align}$$ where $E$ is the expansion, $S$ is the combination of S-boxes, and $P$ is the permutation. Prove or ...
In page 408 of Hoffstein, Piper, and Silverman's Introduction to Mathematical Cryptography, it says "Roughly speaking, in order to achieve $k$ bits of security, encryption and decryption for Elgamal, RSA, and ECC, requires $\mathcal{O}(k^3)$ operations, while encryption and decryption for lattice-based systems ...
While looking at the ChaCha20 and Poly1305 AEAD construction as defined by RFC 8439, more precisely its use of the key and the nonce, I came up with the questions below. Maybe someone with some in-depth knowledge is willing to share it? The key and the nonce (usually a "number to be used only once") are used twice in ...
I am new to cryptography, i know essential part of asymmetric cryptography but is it possible to decrypt 617 decimal digits (2,048 bits) with RSA ? How it can be factored?
N torsion points have the structure ker([n]) ≅ Zn×Zn , so ker([2]) ≅ Z2×Z2 , gives us 3 2-torsion points. but ker([4]) ≅ Z4×Z4 ,this means we have 5 subgroup of order 4 . In each subgroup , there is a generator Pi, my question is , these 5 [2]pi are all different order 2 points right? Does not this means we have 5 4-t...
I have read a very interesting description of computation related to the RSA group as follows. "By the Chinese remainder theorem, we have that: $$(\mathbb{Z}/pq\mathbb{Z})^* \cong (\mathbb{Z}/p\mathbb{Z})^*\times (\mathbb{Z}/q\mathbb{Z})^* \cong (\mathbb{Z}/(p-1)\mathbb{Z})\times (\mathbb{Z}/(q-1)\mathbb{Z})$$ From thi...
I am stuck in the proof where it says $$p_0=\frac{1}{|M|},$$ I just do not understand how we can infer this equality. Also, am I right in understanding that B is defined as choosing his two messages at random each time (i.e sampled uniformly from $M$)? This is the link to two pictures: the first one containing the def...
I basically use the method below, one difference is that after receiving the first proof the verifier asks the prover to create a proof for another challenge d and this several times without having the prover generate a new random value r. Is this safe? I was not able to find indications in the literature about it and ...
The problem: When I'm writing or reading information (be it on a screen or a physical medium) the information is vulnerable. So long as I'm not alone, anyone can simply glance at my screen or journal and instantly read what's written there (like addresses, phone numbers, and plaintext passwords/device pins) My goal: I ...
I am currently implementing Salsa20 for my bachelor thesis. After having verified all the functions needed for the final encryption function with the given test data in the specification from DJB, I wanted to test my encryption function. Unfortunately, there are no test vectors for the full encryption in the specificat...
I think that I've found a good solution to prove the knowledge of an ECDSA signature without revealing it. In short terms it consists in generating an ECDSA signature using the point $R$ as generator, $s$ as private key and the result of $s*R$ as public key. So the $r$ part of the signature would be revealed but the $s...
Is there a pseudo random permutation generator that produces all permutation of any bit length of the plaintext (this may not be clear, please let me know and I will explain). It must be fast, and does not hold numbers in memory. This is a permutation of (1) (1) This is a permutation of (1,2) (2,1) This is a permutati...
Just like in this question: Protocol for proof of knowledge of $l$-th root I want to prove that for $u^e = w$ I know $u$ without revealing it. Three other requirements are: e is small (65537) The proof has to be non-interactive The proof should be as efficient as possible (not several megabytes) EDIT So the best solu...
A malicious actor wants to decrypt ciphertext that was encrypted with a password. He also possesses the hash (bcrypt/PBKDF2) of that password. Does he have any significant practical advantage in decrypting that ciphertext as compared to just having the encrypted ciphertext (with no hash)? I believe that the clear advan...
A reasonable way to do password-based encryption is: put the passphrase¹ and nonce in a well-parametrized memory-hard iterated hash function like Argon2, to derive a key 128-bit or larger. output the nonce, followed by the ciphertext per some strong authenticated encryption; AES-GCM-SIV or ChaCha20+Poly1305 comes to m...
Given a sequence of bits (either a 0 or 1), for example: 0110100110110001 How can one create a proof that we have this bit sequence, without actually revealing the bit sequence? I know that there are several examples of proof mediums, such as polynomials for zk-SNARKs, however, how would one go about defining a proof ...
I think there exists an algorithm to create a key from the combination of a group of keys in such a way that if I encrypt a message using the key formed from the combination, I should be able to decrypt it using any one of the keys from the group. Any idea?
Say that I have 16-32 GB of data, and I want to devise a system for storing this data in an encrypted form. This system needs to meet two core objectives: The data needs to remain as pristine as possible for a very long time, which in this case means 10-50 years. No one but me should be capable of decrypting the data....
I have currently started a course on cryptography and am an absolute beginner. While reading through Schnorr's Protocol I came across several ways in which it was described. One of the approach is described here: - https://www.youtube.com/watch?v=mV9hXEFUB6A A second approach using discrete logarithmic is described her...
2018000010 - YjRxEBukq Encrypted O6at6Op6sGcAfLoBPhx8Xm89qWEZcw2jkmIxmqM27wAd0V1fWtuVmh9ofPX5n803Q7mnaWsWXRq2TA+1vUbj+TB62jJXNGhJPh17chGPTC3hTKVnItlpHSotwneieheRNUC0M/+zXyu8Ag8iQxP/NSFY2QO7vXwK/qyUJqqtLJsqNXVBBCzy4vb2nq2YA/mbxzTgcVSTSiF5O2CuQ7QDvA2J3G/+J+jZheNMsjmaZQShi7rjaXwdWuZx/9nb06XgHyBZab0UlqVJB8i1FMSh1cbGmiQCDw...
I am implementing XTS-AES mode in NIST SP800-38E, But I didn't find test vectors about it. Who can help me?
SIKE involves a Diffie-Hellman like construction using isogenies between elliptic curves. Is it possible to express it as an instance of Diffie-Hellman? I.e. what is the underlying group if so, and further, why wouldn't Shor's algorithm apply and render it vulnerable?
What Android API's can be used a practical sources of entropy ? Given the requirement of sourcing entropy on the phone for purposes of seeding a PRNG, what are good options ? Edit: I have a hard external requirement to periodically supplement the entropy of the RNG, which in the case of SecureRandom, I will do by calli...
Why can't uncomputable functions be adapted to serve as theoretically perfect one-way functions? This has been bugging me for years, and I've never been able to track down an explanation of why it wouldn't work. There are many possible variations on the same general theme; the one that seems most straightforward to me ...
I have tried out an encryption method, in which I swap bits in the text. The text length is N bit, then I generate several random number pairs in the range 0..N-1, as [n,k] pairs. After that, I swap the n-th and k-th bits in the message, if they are different, of course. After several swaps the message becomes unreadab...
Usually the sort of trapdoors which are talked about are designed such as to make the computation intractable for one party and tractable for the other. But what if one party merely has a big advantage in computation over the other? Can you use it to create a construct in cryptography? For example, suppose you have a w...