instruction stringlengths 32 27.2k |
|---|
According to the Wikipedia Curve25519 article, Curve25519 "accepts any 32-byte string as a valid public key and does not require validation"
However, I need to provide BouncyCastle with a 33 byte key. I have attempted to simply prepend 0x02 or 0x03, and this sometimes is accepted. However I often get the exception "x v... |
Which one of these functions are preferred for authenticating AES-CTR?
function encrypt(msg, key) {
encryptionKey, encryptionSalt = newPBKDF2(key)
hmacKey, hmacSalt = newPBKDF2(key)
ciphertext = aesCTR(msg, encryptionKey)
hmac = generateHMAC(ciphertext, hmacKey)
salt = encryptionSalt + hmacSalt
... |
The block cipher PRESENT is vulnerable to the Statistical Saturation Attack for up to 15 rounds (PDF) and a simple example is here.
My questions are if some (or all) of the permutations were changed:
would this protect it against the Statistical Saturation Attack?
if so, can we then use fewer than 31 rounds without ca... |
I did not understand why the decisional Diffie-Hellman assumption is harder than computational Diffie-Hellman assumption, I read that there are groups where DDH is known to be easy but CDH is still assumed to be hard.Please, could you explain this one, by using an example?
|
Before I familiarized myself with the type of cryptography that became popular with the rise of the information age, I was very much into what the community seems to call "classical" ciphers: Caesar shift ciphers, the Vigenère cipher, grilles, scytales, the Playfair cipher, the Enigma machine, and a few other technique... |
I'm having trouble finding the first paper that introduced the $q$-Strong Bilinear Diffie-Hellman ($q$-SBDH) assumption which, roughly speaking, is:
Let $\mathbb{G},\mathbb{G}_T$ be two groups of order $p$, with a bilinear map $e$ from $\mathbb{G}$ to $\mathbb{G}_T$.
Let $s \stackrel{$}{\leftarrow} \mathbb{Z}^*_p$ be a... |
Function $f$ is a length shortening function. It reduces to log of size of input, i.e $|f(x)|/\log(|x|) \leq$ $a\ positive\ constant$. Is this a one way function?
Edit: $f$ is any function. Unknown definition, only constraint on the ratio being constant for all $x$
|
I have distinct sets of pairs of values $(a_1, b_1), ..., (a_i, b_i)$. This set of pairs is ordered, and each $a_i$ and $b_i$ are related. I want to share the $a_i$ values publicly. I do not want to share the $b_i$ with anyone.
I want the $b_i$ values to correspond to a single Shamir secret $S$ (Perhaps concatenate th... |
Let $F:\{0,1\}^n\times \{0,1\}^m \to \{0,1\}^l$ be a PRF.
I want to show that $G(-)=F(-,x_0)$ is a PRG for every $x_0\in \{0,1\}^m$.
Proof attempt:
Let $D$ be an efficient distinguisher against $G$ in the PRG experiment (see below). We aim to show that $D$ has negligible advantage.
Consider the following efficient ... |
I'm in way over my head with even being on this website, let alone attempting to ask a question… but here's an attempt.
Basically, I want to have a password-protected folder on my Mac which is resizable as needed (sparsebundle seems to be best). It's recommended by Disk Utility to go with 128-bit AES because 256 is ... |
I've implemented ECIES (see the below pseudo-Python).
r = urandom(32)
p_r = x25519(r, BASE_POINT)
shared_secret = x25519(r, x25519_public)
iv = urandom(12)
key = sha256(p_r + x25519_public + shared_secret +
iv)
plaintext_sig = ed25519_sign(eddsa_secret, plaintext)
ciphertext, tag = chacha20_poly1305_encrypt(key, iv, p... |
Let $X$ denote a particular 512-bit sequence.
Let $A,B,C$ denote sequences of bits such that:
$$len(X || A) = len(X || B) = len(X || C) = 1600$$
$$\operatorname{Keccak-}f(X||A) = X||B$$
$$\operatorname{Keccak-}f(X||B) = X||C$$
$$\operatorname{Keccak-}f(X||C) = X||A$$
then we have a loop, so the output of SHAKE (i... |
I'm implementing an encryption algorithm that requires me to use a random number to mix up the values. However I'm caught in between if I should use quasi-random or pseudorandom.
These are the things I'm thinking about:
quasi-random isn't really a random number generator by definition but it's a good substitute for a... |
Consider the following experiment.
If we require that $$\operatorname{P}\left( \mathcal A \text{ succeeds} \right) = \frac{1}{2}$$ for any adversary $\mathcal A$ in order to call the scheme $\Pi$ perfectly CPA secure, can such a scheme exist?
It would seem like this definition cannot be met since the adversary can use... |
Read the Reference for Simplified AES ( S-AES )
Q1 Explain how the S- box is constructed taking example $b_0b_1b_2b_3=1010$
What I did
$\begin{bmatrix}
1 &0 &1 &1 \\
1 & 1& 0&1 \\
1& 1& 1 & 0\\
0 &1 & 1& 1
\end{bmatrix}
*\begin{bmatrix}
b_0\\
b_1\\
b_2\\
b_3
\end{bmatrix}+\begin{bmatrix}
1\\
0\\
0\... |
In every implementation I can find, there is ge_frombytes_negate_vartime but not a regular ge_frombytes method.
I'm assuming there is a deep mathematical reason for things being this way that I'm hoping to uncover.
And since there are no ge_neg methods either, what's the most efficient way to negate the point that is r... |
I was at a conference earlier this week sponsored by a library about data archiving. The conference was not about cryptography. One of the speakers said that the Advanced Encryption Standard (AES) was going to be 20 years old next year (Rijndael was first published in 1998) and that it was getting near the end of its l... |
Let $H: \{0,1\}^*\to \{0,1\}^n$ be the random oracle. A "cover"-triple is a triple $(m_1,m_2,m_3)$ such that
$$\bigwedge_{i=1}^n \left( \left(H(m_1)_i=H(m_2)_i\right) \vee \left(H(m_1)_i=H(m_3)_i\right)\right)=1, $$
where $H(\cdot)_i$ denotes the $i$ bit of the output.
What is the probability that $(m_1,m_2,m_3)$ is ... |
Is this statement $\operatorname{negl}_1(n)-\operatorname{negl}_2(n)\leq \operatorname{negl}_3(n)$ true for some negligible function $\operatorname{negl}_3$ and security parameter $n$?
|
One should not use SHA for MAC, because knowing SHA(key || message) and message you can construct SHA(key || message || forgery) without knowing the actual key. I read somewhere that one shouldn't use SHA(message || key) as MAC. Why? Here || means string concatenation.
|
I have looked at their FAQ but I didn't find the answer to this.
Having looked at their whitepaper, it seems to me that the main feature of ZCash is that you can't trace where the money came from, because of zero-knowledge proofs.
My question is, does ZCash also feature anonymity the other way – not being able to trace... |
I'm programming a file encryption software based on blowfish (which uses 64bit blocks). I will need a mechanism for padding, but I'm not sure how to implement that properly. All of the approaches I've seen so far could only be applied to text, where characters like 0x00 cannot contain data and thus can be used for spec... |
I am not a cryptography expert. I watched this video regarding hashing and salting as part of the course User Authentication With Express and Mongo in teamtreehouse.com.
I understand from the video that a hash is a representation of a password stored in the DB, used to prevent say company workers from copying password... |
$2y$05$68LWs2pXiEvhVTacJ9PX/elfa1zq9jCBlv61hEw1pCvAHlaJyeMwW
This hash value is 70 characters long. How can I tell what type of encoding was used to generate it? Also, how many bits does each character hold?
|
I have an exercise for a crypto class that I'm working on and trying to understand. In the problem I have a Linear-Feedback shift register working in mod 3 with digits {0, 1, 2}.
The LFSR is using a recurrence relation of degree 2 which looks like this
$Z_{i+2}=C_0Z_i+C_1Z_{i+1}$
I also have part of the keystream $S... |
I was trying to solve a cryptography challenge and the problem was about "hash length key extension". After some reading in different topics, I don't know why I still didn't solve the challenge.
I read this page. From what I understood, we have the MAC which is $\mathrm{md5}(\mathrm{secret}||\mathrm{data})$. We want t... |
How to calculate "Entropy Rate" of a bit string?
Does "NIST Randomness Test Suite" provide any test to measure Entropy of an
entropy source?
How to check "biased-ness" of a bit string?
Thank you in advance.
|
I'm not a cryptography expert. In this video, and in some other places in the web, I saw hash salts are being called "random".
But if the salt is created only once and then reused each time anew, that is, added before the password as H({S,P}) each time anew with its same value,
how come it seems to me to be commonly na... |
In RSA you choose $n=pq$ where $p$ and $q$ are large primes with similar length. Then you choose $e$ that is coprime with $\phi(n)$ and find $d$ that is modular multiplicative inverse of $e$ modulo $\phi(n)$, so $ed \equiv 1 \mod \phi(n)$.
Then $(m^e)^d \mod n = m$ for any natural $m$ less than $n$.
As far as I have re... |
There was this one time I came up with a small permutation that had a block size of 16 bits. This was small enough to compute every mapping. I then iterated the mapping starting with zero to see how many iterations it would take to return to zero. The number was less than half of $2^{16}$.
For whatever reason, let's sa... |
The situation is that I download a mp3 file (song) and I encrypt blocks of data (4096 bites for example).
The output of every encryption operation I save it in a new file.
When I play the song (encrypted file) I work with buffers. If I seek near the end of the song, for example, I need to somehow extract the IV that I ... |
Assume a common RSA public key $(N,e)$ with $N$ the product of two unknown distinct randomly chosen large primes $p$ and $q$ of about the same size.
Does revealing $p^e\bmod N$ (in addition to the public key) allow factorization of $N$, or otherwise makes it markedly easier to solve the RSA problem? What about also rev... |
I check some key size which FHE libraries generated, for example, HElib's key size will be more than 300M, while tfhe's is also nearly 100M. Since these keys are so long, does it guarantee FHE encryption is more safer than traditional encryption, such as RSA?
|
Given a hash value, how are you supposed to find its preimage? What steps can I take to solve find the preimage of a hash such as this 2d202cb6a781edf6ac01d14e1dd6367497db90ba9e8ad721fd17239228a213f9 (SHA256)
|
As part of a cryptanalytic attack I've carried out, I used a divide-and-conquer strategy to divide the secret key $k$ into several equal-sized partial keys $k = {k_1, k_2, ...}$.
The attack works successfully against these partial keys, and outputs a list of possible values for each partial key along with their likelih... |
In GnuPG, there is the option of making keys which are "normal" (encrypt and sign) and sign-only keys . But what sense does that make in regards of DSA?
Correct me if I am wrong, but I think DSA keys can only sign anyway.
So what is the difference between sign-only and normal keys?
|
What are the additional 8 bytes of output used for in Java's (Bouncycastle) AES/CCM/NoPadding? I do not believe this is padding as I am requesting "NoPadding," and the block size is not 128, 192, or 256 bit. Is this some sort of Message Integrity Check (MIC)?
For example:
Encrypting 16 bytes yields 24 bytes of output... |
Is it safe to use the hash of the data as the key to encrypt them?
That is, if I give one some encrypted data and tell them that the key that was used to encrypt them was the hash digest of the data before encrypting, will it be easier for them to decrypt them?
Edit as I can not reply to comments: The recipient will ha... |
I've been searching for a way to create blind ECDSA signatures.
My research and experimentation has led me to believe that this is not possible.
I've been attempting to articulate why and I think that it is because it is not possible to apply a transformation to the message in a way which can be reversed whilst retain... |
I am using AES/CCM/NoPadding in Java, and it produces a 8-byte MAC when encrypting data. However, the data I receive, produced by a Bluetooth module, produces a 4-byte MIC.
Both the Bluetooth module and my Java/android app, using AES/CCM, produce the exact same output, but have the differences of the MIC and MAC.
Is t... |
Modern computers (which crypto programs are usually run on) have a 64-bit multiply, and it only takes one cycle. It's pretty decent mixing at next to no cost.
For block ciphers:
Multiplication by a constant is nonlinear (when combined with other mixing operations), provides diffusion in one direction (easily amended w... |
I understood garbled circuit can hide some function $f$ jointly by multi parties.
With quantum computer, can we see the circuit inside it?
|
I need to know how can I determine the key size in bits knowing the ciphertext and the encryption algorithm used?
For example suppose the plaintext was "ABC" and after the encryption it became "DEF" so the key size in bits = 1 bit because each letter is shifted only by 1 to its next character? Or I am wrong?
Please exp... |
I am not familiar with field theory so please bear with me if this is obvious to you.
I was wondering why this particular reducing polynomial
$x^8+x^4+x^3+x+1$ is picked for AES' Rcon. Can't it be some other polynomials?
|
If I am using AES in CTR mode and use a unique key every time but the same nonce, is this secure?
If so, does it make a difference if the nonce is public?
|
I have an implementation of the RSA private key operation in a context where I don't have access to an entropy source. I'd like to add blinding to it (both message and exponent), to make it resist some side channel attacks.
(The subsequent padding operation does have access to an entropy source. It's only the exponenti... |
Is it possible for $aG \equiv bG$, with $a, b$ are scalars and $G$ is a point on the curve?
|
The PACE protocol is a password authenticated key agreement which is widely used. For instance, in the electronic ICAO passports as the so called SAC protocol. PACE is standardised in ICAO DOC9303 Part 11.
PACE is rather complicated. For instance, it needs 2 Diffie-Hellman exchanges and a specific $G' = s*G+H$ mapping ... |
I can't seem to find a tutorial online that helps me with this tasking. I have some Vigenere ciphertext (LVGPA...). It only says to assume that encrypting the key letter A results in no change, B results in an increment of one, C increments 2, and so forth.
How would I start to find the key?
|
I was going through this paper ("Fully Homomophic Encryption over the Integers Revisited") and the statement written in the first paragraph on page 5 stating $\DeclareMathOperator{\agcd}{AGCD}$
We say that an algorithm $\mathcal{A}$ is an $(\epsilon_1,\epsilon_2)$-distinguisher for $\agcd_{X,\phi}(\mathcal{D})$ if, wi... |
Consider the following excerpt from Rueppels paper, titled When Shift Registers Clock Themselves:
His example includes $C(D) = 1 + D + D^2 + D^3 + D^4 + D^5$ as a primitive connection polynomial. However, this polynomial is not irreducible, let alone primitive, since it can be factored as $(1+D)(1+D+D^2)^2$ over $\t... |
This whole question pertains to CBC-MAC.
Let's say $a$ is one cipher block long, and the attacker knows the MAC $M(a)$ of $a$, which was generated with a random key. How can the attacker forge the MAC of a two block message under the same key?
For example, if I have $M(a)$, can I forge $M(b||c)$, where $b$ and $c$ are ... |
Given a sample of random bytes, how to determine if Entropy Source (source of random bytes) includes a Conditioning Component or not, with respect to NIST SP 800-90 B)?
Thanks
|
I have identified a password hashing algorithm that uses a truncated MD5 hash to compare user passwords.
This means that any password whose hash matches the same first 23 hex chars (11.5 bytes or 92 bits) will authenticate the user.
How big is this keyspace? I believe it is 2^92 which is still quite a large key space t... |
In a recent press interview, a former terrorist of the 1970s described the cipher his group used to communicate. He claimed that method was unbreakable and I wonder if cryptographers today would agree. Here is how it functionned:
Take two identical books (same edition): one for the sender, one for the recipient.
Each ... |
In Introduction to Modern Cryptography by Katz and Lindell, p. 70, they define a pseudorandom generator by:
Let $l(\cdot)$ be a polynomial and let $G$ be a deterministic
poly-time alg. s.t. for any input $s \in \{0,1\}^n,$ algo $G$ outputs
a string of length $l(n).$ We say $G$ is a pseudorandom generator if
the ... |
SPEKE is a very simple and elegant PAKE protocol.
I think one of the reasons why PACE was invented and is now the ICAO protocol is that SPEKE was patented. Fortunately, the SPEKE patent expired in March 2017 and therefore we can now freely use it.
In SPEKE, one needs to hash a password into an elliptic curve. That c... |
If i need to use symmetric encryption(AES), sending the same message for many times with the same password and initial value is absolutely not secure(i don't use Public key exchange ((in first approach)'PKI,CA, etc') i will use Certificateless.
So if i used sha-256 to hash the password with public value(the current dat... |
I want to do block level encrypton on my ext4 image file system with aes-cbc-essiv
How can I find/calculate the the ESSIV needed for encryption?
|
I looked into the code for md5_crypt the other day (yes, I know it's insecure), and I noticed that after mushing up everything with strange md5 hashes, it generates a base64 string with a strange order of bytes. You can see that either in the FreeBSD implementation lines 144-155 or in passlib which calls this function.... |
I want to write a program that will generate random data by using ANSI X9.31 with AES 128 bit, however I could find the standart only with cryptographic notation, and I did not understand it clearly.
I = ede *K(DT)
R = ede *K(I XOR V)
V = ede*K(R Xor I)
Could you explain me how the algorithms works or suggest me any ... |
I was wondering if there were any encryption algorithms that kinda worked like RSA in the sense that there are two keys, however, one of the keys only decrypts (meaning you can't encrypt with it) and the other key that only encrypts. Is this possible?
|
Given the design of RC4, is it possible or impossible for the values $i$ and $j$ to be equal to each other when $S[i]$ and $S[j]$ are swapped?
|
For a demonstration, I would like to present a zero knowledge proof that one party has a secret number that is divisible by 7. The goal is to prove that they have such a number without releasing the number.
Is this a reasonable thing to prove with a zero knowledge system? If so, how would I go about doing it?
For bonu... |
For example, A encrypts a message.
B encrypts that.
C encrypts that.
Then B decrypts, followed by A then C.
Are there systems that allow this? Does such a property have a name?
|
The following is an extract from a paper about using your mobile phone as a true random number generator (TRNG). The mobile phone bit is incidental to this question though. I'm interested in the calculated bias of the $M \times r$ matrix extraction mechanism. Specifically equation 5 at the bottom.
A. Does a simila... |
I recently championed quantum key distribution networks. This has led me to also question quantum random number generators. It appears that randomness is randomness, even if made by custom quantum hardware featuring lasers and photon genies.
It would seem that there is a great deal of chaff and hype surrounding quant... |
If so, which ones are?
If not, is it known whether or not these are mutually exclusive?
Is there a page that exhaustively lists encryption systems and properties such as these? I could not find a resource to help me find these answers on my own.
|
I am looking to do arithmetic operations on encrypted values that will decrypt to be the result of the value decrypted. Does anyone know of any code examples of this in use? Usage of the equation would be nice as well.The psuedo from the below link is rather obscure. The specific reason behind asking the question is th... |
When picking an ephemeral Diffie-Hellman private key (little a or little b), can I reasonably just pick 32 random bytes? I am specifically interested in use within SRPv6.
RFC5054 says that these ephemeral keys are "a random number that SHOULD be at least 256 bits in length."
RFC2631 says
X9.42 requires that requires t... |
I have an algorithm that generates a pseudorandom sequence with a length of 100k and high entropy. I would like to check the quality of its randomness. So, I used a popular software program to compress the generated file, which reduced it to one-third of its original size.
I have come across some random test suites, bu... |
Would a challenge response HMAC authentication be secure?
i.e.
Client sends id
Server sends a challenge(32byte value)
Client calculates hmac_sha256 of the challenge value with its key and sends the reply
Server verifies the reply
|
So I'm a bit of a cryptography/HE noob, and I was wondering if it is possible to keep track of the noise growth that happens when you do some kind of mathematical operation on your encrypted data, and by keeping track of such growth, would it be possible to clip off the noise once it reaches a threshold (If I've unders... |
For academic purposes, assuming $n, p, q$ with $n\approx 2^{4096}$ and $p,q\approx 2^{2048}$.
I need to find ($e,d$) such that:
$e$ is smaller than $2^{64}$
$d\approx 2^{4096}$ and will have as much zeros as possible in binary form.
($d=$10000...0001 will be the best obviously, but I'm not greedy)
What will be the b... |
I know that Graphics cards are faster at solving algorithms like SHA-256 because of the many builtin processors, but are there Algorithms that take actually longer on a Graphics card than on a modern consumer CPU (Amd/intel)?
|
Is whirlpool vulnerable to length extension attacks?
I did not find anything on the topic and hardly anything interesting about whirlpool at all. I am trying to build some HMAC for a program and consider using whirlpool to do so.
|
In AES-192 key expansion there are 12 rounds and 52 keys.
I am not sure why 52 keys are derived since each block consist of 4 rows and 6 columns (192 bit keys).
So if the block is 4 x 4 then we simply multiply rounds with key size. 13 x 4 = 52 but here we have 4 x 6 matrix (block).
Can someone tell me why we get 52 key... |
I converted ~1000 public keys generated from chrome's RSASSA-PKCS1-v1_5 implementation, converted them to decimal, prepended a "0." to them, and sorted them.
This is the graph that I got:
It puzzled me a little bit because it looks like an inverse normal distribution. I expected a uniform distribution (i.e. straight ... |
Goal
I want Alice and Bob to communicate a message without their answers influencing each other. More formally:
Alice wants to send Bob a message, a.
Bob wants to send Alice a message, b.
But Alice must not know b before sending a
And Bob must not know a before sending b.
Attempt
I was thinking I could have:
Alice ... |
I am wondering why in IND-CPA security game, the adversary generates two random messages. What happens if for example 5 messages are generated? What would be the advantage for the adversary?
|
Alice picks random points P and Q in a group where DLP w.r.t. a base point G is hard (I am thinking an elliptic curve, but it doesn't have to be). Alice doesn't know the DLP of those two points.
Alice sends (P,Q) to Bob.
Bob is to pick a random scalar r, and return (r*P,r*Q) to Alice, while keeping r secret.
Is there a... |
What is this? And tell me about what are rows when selected 1st and last bit???
|
I am newbie to the crypto world, but my question is, If block cipher BLOCK satisfies the following relation (where ENC is encrypt and "+" means XOR): For ever pair of blocks of input A and B, ENC(A+B) = ENC(A) + ENC(B).
I was wondering what would be the security of BLOCK? Assuming the key is of fixed size and that you... |
So, Alice wants to use the RSA protocol and pays Cindy to generate the two (odd) primes p and w so she can use e=65537 and n=pw as her public key. Alice will then, upon receipt of p and w, privately, find d to use as her private key.
Cindy delivers p and w to Alice where p is prime, but she messes up and delivers a nu... |
I was given the following exercise to solve:
The Hawaiian language consists of 12 letters. There are 7 consonants: HKLMNP and W and there are five vowels: AEIO and U. In a word, no two consecutive letters can be consonants and all words end in a vowel. Suppose you are given, without spaces, a very long list of putati... |
This is a slight reversal from the norm but...
Suppose Alice wants to ensure that everyone knows that a message will be from her. Instead of giving out the encryption key, she broadcasts the decryption key, and encrypts her messages privately. She doesn't care that anybody can read her messages, only that someone can't... |
is it possible to solve RSA without n?
I know e, c and d
|
There was some article published by on the IACR's website that outlined a block cipher that only used the "master" key and no round keys. I can't recall the cipher's name, not that it matters, nor do I know if it had been subjected to cryptanalysis.
If one has a block cipher that has an $n$-bit key and an $n$-bit block... |
Literature on the DSA (e.g. Gupta 2014) agrees that the security in DSA relies on the difficulty to solve two distinct discrete logarithm problems (DLP):
One is the DLP in prime-order ($q$) subgroups of $\mathbb{Z}_p^*$ for which the most efficient algorithm is Pollard's rho method. I understand this is basically cal... |
I'm studying about polynomials and interpolation with shamir secret sharing. I have some questions about it.
I found that there are always lower-degrees polynomials that intersects with 2 or more points (passing through 0) with another polynomial of degree at least 3 (in Zp).
Example: Supose a secret sharing scheme wit... |
I've just started doing a research project on CSPRNGs and I would like to know what kind of vulnerabilities a regular PRNG has with a secure seed. For example, if I generate a random number using LavaRnd to seed srand(), then generate some big key with rand(), what can an attacker do to resolve that key, or otherwise f... |
I am attempting to write a basic codebreaking program to break simple ciphers (think caesar cipher & railfence) such as these here https://en.wikipedia.org/wiki/Classical_cipher.
The program will make semi random attempts at decoding the ciphertext, and I need a way to "score" these attempts on how close they are to f... |
I'm searching for the fastest way to verify that a message was sent by the correct user.
The first solution I know of is to use HMAC. But in order to verify, I'll have to produce another signature and compare it with the original. In my case, this does not seem to be the best choice, because the time needed to verify ... |
I can't seem to come across a clear and to the point answer. Is SHA-3 in the same situation as ElGamal and DSA, where it is modified slightly, or is the original Keccak submission the exact same as NIST standardized SHA-3?
|
What is the difference between encrypting some data vs signing some data (using ECC)?
Does it simply reverse the role of the public-private keys?
In the past, I thought it was just a change of role for publickey and privatekey.
As the diagram:
(Encrypt diagram)
(Sign diagram)
But in practice, it seem not easy like m... |
Given the encryption formula and flow chart for block-chaining. How could I make the decryption version of this? Would it just be everything in reverse?
|
I'm planning on combining RNGs from several sources (Windows, Linux, OpenBSD, etc.) for generating one time pads but I have some questions that I don't know how to answer regarding xoring the outputs of those random number generators together. Trying to search for answers to these is not doing well either.
Suppose we h... |
I'm currently implementing an interface that makes use of the DUKPT (Derived Unique Key Per Transaction) scheme to generate MAC keys. This particular interface uses a different (variant) of the MAC key on the response than used on the request.
This particular variant key seems to course some trouble in our HSM (it's d... |
I want to decrease attack surface by preventing the plaintext string or encryption key from ever being typed or otherwise entered into a computer. Ideally the decryption key would be something that the user can generate and store in their head. But encryption should still be as strong as possible. I don't need to be ab... |
$H(m\mathbin\Vert k)$ as an authentication algorithm, where $H: \{0, 1\}^* \rightarrow \{0, 1\}^{n}$, has at most a strength equivalent to $\frac{n}{2}$ bits. $H((k^\prime \oplus \mathrm{opad})\mathbin\Vert H((k^\prime \oplus \mathrm{ipad})\mathbin\Vert m))$, the definition of HMAC, has an upper strength of $n$. The se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.