instruction
stringlengths
32
27.2k
How can I design a CPA-secure encryption scheme which is secure even after the encryption of secret key is given in the training phase? I.e., in the training phase, $\mathit{Enc}_{\mathit{pk}}(\mathit{sk})$ is given to the attacker, where $(\mathit{sk},\mathit{pk})$ is the key pair.
Let $x$ be the secret value, $(n,a,b,c)$ a public key, $(n_C, g, h)$ the commitment public key. Furthermore let $r, r_C$ be two random numbers. Define $C = g^x h^{r_C} \bmod n_C$, $C_x = a^x b^r \bmod n$. I want to prove that $C$ and $C_x$ are commitments to the same value without revealing $x, r$ and $r_C$. My idea is...
Why doesn't Cocks IBE use the hash function H from ID space to quadratic residue set $\mathbb{QR}_N$ in $\mathbb{Z}/N\mathbb{Z}$ to reduce the ciphertext expansion by half? I think it is also IND-ID-CPA secure in random oracle because we can learn nothing from the ciphertext when the hash function H of some ID is chose...
I am working on a messaging client similar to Signal. I am stuck on implementing Tripartite Diffie-Hellman handshake in which three DH exchanges are combined to authenticate both parties and produce a session. Alice starts with identity key $g^A$ and ephemeral key $g^a$ (her secrets are $A$ and $a$). Similarly Bob h...
Problem Is there any combination of hash and encryption algorithms with show the following properties: File $\rightarrow$ Hash $\rightarrow$ Encrypt $==$ Hash $\leftarrow$ Encrypt $\leftarrow$ File So a combination of hashing and encryption which can be applied in arbitrary order so that it leads to the same result. U...
I'm trying to learn about elliptic curve cryptography. Let's say you have point $P$ and 256 bit number $n$ and you want to compute $nP$. It sounds like computing additions one at a time is not computationally feasible. Is there an algorithmic "shortcut" to compute this? If so, how does it work?
I'm trying to understand the following signature scheme (Camenisch-Lysanskaya): Key generation: $n = pq$ special RSA modulus, $a, b, c \in QR_n$. $PK = (n, a, b, c), SK = p$. Signing algorithm: $m$ message. $e$ random prime number (with some for this question unimportant length restriction). $s$ random number with ver...
Hash linking is used to prove the integrity of a blockchain, or similar systems. When was that technique first used? I would guess it was early, maybe 1950s/1960s?
So according to the wikipedia page https://en.wikipedia.org/wiki/General_number_field_sieve the algorithm has complexity $$\exp \left( \left(\sqrt[\leftroot{1}\uproot{0}3]{\frac{64}{9}} + o(1) \right) (\ln n)^{\frac{1}{3}}(\ln \ln n)^{\frac{2}{3}} \right)$$ but I am not too familiar with this notation. I understand the...
If there always existed a $k_3$ such that $\operatorname{DES}(k_2, \operatorname{DES}(k_1, M)) = \operatorname{DES}(k_3, M)$, how would that affect the security of $\operatorname{DES}$?
I have an encrypted column in a database that stores sensitive information. The existing encryption scheme is deterministic and a database index exists on the encrypted value to allow searching. I am upgrading the encryption scheme to use authenticated encryption, so the obvious choice seems to be AES-SIV. However, the...
I am using the following OpenSSL command to AES 256 encrypt a file: openssl aes-256-cbc -salt -in secret-file -out secret-file.aes enter aes-256-cbc encryption password: Verifying - enter aes-256-cbc encryption password: As far as I understand, the encryption password should be 32 characters/256 bits, but passing ...
I have k messages $m_1,m_2...m_k$ and I want to commit to all of them but open only a few of them -- as asked by Bob. Each message is of $n$ bits. Show how one can commit to all the $k$ messages and then later open only the messages that Bob asks her to such that the total communication is less than $O(nk)$. I am stuck...
I am new about cryptography, I learned that SHA-3 (Secure Hash Algorithm 3) is the latest member of the Secure Hash Algorithm family of standards, released by NIST. But I recently saw SHA-256 but I don't get what is it in comparison to SHA-3 ?
Given an AES key, there is a limit (of about $2^{64}$ blocks) of how much plaintext it is safe to encrypt with the key. Is there a similar limit for how many signatures it is safe to produce with a signing key (such as RSA, DSA, or ECDSA)? (I would also be interested if there is similar limit for asymmetric encryptions...
I'm studying Certificateless Cryptography and specifically I'm studying a scheme without pairings. I read a lot of time this paper (https://www.sciencedirect.com/science/article/pii/S0898122112002490) but I am concerned about some issues in the paper. Basically, during the key agreement procedure, when the user $B$ re...
For learning purpose, supposed I have a 16-digit prime which is $2685735182215187$, how do I verify if $g$ is a generator? ($p$ is supposedly a special kind of prime)
I am using differential cryptanalysis to attack the second key of a 4-variant DES and I am using Shamir and biham book as a reference . they say that we should choose two input Xor P3 and P4 that satisfy the following conditions: the expansion of the right half of the input Xor does not equal zero for all the S-boxes ...
I'm studying SHA-3 and I dont understand quite a bit how the padding 10*1 works. Can someone explain me step by step how is it work? Also I know that on SHA3-512 r is 576. On the sponge construction what you need to XOR the first padded message P0 with the r vector. What is the r vector in any situation? (Please be nic...
If I do encryption and decryption like this: Encryption: $\text{E}(m) = (r \times p_1+m) \bmod N$ Decryption: $\text{D}(\text{E}(m)) = ((r \times p_1 + m) \bmod N) \bmod p_1 = m$ where, $r$ = random number $p_1$ = random large prime $m$ = plain text (int) $N$ = product of two large primes $p1 \times p2$ So, my questio...
I am working on Password Authenticated Key Exchange (PAKE). I noted some PAKE schemes were built upon the smooth projective hash function (SPHF). I am confused why SPHF can be used to design PAKE? I can understand the definition of SPHF and I know it is a special case of designated-verifier ZK. But what are the main ad...
We know that MDS matrices are used in the diffusion layers of block ciphers. My question: what types of MDS matrices can be applied to serial or round-based implementations or both of them? I appreciate you to address some references.
On trying to understand Deserialization vulnerability, it was observed that serialization is the process of converting a complex object to a byte stream for sending it across networks and is deserialized on the receiver side. On analysing OWASP TOP A8, it says the IT industry has an high prevalence of this feature bei...
I am looking at a very old protocol which uses Blowfish to encrypt packets with a constant 8-byte IV in CBC mode. Assuming I have: The ability to arbitrary encrypt known plaintexts The IV I know that this lets me identify which plaintexts begin with an identical block and lets me identify also which plaintexts are ex...
I am looking for how an adversary to special HVZK would work. In Boneh and Shoup's book (BonehShoup) they have Attack Game 20.4 for special cHVZK. Here, the adversary produces a pair (x,y) (witness and statement) and sends it to their challenger, who either uses P and V or Sim to produce the transcript. Can I modify th...
I am an intern (I started yesterday) in a research lab on lattice based cryptography and I have a more mathematical background, in particular algebra. I would like to know what type of algebraic problems intervene in lattice based cryptography? I am supposed to do a phd and I would like to work more on algebraic aspe...
I have seen other questions like this one, but I am asking this specifically in the context of Riot messaging and the underlying Matrix protocol. A basic summary of their message encryption (using keys derived from the key ratcheting Olm primitive, details in the section "Olm authenticated encryption" in the Olm spec) ...
I am attempting to solve the following problem: I know the following: 3 messages are being sent between Alice and Bob, all messages are encrypted with the known public key $(d,N)$: Alice sends Bob: $m_1=E(R_1);$ $R_1$ is a 28-bit number. Bob sends Alice: $m_2=E(R_2,R_1);$ $R_2$ is a 28-bit number and $R_1$ follows...
Given access to a 2048 bit public key, a large corpus of 2048 bit plain text messages and their signatures (RSA-PSS with SHA256 as the hash and MGF) are any of the following statements correct: Increasing the number of of messages available significantly increases the likelihood an attacker can reverse the private ke...
I try to learn ElGamal re-encrypts scheme and I have a question about the example: How is a re-encryption done with elGamal?. The $g$ value of Alice must be the same as $g$ value of Bob or not? And what about of Prime $p$ value for Alice and Bob? Alice.$p$ must be the same as Bob.$p$ or not? Thanks!
Reading this paper, I have some questions about blind signatures What is the meaning for unlinkability of blind signatures? I searched wiki, but still cannot understand exactly. In blind signatures (like RSA), if there is a valid origin signatures pair (m,s), then blind message and corresponding signatures pair (m',s...
Let's say I'm making an end-to-end encrypted messaging app with the goal of putting "privacy first." The contents of messages are encrypted, but in the current model, it is still visible to the server who sends a message to who and when they sent it, as well as the general size of the message. Messages are retained ind...
Is there a method for individuals to publish a token which indicates having a file in their local set of files without revealing exactly what they have? For these purposes we will consider a file to be a string of ones and zeros. Padding a 1 to the left maps each file an integer. Suppose I have three files on my comput...
This question, while related, doesn't answer the security aspect I have in mind. I understand that signatures make it impossible for the tokens to be modified. But if I want the JWS token content to be non-visible, I keep hearing people mention JWE. But is there a security reason why I shouldn't be encrypting them myse...
If a hash function is written: Hash(Hello||World) Is that equivalent to Hash(Hello) + Hash(World) or Hash(HelloWorld) ? Similarly, is there any difference between Hash(Hello||World) and Hash(Hello,World)?
I was told that a hash function (mostly looking at the SHA-* family) should have input strings of variant length provided first, and those of fixed length after (ie salt), in order to avoid some kind of collision attacks. I haven't seen this explained anywhere, so I was wondering whether this holds and how so. What I'...
The question might sound broad, allow me to explain. Cryptography is a diverse domain. I have been in Crypto research since last four years. Recently, one of my colleague got interviewed by an IT giant where he was asked some apparently random questions on AES, hash functions, randomness, entropy, RNG, block ciphers, v...
We know that Needham-Schroeder is vulnerable to a reflection attack as shown here. How can I make it secure using ECB and without using timestamps? I need to modify the protocol. Otwan-Rees is a possible solution. Is there any other way which doesn't deviate much from the original protocol.
Consider we have a database $D=[1,2,1,3]$, and the query for $\mathop{\arg\max}_{i} D_i$. So how to analyse the sentivity of the utility function? for the sensitivity of $u$ equals to $\Delta u=\max_{i} \max_{D,D':\Vert D-D'\Vert_1\leq 1}\|\mathop{\arg\max}_{i} D_i-\mathop{\arg\max}_{i} D'_i\|$ Is it necessary to set a...
I've come up with a way to transform a stream of bytes such that if any single bit is modified, it cannot be transformed back into its original state. Here's how it works: Encoding Get hash of entire file (call it hash A) XOR file using repeat concatenations of hash A Get hash of XOR'd file (call it hash B) XOR hash ...
I am given this question: Suppose Alice is using the ElGamal Signature scheme with parameters $p = 31847$, $\alpha = 5$, and $\beta = 25703$ Assuming that we have received signed messages $(x_1,(\gamma_1,\space \delta_1)) = (8990, (23972,\space 31396))$ and $(x_2,(\gamma_2,\space \delta_2)) = (31415,(23972,\space 204...
I find some plaintext, cipher and iv, which len(cipher) == len(plaintext)+len(iv), the length of iv is 16, does anyone know which crypto it is?
As stated in the title, I'm looking for an encryption algorithm with the characteristics that, when inputs are slightly different, the encrypted output will be VERY much different, to the point that no one will suspect that unencrypted inputs are quite similar when they compare the encrypted outputs. The TDES encryptio...
I am currently carrying scholar research about IPsec protocol, and I have a question regarding the IP Encapsulating Security Payload (ESP). Is the initialization vector of operation mode transmitted in clear in the message ESP Payload ? If it is transmitted in clear, why is it not a security issue ?
Can someone explain how the Gallant-Lambert-Vanstone method works (or which literature explains it)? It is also unclear to me how the Frobenius endomorphism can be used in some cases for a speedup. Also: how does it make sure that an attack remains infeasible (by using this method)? (I am especially interested because ...
Apologies in advance, I'm a beginner and my knowledge of terminology in this field probably reflects that. I have a question about one-time codes being used with passwords. What inspires me to ask this question is that some prominent government computing agencies (NERSC in particular) has implemented multi-factor authe...
Is there any Corelation between the SHA256 and SHA512 hash of the same data ?
I am trying the Blind signature attack against an RSA crypto system (we have the value of N and e). The system is defined as: class RSA: def __init__(self, e, d, n): self.e = e self.d = d self.n = n def sign(self, msg): msg = int(msg.encode('hex'), 16) return pow(msg, se...
We know that the CDH problem, computing $g^{ab}$ from given $(g, g^a, g^b)\in\mathbb Z_p^3$, is hard. Is it still hard with an auxilary information $\frac{a}{b}\bmod q$ (where both $p$ and $q$ are large primes with $q|p-1$, and $g$ is a generator with order $q$) ?
| 00 01 10 11 ---|------------------------------- 00 | 0011 0100 1111 0001 01 | 1010 0110 0101 1011 10 | 1110 1101 0100 0010 11 | 0111 0000 1001 1100 I need to find out a substitution of 2. I dont know how to do it.
After certain privacy concerns Facebook rolled out a bunch of changes to their APIs, one being "scoping" user identifiers per app. In effect, this means that Alice's canonical facebook user ID is never shared through facebook APIs, but each app sees a unique never-changing value. To formalize this through two functions...
I have read that output that varies by key size or file size can leak information. So if it should produce fixed size then what is the scenario if it produces fixed range? By fixed range I mean that for example, by hashing the word "hello" or by hashing 100 MB file produces the length not more than 320 digits long typi...
I want to know if there is an efficient secret sharing scheme based on XOR such that a share of the message is given to three people and at least two must combine their share in order to construct the message? What I have tried so far: Suppose I got a message $M$, and three people A, B and C. Then what I do is A gets ...
Problem Statement I don't want to expose my internal database ids (or other internal private ids) so to make it harder to abuse them, by e.g. guessing the next id of a sequence or similar. It is not feasible for me to add a new field with a public, non-guessable UUID for every entry in my DB. I therefore require a prot...
The use of an increasing IV is not secure for a block cipher. That is, using a random IV for the first message then $\operatorname{IV} + 1$ for the second , $\operatorname{IV}+ 2$ for the 3rd etc. How can I construct an attack to show that this mode is not secure?
Some mode of operation of block ciphers rely on the fact that E(k,0) is an unpredictable value when k is random and secret (with 0 denoting the all-zero binary string). Why is this a reasonable assumption?
Reading "Security Arguments for Digital Signatures and Blind Signatures" paper, I confused by some questions. Q1. when it refers to "El Gamal signature scheme", The key generation algorithm: it chooses a random large prime $p$, of length $n$ polynomial in $k$, and a generator $g$ of $(\mathbb{Z}/p\mathbb{Z})^*$, both ...
Suppose that $x,y \in \mathbb{Z}_n$ with $\gcd(x−y,n) = 1$. Prove that for any $u,v \in \mathbb{Z}_n$ there is at most one affine permutation mapping $x$ to $u$ and $y$ to $v$.
I was wondering if there is a cryptographic hash where the resulting hash is identical to the input for the hash function. If this is the case, would it be a weakness in the hashing function?
I'm trying to understand the Paillier Scheme but there's something I can't understand in the keyGen algorithm: Ensure $n$ divides the order of $g$ by checking the existence of the following modular multiplicative inverse: $$\mu = (L(g^\lambda \bmod n^2))^{-1} \bmod n.$$ I'm trying hard to find the relation between ...
I'm programming a cryptographic application that encrypts files, locked with the password the user supplies. It's not intended to be used in production. It's a project for me to learn more about encryption. I have programmed the encryption part already, it's in C# and i'm using CBC as cipher mode. I want to add authent...
I am trying to implement a deterministic encryption scheme in .NET. This link suggests I use AES-SIV mode encryption. An alternative is to use AES-CTR [ k1, nonce, message] mode with HMAC[ k2, message] as the nonce. This is effectively the same as AES-SIV. In .NET, there is no implementation of AES-SIV. AES-CTR mode ...
This is a tutorial question for a Foundations of Privacy computer science course, I'm unsure on how to tackle it because we haven't talked much about these particular topics in class. (a) Assume Alice, Bob and Carlo respectively have the data set $A = \{ \ldots \}$, $B = \{ \ldots \}$, $C = \{ \ldots \}$. How to use t...
What are the assumptions we make to propose a one-way function? I only know of some number theoretic assumptions, but what are the other assumptions you can possibly make, which if true, would imply that $f$ is a one-way function? (Considering pre-image resistant hash functions, what is the assumption there? Hashes as...
The original question only states that a classical cipher is used, and I am going to articulate 1) why I think a polyalphabetic substitution cipher is used AND 2) my attempts so far. The Question c1 = rhlxhei rb niu ir-wbbxug "qeejv," rgj mbfo sdg m1 = friends by the so-called "posts," but they can c2 = fypx pd jkx teo...
Many signature schemes use forking lemma to prove security, like scheme in here.In short, that goes through a reduction technique which called oracle-replay attack to solve the difficult algorithmic problem, requiring two rounds of simulation for $\mathcal{F}$ to obtain two valid signature pairs $(m,r,e,s)$ and $(m,r,e...
In a hybrid protocol $\pi$ for which I want to proof uc-security in the absence of corrupted parties, there is an ideal functionality $\mathcal{F}_{SMT}$ for secure message transfer that leaks the message length to the attacker. Also, there are non-interactive zero-knowledge proofs of knowledge that are built using $\S...
Shamir's Secret Sharing is just a special case of Reed-Solomon where only one coefficient is used to store the secret instead of the entire polynomial. Sarwate however, suggests that the latter can be done by sacrificing information theoretic security: The second aspect of Reed-Solomon coding schemes considered in the...
I need to find the discrete logarithm of 20 modulo 71 where the generator of the group is 7. I need to break the group $|G|=2 \times 5 \times 7$ in subgroups $|G_1|=2, |G_2|=5, |G_3|=7$. I am new to this. Can someone please help me out? Edit: Till now, I have reduced the above problem to the following system of equatio...
I am currently working on some research about differential cryptanalysis. There is a lot of literature about that topic in the internet. One of the most known paper is the tutorial on linear and differential cryptanalysis by Howard M. Heys. May be some of you know that paper, if not have a look here: https://www.engr.m...
Can anyone point out the core differences between these ciphers?
I am currently reading a research paper that introduces this thing called a butterfly structure. I am confused about the structure of the open butterfly in this paper which has the equation $H^{\alpha}_{e}(x,y)=(R^{-1}_{R_y[e,\alpha](x)}(y),R_y[e,\alpha](x))$ where $R_k[e,\alpha](x)=(x+\alpha k)^e+k^e$ and a correspond...
In CRYSTALS-Dilithium module lattice-based digital signatures, the secret key vectors $s_1, s_2$ with coefficients in $[-\eta, \eta]$ and the signature masking vector $y$ with coefficients in $(-\gamma_1, \gamma_1)$ are generated using rejection sampling on a stream of uniformly random bytes obtained from a cryptograph...
Assume a dumbed down RSA: the private hey is $3 \times 5 = 15$. $3$ and $5$ are the private key and $15$ is the public key. To brute force it, find the two prime factors of $15$ ($3$ and $5$). Is there a way to demonstrate a "dumbed down" elliptic curve / discrete log problem that I can compute by hand? I get the feeli...
I read on wikipedia what is X.509: In cryptography, X.509 is a standard defining the format of public key certificates. X.509 certificates are used in many Internet protocols, including TLS/SSL, which is the basis for HTTPS[1], the secure protocol for browsing the web. They are also used in offline applications, like ...
I'm designing a system where a registration code is generated, it is sent to the user, and then the user registers himself/herself based on this registration code into the system. The registration code has some expiration time, so that if the user doesn't register within the validity period, the registration code will ...
Studying the Baby-Step/Giant-Step Algorithm, I have some questions: In the algorithm, $p$ is the order of group, $x$ is solution. We rewrite $x = i * m + k $, but why do we make $m =\lfloor\sqrt{p}\rfloor$, rather than something else like $\lfloor {p/2}\rfloor$? (a) The time complexity is $O(\sqrt{p})$. If we make suf...
I read on Wikipedia, the fastest Algorithm for breaking RSA is GNFS. And in one IEEE paper (MVFactor: A method to decrease processing time for factorization algorithm), I read the fastest algorithms are TDM, FFM and VFactor. Which of these is actually right?
I have 4 questions about Massey-Omura Cryptosystem. Are there standards that define these parameters? How to choose a group order? What is better to take the function f? What is the recommended key length?
Example using SAGE sage: sr = mq.SR(1, 1, 1, 8, gf2=True) sage: S = sr.sbox(); S (99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35,...
I would like to implement a deterministic encryption scheme within .NET. From the following post it is established using AES-SIV mode is appropriate. As AES-SIV mode is not implemented within the System.Security.Cryptography .NET namespace an alternative is to use AES-CTR[k1, nonce, message] where nonce = HMAC[ k2, m...
I'd like to know, is Learning With Error (LWE) (with modular noise) "secure" if one entry has no noise? More precisely, I have: a random matrix $A \in \mathbb{Z}_q^{m \times n}$ a random string $s \in \mathbb{Z_q}^{n\times 1}$ and a "small" noise vector $e \in \mathbb{Z}_q^{m\times1}$, such that the first component of...
I presented our mathematician with an idea: If you have a black box that encrypts or decrypts AES with the same 128 bit key (you don't have any direct access to the key), and you control the input and the direction (enc/dec) and can see the output, can you mathematically derive the key? How many tests will you have ...
I am currently reading a paper Cryptanalysis of a Theorem Decomposing the Only Known Solution to the Big APN Problem. In this paper, they mention that they used $I$ which is the inverse of the finite field GF($2^3$) with the irreducible polynomial $x^3 + x + 1$. This inverse corresponds to the monomial $x \mapsto x^6$....
Have there ever been some publicized efforts to prevent length extension attacks of hashing algorithms that are based on the Merkle–Damgård construction (MD5, SHA1, SHA2, ...)?
In short: Are lossy function the only way to prove security using leftover hash lemma for computationally secure protocols? Longer: I recently discovered/understood the leftover hash lemma, that basically states that even if you have only partial knowledge about a binary string $s$ (the entropy still needs to be big ...
Public-private key cryptography is based on inverse operations that use separate input. In elliptic curve cryptography, what are those inverse operations?
Seen here, at the bottom of page 5, $\operatorname{Flatten}(\vec{a})$ is defined as: $\operatorname{Flatten}(\vec{a})=\operatorname{BitDecomp}(\operatorname{BitDecomp}^{-1}(\vec{a}))$ For an n-dimensional vector $\vec{a} = (a_{1,0},\ldots,a_{1,l}, \ldots, a_{k,0},\ldots,a_{k,l-1})$. Where $a_{i,j}$ is the $j$-th bit in...
For RSA one can give a non-interactive zero-knowledge proof that RSA with parameters $(e,N)$ form a permutation and a proof of knowledge of the associated RSA secret key. For example, such a proof can be given using Poupard and Stern. I was wondering whether there exists a similar proof for Paillier. In a sense that to...
I am reading Professor Lindell's "How To Simulate It - A Tutorial on the Simulation Proof Technique" paper, which is very enlightening. I am trying to follow through the proof of the security of Blum's coin-tossing protocol and have some questions: in the end of page 41 it says ": Let $b_1$ be the value committed in th...
I understand that this question can be hardly downvoted, but so be it if someone gives me really useful references :) I wanna learn difference (deeply) between RSA, DSA, and ECC, especially I am interested in ECC and its application in GPG and SSH protocols, I googled some MIT courses but they seem too brief for deep u...
How can a KDF implementation for IKEv2 application, specifically in strongswan implementation case can be verified for conformance with NIST SP800-135, please? SP800-135 KDF recommendation further propose usage of SP800-56C for key extraction and SP800-108 for key expansion. Can we verify extraction and expansion steps...
Let $Z^t = (Y_1,\ldots,Y_t)$ be a sequence of random variables each taking values in $Y$. The random variables are not necessarily i.i.d but we know the joint distributions. i.e for every $z = (z_1,...,z_t)$ we know $P^{Z^t}(z)$ The min-entropy of a random variable $X$ is defined as $-\log_2(\max P(x) )$ for x in the v...
The concept of Encryption Switching Protocols was introduced in CRYPTO. I was wondering if there is any pseudo-implementation of the protocol available or can I get some insights on how to implement it?
Why the decryptor can still use K to access the data even when K is updated? QAQ
I read the RFC 8017 and understood the pkcsv1.5 and pss padding techniques. I understood that in RSASSA-PSS signing scheme the signature will be appended at the end of M. In some websites I read both RSASSA-PSS and RSA-PSS both are same, is it true? If not what is the fundamental difference between RSASSA-PSS and RSA-P...
In their 2015 paper "More Rounds, Less Security?" Guo, Jean, Mouha and Nikolić claim in section 5.4 that one can recover a password $P$ given hashes of $D$ different passwords generated from $H^k(P)$ with about $T_1=\frac{2^n}{D\cdot k}$ hash evaluations. Now I understand that using standard preimage search you are exp...
Let's assume all operations are done on $\mathbb{Z}_p$ where $p$ is a large non-prime number. To mask a value $a$, we do the following: Pick a uniformly random value: $r$, from the ring. Do as follows: $c= r+a \bmod p$. Question: Is the above one-time pad secure?
I'd like to encrypt Text with AES/CTR and a password defined by the user in java. I already checked the internet (and stackoverflow) for answers. The most used version is to hash the user password with sha1 and take only the first 16 bytes. But I don't think this can be a good practice. sha1 is weak taking only the f...
So Ethereum goes for RANDAO. The disadvantage with RANDAO is that the last validator in the commit-reveal scheme is able to hold his contributed value back and thereby influence the random outcome. Ethereum is trying to overcome this by using verifiable delay functions. Why all that hassle? Why not just go for thresho...