instruction
stringlengths
32
27.2k
Finding a collision in the AES algorithm is (apparently) hard. Why ? What is the mathematical property stating that there is a negligible probability to find a collision by taking two random plaintexts and setting the key ? Here I mean collisions like : $\operatorname{AES}_{K}(P_1)=\operatorname{AES}_{K}(P_2)$, with ...
From what I understand, based on the article A Beginner’s Guide: Private and Public Key Cryptography Deciphered, the public key is generated by performing $n$ tangent plus mirroring operations from the point $G$ over the elliptic curve, where $G$ is defined in secp256k1 and $n$ is a natural number that directly relates...
In the paper "Simulation-Sound NIZK Proofs for a Practical Language and Constant Size Group Signatures" from Groth, the section 6 describes a NIZK proof for pairing product equations. I only know the basics in the domain of zero knowledge proofs and I saw some basic algorithm. What I would like to know is if there is...
I want to implement ID based encryption using the RSA encryption algorithm but how can I edit the algorithm for IDs.
I am working on a project and I'm noticing a peculiar behavior that I was hoping someone could tell me if it is correct or not. I have a program that is trying to generate some random numbers using BN_rand(). Snippet of code follows: BIGNUM *test = NULL; unsigned char buffer[2048]; int fd = open("/dev/urandom", O_RDWR...
I am working on testing my implementation of OpenSSL using the CAVP 186-4 RSA Validation System (RSA2VS). There are tools under openssl-fips-2.0.16/test and I am working on modifying fips_rsagtest.c to process the 186-4 test vectors the way I need them. The fips_rsagtest.c program was originally made to take in values...
I read the description of 1-2 oblivious transfer algorithm in wikipedia. In the algorithm described Alice has two messages $m_0, m_1$. Bob picks value $b \in {0,1}$, and the protocol allows Bob to obtain $m_b$, while Alice does not know which value was sent to Bob. The protocol requires that Alice creates an RSA privat...
I have written a code to encrypt a plaintext as below. Here I am using bouncycastle crypto provider and referring to the RSA+OAEP for that. public static void main(String [] args) throws Exception { Security.insertProviderAt(new BouncyCastleProvider(), 1); String ciphertext = Base64.encode(encrypt(plaintext)); ...
Let $H$ is a cryptography hash function and $\Pi=(\mathsf{G}, \mathsf{S}, \mathsf{V})$ is a digital signature, as follows: $(h_1=g^x,h_2=g^y) \leftarrow \mathsf{G}(1^n)$, where $x,y$ uniformly random from $\mathbb{Z}^*_q \ .$ $(r=g^k,s=(H(m)-x \cdot r)\cdot k^{-1},z= y^{-1} \cdot k ) \leftarrow \mathsf{s}_{x,y}(m)$, w...
The last days I was looking for a way to encrypt using ECC, without having to make the program myself. I was sure that someone should have done it for everyone by now. The best approach I had was with bouncy castle. The bad thing about it, is that I never found a "encrypt" or "decrypt" method. The best thing I could fo...
I would like some help to understand how to compute a distortion map and the result of a pairing. I know that with this equation : $E : y^2 = x^3 + 1$ over some $\mathbb{F}_p$ we have a distortion map $\phi(x,y) = (\beta x, y)$. I know that I need to find a primitive cube root of unity $\beta$ such that $\beta^3 = 1$ ...
Is there a way to encrypt data/document with multiple keys, but every key is only allowed to read/decrypt only a certain part of the document and not the whole document? The document cannot be sub divided into multiple smaller documents for various users.
Is there any way to assign someone a limited quota for how many cryptographic key pairs they can generate (ECC, RSA, any algorithm), and preferably non-interactively? By non-interactively I mean there is no multiple handshake or multiple round trips between me and the person doing the generating and the relationship co...
I have few sub-questions Do secret keys get expired, or just the public key gets expired? Do I have to back up the master sec key each time I renew it? For an example: Let's say I generate gpg keypair and ssb for signing, encrypting, and a revoked certificate. And I backup the master sec key, revoked certificate and p...
Assume user $A$ with corresponding public-private keys $(pk,sk)$ and a public information $r_1$ and $r_2$. Let $r_{1s} = Sign(sk, r_1)$ be the signature on $r_1$ generated using $sk$ and $c = Hash(r_2 || r_{1s})$. Now given $r_1, r_2$ and $c$ are publicly available can user $A$ produce a zero-knowledge proof that $c$ ...
Let's say that we have an original homomorphically encrypted program with any possible code inside. What methods can it use to ensure that it is impossible to create an exact copy of it? Are there such ways? I understand that a person without a key will not see the internal content of a homomorphically encrypted progra...
$\require{begingroup}\begingroup \DeclareMathOperator{\keccak}{\mathrm{Keccak}} \DeclareMathOperator{\concat}{\|} $According to Keccak's website, $\keccak(k \concat x)$ is safe: Unlike SHA-1 and SHA-2, Keccak does not have the length-extension weakness, hence does not need the HMAC nested construction. Instead, MAC co...
The command : openssl genrsa -out RootCA.key 4096 generates a single file named RootCA.key. When I open the file, it only contains the private key. Then the next command: openssl req -new -x509 -days 1000 -key RootCA.key -out RootCA.crt Generates a certificate , named RootCA.crt containing the Root's public key...
What are the advantages and drawbacks of using long term private keys compared to session keys?
Am I misunderstanding length extension attacks, or is there some different reason, or is it really a bad idea to use SHA2 for file verification? If the answer is that it's really a bad idea, would removing the last 4 bytes be advisable since now the chances of the attack succeeding will be around one in 4 million, and ...
I have several IOT devices that transmits nearly 200 bytes of data every 10 seconds. I want to make the data secured but i also want to keep the data size nearly same. Ofcourse for IOT devices computations should be lightweight. I have been considering AES 128 for this job and RSA for key exchange. I am wondering if i ...
There was a question on my final exam, but I could not get a point. I really want to know the right answer. Question is: Suppose a cryptosystem has perfect secrecy. Prove that H(P|C) = H(P) H(P|C) is conditional entropy.
If we were define such a cipher: A reversible function that would accept a message $M$ and an initialization vector $\text{IV}_1$ $\operatorname{map}(\text{IV}_1, M)$ which can map an input $M$ to a random prime $p_1$ A key derivation function $\operatorname{kdf}$ with a similar blueprint, with key $k$ and initializat...
I recall reading about this but forgot what it’s called. Suppose two people want to know who is richer but don’t want to reveal their net worth to the other. How can they securely exchange info to determine who’s number is larger?
Is there a method of encryption where your key is made up of $n \cdot s$ bits, but also such that an attacker would know when they've successfully cracked each $s$-bit part? For example, the full key could be $\texttt{1011 0101 1010}$, for $(n=3, s=4)$and you would be able to know if you successfully guessed that the f...
AES256, CBC IV is sha512 of key. Ek[random padding | message | random padding] How much information would be leaked from the use of the same IV & key in this way, assuming the adversary has complete access to the system, design, iv, and all information, the AES Object itself, etc etc, except the key?
I'm reading the article about SPDZ protocol for secure multiparty computation (and also improvements for offline phase like MASCOT). However I'm thinking about practical application of SPDZ for AES encryption/decryption. I have the following assumptions: There are 3 parties $P_1, P_2, P_3$ from which $P_2, P_3$ each ha...
As you may know, PKCS#1 defines two different padding in it's v1.5 : one for signature and one for encryption. Here they are : The middle part is refered as PS in the standard. There is only one thing bothering me : why does PS differ between signature and encryption ? I can't see any reason ti fixe PS to a '0xFF' st...
In generating an LWE sample, we do $s\xleftarrow{$}\mathbb{Z}_q^{n}, A \xleftarrow{$}\mathbb{Z}_q^{n \times m}~$and $e\xleftarrow{$}\mathbb{{\chi}^{m}}$ Then we compute $b^T$ = $s^TA$ + $e^T$ and the sample $(A,b)$ $\approx$ truly random sample. Now suppose we have a fixed matrix (not random and public) $A \in\mathbb{...
I'm writing a method in Java to read SSH public key in RFC 4253 format, which, in my case, can be either RSA, or DSS. What I really need is to read exponent and modulus for RSA key and y, p, q, g values for DSS key, which, according to the standard are of type mpint (multiple precision integers). So basically, what I'm...
I'm a crypto beginner and reading about blinding, and my fundamental understanding about preventing timing attacks is that you need to sort of process information in a way that will produce similar processing times for each set of operations. In CVE-2015-2141 something as simple as failure to call r = modn.Square(r); i...
Following the response to my previous question, I would like to know if you could give me some information or give me a link on how to perform arithmetic operations once I changed a point from the field $\mathbb{F}_p$ to $\mathbb{F}_{p^2}$ ? If I have an elliptic curve $Y^2 = X^3 + 1$ over $\mathbb{F}_p$ and I want to ...
I don't understand the necessity of introducing the additive term δ in the differential privacy definition. Moreover, reading different papers and blogs they say that because of the δ term the mechanism is "broken" (whatever that means). I would really appreciate some help in understanding the role and the effect of th...
Given a polynomial $x$ with degree $n$ in $GF(2^m)$, $1 < n < m$, will any generator of $GF(2^m)$ suffice when applying the Frobenius automorphism to determine the square root of $x$ as described in the answer to this related question? And why? (anecdote or rigid proof are both welcome). For example, given $f(x) = x^2...
I want to encrypt the same message multiple times. I want to store the encrypted messages together. I've heard if you do this with RSA, an attacker could decrypt the message with the Chinese Remainder Theorem. What encryption methods do not suffer from this vulnerability? Would RSA with some random bits added to the me...
What are the minimal components to build a security model proof for a protocol? This question might seem trivial, but having read many papers-- from the IEEE, ACM, etc., that talk about a KMP-- I still don't know where to start. For example, should I use the adversary model or a random oracle?
I would like to construct a distortion map from a point $\in \mathbb{F}_p$ to $\mathbb{F}_{p^2}$. If I have an elliptic curve $Y^2 = X^3 + 1$ over $\mathbb{F}_p$ and a distortion map $\phi(x,y) \rightarrow (\beta x,y)$ that gives a point of the form $\{a+bi : a,b \in \mathbb{F_p}\}$ in $\mathbb{F}_{p^2}$. Do my comput...
what is the branch number of the binary identity matrix? For example, $ I $ is 4x4 binary identity matrix, \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} Here, the branch number is $min_x ( wt(x)+wt(Ix))=2 $. Is that correct?
1) Consider the chosen-plaintext attack on the simple substitution cipher. How many chosen plaintext characters suffice to uniquely determine the key? My answer was: 26! 2) Consider the chosen-ciphertext attack on the simple substitution cipher. How many chosen ciphertext characters suffice to uniquely deter...
If you have 4 16-byte blocks of plaintext to encrypt does each block have a different 128 bit original key? Or do they all use the same?
I have done a google search for "multi-party key agreement", and there doesn't seem to be anything more recent than about 2005. Are there any practical multi-party key agreement protocols known? To be more precise, I want a protocol which: Allows multiple individuals to agree a single shared secret An adversary cann...
Suggested definition A positive integer is a safe RSA modulus if, after removing all its prime factors less than 512 bits, it is composite and has size at least 2048 bits. Discussion I want to build the smallest-possible safe RSA modulus without a trusted party. (The use case is for an RSA-based verifiable delay functi...
For my use case, I need to maintain a secret key with the client to generate and verify HMAC for requests. We can have multiple clients and we can not make assumptions such as a client's server will always reside in EC2. I am considering envelop encryption for our secret keys using AWS KMS. I have the following concern...
I am looking for an analysis of practical mix networks with server downtime. For example, if a message is supposed to go from A -> B -> C -> D, what happens if B wants to send the message but C is offline temporarily? This could be a stop-and-go mix network so holding onto a message longer is OK, but I am wondering whe...
Came across this concept on while reading up on the key-encapsulation protocol SIKE but haven't been able to find a good explanation of what a known answer test is formally. What is a known answer test, and why is it useful?
How are the permuted choice tables - PC-1 and PC-2 - calculated for the DES block cipher algorithm?
Why do we use 64 bit as block size for the DES algorithm? Is there a reason not to use another block size, for instance 72 bits?
The high level details of the encryption I'm using is: AndroidKeyStore create/store RSA key AES key is created and wrapped with RSA/ECB/PKCS1Padding Encrypted AES is saved to disk. Data is encrypted with AES/GCM/NoPadding and saved to disk. Every encryption operation generates a new initialization vector from the plat...
According to this article, which looks at attacks on Caesar candidates beyond what they claim, they include an attack on page 6 for nonce-respecting adversaries for AES-GCM which allows IVs longer than 128-bits at the birthday bound (i.e., $2^{64}$). My question is why is GCM not susceptible to this attack for 128-bit ...
I am working on some tasks in Crypto, specifically on this small task: https://cryptopals.com/sets/2/challenges/9, which I aim to implement in Python. The point is to add padding for a certain number of bytes, and the value of each byte is the number of bytes added. The example given is "YELLOW SUBMARINE\x04\x04\x04\x0...
I am trying to understand public key encryption. I found the table below in a paper online. I am struggling to understand the meaning of this. From the bits and pieces read, I am tempted to think that the first column is just the encryption done on a secure channel with key lengths as a row. And the premise is that I a...
Say we have a sequence of N 16-byte plaintext blocks encrypted using AES in CBC mode, with an IV, resulting in N+1 16-byte ciphertext blocks. Can this ciphertext be manipulated in such a way that, once decrypted, the plain text would become shuffled (i.e. some of its N blocks become reordered), but with no other modifi...
Given an attacker know both the encrypted message (+ an iv) and the equivalent decrypted message, is it possible for him to craft a new encrypted message that could result in a desired decrypted message? I'm using aes-256-gcm algorithm specifically.
I thought of this recently: There are some websites which have many publicly accessible pages, some of which could be embarrassing despite being public (e.g. Wikipedia). The HTML for these pages also references other resources (other pages, images, Javascript, etc) whose sizes are also known to the attacker. An attacke...
I have an understanding of PFS as used in most key agreement algorithms as well as things like TextSecure protocol and ratchets. My undestanding is that PFS is not possible without asymmetric (public key) cryptography. Am I missing something? Can PFS be achieved with symmetric cryptography and preshared keys only.
Consider having the worst possible communications channel, where bits are flipped with probability 0.5. Is there any probability that channel errors make the change in a frame go un-detected through CBC-MAC?
libsodium verifies that the HMAC is correct with the following code: return crypto_verify_32(h, correct) | (-(h == correct)) | sodium_memcmp(correct, h, 32); where crypto_verify_32 is for (i = 0; i < n; i++) { d |= x[i] ^ y[i]; } return (1 & ((d - 1) >> 8)) - 1; and sodium_memcmp is for (i = 0U; i < len; i++) { ...
If I have a password pwd, and I hash it with SHA256 and send it to a server for authentication (server will apply bcrypt for storage), and then I use PBKDF2-SHA256 with a large number of iterations to derive a key for decrypting user data, does the fact that the server knows the original SHA256 hash or the bcrypt hash ...
Let us say Alice has a list of public keys of her contacts. Bob wants to contact Ted and Bob has public key of Ted. Now, Is it possible to confirm that Alice has the same public key, without revealing that Bob wants to contact Ted? If we ask directly Alice, there will loss in privacy for both the users. Is there any re...
There is an elliptic curve. $y^2 = x^3 +ax+b \pmod p$ ($p$ is prime number) To solve DLP, need to find $r$ from given points $G$, $rG$. ($G$'s order is $q$ and $q$ is prime number) The MOV attack uses a Weil Pairing, which is a function $e$ that maps two points in an elliptic curve $E(\mathbb{F}_p)$ to a element in t...
I am having some issues generating a proper private key,I need it to be an Elliptic Curve private key suitable for use with NIST P-256 which i than need to convert to Base64-encoded private key in PKCS #8, for some reason when I generate the key and than base64 encode the bytes I end up with a string of 108 character...
I am new to cryptography, I have used OpenSSL and its aes-256-cfb cipher before to do stream encryption, which works great. Now I am going to try libsodium, since it's light and its APIs look concise, but I can't get it working. I tried its XChaCha20 stream cipher, but it only has the crypto_stream_xchacha20_xor and cr...
the following rfc describes the key-pair generation mechanism for Ed25519; the first two steps are as follows: Hash the 32-byte private key using SHA-512, storing the digest in a 64-octet large buffer, denoted h. Only the lower 32 bytes are used for generating the public key. Prune the buffer: The lowest three b...
i've written a simple code for payload encryption, i'v done it with AES-128 CBC mode ,it works fine ,the senario is very simple : the publisher send a JSON payload format that includes the encryption key , IV (Initialisation Vector) and the encrypted data, the subscriber extract the key and IV then decrypt the data rec...
Can someone help me understanding the CCM authenticity bound by Phillip Rogaway? i-e Success probability < $q_{\text{dec}}/2^\tau + \sigma/2^b$. $\tau$ is tag length, where as $b$ is block length. $q_{\text{dec}}$ is the number of forgery attempts, I can not get whats "$\sigma$" is? Also If i am not looking for forgery...
Hey guys i am trying to crack some hashes and it seems to be taking longer then expected (going on 7 days now). I am using John the ripper, I cant use hash cat due to pc limitations. I used online decrypters, it could decrypt some of the hashes but not all of them. I literally tried probably almost every online decrypt...
I have a question about an implementation of the Paillier cryptosystem. In the description of Paillier above, encryption of a plaintext message $m$ on $\mathbb {Z}_{n^{2}}$, $0\leq m<n$, proceeds by choosing a random number $r$ such that $0 < r < n$ and computing the ciphertext as $c=g^{m}\cdot r^{n}{\bmod n}^{2}$ fo...
I've tested Twofish (256 bit) as follows. A lengthy pseudorandom sequence was generated and used as a key. Plaintext phrases 000000000..00, 00000..01, 0000...FFFFF, were generated and encoded using Twofish with the key. Ciphertexts were split in 32 bit numbers (40 million numbers total). In theory, the cipher should pa...
I have seen a lot of articles and research papers about breaking the Keeloq algorithm. My understanding is that the hardest part is getting the 64 bit manufacturer key. Some methods use crypto-analysis and some use power analysis to get the key. Once the manufacturer - and other parameters - have been obtained it is tr...
I have a scenario where a client has a private set and the server has a large public set, we would like an estimate of the intersection size or more specifically the percent of the private set covered by the public set. However we do not want to send anywhere near the entire public set over the wire, even a bloom filte...
The Problem is as follows: $E: y^2=x^3+17230x+22699 \pmod{23981} $ $p=23981$ is prime number point $G$ $G$'s order $109$ : prime number Alice creates a public key by selecting a private key $d$ ($d<q$) public key $Q= dG= (3141,12767)$ therefore public information : $a,b,p,G,q,Q$ private key : $d$ However this curve ...
Let me elaborate: Say we have two distinct inputs: $A$ and $B$. We also have some arbitrary deterministic mutation protocol $M$ (for example reversing the characters and performing a Caesar cipher). Say by chance (I understand this is extremely unlikely) $A$ and $B$ result in the same hash when run through SHA-256. How...
Given $f(x)$, a weak one-way permutation, how to prove that $f^T(x)$ is not a strong one-way function? Here $f^T$ denotes $T$ times self composition of $f$ and $T$ is a polynomial in input length.
I know that RSA relies on the integer factorization problem: given two primes p and q, their product p . q is easy to compute. But not feasible (i.e., polynomial-time) an algorithm is known that could factor an arbitrary product p.q. Why would an efficient integer factorization algorithm render RSA insecure?
Shamir's Secret Sharing algorithm works by breaking a single secret to multiple parts. While it is trivial to implement the reverse in a $n$-out-of-$n$ scheme, how would one implement an $m$-out-of-$n$ scheme were $k$ predefined shares $(k < m)$ are included in the share pool? It is obvious that the resulting secret w...
In CTR mode (not nonce-based), if we have ${IV}\stackrel{\$}{\leftarrow}\{0,1\}^{128}$ and want to encrypt message blocks $M_1, M_2, ..., M_\ell \in\{0,1\}^{128}$: The ciphertext is $IV\parallel C_1\parallel C_2\parallel...\parallel C_\ell$, where $C_i=AES_k(IV+i-1)\oplus M_i$. Note that $IV$ is random here. How abou...
Within RSA the private key can be derived if one knows both $p$ and $q$. Is it possible to derive the RSA private key or decrypt / learn something about encrypted messages if you only know one of the prime numbers and not the modulus $n=pq$? The only available knowledge of the crypto-system is the ciphertext of a singl...
I recently discovered Tox whilst looking for alternatives to Skype, and while the Tech FAQ goes into some details about algorithms used, etc. I don't understand how keys are securely exchanged. I understand that at least the following takes place: Asymmetric keys are used to exchange a symmetric key. Symmetric keys ar...
I am trying to convert $(g^a)^{i^2}\mod p$ to an equivalent Elliptic Curve expression. Let's assume a base point $G$ over an appropriate ECC. Will $(g^a)^{i^2}\mod p$ be equivalent to $G\cdot a\cdot i^2$ (where the dot operation is multiplication over the elliptic curve)?
An ideal functionality considers reliable communication channels, whereas a real functionality must consider unreliable communication channels (e.g., channels controlled by the adversary). Thus, it seems that no real functionality (that is reliant on message delivery over an unreliable channel) can be proven equivalent...
I'm looking for an RNG that in the case that an attacker would get all or part (most likely part) of the pseudorandom data, there will be no way for them to deduce the original seed more efficiently than brute force. Which RNG's would comply with my requirements?
What if I will use 96-bit integer counter starting from 0 as IV for AES256-GCM cipher. Is it safe? Is there any other ways to ensure uniqueness of IV for GCM cipher?
As I understand it, homomorphic encryption can be used to keep data confidential while still allowing computations over the data. From another question, I found out that one can also verify the integrity of the computation, (by which I mean one can verify that a returned value is indeed the result of the requested comp...
GCM specification defines the initial counter value $Y_0$ for encryption/decryption operations as follows: $$ Y_0=\begin{cases} IV||0^{31}1 &\text{if len}(IV)=96\\ GHASH(H,\{\},IV)& \text{otherwise} \end{cases} $$ I don't understand why hashing with $GHASH$ is used for $len(IV)<96$. Suppose I am using 64-bit determinis...
Is it possible to prevent length extension attacks without using any other hash algorithm than SHA-1?
Is there any conformance tests/sequences to validate AES-GCM & GHASH() implementation? Details: I'm implementing AES-GSM, that's just for better understanding of that stuff, nothing more. Well I need to validate somehow my result. There is 'openssl' and some python libraries to do encryption but they allow to check onl...
So let's say you're trying to do SHA3-224. If you're on a 64-bit machine you'd presumably use KECCAK-$f$[1600]. In-so-far as I understand it'd have the following parameters: Rate: 448 (2*224) Capacity: 1152 (1600 - rate) Rounds: 24 Rotation constants: described in https://keccak.team/keccak_specs_summary.html (last t...
I ran uuidgen 10k times and noticed that the 13th digit is always 4. Why is that?
Often in analyzing systems, the emulation of Replay Attack becomes important. Are systems that protected against CCA attacks also immune against replay attack, or it is a different criterion? Thanks
For an implementation of ECDSA, I'm considering the risks of publishing public keys together with multiple signatures. From what Google tells me, a common pitfall is the use of the same random value K for multiple signatures. My question is; are there any other known risks, or common mistakes, regarding the publishing ...
Is it possible to add a line to a file which is encrypted symmetrically or asymmetrically (private key refers to readkey below, public key refers to append key then) without decrypting it? I was thinking about s.th. like: msg1="hello" msg2="world" appendkey=... readkey=... file=touch(...) addLine(msg1, file, appendkey)...
I am implementing SRP on an embedded platform. It has crypto acceleration and I am using its built in modular exponentiation function, however it doesn't seem to be able to handle an exponent over 32 bytes long. I have an exponent i need to use which is 64 bytes long. Is there a way to break this exponentiation into ...
I'm writing an application, which can be used on multiple clients, and share data on a server. To make sure the data never leaves the clients unencrypted, the application should offer encryption with AES-GCM and ChaCha20-Poly1305. Both of them need a nonce of 96bits, and it is recommended to use a counter, to make sure...
I'm well aware of what NIST and PCI say about the usage of 3DES and its deprecation/disallowance and I also know that AES is the actual recommended standard for software and hardware encryptions. I'm seeing many companies still choosing 3DES when they could simply go with the most obvious choice: AES. Why do you think ...
I'm using PBKDF2, and this is my current call. key = pbkdf2-hmac-sha256(iterations = 100_000, secret = password ++ salt) I recently learnt that the function I'm calling also takes an optional salt field, and passing the salt instead of appending it gives different answers. Is what I'm currently doing insecure? I don't...
I would like to have some explanations about Non Interactive Zero Knowledge Proof. I saw with an example how to use the Fiat-Shamir transformation on Schnorr identification scheme to get a NIZK and I understood how it works in the random oracle model. What I don't understand is how does a NIKZ work in the common refere...
Alice and Bob publicly choose the messages $M_A$ and $M_B$ and independently sign them (Alice privately signs $M_A$, Bob signs $M_B$). Now Alice and Bob are looking for a protocol that allows them to: Make sure the other party's signature is valid (in a malicious adversary model) Only reveal their own signature if the...
I have found these notions recently in an article. What is fixed randomness ? What is unfixed randomness ? Link of the article : http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.431.9034&rep=rep1&type=pdf Page 8, part 4.1, Encrypt() algorithm. Thank you!
I am unable to convince myself that RFC5649 is secure when storing multiple keys with the same KEK. My point is: RFC5649 uses AES-ECB, therefore the usual weakness of this method applies, namely an observer can deduce equalities among sections of the wrapped keys. However, the sizes of the wrapped content make it less ...
I'm trying to understand the implementation of the following function: Please note questions in comments. int curve25519_donna(u8 *mypublic, const u8 *secret, const u8 *basepoint) { limb bp[5], x[5], z[5], zmone[5]; // why 5 elements in each? uint8_t e[32]; int i; for (i = 0;i < 32;++i) e[i] = secret[i]; e[0] &= 248; e...