Questions tagged [keys]

Private and secret keys consists of secret information used as input to various kinds of cryptographic algorithms such as encryption, signature and MAC to select the concrete transformation done by the algorithm.

Filter by
Sorted by
Tagged with
3
votes
2answers
94 views

RSA - Is $e = d$ a problem?

I'm working on small RSA project in university. At this moment I have done this: An array of prime numbers is generated from selected range. $p$ and $q$ selected randomly from this array $n$ ...
2
votes
2answers
211 views

Symmetric-keys algorithms with different keys for encryption and decryption

The Symmetric-key algorithm article from Wikipedia states: The keys may be identical or there may be a simple transformation to go between the two keys. I am not aware of any symmetric-key ...
0
votes
0answers
13 views

Can I set certificate purpose in Android API 22? [closed]

In android api 22 I can use only this function to create keys and certificate: ...
0
votes
2answers
49 views

Why a bulk encryption key and frequently used key needs to have a shorter lifetime?

In NIST standard (NIST SP800-57), the bulk data encryption key and other key material that is used frequently have a short lifetime. As quoted from (Sec. 5.3.6, point 6.b.): The originator-usage ...
1
vote
1answer
73 views

How to calculate time needed for decryption of 64-bit key

I am having trouble figuring out how long it takes to decrypt a 64-bit key, given that a computer can do 1 billion trials per second. I know that there are $2^{64} = 1.844 \times 10^{19}$ possible ...
0
votes
1answer
44 views

Key generation for DH key exchange - benefits of using KMI

Context We need to generate a key pair in order to perform DH key exchange with the other party. Some suggest to use a KMI solution (think: AWS KMS or like) in order to generate the key pair. ...
1
vote
1answer
43 views

Can I compress $192$ byte key into $16$ or $32$ bytes which can be later used in KDF to recover full key

I have a key $k$ which is $192$ bytes long. Is there a secure way to first compress this key into $16$ or $32$ bytes, but in such a way that later given those $16$ ($32$) bytes I can use a key ...
0
votes
1answer
39 views

Why should I export my private key instead of well known asymmetric crypto mechanism on openkeychain?

I'm trying to use password-store as password manager under linux. I created a private github repo with my gpg files in order to use it with other devices. I installed android-password-store app for ...
6
votes
3answers
1k views

Good layperson analogy for password and encryption keys

NOTE: QUESTION UPDATED. SEE BOTTOM OF THIS POST. I'm writing something where I need to make someone come across as though they know cryptography. I don't know enough, but as cryptography plays only a ...
0
votes
0answers
26 views

What is the key generation and management process of a fully homomorphic encryption system?

I've been very interested in fully homomorphic encryption lately, and I understand the concept well enough, but there is one thing that I don't understand... What is the key creation and, more ...
3
votes
0answers
48 views

How is the time intereval calculated for symmetric key re-negoatition in UK Security Standard – Use of Cryptography?

According to point 10.6.4 (Encryption in Transit) in Security Standard –Use of Cryptography, one of the criteria for key renegotiation is timeout , Encrypted sessions MUST re-negotiate new symmetric ...
1
vote
0answers
36 views

Looking for an algorithm to encrypt with a single key and decrypt with a lot of keys without consuming too much space

Is it possible to have an encryption scheme that could be encrypted with a particular key, then decrypted with a large amount of keys without massively inflating the size of the final result? I am ...
0
votes
2answers
136 views

Is there any cryptographic scheme with block size more than 128 bit

I am asking this question out of curiosity if there are any cryptographic algorithm that has a block length more that 128 bit. I am new to cryptography and I didn't know any. AES 128, 192, 256 all ...
1
vote
2answers
150 views

With RSA or ECC, if I encrypt my private key with my public key, is there a way to recover my private key?

Is there an algorithmic, mathematical, technical or implementation "hack" to recover the private key or is it definitively encrypted without any particular mathematical property, like any ...
2
votes
2answers
366 views

Are the asymmetric roles of the two keys in the elliptical curves the same (as for RSA)? Can they be interchanged indifferently?

More precisely, and as for RSA, is it really true that it is not feasible to recirculate one of the keys knowing ONLY the other with the Elliptic Curves, as for RSA? Or does ECs work differently on ...
1
vote
2answers
219 views

Key generation times vs CPU load

Does the key generation time affect the CPU load in a mobile phone, an embedded device? I am searching on Google for info, but I am not fully sure that I have concluded to something.
0
votes
0answers
44 views

Same private key for signing and decryption

I am designing a service which identifies records with public keys. All other fields are encrypted with that public key and protected by a HMAC. For authentication, I am thinking about signing ...
1
vote
0answers
107 views

Generating a XOR Hash function for a given group of numbers to maximise collisions

Given $x$, a vector of $m$ distinct bit vectors of bit length $N$, I want to use an XOR-hash $h$ such that all $x_i$ collide to the same value. I define an XOR hash $h$ which takes bit vector $q$ as ...
1
vote
0answers
24 views

Generating a recovery phrase for a RSA key-pair

What is an optimal way to associate a RSA key-pair with a recovery phrase/seed for access recovery purposes? I've seen a lot of cryptocurrency wallets provide this feature, however, I'm not looking to ...
3
votes
1answer
149 views

Is choosing $1$ as a public exponent valid in RSA?

I know it will not encrypt anything. But is $1$ valid as a public exponent in an RSA public key?
1
vote
2answers
120 views

RCON for AES 192 and 256

This is question about how many RCON values are used in AES 192 and 256. I read the NIST Publication introducing AES and in Appendix A.2 and A.3 (Key Expansion for 192 and 256-bit keys), only $rcon_1$ ...
3
votes
1answer
54 views

Are skeleton keys possible for ECCDSA?

As alluded to here (split-key vanity addresses for bitcoin), ECCDSA-keys can be merged such that the sum of two private keys $S=S_1+S_2$ yields a public key which is the sum of the respective public ...
3
votes
1answer
70 views

Curve25519 key structure

In the paper regarding Curve25519, the set of public keys $q$ is $\{q : q\in \{ 0,1,2,...,2^{256} - 1\}\}$ and the set of private keys $n$ is $\{n : n\in 2^{254} + 8 \cdot \{ 0,1,2,...,2^{251} - 1\}\}$...
0
votes
0answers
81 views

RNG to hide some bits

Suppose I have a sequence of bits of length M. I need to hide N out of M bits (hiding means forcing them to be 0) using RNG with a key. How I can relate the output of RNG to the number and positions ...
0
votes
0answers
33 views

What kind of approach can I use to reverse the following encryption scheme?

I'm trying to reverse an encryption scheme without success. I have several pairs of ciphertext + plaintext and found the encryption method to be something like this: ...
0
votes
0answers
34 views

Symmetric algorithm effective key length

If we have a symmetric algorithm with key length $m$ bit, and we do a 5 time encryption with it. How much will it be its effective key length.
0
votes
0answers
75 views

Does my encryption scheme make sense?

I'm looking at a way to encrypt a file so that our software will only allow users with the proper license to use it (see details below). I have some notions on that topic, but barely more than knowing ...
1
vote
0answers
57 views

Prove how to brute-force the double encryption with complexity 2^57 rather than 2^112?

We know that DES has key length that is too short to defend brute-force attack. One idea to improve DES was to encrypt a message using DES twice with two different keys. Let E be the encryption ...
0
votes
0answers
48 views

PIN & PUK protection for key

I'm trying to protect a key using a PIN code. However, if the user somehow loses the PIN code, I'd like to be able to allow recovery using a PUK (similar behaviour as for instance your SIM card on ...
3
votes
2answers
818 views

Encryption and decryption with Diffie-Hellman

I don't understand how it works. I only found explanations about the key exchange, but what about the actual encryption and decryption? Do you use the session key $K$ with a symmetric algorithm? Do ...
0
votes
1answer
71 views

Does a cipher exist with the following properties?

The key can unlock the ciphertext in polytime (measured in length of key + cipher). a. Given the key + ciphertext as input, if you cannot unlock it in some fixed number of steps (relative to input ...
3
votes
1answer
76 views

Number of keystreams generated in Kreyvium for a single key/IV pair

Kreyvium employs 128-bit key and 128-bit IV. By a single initialization procedure using a key/IV pair, how many keystreams can be generated?
0
votes
0answers
65 views

Are My Answers to This AES Question Correct?

Question I am extremely new to cryptography and AES and so I am not confident that I did this question orrectly. Please can you check my answers and let me know if anything jumps out as incorrect, ...
0
votes
1answer
49 views

Is it okay to reuse a single symmetric key for a large volume of messages and HMACs, so long as “nonces” are randomly generated for both of them?

https://www.reddit.com/r/crypto/comments/fnku50/nonce_reuse_vs_iv_reuse/ Nonce reuse with the same key is catastrophic to security. The same premise holds for initialization vectors. If the key ...
0
votes
1answer
48 views

Secret key formed by the combination of several keys

I think there exists an algorithm to create a key from the combination of a group of keys in such a way that if I encrypt a message using the key formed from the combination, I should be able to ...
0
votes
0answers
104 views

Encrypt files on harddrive with double encryption

So I've been stuck on this question for a very long time. How do you use double encryption to encrypt a hard disk so that all of the following conditions are met: All data on the hard disk is ...
1
vote
1answer
144 views

Is it possible to find the key of an HMAC-SHA-512 given the input and the hash output?

Is it possible to find the key of an HMAC-SHA-512 given the input and the hash output? If so, what algorithm if any prevents this? I'm working on a simple E2E communication system between two self-...
0
votes
1answer
45 views

Proof of probability of weak keys in block cipher

My textbook has the following theorem: Given a block cipher with a key length of K bits and blocksize of n bits as well as t plaintext-ciphertext pairs, the expected number of false keys which ...
0
votes
0answers
13 views

Is it possible to sign an Android OTA Zip using Hardware Security Module protected keys?

In my scenario, the ‘Release’ private key that matches the .pem cert file is stored in a HSM and it’s non-exportable. I see that signapk.jar takes the -providerClass parameter (which in theory should ...
0
votes
0answers
63 views

What measures can I do to prevent decryption of encrypted data?

This is entirely hypothetical, I'm working on securing some data and I want to make sure we do this properly. If I have a list of information which is encrypted (say, using a 256 bit encryption key) ...
1
vote
1answer
32 views

Can MFA codes be predicted if you know what their values were at a previous time?

I use an app on my phone that, after scanning a QR code on a website, gives me 6-digit codes which change every 30 seconds. These codes can be used for Multi-Factor Authentication (MFA) on some ...
0
votes
0answers
38 views

Protect student log data through public-key encryption and a trustee

I am looking for an GDPR-conform way to log student behavior in an online learning system (Moodle). In the system, students are offered a course to be examined in a field study. According to the GDPR, ...
0
votes
0answers
34 views

Best method for storing cryptographic secret key and generation of IV in Trivium?

How the secret key for Trivium cipher is stored and managed in an embedded system (IoT sensor node)? How the IV is generated in a Trivium? How to justify the fact that storing a fixed value (for ...
2
votes
1answer
98 views

Does pepper *require* an HMAC?

Assume you are already given a properly-salted, password hash $X$ from some slow PBKDF (e.g., like Argon2id). Now, you want to apply some large (~256-bit) secret "pepper" $S$ to it before storing it ...
0
votes
0answers
59 views

What kind of attack would a 128 bit SHA-2 be vulnerable to and why?

With SHA-2 for hashing, using only the first 128 bits to create a 128 bit hash, what kind of attack would this be vulnerable to and why? Since 128 bit encryption keys are secure, shouldn't a 128 bit ...
0
votes
1answer
67 views

KRACK - Is all-zero key installed by the acces point?

I don't really understand (and I think it's not described in the official paper) how the encryption can work when the encryption key is set to 0 by a KRACK attack on a device using wpa_supplicant 2.4 ...
0
votes
1answer
34 views

Disk storage of RSA and DSA keys

I have generated one RSA-2048 signing key and one DSA-2048 signing key, using gpg command gpg --full-generate-keys I would expect the key to have size 2048 bits, ...
0
votes
0answers
28 views

Prove linkage between secret keys

Hey guys I'm not a crypto expert so apologies if the question is especially noobish. We have a web application that requires the user to sign certain messages. We have been storing the secret key in ...
2
votes
2answers
59 views

Motivation for frequent key updates

I am wondering if there is any reason to regularly update cryptographic keys, that are used for authentication purposes in a real-time system. A key should be updated if it is weak, broken, ...
0
votes
0answers
31 views

How to calculate new AES keys for NFC application?

I want to program a couple of AES-enabled NFC tags (for example these) with some custom data, and secure these tags by using the AES features of said tags . In order to increase security, i want to ...

1
2 3 4 5
14