instruction
stringlengths
32
27.2k
Let $g$ be a generator of multiplicative group mod $p$ a prime. Suppose we know $$g^{a+km_1}\bmod p$$ $$g^{b-km_2}\bmod p$$ $$g^{a+k'm_3}\bmod p$$ $$g^{b-k'm_4}\bmod p$$ where $m_2m_3-m_4m_1=\phi(p)$ where $\phi$ is Totient and $a,b,k,k'$ are the only unknown and all of $a$ through $m_4$ are of size $\sqrt p$ (we know ...
I'm doing reverse-engineering a product and identified a critical issue with it. The work is done and the developer was notified, but for my own personal curiosity, I'd like to learn how to exploit it so I can make a small write-up. The short of it is, the developer is using a fixed key and IV for encrypting multiple s...
Triple-DES encrypts with the first key, then the second key, then the third key. Two keys are sitting around waiting. Why not encrypt with all three keys at the same time? You take 192 bits of plaintext (three 64-bit sub blocks) and run the entire 192 bits through an MDS-matrix as a pre-step. Afterwards, in parallel...
As described in the SSH RFC an initial IV to server, initial IV to client, encryption key client to server, encryption key server to client, integrity key client to server, and an integrity key server to client are generated. Does TLS use a similar system? If not, Why doesn't TLS use a system like this?
I've picked up a grad level computer security class. I read a brief overview on block and stream encryption. I understand and have used PGP in the past and it make since to share your public key. Since the keys for block and stream encryption are extremely import for others not to find them. How do you share them in a ...
I was considering creating an ML project where it is fed some ciphertext by any classical cipher and would return possible ciphers that encrypted the text. I would have to create a sizeable dataset for it so I was wondering if this idea is relatively feasible before I attempt it.
So I am trying to solve some exercises about pseudorandom permutations. Assume that keyed-permuation $E_k(x)$ is a pseudorandom permutation, where $|x|=|k|=n$. Using $E_k(x)$, we construct an encryption sheme as follows. $$ c=m\oplus E_k(0^n)\\ m=c\oplus E_k(0^n) $$ where $k$ is a random key. The task is to show if ...
I've noticed that keys for authenticated encryption primitives like AES must be unpredictable and uniformly random in order to be secure. IV values and seeds for PRNGs also have to be unpredictable and random. My question is: How those unpredictable and random values are different from predictable values that contain w...
In LWE, we have $$<a_1,s> + e + \mu_1\in \mathbb{Z}_q$$ for a secret key $s\in \{0,1\}^n$ and $a_1\in \mathbb{Z}_q^n$ This is an encryption of a number $\mu_1$. If we want to encrypt $n$ different $\mu_i$, we need $n$ different $a_i$. With $n$ values $a_{11}, ..., a_{1n}$ we were able to encrypt one single $\mu_1$. For...
This is related to this question about solving the following expression: $$x^{2} + y^{2}$$ This can be factored over the gaussian integers as $$(x + iy)(x - iy)$$ If one could factor a sum of two squares and take the integer component $x$ one could solve the problem. Can Shor's algorithm factor a term over gaussian int...
In Linear Approximations of Additions Modulo $2^n$, Wallén shows how to compute the correlation of the modular addition of two binary bit vectors. A simple recursive procedure was given by Schulte-Geers in On CCZ-equivalence of Addition mod $2^n$. However, these papers both assume that the summands are uniformly distri...
I am reading the original paper of Argon2 authors and I can understand the algorithm except the indexing part. Can anyone explain two things: the indexing process and the mapping $J_{1}$, $J_{2}$ to reference block index. How the $B_{i'j'}$ are fixed in Argon2d, Argon2i and Argon2id. I tried to simplify things by tak...
Im just starting out learning some cryptoanalysis techniques. I came across an idea which analyzes the vigenere cipher. Essentially the video explains that there is a standard english probability density function for each letter of the alphabet. And the letters used in the encryption of the message is called the key. A...
I have a question about $z$ in Classic Mceliece Algorithm specification. I have no idea about this $z$! In parameter set kem/mceliece348864, Field polynomial $f(z) = z^{12} + z^3 + 1$. is this $z$ in field polynomial same as the $z$ in pic? If this is right, the value of $z$ in the pic for kem/mceliece348864 is $(z^1,...
Let's assume such a scenario. Person A will broadcast his public key and person B will broadcast his public key. They can now communicate. But let's say that suddenly another person C will write to person A impersonation person B. How can a person B prove their identity. We can implement a signature system. Person A ...
Proposition Let π be a protocol that securely computes a functionality f in the presence of malicious adversaries. Then π securely computes f in the presence of augmented semi-honest adversaries. Proof. Let π be a protocol that securely computes f in the presence of malicious adversaries. Let A be an augmented semi...
Shor's algorithm can (efficiently) solve equations of the form: $$n = pq$$ and $$n = x^{2} + y^{2}$$ This question is simple: Can Shor's algorithm solve these equations in polynomial time when they are performed with finite arithmetic instead of over integers? i.e. $$n = pq \bmod k$$ and $$n = x^{2} + y^{2} \bmod k$$ S...
A cyclic sequence can be produced with $$s_{i+1} = s_i^a \mod N$$ with $N = P \cdot Q$ and $P = 2\cdot p+1$ and $Q = 2\cdot q\cdot r+1$ and $r = 2\cdot u \cdot v \cdot w +1$ with $P,Q,p,q,r,u,v,w$ different primes We can now project a random number $x_R$ into a subspace of size $2(r-1)+4$ with $$s_R = x_R^{\beta} \mod ...
In ECDSA, $f(G)=r$, where $r$ is the $$-coordinate of group element $G$. Now it is known that $f(G)$ is not uniform(Why isn't $f(G)$ uniform in ECDSA?). Then in which range $f(G)$ is uniform? Let $\langle G\rangle$ be a cyclic group on the ECDSA elliptic curve with the generator $G$, and $S=\{x|f(W)=x,\forall W\in\lang...
The process of Shamir secret sharing degree reduction in multiplication gate is explained in the following link Now, based on the secret sharing that done by a degree one polynomial, we must be able to reconstruct the secret, i.e. $10$, with each of the $2$ shares out of the $3$ shares $(3, 7, 0)$. Nevertheless, the re...
Some implementations of a Schnorr signature will determine the challenge as follows: $c=H(kG \mathbin\| X \mathbin\| m)==H(rG+cX \mathbin\| X \mathbin\| m)$, where: $c$ is the challenge $m$ is the message being signed $X$ is the public key of the signer such that $X=xG$ $G$ is a well-known base point $x$ is the private...
With the proliferation of https, and one of the primary functions of my pc being browsing the intarwebs, it occurs to me that my cpu is spending a lot of cycles doing AES en and de cryption. For the "average" PC (i.e. not servers or supercomputers, which is an interesting but different question), about what percent of...
I am trying to understand SHA2 - 512 algorithm, so I am following this document which has the intermediate values for the string "abc". At t=0, the values for f, h and g are straightforward. But I am not getting the same value for e, which suggests that I am doing something wrong when I am computing $T_1 = h + \Sigma_1...
I cannot seem to understand why the function $F$ defined in Theorem 7.1 of the paper “Permutation rotation-symmetric Sboxes, liftings and affine equivalence” is described as “a bijection on $\mathbb{F}_2^n$”. The input contains $n$ bits, yet the given definition seems to imply that the output contains $k=n-2$ bits: $$F...
I need to generate a deterministic identifier from some user data. One of the user data items is highly sensitive, but the other two are not. The identifier will be sent to an external party regularly, so it must not change in the future - i.e. the same input should always produce the same output in the future. A pseud...
If I have public element $W=K^r$, and $K=v^x$ should be kept secret where $v$ is a generator in $\mathbb G$, is there a way to produce a zero knowledge proof on x and r such that $W=v^{x \cdot r}$ while committing to $x$ and $r$ individually. Thanks.
Consider the following version of Learning With Errors. You are either given $(A, As_1 + e_1, As_2 + e_2, \ldots, As_k + e_k)$ or $(A, u_1, u_2, \ldots, u_k)$, where $A$ is an $m \times n$ matrix whose entries come from the field $\mathbb{Z}_q$ --- the entries are sampled uniformly at random. $u_1, u_2, \ldots, u_k$ a...
The following link documents a proposal for a TLS-like alternative for constrained devices. https://github.com/lake-wg/edhoc/blob/4f56898808989e449cc412a8b136674202a0ddce/draft-ietf-lake-edhoc.md#implementation-considerations-impl-cons Unlike TLS1.3, the proposal does not make use of running hashes. Citing the proposal...
I am trying to verify a zk-SNARK from a solidity contract offline, in Rust. This is the verifying contract that checks the proof in the solidity side. And this is the transaction that carries the proof and the public inputs. The proof is valid and I have been able to replicate the validation offline using Solidity. How...
In an attempt to understand modern ransomware mechanisms I landed on a blog post about LockBit. This one is confusing to me since: This ransomware generates a pair of RSA keys on the infected device which is used to encrypt the AES keys used to encrypt files. Then, the private key of that RSA key is encrypted with a ...
Some proof of work hashes have a lot of initial zeros. Do the arguments to the hash functions giving these zero containing hashes have anything in common, or are they stochastic? What I am looking for is if there are any ways to choose the hash function argument distributions in order to improve the rate of initial ze...
P=11 Q=29 Euler=280 e=3 d=187 When i take a message “88” for example; Encrypt: 88^3(mod 319) = 88 Decrypt: 88^187(mod 319) = 88 Why does the encrypted message equals the decrypted message and why does the plaintext message equals the encrypted message?
Suppose $n$ parties where $t$ are honest want to perform a distributed key generation protocol. There are many existing schemes. In the simpler setting where all $n$ parties must be online, otherwise the protocol aborts, does the following simplified scheme suffice? Each party $i$ samples $x_i \gets \mathbb{Z}_p$ Comp...
Was that just a coincidence, or did the 2 "shattered" pdf files whose SHA-1 hashes are identical had to be small in size (412KB) to make the collision attack easier?
David Wong in his book Real-World Cryptography writes: In 2013, following revelations from Edward Snowden, it was discovered that NSA had purposefully and successfully pushed for the inclusion of backdoor algorithms in standards (see “Dual EC: A Standardized Back Door” by Bernstein et al.), which included a hidden swi...
Suppose we only have to use factoring as trapdoor function and we are disallowed to use other trapdoors, are there applications currently deployed which cannot be done?
Problem Statement Imagine you have a set (no duplicate elements) e.g. S1 = {'a', 'b', 'c'}. You wish to share a private (and ideally both small in size and integrity protected) representation of this set with another party (who could have pre-shared keys with you) where they can verify (yes or no) if some element of th...
I am trying to learn about RSA digital signatures, and have a question about the verification process. My understanding of the set-up is the following: The signer chooses two secret primes $p$ and $q$, and a verification exponent $e$ satisfying $\gcd(e,(p-1)(q-1))=1$, then publishes $N=pq$ and $e$. The signer computes ...
Something that's puzzling me for a while is how we could calculate approximately the energy cost of using AES, for a company like Amazon or Google. How likely it is due to the nature of their business model that its an important part of their fixed cost? Considering key generation, encryption and decryption etc of so m...
I have a question about database security. This is a scenario I have. The data is encrypted using symmetric (i.e., AES) and stored in a database, while the secret key is stored on the client side, so when I need to request any of this data, I send a SQL query with the secret key to get this data and then forget the key...
In lots of cryptoanalytic papers I read, attack complexities are stated in the form of a constant. For example, this related key attack on of AES states: [...] For AES-256 we show the first key recovery attack that works for all the keys and has $2^{99.5}$ time and data complexity I have seen this notation of $2^{n}$...
I am having a hard time understanding what I have come across using RSA-textbook. So I have: e = 3 as an exponent a VERY long public key N of 1991 bits (clearly useless trying to factor) a very short cryptogram of 403 bits By doing C^(1/3) (because we have a short message compared to the public key), I found the mess...
I am a MPC learner for privacy-preserving machine learning. Recently, I am reading this paper: FLASH: Fast and Robust Framework for Privacy-preserving Machine Learning. I am confused about the question that why we need broadcast channel in the 3PC setting. I guess that is because consensus, but I am not sure. Can you h...
i would like to know what are the danger can be occur by performing steganography without a key? Please kindly explain to me.
For a binary-circuit-based MPC, the multiparty will provide its inputs to calculate the result, which indicated the function $f(x_1, x_2, \dots,x_n)$ needs to accept $2$ or more inputs. Why do there exist circuits e.g, SHA-$256$, which takes only one input? When I check the SHA-256.txt files, it takes $2$ inputs...
I'm implementing Pedersen commitment scheme in order to enhance entropy of a pre-image of a hash. I'm using secp256k1 for my curve parameters. I am following naming conventions from here: What is a Pedersen commitment? I am performing a commit $C = (m, r)$ and then another commit $C' = (m, r')$ Then I do the blind equa...
After a bit of research, I finally understand what's the step by step algorithm of SHA-2 (however, of course, I won't remember it myself). But I don't understand what's the idea behind it. Did the group of the algorithm's developers just randomly pick some constants and functions and apply them to the data and these co...
I'm having a hard time understanding the usefulness of using an ECDH over traditional asymmetric encryption. Both parties have to exchange public keys to compute the ECDH, so why wouldn't they just encrypt their messages with the public keys they just exchanged? The only use case for ECDH I can think of is if Alice los...
I'm designing a program that clients can download to the computer. This program needs to sync with my online server on a regular basis to confirm that the client's Activation Code hasnt expired and they're paying their bills. However, I want the program to be able to run for a period of up to 5 days without having to c...
Let $X$ be a measurable space. For each $n\in\mathbb N$, let $P_n$ and $Q_n$ be probabilities on $X$. We say that $(P_n)_{n\in\mathbb N}$ and $(Q_n)_{n\in\mathbb N}$ are statistically indistinguishable iff for all measurable set $E\subseteq X$, the function \begin{equation} n\mapsto |P_n(E) - Q_n(E)| \end{equation}...
Background. In their paper about the cryptographic scheme NORX, the authors use a fast approximation of + by bitwise operations (taking fewer CPU cycles than proper addition) using the formula $$a+b \; \approx \; a \oplus b \oplus ((a \land b) \ll 1)$$ where $\oplus$ is bitwise XOR and $\land$ is bitwise AND, and $\ll$...
For example: "I am a very secret person". I'd like to show someone that this string includes 'secret' without revealing the rest of the string. Is there anyway?
I think one of them is related to multitarget attacks and the other is related to collision attacks. But I cannot find how hash based crypto related to hash collisions. 1-) Consider the following Lamport one time signature scheme Assume a 128 bit hash function $H$ is used Randomly choose $p_i$ and $r_i $ for $1\leq i...
In a group signature scheme based on Pointcheval-Sanders (PS) single-message signature, the anonymous credential $(\sigma_1,\sigma_2)$ issued by the group manager (GM) with secret key $sk = (x,y) \in \mathbb{Z}_p^2$ and public key $pk = (\tilde X,\tilde Y) \leftarrow (\tilde g^x,\tilde g ^y )$ to a user $\mathcal{U}_i$...
I have logs containing sensitive data (mail addresses, usernames etc.) that need not only be made GDPR compliant, but in general be secured as best as possible, so anonymization/hashing would be an easy solution. However, at the same time I need to be able to correlate the information for monitoring purposes (e.g. iden...
I'm wondering since at least 2 offline password management services,Passkeep and Keepass both use biometric authentication in addition to the master password. You need to possess the physical device to login to those 2 services,but if the attacker already posseses the device how would biometric authentication protect t...
I am currently new to the world of BLE and I came across this article which mentions ECDH. In the diagram in part $3$, it generates the DHKey/shared secret (I am assuming this is the correct terminology based on google search) , but then once it's generated the diagram never references it ever again. What exactly is th...
While having a discussion with someone on a forum about GPS spoofing, he mentioned that GPS signal can be spoofed for a cruising missile and make it land somewhere else using side-channel attack along with cryptographic accelerator. Now, from all that I could gather about side-channel attack and cryptographic accelerat...
I am looking for the definition of the strong Diffie Hellmann problem. However, I can only find definitions for the $\ell$ or $q$-strong Diffie Hellmann. Is it possible that the strong Diffie Hellman problem is also called the $\ell$ or $q$-strong Diffie Hellmann problem?
I am on the abbreviation mutlin. DDH, which probably stands for mutliniear Decision Diffie Hellmann. I am currently looking for a definition for this term, but unfortunately cannot find a source. Can anyone here help me further?
I am currently in the process of understanding ring signatures. Now I have arrived at Linkable/Tracable Ring Signatures, however I don't really understand them. Can someone explain me how the principle behind it works? An example would also be very helpful. Thank you very much!
If you encrypt with: gpg -o gpg.symmetric.test.gpg --symmetric gpg.symmetric.test and then decrypt with: gpg -o gpg.symmetric.test1 --decrypt gpg.symmetric.test.gpg # --decrypt option mistakenly included the output gives: gpg: AES256.CFB encrypted data gpg: encrypted with 1 passphrase and decrypts the file WITHO...
The cipher is a modification to AES and is described on this website: The only difference between Jipsam1 and AES-256 is the S-box. Whereas in AES the S-box is public and constant, namely $$ \begin{pmatrix} 1&0&0&0&1&1&1&1\\ 1&1&0&0&0&1&1&1\\ 1&1&1&0&0&0&1&1\\ 1&1&1&1&0&0&0&1\\ 1&1&1&1&1&0&0&0\\ 0&1&1&1&1&1&0&0\\ 0&0&...
I'm new to cryptanalysis and I saw in another answer to a question that $f: \lbrace0, 1\rbrace^{\kappa}\to \lbrace0, 1\rbrace^{\kappa}, f(x) = 1^{\kappa} $ is a one way function. Why is this the case? Any help would be appreciated
ESN feature is described in RFC 4303. Here is some questions which bothered me: When use ESN combined with AES_GCM or AES_GMAC alogrithom, do I need to add the high-order ESN bits to the packets? According to RFC 4303: If a combined mode algorithm is employed, the algorithm choice determines whether the high-order ES...
This post asks if a user of a system can restrict their own access in a time-related way. I am interested in this for freezing and unfreezing cryptocurrency accounts to enforce spending controls, but I am really interested in learning about it as a general class of problems. I wonder if it hasn’t been studied since the...
I've got a situation where I need to send message ciphered with AES-256. However the content, and therefore length, of the message may be intercepted before (don't ask;)) and the question I was asked was "isn't a vulnerability allowing to discover the key?". My first approach was to estimate the brute force needed to c...
I tried to search and take a look at a way to securely generate or import secret keys on client-side. First I tried to see if it is possible to take advantage of TPM in Windows but as far as I understood it is not possible to use it. So as far as I got the correct way to deal with encryption keys was using Web Crypto A...
I'm now trying to design a more secure key-change algorithm to replace widely used DH. However, I am only able to prove that my algorithm is more secure logically, which means I can only prove it from a reasoning rather than mathematical perspective. Thus I wonder if there is a standardized procedure that I can use to ...
No matter AES with CBC or EBC etc, the inputs for AES i.e, plaintext, key, IV, are always provided by one party. In other words, there is no need for AES in a 2PC scenario since one party can already calculate and get the result. When I check e.g. the AES-no-expanded.txt files, party one has 128 bits input and party tw...
My knowledge of cryptography is beyond shallow, and I have a problem I cannot solve. Trezor wallets have two message signing formats: "Trezor" and "Electrum". I have a method in my code, that is retrieving the public key from messages signed using BTC wallets (i am using bitcoinj library): public VerificationStatus ver...
I'm replicating an invalid point attack on ECC using Short Weierstrass curves. For this I have written a "dumb" implementation that does not validate points are on the curve before going into the scalar multiplication. For the outline of the attack, I'm heavily borrowing from Samuel Neves' excellent descrption which he...
Looking at the example of the null input (512 bits), it takes as input: input (Hex): 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Since it's exactly 512 bits, there is no splitting and no padding. But from online calculators or golang...
I am trying to identify how the SP Network is constructed. I am looking for plausible solutions that help to connect these layers together and what are the ways that exist in literature other than Kam and Davida and The wide trail strategy of AES that can help in creation of a secure SP network.
Does the following checksum function make sense? I am attempting to show that for all even numbers there exists at least two summands that, when normalized to $\frac{1}{2}$, asymptotically sum to 1: $\lim \limits_{n \to \infty}\frac{n-1}{2[a+ \varphi(a)]}+\frac{n-1}{2[b+\varphi(b)]}\sim \frac{n}{n}=1$ where $n$ are eve...
In the process of studying discrete logarithms and approaches that could be taken, I saw the Pohlig-Hellman algorithm. Later when I was working with $h = g^x \mod p$ where $p-1$ is smooth, using Pohlig-Hellman did not give the expected result, and returned something much larger than expected. I assume this is because P...
Has the following method of hiding data been proposed or studied? What is the efficiency or security of this method? What applications could use this method? Data is to be hidden in a number that is the product of two prime numbers. One prime number contains the hidden data, and a bigger prime number indicates the leng...
About birthday attack, book Cryptography Engineering says: In general, if an element can take on N different values, then you can expect the first collision after choosing about $\sqrt{N}$ random elements. We're leaving out the exact details here, but $\sqrt{N}$ is fairly close. For the birthday paradox, we have N = 3...
Are there any cryptographic methods $f,g,h$ which can be applied in any order to an input $x$ while still resulting in the same result $r$: $$f(g(h(x)))=h(g(f(x)))=ghf(x)=fhg(x)=hfg(x)=gfh(x) = r$$ Same for their inverse function: $$f^{-1}(g^{-1}(h^{-1}(r)))=h^{-1}(g^{-1}(f^{-1}(r)))=g^{-1}(h^{-1}(f^{-1}(r))) =...= x$$...
In Cryptography Engineering: 2.7.1 Birthday Attacks Birthday attacks are named after the birthday paradox. If you have 23 people in a room, the chance that two of them will have the same birthday exceeds 50%. That is a surprisingly large probability, given that there are 365 possible birthdays. So what is a birthday a...
I encrypted some data (an incredibly long time ago). I have both p,q,n,c, and a plaintext ciphertext pair (from when I encrypted the wrong data). I took to solving the discrete logarithms required here, and ended up with solutions to both of them using Baby Step Giant Step. I recovered e (e1) and tested using assert po...
I'm learning the randomness test of the NIST SP 800-22 rev 1a documentation. https://csrc.nist.gov/publications/detail/sp/800-22/rev-1a/final As I was reading, a few questions came up and I put them up like this. My questions are: In the Frequency Test within a Block of 2.2, looking at (3) of 2.2.4, there is a part th...
(this might be a silly question) Pedersen hash works in the following way: $(x, y) = kG$ where $k$ is the pre-image and $(x, y)$ is the resulting hash. Say we hide part of the hash to preserve privacy. Can an attacker derive $y$ if they only know $x$ given that they don't know the pre-image? In other words, by knowing ...
I want to implement TOTP in the same manner as RFC 6238 (https://www.rfc-editor.org/info/rfc6238), but keccak instead of SHA-1. Keccak follows sponge function with the data rate r and the capacity c. For lightweight version, the combination of (r,c) may (72,128). Let's assume that the bitwidth of time is r and the bitw...
The RSA-Assumption says that $(GenSP,F,SampleX)$ is one-way. So if we initialize an instance of RSA $(n,e), (n,d)$ and fairly forget the secret-key and SampleX uniformly distributed over $X, F = x^e \bmod N$ should be one-way. Now it is also known that Injective functions imply collision resistance, but not one-way of ...
Given a number $N$ with $d$ unique prime factors. Can the number of unique values $v$ with $$v \equiv x^d \mod N$$ $$x\in[0,N-1]$$ $$N = \prod_{i=1}^{d} p_i$$ be calculated for $d>2$? (Q1) Does the total amount decrease at some point? (Q2) For simplification we assume each prime factor $p_i > 5$. Or for target use c...
If such throughput could be achieved what would the benefits for a data center or IoT devices in terms of power saving. Also I was wondering if such speed was possible to be realized by a cipher, would that dramatically change cryptography in terms of encryption/decryption speed? If that is possible in the future, woul...
Is there any reason why collision resistant variants of ed25519 that use a single-pass aren't used instead? For example: $n = h(noncekey \| m)$ $h(R \| pub \| n)$ instead of $h(R \| pub \| m)$ or alternatively if we want to not change the EdDSA algorithm itself and instead implement collision resistance on top of it: L...
SHAKE256_XOF is an extendable output function based on SHA3-512. SHAKE256_XOF can be used to create an infinite length bit string with 256-bits of security. For example: from Crypto.Hash.SHAKE256 import SHAKE256_XOF shake = SHAKE256_XOF() shake.update(b'key' + b'nonce') for _ in range(10): print(shake.read(16).he...
Let's say we choose AES as cryptographic algorithm for IPsec. My question is the following Is the key produced by Diffie-Hellman algorithm used as INPUT to the AES algorithm so AES does the encryption with it?
I have been attempting to analyse the classic proof presented by Barak et al. that claims Black-Box Obfuscation is not possible for (what appears to be) most classes of programs. The proof is presented in such a manner where it is said that if there exists an encrypted program C'(a, b, x) which returns b if and only if...
I am trying to accomplish the following: $Alice$ is an authority that can provide a secret $x$ to $Bob$, $x$ will enable $Bob$ to generate a public/private key pair $(p,q)$ which he can then use to sign messages. $Alice$ will not be able to sign messages as $Bob$. Anyone can trivially verify that the public key $Bob$...
I would like to encrypt cryptocurrency wallet seeds (12 to 24-word passphrases) for replication and secure preservation. The seeds would be in a .txt or .rtf format before encryption. I would like to be able to send these over the internet with peace of mind. Encryption should hold for at the very least 60 years. What ...
I was reading this paper on RC6 and formally, the algorithm is defined for an arbitrary word size $w$, even though only $w=32$ was considered for the AES submission. Now the paper explicitly mentions the choice $w=24$, among others. Later on in the paper, it says: "The base-two logarithm of $w$ will be denoted by $\op...
I want to encrypt a system firmware, and future firmware updates will use the same encryption system. Because this firmware isn't fully from scratch but rather is based on an existing framework, it is highly likely that parts of the original firmware code are known, in other words, that long sequences of the message to...
After reading "Can the xor of two RNG outputs ever be less secure than one of them?" I wondered if you can increase security of SHAKE256_XOF by using another instance of the CSRNG. The theoretical security of SHAKE256_XOF is 256 bits. After a theoretical quantum attack it has min(key_length/2, 256) bit security. So u...
Similar to this question, but having two seperate inputs for each length preserving one way function $f$ and $g$, i.e. $h: \lbrace 0,1 \rbrace^{2\kappa} \to \lbrace 0,1 \rbrace^{2\kappa}, h(x) = f(x_1)||g(x_2)$ where $x_1$ and $x_2$ are two $\kappa$ bit split halves of x. I think $h$ will be one way, but am not sure on...
I was just wondering how the private key generator should publish the master public key inside of an IBE system. This key is needed for all devices in the network to derive the public key of receiving entities.
The impossibility of a secure "blind HMAC" scheme - an HMAC-based analogue of blind signatures - is known (as I understand it, essentially due to the user being unable to validate the signature received against a public key for the signer, and therefore being unable to be sure the signer is not using many signing keys ...
Let's suppose I want to modify Kuznyechik block cipher by choosing a random S-box (taken from /dev/random for example). How can I calculate/generate the inverse S-box? Does anyone know the formula or algorithm used to do this?