instruction
stringlengths
32
27.2k
I was reading some research papers and saw that in Registration phase/process it is always assumed that communication is over the secure/private channel, whereas, all of the phases communication is happening over the public/open channel. What is the reason for this? on the basis of which parameter! we assume that the c...
I come across many time a term called ”hostile environment” in cryptographic literature. What does “hostile” mean exactly? Is it unknown third parties which are responsible for handling and routing our data? Suppose that we create a connection from node A to node B. Does hostile imply that packets could traverse to un...
It's well known that by injecting a byte fault during the 8th round of AES 128 just before the mix column the key can be recovered with $2^{32}$-key space. A brute force attack is then possible but it takes some time. If instead a byte fault, it is just a bit flip does it reduce the key space for K10? And why? In fa...
Are there any public key signature schemes that can be compared blindly or partially homomorphically based on the private key without knowing the private key? Example: let's say I derive a public key from a private key via a secret seed "haha this is a secret 1001" I then derive another public key from another secret s...
In Fips 186-4, there is an algorithm in Appendix F (at page 117 in my copy of the 2013 version) to calculate the number of rounds of the Miller-Rabin primality test to random bases. Does anybody know where the magic number 2.00743 comes from or do I really have to work through the paper Average Case Error Estimates f...
Is There an Opensource Manual Calculation of AES-128 bit as in Cronos I have to learn calculations manually.
I am studying for my cryptography final and I passed by the following term: short authentication string. Please, can anyone explain it to me, thank you very much.
I have just started studying cryptography and secp256k1. I just wonder that adding two points can be easily reversible when the generator point is publicly known. I mean that if $Q=\operatorname{adding}(P, R)$ then we can calculate $P$ as $\operatorname{adding}(Q, R)$, am I right? Would this be considered a weakness? I...
Does message authentication authenticate the entity? If the answer is "No", because message authentications like MAC work with the shared symmetric key, then my second question is: Does a message authentication using an asymmetric key like the digital signature enable both entity and message authentication? If th...
Consider the transformation described in section 6.2 of RFC4634 ("US Secure Hash Algorithms (SHA and HMAC-SHA)"). Given the message block M(i), and hence the message schedule W, as well as the output of the block function H(i), how hard should I expect computing H(i-1) to be? Interestingly, the 64 "rounds" are easily r...
If a hash-based signature schemes such as W-OTS is used, do we still need public key based certificates to prove ownership of a public key? I understand that hash-based signatures are one of the candidates for post-quantum signatures. However, if quantum vulnerable schemes such as RSA is used for certificates, it makes...
Actually, I think I know why, but consider RSA2048 and SHA256. What about to, instead of padding, just use pbkdf2 with just 1 iteration to expand the 256bits hash to full 2048bits and use those 2048bits as an input for the plaintext RSA? What would be wrong with that crypto-schema?
At my Day Job(tm) we've encountered a bug wherein if the leading byte of the X or Y value of a public key are zero, "shit happens" (this bug is in our code - I'm not suggesting there's some problem with EC itself. It's just an encoding thing and it's not particularly interesting for this question). Naively, this sugges...
Trying to turn bookish knowledge to practical: Alice sends half of the encrypted data to eve, eve eavesdrop and tries to decrypt the data and fails as eve has only half of the encrypted block. So, Eve creates a new message and sends the data to Bob why do most documents say about altering the message content by the ...
In Fiat-Shamir protocol, the final calculation is $$y^2=x\,v^c$$ Where $c$ is the random $\{1,0\}$, $x$ is the witness and $v$ is the public key $s^2 \bmod n$. My questions are: What stops the attacker from reading $c$, which is never encrypted, $v$ which is public and then calculate $y^2$ correctly? How does this...
By looking at SonicWall Knowledge Base article Key exchange (DH) Groups Supported - Site to Site VPN: It appears that our firewall supports DH group 25, and 26. Almost everywhere I've seen, they've recommended DH group 20-24 (we don't have DH group 24). Should we use these groups? I don't understand how the ID of the D...
Is there a way to prove that a ciphertext $c$ was encrypted under a given public key, $Pk$, without revealing the plain text message $m$?
Someone has incorrectly created a public/private key pair where $N$ (modulus) is a prime number. This makes $p$ and $q$ trivial as they they are $n$ and $1$. $d$ is solved from $d \cdot e = \bmod (p-1)(q-1)$ which becomes $d \cdot e = \bmod (n-1)$ I want to create the private key knowing this information but no PEM ...
I am making an embedded system for a project that uses AES. As I cannot accommodate key generation (hardware constraints) I am using a static key. I can use another small algorithm to create dynamism and then pass it to the static AES. I'm concerned about using a static key, is it safe?
I am looking for a faster alternative to RSA with OAEP as a IND-CCA2 public key scheme. Elliptic Curve Integrated Encryption Scheme might be a candidate, but I am not sure if it provides IND-CCA2 security. So the question is if ECIES offers IND-CCA2 security by default? If not, what should be changed so that it does of...
I can't find out how to break 1 round of feistel network (obtaining the key). I understand why this equation takes place: $R_1 \oplus L_0 = f(R_0, k_1)$ EDIT: The function f looks like this: But how can i find the key ($k_1$) from it? I saw it's possible in a few references: http://www.cs.technion.ac.il/~cs236506/04/...
As I know all arithmetic operations in AES are done over $GF(2^8)$ so I want to know which field generator AES uses? is it 0x11B? and choosing another field generator would it give a different results?
I am asking this question instead of extending the discussion of another question (Perfect Steganography). I did try starting a chat room (https://chat.stackexchange.com/rooms/87636/perfect-steganography) but nobody knew about it ;-(. I think that I have achieved near perfect steganography This is an exceptional cla...
In my implementation of AES-GCM, the key might change only once per minute. However, I wish to calculate a new tag every 6us, to reduce latency (since you have to buffer up a GCM "packet" before checking the tag and releasing it). May I keep the same key and generate millions of tags using the same key, as long as ...
I hear that there should be a point at infinity on secp256k1. I wounder how to calculate it and what does it even mean. I tried to calculate it as $P_{inf}=P+(-P)$ but this gives different results for different P. Are there more than one point at infinity? Geometrically thinking on an elliptic curve, adding two points ...
I would like to start by saying I know nothing about Cryptography and was reading up on how to choose a random seed and this link is something that I found. What I basically understood that the seed has to be sufficiently random that guessing the seed would be hard. So the question is would the hash of a Tweet, at any ...
Question: If a cipher’s key size is $k$ bits and its block size is $b$ bits, how many possible keys are there, how many possible plaintext blocks are there, and how many possible ciphertext blocks are there? Studying for an exam and this popped up in a past paper without an answer, is the solution e.g. for key size $2^...
Let $(w_1,\cdots,w_l) \in (\{0,1\}^\lambda)^l$, and $r_1,\cdots,r_l $ are chosed as uniformly random from $Z^*_q$ such that $r_1+\cdots+r_l=0$ and $q$ is a large prime number. Also, Let $F$is a pseudorandom function with key $k$. What value apear in place "?" in below relation (in o.w. part )? $Pr[F_k(w_1)\cdot r_1+...
I am reading a book about web security and they are now talking about AES CBC. After reading the chapter I was wondering, can an attacker compute my secret key if he has access to the IV, the plain text and the ciphertext. Is this possible? If not why? Thanks.
In a cyclic group with randomly looking behavior like the one used in secp256k1, is there any known efficient algorithm to compare the order of two randomly given elements $P_1$ and $P_2$ and find out which one will appear first starting from a known generator point of the cycle? If such algorithm exists, would that be...
A naive user of RSA has announced the public key $n = 2903239, e = 5$. Eve has worked out that $n = 1237×2347$. Verify that the public key is valid and explain why the private key is $d = 2319725$. [Calculators are not required.] This question comes from a mock exam that I am trying to solve for tomorrow. I attach my w...
Suppose I consider the affine cipher defined by $E(x) = ax + b \bmod n$ on the standard alphabet of 26 letters. Which choices of $a$ and $b$ lead to proper encryption functions? Using the information provided from this website: They say that $a=5$ and $b=8$ works, but $a=4$ and $b=5$ does not work. My understanding is...
For a set to be called as a ring, it should have the following properties closed commutative associative Identity existence Inverse existence but how is Z7 a ring, as there aren't any inverse element for addition as -n is not an element of z7={0,1,2,3,4,5,6} if there are additive inverse for z7 , how to find it?
I know that you should never use RSA with any block cipher mode of operation, but theoretically, what's the best block cipher mode (safest) we can use with RSA encryption - without adding any kind of padding? I already know that CTR is not the best choice and that ECB with RSA and without padding is a really bad idea c...
How secure is any data encrypted using the following command: gpg -o *encrypted_output_file_name* --symmetric --cipher-algo AES256 *file_to_be_encrypted* Can anyone depend on this to encrypt and archive personal content in a public store? Please provide details as to which attacks it is vulnerable to, and describe be...
I find difficult to understand what a weak one way function is. From textbooks: $\exists$ poly $Q$, $\forall$ PPT $\mathcal{A}$ such that: $$\Pr[x\leftarrow\{0,1\}^n; y=f(x); \mathcal{A}(1^n, f(x))=x' : f(x')=y] \leq 1 - 1/Q(n)$$ What does this mean in practice? The part that I find confusing is: $1-1/Q(n)$, does thi...
Addition on an elliptic curve in Weierstrass form (over the rationals) is typically depicted with the following figure: (Image CC SA 3.0 https://en.wikipedia.org/wiki/File:ECClines.svg) To add two points, one draws the line that connects these points. The third intersection point is mirrored to get the result of the a...
Theorem: Choose $Q$ random natural numbers in the set $\{1,2, \dots, M\}.$ The probability of getting at least one collision is $$P_C(Q) = 1 - \frac{M - (Q - 1)}{M} P_{\neg C}(Q-1).$$ Notation: By $P_C$, I mean the probability of getting a collision. By $P_{\neg C}$ I mean the probability of not getting a collision....
I have an application where it would be advantageous for an attacker to have to spend a long time generating public keys. To do this, I require that the hash of the public key be less than a certain number. That way a typical user will take 1 second to generate a public key, and an attacker who is trying to DOS publi...
How would i find out Alices or Bobs private number from the details exchanged in public. prime - g = 7 primitive root - n = 3 Alice - A = 3 Bob - B = 4 The details visible in public exchange are: g = 7 n = 3 Ya == 27 mod 7 Yb == 81 mod 7 How would one go about finding Alices secret number A or Bobs secret number B from...
In a Schnorr signature (Wikipedia style), we have: $R = kG$, where $0<k<n$ is a nonce and $G$ is the generator point. $e = H(R \| M) \bmod n$, where $H()$ is a hashing function and $M$ is the message. Finally $s = k - xe \bmod n$, where $x$ is the private key. The signature is then either $(R,s)$ or $(e,s)$ depending ...
I understand what Random Self-reducibility means and how it is used in the Discrete Log. What is not clear is how does it show that DL is hard in the average case. The probability of success of an imperfect DL black box is $p(n)$ (for an $n$-bit string, and $p$ is a polynomial). So, in order to get a correct DL for ...
Currently, I am trying to understand Blakley's secret sharing scheme. However, there seem to be multiple descriptions of it, which are very different from another, but everyone states that the scheme would be perfectly secure. From my understanding it works like this: a point $S$ in $t$-dimensional space is created wi...
These slides talk about how GCM can be sped up if one uses $x^{128}+x^{127}+x^{126}+x^{121}+1$ as the reduction polynomial instead of $x^{128}+x^7+x^2+x^1+1$. When one is doing that one needs to multiply the polynomial you're attempting to reduce by $x^{-127}$, "better written as" $x \cdot x^{-128}$. I have three quest...
I am trying to decrypt a text data encrypted with a simple substitution method with 2 steps. First, shift the alphabet of the source text by a few characters. For example, if we shift by 2 characters, Hello, world! becomes Jgnnq, yqtnf!. Secondly, Substitute space (" ") with a lower case alphabet. For example, when g a...
I need to crack this linear congruential generator. I have $$X_{n+1}=a⋅X_n +b \pmod m$$ I know: $m=31,X_3=30,X_4=19,X_5=26$ How can I find $a,b$ and $X_0$? I have got already the following equations: $$26=a \cdot 19+b \pmod{31}$$ $$19=a \cdot 30+b \pmod{31}$$ substruct 2 equations to get $$7= -11 \cdot a \pmod{31}...
What is the proper way to use the public key contained in a X.509 certificate with PKCS #11? C_VerifyInit's hKey input says "hKey is the handle of the verification key" Is it permitted to pass the handle of a certificate containing a public key? Or is it required that the public key is extracted from the certificate an...
Given a server that can return me RSA sign for any plaintext shorter or equal length of the given plaintext (excluding the given plaintext), how can I fraud/get the sign of the given? $$sign = M^{d} \pmod{N}$$ $m$ is 63 bytes, if not it is left-padded with zeroes $M = \mathtt{0x00}\mathbin\|m\mathbin\|\mathtt{0x00}\ma...
I am reading about ZKP and I found this interesting question about changing this protocol from interactive Schnorr identification protocol to non-interactive and I need help in solving it : Peggy (prover) and Victor (verifier) have shared primes p,q such that q|p-1 and a generator $g$ such that $1<g<p$ and $g^q=1 \bmo...
I saw in the paper How to Use a Short Basis: Trapdoors for Hard Lattices and New Cryptographic Constructions at page 29 that key generation algorithm of PKE can use a common random matrix $A$. Is it OK to add a setup algorithm that generates some common public parameters?
I'm doing a research about how to search over encrypted data as the title said. And, I saw cryptDB used a cryptographic scheme from Song et.al's article Practical Techniques for Searches on Encrypted Data to search for words on encrypted data. But why they don't use DET encryption for each word and to search for a word...
I'm trying to implement a hash function in an esoteric language that has no 32-bit or 64-bit operations. Keccak, for example, is too slow in that language. I'd need a design that minimizes the number of 1-bit operations. Alternatively, I could also use a hash function that relies on integer exponentiation, which is not...
For example, RSA relies on a mathematically hard problem, factoring, while ECDSA or similar rely on discrete logarithm problem. What makes SHA-256 and similar hash functions, of the same family, secure against pre-image and collision attacks? What's the math behind it?
I'm completely stuck on an university programming challenge and I need some tips to get me out of the valley I'm in, you don't need to give the full answer if you do not wish to. What we have: Fiat Shamir sigma protocol, described as follows: A trusted center chooses $n=pq$, and publishes $n$ but keeps $p$ and $q$ s...
The paper says it requires a finite space. I wonder what the reason is, since from my understanding it should be perfectly fine to use the "normal" infinite space. So why does Blakley use a finite space? Is there a possible attack in infinite space?
I have searched and my problem is exactly the same as shown here: Decrypt simple CBC message with known IV using XOR encryption However, when I implement the solution it doesn't work, neither does my own solution. I will restate the problem: I've been given a ciphertext message, encrypted using CBC. I know that the b...
If symmetric cryptosystems have $C^2_n$ keys, and asymmetric systems have $2n$ keys, how many does a hybrid system have? This was in an online quiz from school Company A is considering to adopt a cryptosystem for secure communications among its employees. Currently it has $5$ employees. Assume that every employee h...
I'm new to encryption and cryptography, I was wondering if there is a good or best suited AES mode for file encryption (Planning on zipping a folder and encrypt it as a file). If there is, how complex is it and is it easy to implement on python (preferred language)? Thank you.
It seems that the lattice functions are either surjective (SIS) or injective (LWE), due to the error that is basically intended to destroy the structure and provide security. I was wondering whether there exist bijective functions for lattice, more precisely trapdoor permutations? Is there any work that has studied thi...
I have been reading some papers on cryptography based on multivariate systems and I have a question. How does one relate the difficulty of calculating Gröbner basis (GB) of a multivariate system with its degree of regularity? From what I understand, for a lot of cryptosystems, there are ways of getting a system of poly...
I have an application where I need to combine a Diffie-Hellman shared secret, with a user's password and derive a key. I'm investigating the possibility of using HKDF to as follows Initial Keying Material(IKM)= DHE-shared-secret and salt = password-utf-8-bytes I choose this because the DHE-se...
Here's a basic question about cryptographic accumulators, or at least ones based on fixed-size accumulator values (such as RSA ones based on modulo arithmetic), that is strangely not even mentioned in most of the key historical papers or Wikipedia. Cryptographic accumulators are being touted as a magical solution for t...
Militaries use their own cryptographic algorithms, those of a private third party, or ones that are openly available. However, fear of a backdoor having been planted in publicly-available encryption protocols scares them even though it is technically possible to analyze cryptographic primitives and establish whether or...
From section 7.2.2 of the Twofish paper, the four S-boxes for the 128-bit cipher are generated with: $$\begin{align} s_0(x) &= q_1[q_0[q_0[x] \oplus s_{0,0}] \oplus s_{1,0}]\\ s_1(x) &= q_0[q_0[q_1[x] \oplus s_{0,1}] \oplus s_{1,1}]\\ s_2(x) &= q_1[q_1[q_0[x] \oplus s_{0,2}] \oplus s_{1,2}]\\ s_3(x) &= q_0[q_1[q_1[x] \...
Assume I am working with crypto that supports hierarchical deterministic key generation, Bitcoin/Ethereum keys using secp256k1 is one example. There is a decentralised key registry where users register their public keys for use and other users retrieve those public keys for verificaton. A similar setting could be a blo...
Suppose I have a secret value $a$ which maps to a public point on an elliptic curve $A = a \cdot G$, where $G$ is a generator of the elliptic curve of prime order $q$. Can I prove to someone that the least significant bit of $a$ is $0$ using a non-interactive proof that does not expose the value of $a$? If I can, what ...
We obtained $l$ vectors $B_i$ of $c$ bits $b_{i,j}$. These are an altered form of vectors $A_i$ where the last $n$ bits of each $A_i$ are an affine function of the other bits of that $A_i$. We want an efficient algorithm yielding a maximal subset of vectors $B_i$ such that the last $n$ bits of each $B_i$ in the subset ...
I was experimenting with RubberhoseFS, but since it is very hard to compile on anything modern, I decided to implement my own version, stripped of many unnecessary features. Namely, my implementation would only work on files (as opposed to drives/volumes/partitions), and in batch mode (no random access). However, befor...
Consider some scalar multiplication algorithm for a prime order (Weierstrass) curve $E$ with order $\ell$. Bernstein and Lange's SafeCurves: Completeness page mentions: The problem is that the standard Weierstrass "addition formulas" don't always work: in particular, they fail for the doublings Q+Q. Now let's say my ...
I am trying to create deterministic GPG keys based on cryptosteel. I have implemented a library for (de)serializing PGP packets and am now trying to use keys generated in libsodium for import in GPG. Libsodium gives me a 32-byte public key and a 32-byte secret key. This is also what PGP seems to use - except PGP prefix...
It's clear that an LFSR has finite states and eventually will end up with repeating cycle. However, is it possible for an LFSR to have more than one repeating cycle? For example, with initial state $A$, its goes to cycle $C_a$, and for initial state $B$, it ends up with cycle $C_b$.
I'm writing code to provide an AEAD utility. It uses AES-256-CBC for encryption and SHA-512(key+data) truncated to 256 bits as the MAC. encrypt( aes_key: byte[32], mac_key: byte[32], plain_text: byte[], aad: byte[], ) { iv = crypto_random_bytes(16) cipher_text = aes_256_cbc(aes_key, iv, plain_t...
Popular multivariate schemes are constructed by having a several easy-to-invert functions/maps as parivate key, and their composition as the public key. When signing, the hash, or a padded form of which is converted to a series of multivariate variables, and its pre-image under the maps computed as signature. However,...
Given a function: $$Y = a * b$$ Is there a way to prove in zero knowledge that a value $Y$ was gotten, without revealing $a$ and $b$? Alternatively, that we have knowledge of $a$ and $b$ such that their product equals $Y$. public : $Y$ private: $a$,$b$
I wish to find an asymmetric encryption algorithm that supports key derivation, BIP0032 style. Meaning that I have some SEED [PRIV] and I give someone some public data [PUB], then given new public data X (serial number for example), I can generate a new private key and this someone may generate the corresponding public...
Suppose I want to commit to a uniformly picked nonce of fixed length $n$ bits without revealing the nonce, so I use a secure hash function $H$ mapping messages to digests of length $d$ bits. Suppose $H$ promises a complexity of $\sim 2^d$ for a preimage attack, and $\sim 2^{d/2}$ for a collision attack. Suppose $n$ is ...
Greetings to all! Please explain how the Diffie-Hellman protocol works in Bitcoin? That is, in Blockchain Transactions, there is also a total number of "K" recipient and sender? "K" the recipient and the sender are the same as in the photo scheme? Maybe I'm confusing something, but I heard "K" is the secret number of ...
What is the difference between the basefield modulus $Q$ and a subgroup of prime order $r$? They are all fields, but what is their relevance to the curve they are defined upon? How does this relate to a scalar field? Also: Which field is the curve defined upon?
I read that non-primes only have co-factors, but Edwards have a co-factor and it is defined over Fp s.t. P = 2^255 -19 which is prime right? How is the co-factor created, some have co-factor 4 and some have co-factor 8? Am I right in saying that P256 for example, has no co-factor because it is of prime order? I have se...
I've looked at paper Ciphertext-Policy Attribute-Based Encryption by Bethencourt, Sahai, Waters and see this an answer here for the explanation of DecrypNode for a leaf node. I could understand the derivation of this $f_n$ for a leaf node but not for a non-leaf node in the $s$. I could not understand the move from step...
Why don't prime-order curves have small subgroup attacks? It seems that I can choose a Generator such that it has a small order, maybe 2 points, and so an attack could generate all of the points in that subgroup and figure out the scalar that exponentiated it. Why only non-primes this is possible? Do prime fields have ...
I want to use AES-GCM to encrypt 7 Byte data chunks. A 16 Byte MAC seems like overkill to me and the library I'm using gives me the option to make the MAC smaller. Are there any criteria for choosing the length of the MAC or are fewer bytes always less security?
I am playing around with the libsignal at the moment and i was noticing that in the different documentation for libsignal-js or libsignal-java one of the first steps is always to generate a so called "RegistrationId" which is basically a (nearly) random 16bit int: var registrationId = new Uint16Array(Internal.crypto.ge...
I'm preparing for a computer security exam by going through some past paper questions. And I came across this particular one that I could not answer: We have the Needham Schroeder Public Key Protocol: $ 1. A \rightarrow B: \{N_A, A\}_{pk(B)} \\ 2. B \rightarrow A: \{N_A, N_B\}_{pk(A)} \\ 3. A \rightarrow B: \{N_B\}_{p...
BearSSL (in src/hash/ghash_ctmul.c) seems to be doing a modular reduction that I don't completely understand. Here's the code: /* * GHASH specification has the bits "reversed" (most * significant is in fact least significant), which does * not matter for a carryless multiplication, except that * the 255-bit result ...
In the AEAD scheme described in https://www.rfc-editor.org/rfc/rfc7539#section-2.8.1, the aad and cyphertext are padded to be a multiple of 16 bytes in length. Why is this necessary? Does it provide any advantage over simply not padding the data?
Let's say there are 3 people A, B, C. Everybody knows their public keys. They sign documents/messages and normally we can know who signed which by checking with their public keys. Is there any way to check these signatures without knowing who signed which? I just want to know these messages is signed with one of these ...
For educational purposes I would need to work on an elliptic curve that has a small field, but holds the safety futures of a real curve. Is that possible to have such a curve!? For example for the curve of secp256k1, is that possible to find small $P$, $N$ and $G$ so that the mini curve does still have safety features...
Given a Pedersen Commitment: $P = aG + vH$ Where $G$ and $H$ are points in some group. $a$ is a blinding value/mask and $v$ is the value I wish to commit to. Is there a way to prove I know $v$ without revealing it?
I'm currently reading up on lookup tables and efficiency. In my uni script it says the following: For Brute Force: Preparation time: $O(1)$ Disk space requirement: $O(1)$ Time required to crack the password: $O(2^n)$ Full lookup table: Preparation time: $O(2^n)$ Disk space requirement: $O(2^n)$ Time required to crac...
Is it possible to prove that I know a value v in a finite set, such that the hash of the value v is K. Where v is private and K is public
We are setting up a web application which requires users to submit sensitive data. Since entering all the required data may take a long amount of time, we want to give them the option to save their progress. Maintaining a database to store their information is risky for us, as it opens up our servers to potential attac...
Ring signatures allow one to prove that you own a private key corresponding to a public key from a set of keys, without revealing which private key you control. This is useful if you are part of some group of people, and want to publish a message without revealing who are specifically, just that you are a member of the...
Suppose Alice has a set of messages $\mathcal M$ and generates signature pairs for each message $(m_1,s_1)$, $(m_2,s_2)$, ... $(m_n,s_n)$ using the same key. She then transfers these signature pairs to Bob, who knows Alice's public key. Can Bob, without interacting with Alice, generate a new aggregate signature for the...
It seems like SHA-512 truncated to 256 bits is usable as a MAC [1]. The advantage is that it's ~50% faster than HMAC-SHA-256 on 64-bit CPUs and ~50% faster than HMAC-SHA-512 on short inputs. (My use case involves mostly short inputs.) However, the HMAC construct provides an extra layer of protection in case of collis...
CAdES signatures are usually huge, they contain certificates, possible full chain, and even source data enveloped in it. This is very impractical if we want to sign every file in the system for integrity purposes. What is the smallest possible detached and valid CAdES signature? (To keep in the log or in separate p7s f...
I see two types of cyclic groups are most commonly used in cryptography: modulo multiplicative group of integers with prime order elliptic curves Are there any other cyclic groups used in cryptography?
When implementing a Field element, we define the necessary operations on the data structure. One function that I see is a "scalar reduce" function, which effectively reduces a random scalar so that it is in the scalar field. What is the difference between this and subtracting the modulus from such number? Example: Let ...
I see there a number of free TSA services according to this page (not all are still in service). In other sources I see references to the requirement of audits for the TSA to be 'rfc3161 compliant'. Given the number of free services, not to mention the new blockchain services (which are similar but not exactly the same...
If I know an element $x$ in a group, and it's inverse $x^{-1}$, can I guess the modulo, or with a probability?