instruction
stringlengths
32
27.2k
I've asked this question here and was advised to post this question on this forum in hopes of an answer. I'm currently taking a security class and i came into this issue when writing a report about side channel attacks. When reading about electromagnetic attacks, more specifically about Simple Electromagnetic Analysis ...
I am trying to find the average of hash rate (benchmark) for SHA-3(Shake128) for a normal and supercomputer in order to estimate the brute-force attack which I can get if from ( keyspace / hash rate )...then I found this website: https://bench.cr.yp.to/results-hash.html I could not understand these tables i.g. (Cycles...
In theory, for an ideal cipher $E_k: \{0,1\}^{128} \to \{0,1\}^{128}$, it would be completely fine to use the key and the input interchangeably, but obviously AES is not perfect. For AES128, the key size and the block size are the same. What would the security implications of using the key in place of the input block a...
To estimate the time for brute-force attack we need to compute keyspace size divided by hash rate, where the hash rate (hash/second) varies depending on the computer's capabilities. The website https://bench.cr.yp.to/results-hash.html shows the hash rate for different computers. Can you explain the following two confu...
I'm trying to implement the Paillier cryptosystem in Matlab using the key generation guidance available here: https://en.wikipedia.org/wiki/Paillier_cryptosystem#Key_generation, but the problem is that with any combination of prime numbers I try, I get a float mu required for the private key. The first step is: Choose...
I'm writing a little program to encrypt and decrypt a file. I'm using AES encryption in CTR mode that takes a key generated by a KDF (script). I have read some articles about cryptography but I have some doubts. To encrypt the file I divide it in chunks and I encrypt them with AES generating a random nonce for every ch...
I am reading about public key working at following linkenter link description here Here picture is provided My question is how hashing algorithm is shared between sender and receiver?
I have watched dozens of videos on YouTube talking about quantum cryptography and how the BB84 algorithm works. However, none of them bothered to explain how the quantum key exchange process works in detail; that is, for newbies like me. Thus I still have many unanswered questions. Given the following scenario where Al...
Given a matrix $A\in M_d(\mathbb Z_N)$, is it hard to determine whether there exists another matrix $B\in M_d(\mathbb Z_N)$ such that $A=B^2\bmod N$? Suppose the factorization of $N$ is unknown and intractable. More generally, how to find $B=\sqrt{A}\bmod N$ for given matrix $A$ such that $B=A^TA$?
On this question https://stackoverflow.com/questions/5889238/why-is-xor-the-default-way-to-combine-hashes a couple of the answers say that xoring is a bad/insecure choice for combining hashes. However, most of them say that in regards to xoring two identical hashes. If I want to combine a Keccak-256, Skein-256-256, Bla...
AES-SIV is a very robust and safe algorithm but performance isn't great. AES-PMAC-SIV, should provide a great parallelization, increasing performance and ensuring the same robustness. Indications of this can be found on the GitHub pages of Miscreant and on the IETF mailing list. How does it compare to the other authen...
Given a key $k$ and a plaintext $p$, a deterministic encryption algorithm will return a ciphertext $c_1$. In a second trial, I run the same key and plaintext $p$ through the encryption algorithm and get ciphertext $c_2$ from the first trial. $c_1$ and $c_2$ are equivalent, so running the decryption algorithm on $c_1$ a...
So we have $q = 311$, $p = 163$, $e = 101$, I found $d = 39281$ using Euclidean Algorithm and checked by encrypting and decrypting a message. Next it is asking if $e = 101$ was a good choice or would the value $e = 9131$ be better. What I know: $101$ = prime $39281$ = not prime ( $23 x\times 397$) Both options for $e...
I wondering about the formula for calculating the number of AES rounds. The formula is $R=(\text{Keysize}/32)+6$ I would like help understanding why we divided by $32$ and add $6$ in this formula.
We are developing an iOS app which employs Shamir Secret Sharing algorithm. We made all possible steps users can trust us. We can't remember their secrets nor we can save encoded fragments. But they still may not trust us with randomness. Is there any cryptographic method how user can verify we are using random number ...
My company's product is Android and iOS mobile app which connects to our own backend. All interactions of the mobile app are with backend developed by our own company. In such a situation, can the backend use a self signed certificate (instead of getting a certificate from CA) and pin this self-signed certificate on mo...
Here is a question I don't find addressed in my cryptography books: let's say Alice want to send Bob a message of length N. what is the proper way for Alice to hide N? I am thinking Alice should do something prior to encrypting her message. Let's say N is the length of Alice's cleartext message, along with its crypto...
I'm trying to self-learn the AES-128 algorithm and ran into a snag while following these slides I found online: https://kavaliro.com/wp-content/uploads/2014/03/AES.pdf For the sixth round in the example given, during the AddRoundkey step, the third word of the matrix after MixColumns (F0) is XOR-ed with the third word ...
i failed to find explicit definition of hash output size and mac_key_size for hmac based on SHA384 and SHA512. RFC5246 specifies: but defines only
Is there any algorithm to test the robustness of the cipher image against chosen and known plaintext attacks?
I am trying to have something like JWT but kinda ad hoc and encrypted. The token itself is simply a stringified JSON that contains the user ID and Unix timestamp. Now, I tried to use AES-128-GCM, however I did some simple modification in the ciphertext before decrypting, just appended some bytes to the ciphertext, and ...
I study cryptography as a hobby and I made a high school work (essay-like) about cryptography. When I was defending my work in front of a committee, one of the teachers confronted me about my suggestion of RSA usage. I claimed that the public key can be freely available on a website for everyone to download it (and I'v...
Can someone which is not authorized be able to listen between the conversation of 2 clients and catch the key? Because if I understood correctly one client needs to send the key through a channel so the another client could decrypt the data... So yeah that's my question; Can someone not authorized in that time frame ca...
I am developing in android and working with numeric ids. Say for e.g., 5001. I upload videos with this id prefixed in in the uploaded video's name. For e.g. 5001_profile_video.mp4 is a filename. Then if 5001 gets encrypted to xx841jf==, the file name would be xx841jf==_profile_video.mp4. I need this to be same every ti...
What's the difference password and key in terms of authentication? I think that they are potentially same. But, in practice, password involves some bias since it is created by human. On the other hand, some key is produced by computer, which results in pseudo-randomness over some large bit space. Can anyone explain wh...
I know that CBC is not secure against data modification. Can someone explain to me by illustrating at an example how I could change the last block if I have the encryption of "0"? Thanks in advance
If I have the following Elliptic Curve: $$E: y^2 ≡ x^3 + 2x + 2 \mod 17$$ How Can I calculate the Number of Points on this elliptic curve $\#E$ ? and how can I invest the following law which calculates the Number of Points on an Elliptic curve NPE: $$NPE=1+p+\sum_{x=1}^{p-1} \frac{f(x)}{p}$$
Currently deployed RSA and discrete logarithm implementation uses $1024$ to $2048$ bits. Hypothetically speaking if a crypto team produces a faster algorithm that moves current factoring and discrete logarithm capability to say $8192$ bits (four times today's recommendations) is there any provisions in the standard to ...
I am developing a solution where each user is identified with a social security number (SSN). So they log in with their SSN and a password. I would like to encrypt the SSN somehow (client-side) before sending it to the back-end so that anyone with access to the back-end and database cannot know what the SSNs are. So, I...
Suppose that a block is ciphered with IDEA using CTR mode operation. To get the original message, why can't we use the cyphered rule?
I have read this as telling that two parties sharing a low-entropy secret (such as a secret answer to a question) can use it to establish a high-entropy shared secret key across a classical insecure channel, with help of the Socialist Millionaire Protocol. How is that achieved? Quantitatively, what's the probability fo...
I am trying to implement a distributed encryption system by having as a main source of information this book (Introduction to Cryptography by Delfs and Knebl) and this Internet article (More Mix than Net by Wood). I generate the following variables: $p$: prime, $g$: generator, $x$: random within $[1, p-1]$, $h$: $...
I'm using the Blowfish block cipher to encrypt messages of 64 bit without using any block cipher mode of operation. Can I still have a collision? I'm asking this to understand if Blowfish is susceptible to the birthday attack when used on plaintexts of 64 bit.
ECDSA specs require private key ($d$) to be a random integer ($r$) in the range $[1, N-1]$, where $N$ is the order of the base point ($G$). What if the private key instead is set to the x-coordinate of the EC point $r \cdot G$ (i.e., $G$ added $r$ times)?
I've been looking into GHASH and some sites describe it as a polynomial: A1*(H* *M-1)+A2*(H* *M-2)...C1*H(H* *M-N)+C2*H(H* *(M-N-1))...+len(A||C)*H+E(0)=t while other sites replace the + with the XOR symbol, ^: A1*(H* *M-1)^A2*(H* *M-2)...C1*H(H* *M-N)^C2*H(H* *(M-N-1))...^len(A||C)^H+E(0)=t Which one is the correct ...
I am new to cryptography and have been experimenting with AES to encrypt files. I was testing some code I found online which allows the user to enter the directory of the files that they went to encrypt/decrypt, the program then asks for the user to input the “password” or “key” to be used for the encryption/decryption...
In the official Keccak implementation overview, there is a section discussing different ways to organise the internal Keccak-f state -- namely section 1.2, Bit and byte numbering conventions -- and at https://keccak.team/software.html, you can find a reference software implementation as well as a list of third-party on...
Is it possible to use an ES512 key pair for RS512 signatures? Is it possible to use an RS512 key pair for ES512 signatures? I've also posted an issue in the NodeJS jwa package. I created a key pair for EC512 with the following commands: openssl ecparam -genkey -name secp521r1 -noout -out ecdsa-p521-private.pem openssl ...
Let $H_{2^n}(k,m)$ be a hash function where $k$ and $n$ are unknown and $m$ is a message in the format $(m[0], m[1], ..., m[s])$, with $m[i] < 2^n$ for all $0 < i \le s$. Define the hash as: $H_{2^n}(k,m) = (k^s + m[1]k^{s -1}+\dots + m[s -1]k + m[s]) \;mod\;2^n$ The attacker sends a set $M = \{m_1, m_2, ..., m_a\}$ of...
What are the properties a cryptographically secure Elliptic Curve must have? I have started to create a list and wanted to know if I forgot some important points, and if it is correct so far: A curve $E$ over a finite field $\mathbb{F}_q$ with $\#E(\mathbb{F}_q)=h\cdot p$ is considered to be cryptographically secure if...
Even optimistically, I think we can all agree that many encryption algorithms that are widely used in production today will be "broken" sometime in the next decades. With "broken", I mean that (probably because of quantum computing but maybe because of some black swan) it will be possible to decrypt ciphertext that is ...
I found the cryptomator encryption documentation online, because I was looking for something to learn about x). I altered the process a bit to fit "my need" / so that I would not have a vault, but a single file encryption. I did a chart for you: cryptomator stores salt/ parameters in a config file, but as I want to en...
I have an implementation of AES which can cache at most a 256-bit value between encryptions. Currently, the master key is cached and the key schedule is re-computed for each and every block. Is there any intermediate ≤ 256-bit value which can be derived from the master key which I can cache and use to compute each roun...
I read some papers which studied the relation between the fault tolerance in secure multiparty computation and the connectivity of the underlying communication graph. Here I consider information-theoretic security. By the paper The Byzantine Generals Strike Again, in the case where the adversaries are malicious and the...
An adversary Craig tries to log-in as Alice on a system that will only accept the right password, leaks (only) if an attempt succeeds, and allows many attempts. Alice's password choice is modeled as a random pick in a finite set of $m$ possible passwords $P_i$ each with probability $p_i$, with $0\le i<j<m\implies p_i\g...
We want to choose an asymmetric encryption scheme for use as follows: A device holds its private key, with the corresponding public key known and trusted by all. The device also holds a small $b$-bit secret bitstring $S$, assumed having been chosen uniformly at random and also known by one legitimate user, only. The ...
I know how initial permutation works, but I've never heard of this part. People say it's Richard Outerbridge's initial permutation and that it's faster than usual IP (initial permutation) and simple. How does this IP work? I've only the source to work with: work = ((leftt >> 4) ^ right) & 0x0f0f0f0f; right ^= work; ...
Assume we wanted to use the same ECDSA public/private key pair (drawn for standard ECC parameters, perhaps P-256) for both its intended use (public-key signature), and for public-key encryption; this despite the sound and explicit prohibition in FIPS 186-4: ECDSA keys shall only be used for the generation and verifica...
I have a question about OT? we assume that sender has $m_0,m_1,m_2$, and $m_3$ and selects random $S_0, S_1, S_2, S_3, S_4, S_5$ and compute this statement than sends to receiver. $C_0 = S_0 \oplus S_2 \oplus m_0$ $C_1 = S_0 \oplus S_3 \oplus m_1$ $C_2 = S_1 \oplus S_4 \oplus m_2$ $C_3 = S_1 \oplus S_5 \oplus m_3$ Can ...
I have an implementation that natively uses the same IV (12 bytes of 0) for all encryption. The key is always a 32 byte SHA-512 hash. I know via this post that I can deduce the bit-wise XOR of the two plaintexts. deduce the internal authentication value, and thus modify the ciphertexts without being detected. How can...
Let $F$ be a secure PRF and $H$ a universal hash function. How can I exhibit a pair $(F,H)$ whose composition $$S'((k_1, k_2), m) = F(k_2, H(k_1,m))$$ is an insecure MAC (or an insecure PRF, since a MAC can be defined as a PRF) ? I guess that, in order to find a pair $(F,H)$, the trick would be creating some $H$ whos...
I'm guessing that the message must conform to 256 bits but I was not able to find documentation of any message length limits.
I do not understand, what the advantage is in only encrypting the nonce + Ctr and XORing this to our plaintext, instead of encrypting everything. (If our block cipher can be easily decrypted) What would be the other downsides of turning $c_i = E_k(n + i) \oplus m_i$ into $c_i' = E_k((n + i) \oplus m_i)$ This should pr...
I am currently implementing KetjeV2 in VHDL. I have a question concerning the MonkeyWrap-Algorithm that is used in KetjeV2. The function $wrap(A, B, l)$ is supposed to work as shown below, where $A$ is the associated data and $B$ the plaintext. $A$ and $B$ are then separated into blocks of the size $\rho$, where the bl...
I am trying to break a special substitution cipher (where the text is divided into several columns and each column has its own substitution table). Currently I am trying hill-climbing. For the score, I am using Sinkov, which I found at the M4 project. The algorithm for the Sinkov score is like this (My implementation i...
I try to understand the linear cryptanalysis. Now I am reading as a secondary reference the book "Cryptanalysis of Block Ciphers: A Survey" by Standaert , Piret and Quisquater. In the first step, the authors are saying that there are $(2^n-1)\times(2^m-1)$ linear approximations for a $n$-input vector and a $m$-output v...
I need an algorithm for "key generator". It should be initialized with some secret data, such as a (hashed) passphrase, or something generated once by some 3rd-party code. Given some small input it should be able to generate N bits in a deterministic way, which'd be used as a material for some key. The input consists o...
I am interested in understanding whether or not we can use commitment schemes that are both hiding and binding as pseudorandom functions. My reasoning is that if a commitment is hiding, then an attacker cannot distinguish between two commitments. Does this imply that a commitment is also indistinguishable from randomne...
Short Integer Solution ($SIS_{n,m,q,\beta}$) is defined as: Given a matrix $A \in \mathbb{Z}_{q}^{n \times m}$, find a non-zero vector $x \in \mathbb{Z}^{m}$ such that $A \cdot x = 0\mod q$ and $||x|| \le \beta $. In the paper Trapdoors for hard lattices and new Cryptographic Constructions, SIS is proved to be hard by ...
I am encrypting buffers using AES-256-CTR encryption. My encryption is working but I have a requirement that I want to make sure I implement correctly. The requirement is as follows: Given any plaintext of length less that x, the ciphertext should always be of length x. In my example x is 1 KB but can be anything whil...
We say that a set of functions $S$ is $\epsilon$-almost-universal if for any function $f \in S$, it holds that $\Pr[f(m) = f(m')] < \epsilon$ for $m \not = m'$. Assume that we have the following two sets of hash functions: $F = \{f:M \rightarrow X\}$, which is $\epsilon_1$-almost-universal. $G = \{g:X \rightarrow Y \}$...
Let $\Pi$ be a public-key encryption scheme. For every palintext $x \in \{0,1\}^{*}$, is there a PPT adversary $A$ such that $$\Pr \left[ 1^{|x|} \leftarrow A\left( pk, \mathrm{Enc}_{pk} (x) \right) \right] \geq 1 / poly \left( \lambda \right)$$ or even $$\Pr \left[ 1^{|x|} \leftarrow A\left( pk, \mathrm{Enc}_{pk} (x) ...
PGP is all over the news (even on TV) and there seems to be a lot of confusion about it. For the time being, people face articles like Attention PGP users: new vulnerabilities require you to take action now which tell readers to deactivate their PGP plugins while raising concerns related to PGP beyond email client soft...
When preparing the initial state of the algorithm to factor $n$ he computes $q = 2^l$ such that $n^2 \leq q < 2n^2$. The first register then contains $l$ qubits. Why does this need to be so high. If we take $q=2^m$ such that $n \leq q < 2n$ we have $m$ qubits which is enoug to be able to represent all integers up to $n...
It seems we can use every identification scheme to sign and verify a message and vice versa. I am right or not? What is difference between an identification scheme and a digital signature scheme?
Give a prime order group $\mathbb Z_p$, let's take a generator $g$ and raise it to $x$, now, is $g^x$ a random number and indistinguishable from any other element in the group? What am I missing?
One can be fascinated by the simplicity of the schemes created by Ralf Merkle; like the Merkle tree or his key negociation protocol over an insecure channel. Wikipedia has some material on "Merkle puzzles" (wikipedia_page) and his seminal paper can be found online (article_pdf). But, could this venerable construction b...
Let $F$ be a PRF. The $XOR\text{-hash}$ is defined as: XOR-hash(k, m): //m=(a₀, a₁, ..., aᵥ) t = 0ⁿ for each aᵢ ∈ m: t = t ⊕ F(k, aᵢ) return t Suppose an attacker $\mathcal{A}$ can send 3-uples $(m_0, m_1, \delta)$. A function $f$ will be difference-unpredictable if $\mathcal{A}$ cannot guess a...
DDH says that: $(g,g^a,g^b,g^c)$ should be indistinguishable from $(g,g^a,g^b,g^{ab})$ assuming $a,b,c\in Z_P$. However, since $Z_p$ is finite and has $p-1$ elements, can we not just try $n^2$ combinations?
I'm new to cryptography and the associated level of maths. I'm practising past papers for an exam and found the question: Show that the condition 4a^3 + 27b^2 ≠ 0 mod p is fulfilled for the elliptic curve y^2 ≡ x^2 + 2x + 2 mod 17. Surely elliptic curves usually follow the format y^2 ≡ x^3 + ax + b mod p? The x^2 h...
In fact, I have more than one question. For a CTF challenge, I am currently reading up on LFSRs. The code the challenge provides as an example is a 5-bit LFSR, and it generates from its bit sequences a 32-byte key (8-bit to one byte and this 32 times). So the first and last bytes of the key are the same for this partic...
I am trying to understand how AES is comparable to GOST 28147-89 "Magma". Like for parameters such as bit shifting and addition of the subkey to the input, which are a part of Magma, what is their replacement in AES? Also, how is S-box application in AES different from that of Magma? Why is swapping of halves not requi...
Are there any light-weight techniques to generate primality certificates for custom Diffie–Hellman parameters that could be sent to the client to allow it to verify primality without needing to run its own expensive rounds of primality testing? By lightweight, I mean not significantly harder than the recommended number...
If I encrypt the same message multiple times (>10000 times) with the same LFSR can I then somehow retrieve some information on the LFSR? I'm looking for information like bit size, polynomial used. The ciphertext is different for each encrypted message. The assumption is that cipher is 48bytes in size. The message is mo...
I have encrypted a file using -des -cfb and now I want to view how many blocks it contains once I decrypt it. I have done this on the Linux terminal. I know that 9 blocks will be effected if there is an error in the ciphertext. I need to show proof that this is true. But I'm unsure how to do this in a Linux terminal.
Regarding the question Provable Encryption, I'm trying to understand how a 'proof of encryption' might actually work. What I can deduce from the answers is this: we need a cryptographic scheme that is somewhat homomorphic, in the sense that some algebraic structure on the set of plaintext is respected by the encryptio...
Why do we say that collision-resistance is a "harder" property than second pre-image for hash functions whereas if you have an attack on the second pre-image then you find a collision ? Moreover, a collision has a good probability to be found in $O(\sqrt{N})$ where $N$ is the size of the hash function outputs, whereas ...
Consider a situation where there is a (scalar) secret key $x$, known only to Alice. There are two well known generator points $G$ and $H$, known to both Alice and Bob. $H$ is chosen such that discrete log of $H$ base $G$ is unknowable. Alice provides Bob with the points $A$ and $B$, where $A = xG$ and $B = xH$. Without...
Consider the group E23(9,17), this the group defined by the equation y2 mod 23 = x3 + 9x + 17 mod 23. What is the discrete logarithm k of Q = (4,5) to the base P = (16,5)? the solution is: 2P = (20,20), 3P = (14,14), 4P = (19,20), 5P = (13,10), 6P = (7,3), 7P = (8,7), 8P = (12,17), 9P = (4,5) = Q k = 9 i need the det...
I am considering a setting similar to the one of the Paillier cryptosystem, where we sample two distinct odd primes $p,q$, we set $n=pq$, we generate $a \leftarrow \mathbb{Z}_{n^2}^*$ and finally we set $g = (n+1) a^n \mod{n^2}$. My question now is if the discrete log with the parameters $(g, \mathbb{Z}_{n^2}^*)$ is kn...
I'd like to work out how exactly we should describe the discrete logarithm assumption (say, if we are writing a paper). Consider this: Let Gen be a group-generation algorithm on input $1^n$, which outputs a group description $(G, g, p)$ where $G$ is a group, $g$ is a generator of $G$, and $p$ is the order of the group....
Is there a technical term for the desirable property of hash functions. That a small change to the input message will produce a massive unpredictable and seemingly uncorrelated change to the output hash value? I keep getting stuck on words like pseudo-random and unpredictable but they don't seem to fit the property cor...
I am generating ECC private keys. however I noticed that since ECC private key is just a BigInteger. e.g. spec256k1 says private key is anywhere between [0~2^256-1]. my question is, if everyone is using Random(32) to generate a 32bytes private key, there is not likely but still possible situation that 2 people could ge...
Assume a cryptographic algorithm in which the performance for the good guys (the ones that know the key) grows linearly with the length of the key, and for which the only way to break it is a brute-force attack of trying all possible keys. Suppose the performance for the good guys is adequate (e.g., it can encrypt and ...
Let $H(k,m)$ an universal hash function that is difference-unpredictable. Let $\mathcal{A}$ be an attacker who sends tuples $(m_0, m_1, \delta)$, and $\mathcal{A}$ wins the game if one of the tuples satisfy $H(k,m_1) -H(k,m_0) = \delta$. $H$ will be difference-unpredictable when the chance of $\mathcal{A}$ win is negli...
The Short integer solution problem is parameterized by four values: $n$, the dimension of the vectors that must be added $m$, the number of samples (dimension of the solution) $\beta$, upper-bound for the length of the solution $q$, the modulus defining $\mathbb{Z}_q$ Usually, the reductions from lattice problems to ...
I'm new to encryption and am trying to implement Paillier encryption from the wikipedia page here: https://en.wikipedia.org/wiki/Paillier_cryptosystem I managed to implement the encryption and am successfully able to decrypt as well to get the same message - so thats working which is good. Then I wanted to check homomo...
I know that there are several attacks on ring lwe. But I am not sure why they work. Does anyone have intuition of such attacks? What is the common idea used? Reducing the Search space (modulus space)? I want to know them.
I am working on AES and I am stuck on multiplication in $GF(2^{8})$ field. In terms of polynomial it is easy; I just have to multiply polynomials modulo $(x^{8} + x^{4} + x^{3} + x + 1)$. But I do not understand multiplication with $x$, following an example given in NIST specification: {57} • {13} = {fe} solution: ...
What are the reasons why somebody would choose a symmetric system over an asymmetric system considering its disadvantage such as a key management and a key transmission? Some people say a symmetric one is faster than an asymmetric one, but is this that significant?
Can you provide an example use case of program verification using zk-SNARKs that explains: What it actually means to verify the execution; What are the implication of this new technology; How does it work, because at moment I still haven't understood the difference between zk-SNARKs and proofs that can be generated wi...
This may be a silly question but while reading this paper Circuit ABE from LWE, I came across this question on 2nd page - Is there an ABE scheme for general circuits with unbounded attribute length under standard complexity assumptions?. So what exactly are general circuits? My intuition is Suppose we have $f : {\{0,...
I have been studying cognitive cryptography from this article. Its definition of cognitive cryptography is: Cognitive cryptography is a division of cryptography within which any information set can be secured using personal information contained in the biometric sets of information and semantic information unamb...
I've got a system that works like this: Client -> Server: authenticate me Server -> Client: ok, you are authenticated Server -> Client: now do some computations for me And I use SRP as an authentication mechanism. Everything works fine, until somebody steals my password verifier. If the password verifier is stolen, ...
Alice wants to leave a message for Bob. So she encrypt a signed message with Bob's public key. Then leaves it at a dead drop service. Then later Bob arrives and checks the messages and attempts to trial decrypt all of them to see if there are any addressed to him. When Bob finds Alice's message, he manages to decrypt a...
Assume use of SRP over an otherwise insecure unauthenticated channel where the user running the client side has chosen a password, the user only uses that password with a trusted SRP client software, and with the intention to login to the legitimate server (then communicate securely with that server using the SRP-nego...
I am kind of confused regarding timing attacks on RSA. I do understand that the attack exploits the fact that the modular exponentiation (square and multiply) has key dependent branching. That is, if bit $k$ of $x$ is $1$ then the duration of the exponentiation takes longer than if the bit is $0$. But how is the execut...
Assume that a company wants to use DES in order to encrypt messages to remotely control its manufacturing machines. The company uses different messages types of 8 ASCII characters length each. The message payloads consist of simple operational orders like starting machines, stopping them, speeding up, etc. The company ...
Having look into Algebraic Eraser key exchange (AEDH) seems the private key matrix may not be random to prevent weak-key results from the key exchange. From the documentation and articles available it is not really clear for me how to construct the private key matrix. This session paper states: $M_A = \sum_{i=0}^{N-1} ...
I am working on securing a feature in a csv file. My goal is to encrypt, anonymize, mask.... etc the content of the records of the feature while preserving the distance between the characters. as example : record 1 : mtlcfg record 2 : mtlfff The distance between them is 2 so I want to secure the actual...