instruction
stringlengths
32
27.2k
in Rijndael SubBytes() step all bytes of input block are substituted based on a lookup table S-Box. S-Box is initialized by taking all elements of $GF(2^8)$, calculating their multiplicative inverse and then calculating their affine transform. Here is C code which does that as found on wikipedia page. #include <stdint....
We have $c_1=g_1^x$, $c_2=g_2^y$ and $c_3=g_3^{x/y}$, where $g_1,g_2,g_3$ are generator of a group of order $n$ and we don't know the DL between them. Is there any sigma protocol or zkp that can prove the language $L=\{c_1,c_2,c_3\mid \exists\, x,y, \text{ such that } c_1=g_1^x \ \& \ c_2=g_2^y \ \& \ c_3=g_3^{x/y} \...
I'm currently playing a bit with PyNaCl (python binding to libsodium) and I want to use the secretbox for symmetric encryption between two parties, which means they both must know the (in my case randomly generated) nonce, so I would just send it with the ciphertext. I derive the secret key with argon2id from a passwor...
From my understanding of Key Derivation Functions (KDFs), e.g. scrypt, Argon2, etc, we can tune their parameters such that it eventually becomes harder for an attacker to brute force a password-to-key through them. At this point, the attacker may directly brute force the, say AES128, key. It is nice to not over-tune t...
I have currently a problem which I am unable to solve. I want to implement an attack on AES after 3 rounds without the mix columns on the 3rd. The goal is from the last round to guess the value of each key byte of the last round key separately. So with my ciphertext (chosen by me), I should be able to guess the last ro...
Is it possible to know the sign (positive or negative) of an homomorphic ciphertext particularly under paillier scheme ?
I'm reviewing some questions given to me by a professor and am stumped on this one. My initial guess is that yes, this is possible, but I do not know how to explain it, specifically for a function $\{0,1\}^8\to \{0,1\}^6$. Any help would be appreciated!
SEC#1 recommends randomized hashing when using SHA-1 with ECDSA; SPHINCS+ uses randomized hashing in WOTS+ to defeat collision attack so as to reduce signature size. How does a randomized hashing defeat collision attack? What are the limitations?
In the future we may be setting up a system to secure a large number of symmetric (device) keys (a few million) by using HSMs. So, the keys themselves will be stored outside the HSM, but they will be stored encrypted by a key that resides in the HSM. We will setup two such systems with HSMs potentially from different m...
I want to know is there any way to derive the initialization vector, if I know all the other details. AES SHA 256bits CBC pkcs5padding Input: Hello Key: 123 Output: xORGCDL88sa8cUrK8JNSCQ== Now, how to find IV?
SUMMARY UPDATE: I have changed the title of this question from "Using an encrypted packet counter as a counter value in AES-CTR" to "Designing a secure UDP-based communication protocol", because the discussion surrounding this question has evolved from my initial specific inquiry towards a more general overview of prot...
As far as I know finding second preimage of a hash function is almost as hard as finding preimage. But I want to know that is there any way to finding second pseudo preimage faster than brute force? I mean ,for example, in MD5 for a given $h$ (hash) we have $MD5(IV_1 , P_1) = h $.is there any way to find $(IV_2 , P_2)...
I was analysing the Chacha20 algorithm and the Poly1305 MAC generation from RFC 7539. It seems that the Chacha20 is quite faster compared to AES on CPUs without hardware support like AES-NI. But Poly1305 tag generation contains 16-byte random integer multiplication with another for each 16-byte block of ciphertext. C...
I have been studying Oblivious Transfer for my bachelor's thesis and have been surprised at the number of variations of OT. From what I've read so far, the constructions proposed by Naor and Pinkas in "Efficient Oblivious Transfer Protocols" and "Oblivious Transfer and Polynomial Evaluation", as well as Tung Chou and C...
This question is similar to Can XEX or XTS modes be used with only one tweak? except I am interested to know if one can instead use $X = E_{k}(0) \otimes \alpha^j \\ C = E_{k}(P \oplus X) \oplus X$ in order to simply do a finite field multiplication and an aes operation per block rather than two aes operations per bloc...
Suppose I wrote a function $$(salt,IV ) = \text{keyIVGenerator}(passwd)$$ which generates a random salt of size 32-bytes and a random Initialisation Vector (IV) of size 16-bytes. Then, use a Key Derivation Function (KDF) like PBKDF2 to generate a key of length 32 bytes (dkLen=32). $$key = PBKDF2(password, salt, deLen)...
How is it possible to find a similar message-digest for SHA3-512 for the first 80 bits or so? There was a Q/A on this site where the answer stated that 80 bits that $2^{42}$ computations are required. But shouldn't it be $2^{40}$ considering the root of 80? Why did it state $2^{42}$?
I am trying to encrypt a file using AES/CTR/NoPadding. The goal is to re-encrypt the new/changed blocks and leave the old ones unchanged then generate a new MAC. My thinking is that when the file changes I’d identify the blocks that changed and encrypt the updated blocks while all unchanged blocks would reuse their exi...
Hypothetically, secret data could be hashed in some schemes in one way or another. Could chunking of the data lead to exposure of secret component through side channel? Say converting a randomized signature scheme deterministic by hashing the message with the private key to yield one-time variable (e.g. $k$ in ECDSA); ...
Let's say I have an API that accepts Plaintext and IV as input parameter and returns the ciphertext. I know that API is using AES 128 encryption but now I need to identify which encryption mode (ECB, CBC, OFB, CFB, or CTR) it is using. How can I identify the encryption mode? Any suggestion, hint or guidance would be mu...
It is obvious that changing even one bit in data or IV (initialization vector) will change the hash value a lot. I want to know if, for example, changing a single bit within the $IV$ in MD5 can be neutralized by changing the message data using a specific algorithm? I think the differential attack on MD5 can be helpful ...
I am trying to work out accumulators and generate $S = \{ e_1,e_2 \ldots, e_n \} $ from this (Section 3.4 - Choosing a Suitable Prime). For each element of $e_i$ compute its representation $x_i$.(This I want to calculate). To compute representation($x_i$) use following ( According to the paper $x_i$ should be calculate...
This was a question from my exam yesterday. We have that $G:\{0, 1\}^n\rightarrow \{0, 1\}^{2n}$ and $$G(x)=x\mathbin\|[x^2 \bmod 2^n]$$ with $x$ is uniform and $|x|=n$, give an efficient distinguisher $D(w)$ that shows that $G(x)$ is not a PRG. After writing a program that shows all values $[x^2 \bmod 2^n]$ can take f...
I understand that multi sig transactions exist so that X of N need to sign to release a transaction. If only 1 of N is required I guess any of the recipients can spend. This made me wonder, is it possible to encrypt something, so that any one of a set of people can decrypt the data? I suppose the data could be in the e...
Ciphertext:1rUHjDnJs09VNvxLiWZzL7PXeKUHvxFVG5GT59WdS6nvOZ1UypVbKlQTcl4orHFShQMBCFGH8+4+SlFDDv4+dUIcmd3zyaBnsXKCb9lMuGmMJkslgPFvgPKNWGsSVu4BhI6/42dGG3q0Lca465xeDaEKTj3Yan/59/+D5Sd6Cha3qwEWoITbR8zFgFNcOVLR Key:3917249 I was given this as a scenario for as an assignment, I've tried everything in the book to the best of my...
I don't have a proper computer science education, so bear with my misunderstandings. UC is supposed to "guarantee strong security properties". From what I stand, if you have some secure protocol, such as a strong block cipher mode of operation, you can't distinguish it from another protocol that looks pretty much the s...
I've read that I should use 2x the number of CPU available from some documentation while others suggest using between 1 and the number of CPU. I realize there is no hard answer here but I'm curious what the advised best practices are. Especially with such a variation in advice.
How can I convert a normal alphabetical text (say hi) to a 64 bit or 128 bit binary digit input for DES?
The definition of differential privacy is as follows: A randomized mechanism $\mathcal{M}$ is $(\epsilon, \delta)$-differentially private, where $\epsilon \leq 0$ and $\delta \leq 0$, if for any database $D \in \mathcal{X}$ and $D' \in \mathcal{X}$, differing on at most one record, and for any possible output $S \subse...
In TLS, we use DHKE for establishing the session key & then encrypt the actual communication with session key using symmetric encryption. While reading about DHKE, I learnt that you could use the key as a AES Key & encrypt the session with AES. Or you could use something like Elgamal encryption. So in practice, what is...
I'm looking for a very clear explanation of how to forge a CBC-MAC. Given M1 = m1 and M2 = m1||m2 and M3 = m1|| m2 || m3$ and their respective MACs are MAC1 MAC2 and MAC3. How would I go about forging a valid MAC on a distinct message? Could I (for example) say (M4||M3 XOR MAC3)?
Short version: Are there some results that are known on the security of the Learning With Error problem when there are some leakages, notably on the noise? (In my case these leakages come from a bit that is leaked after successful decryption.) More precisely, if I have a bit string $d_0$ and if I give an encrypted vers...
Leonid Levin constructed a universal one-way function, i.e. a function $f$ such that if any one-way functions exist, then $f$ is a one-way function. My question is, what universal pseudorandom generators or pseudorandom functions have been constructed? That is, a function $G$ such that if any pseudorandom generators ...
When the encrypted file container contains 100000 files and 500 GB of data, all of them must be decrypted/encrypted when the container is mounted/dismounted. How can Truecrypt/Veracrypt perform this within a few seconds?
What are criteria for generation of an RSA public modulus used in an RSA accumulator, and their rationale? Are there special requirements in some sub-cases, like for «one-way» accumulators? Josh Benaloh and Michael de Mare's One-way accumulators: A decentralized alternative to digital signatures, in proceedings of Eur...
I know that the zero knowledge proof is able to prove to the verifier that the holder does in fact posess the digital signature issued from an issuing 3rd party but... How does the verifier validate that the signature (which is hidden to the verifier) that the holder possesses is valid?
What would be the issue if AES only applied the key addition layer once, before the first round? As in, how would this make the algorithm vulnerable to attack?
Looking through AES process I see it uses a substitution table which need the input in the form of hex. Im wondering if i have a plaintext of 16 bytes such as 'j±…<Ãà!Dȶ;5˜‰*', how can I convert each of these bytes into hex so they can be used with the subsitution table?
Problem Given any piece of data, I could sign it with public key and made available online. This proves I am in possession of given data, but it doesn't tell I am the creator. The only possibility (I'm aware of) to prove this, is to prove, that I was chronologically first to have it. Simple approach. Lets assume, that ...
we generate heralded single pho- tons via spontaneous parametric downconversion using a 5 mm long periodically-poled potassium titanyl phosphate (ppKTP) crystal pumped with a 405 nm diode laser (200 mW). The photon pairs (signal λs = 775 nm and idler λi = 850 nm) are separated via a dichroic mirror, coupled to differen...
I have an API that accepts plain-text and IV as input and I'm trying to identify the encryption mode for that API. I have already tested this API for ECB, CBC, OFB, CFB and CTR and it doesn't seem to be any of these modes. Though on first glance it appears to be padded CBC mode but if you look at my Step 3 (see below) ...
I am a newbie in Finite Field arithmetic and while trying to implement an Elliptic Curve Cryptography based ABE scheme in a programming language, I am unable to understand how to implement function fields. I am given a function definition within a finite field of $p(i.e. Z_p[x])$ where $p$ is some large prime number. H...
Let $G$ be a generator of a cyclic group in which the discrete logarithm problem is hard and $x$ and $u$ be scalars of the group such that $X = xG$ and $U = uG$, respectively. We want to compute $J = x^{-1}U$. Is it possible to calculate it without knowing $x$, even if we know $u$?
Assuming, I had a ciphertext along with its decrypted plain text result but not the IV or the Secret Key. (keep in mind that the text was encrypted with AES/CBC/PKCSPadding7). How would I go about changing specific characters in the ciphertext? For Example: Ciphertext: 08226C1C87A83DDF02C54CF0802624D8 Plaintext: Apple1...
Let's say that an attacker has the plaintext, the ciphertext and the IV of a specific message. If the attacker can control the ciphertext and the IV, could he forge valid plaintext? Let's say that the message is shorter than the block size, just a few bytes. Could the attacker change the value of the plaintext by chang...
While reading on block ciphers and DES I read that two-round Feistel network is not a secure PRP? Is there any easy to understand proof to explain the intuition behind this statement. I did search around and also reviewed this question but wasn't really able to understand why it isn't secure PRP. Any help would be much...
While I was studying protocols for distributed key generation with malicious adversaries, Gennaro et al.$^{[1]}$ pointed out that the protocols that provide both secrecy and robustness should have a threshold lower than $\dfrac{n}{2}$. However, I do not see how the robustness of the scheme can compromise the secrecy of...
Assume we have two secrets $s_1$ and $s_2$. We use Shamir's scheme to produce $\{(x_i,y_i)\}$ as $n$ shares of $s_1$ with a threshold $t$. Then, we use the additive scheme to generate shares for $s_2$, denoted by $z_i$. Is there any way to combine the shares of $s_1$ and $s_2$ to get shares of $s_1+s_2$?
Recently, I am learning the Oblivious Transfer (OT) Protocol. I have some questions about the OT extension. In ALSZ13, we know that $m\times OT_l$ can be reduced to $\kappa\times OT_\kappa$, where $\kappa$ is a security parameter, $l$ is secret's bit length. So my question is: How can I implement $\kappa\times OT_\kap...
I'm currently stuck at a problem, where I'm supposed to proove that the user public key of a returned u2f token corresponds to an elliptic curve equation (secp256r1). The token looks as follows: 05047d550bc2384fd76a47b8b0871165395e4e4d5ab9cb4ee286d1c60d074d7d60ef8cc6dd01e747ccb8bedaae6e7fb875d036ce7e4e6231b75b93993b152...
I've been working through "Cryptanalysis of OCB2: Attacks on Authenticity and Confidentiality" 1 from earlier this year. My knowledge of OCB2 is pretty shallow though, and so I'm keen to study the scheme in depth before I continue. From citations and searching around, it seems like OCB2 was introduced in a 2004 paper b...
assume i have: One-key cipher: E. Hash: H My application is authentication. I have a shared secret key with Bob for the One-key cipher. So, when I send an message to Bob, I also send an authentication code. It is over an insecure channel, so I may have man-in-the-middle attack, etc. I wonder if below schemes for authen...
I stumbled upon an AES implementation that uses boxes with multiples of 2 and 3 for its MixColumns operation. When inspecting the m2 box, I saw that the first line is : 0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0E,0x10,0x12,0x14,0x16,0x18,0x1A,0x1C,0x1E, So nothing abnormal, but once we reach 0xFE, the next line is : 0x1B,...
Given that F is a secure PRF in the example $$F'(k,x)= F(k,x)\mathbin\|F(k,F(k,x))$$ I'm not sure why this isn't a secure PRF? Under what condition $F(k, F(k,x))$ when concatenated to $F(k,x)$ the adversary will be able to distinguish between $F'$ and true random function?
We can represent elements of a finite field $F$ in various ways polynomial basis and normal basis. There is one other; generator-based representation and this is based on the fact that the multiplicative group of a finite field ($F^*$) is cyclic so there is a generator of this cyclic group, call $g$ and we write $\lang...
If I split a key $k$ into three pieces as $k1, k2$ and $k3$ how should I distribute the keys among three people such that any two of them are able to evaluate PRF, but be secure from any one of them trying to do so. The PRF is defined as $F'((k_1,k_2,k_3),x)=F(k_1,x)⊕F(k_2,x)⊕F(k_3,x)$ It is known that the three people...
The Elgamal encryption scheme is a Multiplicative Mask with the shared key. It doesn't seem to have any confusion or diffusion. So why is it not necessary here as compared to Block Ciphers?
From Christof Paar's book The protocol consists of two phases, the classical DHKE (Steps a–f) which is followed by the message encryption and decryption (Steps g and h, respectively). Bob computes his private key $d$ and public key $β$. This key pair does not change, i.e., it can be used for encrypting many messages. ...
According to the original paper form Bernstein public/private keys and the shared symmetric key are stored in little-endian. However, the WolfSSL of WolfSSL supports both, little-endian and big-endian. What is the reason for this? May there be any security issues?
I am searching info on dependencies between different hash functions. Let's say that we have a set of x hashes H1, H2 ... Hn (using different hashing functions) of the same string S. For every hash we can find collision in some time T1, T2 ... Tn It seems logical that finding collision for every hash in set will take t...
TLS is using 3 way handshake. Isn't that possible to use such 3 way handshake protocol to share a secret without using a public key scheme, for instance as follows: Let A, B be private secrets of Alice and Bob respectively, where A,B are elements in a commutative groups. Alice wants to share the secret X with Bob, and...
In researching about RSA accumulators I came across this question, Inclusion and Exclusion proofs in RSA accumulators - from the first answer I had assumed that proof of non-membership could be computed without knowledge of the set, i.e. using only the accumulator value itself ($A$), and the element ($x$) not contained...
I can't find information about EC curve used by Apple's iOS platform. The algorithm name that I could see in their docs is: eciesEncryptionCofactorVariableIVX963SHA256AESGCM However, there is no any explanation what it refers to. I've tried to find info about cofactor IVX963 with n/a so far. I read somewhere that Appl...
16 byte key where each byte is in range 0-255, generated using cryptograhic PRNG will be believed to have 128 bit strength. What would be a bit strength of a key generated using same quality PRNG, also of 16 byte length, if each byte instead of being one of 256 random values, would be one of 16 hexadecimal characters? ...
Imagine Alice has trained a machine learning model. Bob wants to verify that whether Alice actually trained the model or not, but Alice does not want to reveal her model (because the model is personal and she wants to keep it private). So Alice wants to prove to Bob that she has the model, while not revealing any infor...
Another way to ask this question: when block ciphers were invented, why did they add the restriction that the block cipher would be restricted to blocks of a fixed size? From my laymen's point of view, I don't see why rounds of S-box and P-box operations couldn't be performed with inputs of variable size.
I don't understand how we could bruteforce a symmetric cipher. Let's take AES with a key size of $128$ as an example. It means that there are $2^{128}$ possible keys, and as many ways to decrypt a ciphertext $c$. Given that there are so many different keys, it is theorically possible to decrypt $c$ into multiple plausi...
Trying to understand the well known property of these collisions when used with SHA1, SHA256, etc. where a given key is larger than the block size of the digest function. In these cases the smaller of the collisions will have a size of 20 characters for SHA1 and 32 for SHA256 (1/2 the hexadecimal digest length), so doe...
I have a use case where I need to build a unique identifier for my users with the email address and the "family member number". However, the two personal informations used to build the identifier must be hidden. I thought using a hash function for that but there is a risk of collision (the identifier is not guaranteed ...
I am trying to do some ElGamal encryption but having a different encryption formula. For that I doing the following steps: The key generator: Choosing value $p = 107$ and $a = 2$ Random number $d = 67$, and $b = a^d \bmod p$ where $b = 2^{67} \bmod 107 = 94$ $k_{priv} = 67$ and $k_{pub} = (p,a,b) = (107,2,94)$ Encryp...
I've been trying to decrypt a message encrypted with Rabin as a challenge. I'm very new to cryptography and these challenges so much of this is new. I've factorised n and determined that p=q which I understand to be incredibly weak. After many hours I discovered that the proposed decryption using extended gcd will no...
What are the valid key types which can get signed (or generated and signed) by a CA to constitute an SSL certificate? For the keys used in TLS, the key types I have seen are RSA and EC. Anything else? For non-TLS use cases, are there any other key types that could be used? DH sounds like an option, but I don't think I ...
I'm reading about the attacks of the McEliece cryptosystem. I needed to work out a lot of things because most descriptions I have found so far on the internet seems to be quite hand-wavy about the details. So I wrote down what I understand or I think I understand then I have some questions at the end. In a McEliece cry...
I have a 128 bit randomly generated key. I need to expand this key to 512 bits to use with an existing encryption library that does AES-256 encryption in CBC mode with HMAC-SHA256 authentication. The encryption library I am using also has PBKDF2-SHA512 available. Is it acceptable to use PBKDF2 with just 1 iteration to ...
We recently learned about AES in class and it was heavily emphasized that encryption and decryption in AES are not the same because the functions are not reversible. Why then, when we got to block ciphers, do certain cipher modes use the encryption function for both encryption and decryption? The reasoning given was th...
Factoring in birth day attacks and all that, with 256-bit elliptic curve cryptography, lets take secp256k1 as example that Bitcoin uses, what is the maximum number of accounts that are secure? It isn't $2^{256}$ since then any time you generate a random number you find a used account. Birth day paradox and all that, wh...
I have a 1024-bit number $n$ obtained by multiplying two 512-bit randomly generated prime numbers $p$ and $q$. Then there's $\phi = (p-1)(q-1)$, which is another 1024-bit number. I do not have $\phi$ but I do have the result obtained by multiplying $\phi$ with a random 1024-bit number. I need to retrieve $p$ and $q$. I...
Type a elliptic curve can be generated by reading a file like: const char pbpdp::params[400] = "type a\n q 8780710799663312522437781984754049815806883199414208211028653399266475630880222957078625179422662221423155858769582317459277713367317481324925129998224791\n h 120160122648911460793888213667405342048029544012513118...
This is from Dan Boneh's book Theorem 2.1. Let X = (E, D) be a Shannon cipher defined over (K, M, C). The following are equivalent: (i) X is perfectly secure. (ii) For every $c \in C$, there exists $N_c$ (possibly depending on c) such that for all $m \in M$, we have $|\{k \in K : E(k, m) = c\}| = N_c$ (iii) If the rand...
I know it is a kinda funny and maybe even naive question but its still security related, so I decided to ask. Bob and Alice are widely used names indicating the two end-users/parties for web protocols. But in security there is also a third entity, the malicious user. I read a blog post naming that entity "Maria". I gig...
I've been reading Dan Boneh's DDH paper, in particular section 3.1 which covers DDH randomized reduction. The first two sentences of theorem 3.1 state: Let $\Bbb G = \{G_p\}$ be a family of finite cyclic groups of prime order. Let $s(p)$ be an efficiently computable function such that $|G_p| \leq s(p)$ for all $p$. If ...
The definition of Paillier cryptosystem is the same as the one on wikipedia. Now the random integer $g$ is chosen of the form $$g=(1+n)^{\alpha}\beta^{n}\bmod n$$, where $\alpha$ and $\beta$ are in $\mathbb{Z}_{n}^{*}$. Prove that $$m\;=\;L(c^{\lambda}\bmod n^{2})\mu\bmod n\;=\;\frac{L(c^{\lambda})\bmod n^{2}}{L(g^{\la...
Authentication protocol using a keyed hash function: Alice and Bob share a secret key for a keyed hash function. The protocol is: Alice $\Rightarrow$ $m||h_{k}(m)$ $\Rightarrow$ Bob. There are the following two methods: $h_{k}=E_{k}\circ h$ and $h_{k}=h\circ E_{k}$. What are the advantages and disadvantages of the two ...
I got specific problem with my s-boxes in $128$-bit block cipher. One round of encryption is like that: input - sbox - reverse block - $sbox^{-1}$ - output Every s-box got specific $128$-bit key. $sbox^{-1}$ means that we are looking for such input to s-box that will give us such reversed block. First problem is with n...
Leonid Levin constructed a universal one-way function, i.e. a function which is one-way as long as there exists at least one one-way function. But my question is, does there exist a universal one-way permutation, i.e. a function which is a one-way permutation as long as there exists at least one one-way permutation? W...
Stalling says: OFB encryption can be expressed as Cj = Pj⊕E(K, Oj-1) where Oj-1 = E(K, Oj-2) Some thought should convince you that we can rewrite the encryption expression as: Cj = Pj⊕E(K, [Cj-1 ⊕Pj-1]) Is he implicitly saying that [Cj-1 ⊕Pj-1] = Oj-1 ? If yes, why?
This PDF supposedly gives a construction of a universal one-way function, i.e. a function which is one-way as long as there exists a one-way function: Recall that there are only countably many Turing machines (for any fixed alphabet). Let $M_1,M_2,M_3,\dots$ be a list of all the Turing machines such that the length o...
Question I have a scenario where a public key is exchanged out-of-band with exactly one person $A$ and is later used in a key-exchange scheme with $A$. Is knowledge of the public key (i.e., producing a valid encrypted message to the public key) a good authentication of $A$? Example Let's say Alice wants to set up a sec...
Mathematical hardness assumptions like that of the factoring problem, the RSA problem, and the discrete log problem all straightforwardly lead to one-way functions. But what about the computational Diffie-Hellman (CDH) problem? My question is, what one-way functions have been constructed based on assuming the hardness...
The title mostly explains it; CBC-MAC variable-length weakness with MAC size greater than the encryption block size I've seen that by having the pairs $(M,T_m)$ and $(N,T_n)$, we can generate a third message $M'$ whose CBC-MAC will also be $T_n$ by simply doing $M'=M \mathbin\| ((n_1 \oplus T_m) \mathbin\| n_2 \ldots...
Which cryptographic message standards are recommended to ensure cryptographic agility in the future and have good adoption trough different programming languages such as .NET and Go? The standard should be a hybrid cryptosystem using a Public Key Infrastructure as well as authenticated symmetric encryption. I don't wan...
I got specific problem with my functions in $128$-bit block cipher. One round of encryption is like that: $input$ $\rightarrow$ $F(k_{i},input)$ $\rightarrow$ reverse block $\rightarrow$ $F(k_{i+1},reversed \ block)^{-1}$ $\rightarrow$ $output$ Every function got a specific $128$-bit key, but keys do not change some pr...
The Security Policy Document: Microsoft Windows FIPS 140 Validation (version 1.4 dated May 7, 2020) mentions in section 2.2: 2.2 FIPS 140-2 Approved Algorithms Cryptographic Primitives Library implements the following FIPS-140-2 Approved algorithms: NIST SP 800-38D AES-128, AES- 192, and AES-256 GCM decryption and GM...
Can zero be one of the elements used in an MDS matrix (in the context of AES)? Based on what I have read all entries of an MDS Matrix need to be non-zero. Also, I would appreciate any help in understanding the reason behind this requirement if zero cannot be an element of MDS.
I found this thread from 2011: Is there a secure cryptosystem that can be performed mentally? Are there new secure hand or pen-and-paper ciphers in 2020? (I know, that hand ciphers are not as secured as digital ciphers).
im trying to find a good way to allow searches against encrypted data in the database. Lets say i want to encrypt phone numbers, if its encrypted securely i cant search against phone numbers directly which hurts the application abilities. From what i understood there is a main pratice that is still performant and secur...
I am learning modern cryptography and recently we reached the CPA mechanism. In CPA game setting, A sends two messages to C and then C randomly chooses one message and encrypts it and sent the encrypted text back to A, then A will determine which one of the two messages is chosen by C. However, if A sends two identical...
Suppose $f$ is a probabilistic one-way function. Then my question is, does there exist a construction of a deterministic one-way function $g$ based on $f$? Or is it possible that probabilistic one-way functions exist but deterministic one-way functions do not? EDIT: Probabilistic one-way functions are defined in defin...
I'm trying to diagnose a badly-implemented pseudo-random number generator. The two key features of the bit streams produced by this PRNG are: significant correlation of consecutive bits (approximately 70% of 0's are followed by 0's, and similarly for 1's), and significant anti-correlation of bits that are 17 apart in t...
How can RSA be used for digital signature with message recovery and encryption, providing transmission of a small message with confidentiality and authentication simultaneously, small cryptogram size, and little or no reliance on symmetric/hybrid encryption?