How can a client safely post/get a (symmetric) client key to/from a key distribution center?

If you look at the above Kerberos protocol’s diagram, you can find that the protocol works on the basis that the (symmetric) client key initially exists on both the client node and the key distribution center.
Then, the question is, how c… Continue reading How can a client safely post/get a (symmetric) client key to/from a key distribution center?

Why can’t you use True Random Number Generator (TRNG) to generate key stream in Stream Ciphers?

I read in the book that you cannot use True Random Number Generator (TRNG) to generate key stream in Stream Ciphers:

We
need some type of random number generator to derive the key stream. First, we note
that we cannot use a TRNG since, by… Continue reading Why can’t you use True Random Number Generator (TRNG) to generate key stream in Stream Ciphers?

which principles for ssh key algo selection I should use for git-mainly operations?

which rules I should choose for ssh algo selection, provided it will be used near 100% for git operations? I’m going to use it with git on linux laptops, often used on public wifi.
currently I have:

speed
modern (no need to serve old SSH … Continue reading which principles for ssh key algo selection I should use for git-mainly operations?

Is it possible to regenerate the stub private key from just the physical key in OpenSSH?

Let’s say I make an id of type ed25519-sk and have it reside on my yubikey. OpenSSH makes two files, id_ed25519_sk, a stub private key, and id_ed25519_sk.pub the corresponding public key.
If I lose these, can I regenerate them with just th… Continue reading Is it possible to regenerate the stub private key from just the physical key in OpenSSH?

Is "Math.random" the same as "crypto.getRandomValues" (JavaScript security)

This question may be a little off-topic, but is Math.random the same as crypto.getRandomValues? (JavaScript)
Here’s an example:
Math.random(); // 0.11918419514323941
self.crypto.getRandomValues(new Uint32Array(10))[0]; // 2798055700

(Usin… Continue reading Is "Math.random" the same as "crypto.getRandomValues" (JavaScript security)

Why does an encryption key derived from your lock screen password give you stronger protection (in Android 11)?

Why does an encryption key derived from your lock screen password give you "stronger protection" than a key chosen by the machine (or at any rate not derived from your lock screen password)?
The context in which the above generic… Continue reading Why does an encryption key derived from your lock screen password give you stronger protection (in Android 11)?