Generating identifiers similar to UUIDs but without dashes

2019-01-13 Thread Markus Elfring
Hello, The file “/proc/sys/kernel/random/uuid” provides a bit of useful data. The formal definition of the string representation for universally unique identifiers requires the use of four dashes for the concatenation of fields. https://tools.ietf.org/html/rfc4122#page-4 https://stackoverflow.com/

general protection fault in crypto_remove_spawns (2)

2019-01-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:4b3c31c8d4dd Merge branch 'i2c/for-current' of git://git.k.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=144cb81740 kernel config: https://syzkaller.appspot.com/x/.config?x=b05cfdb4ee8ab9b2 da

[PATCH 1/5] crypto: testmgr - skip AEAD encryption test vectors with novrfy set

2019-01-13 Thread Eric Biggers
From: Eric Biggers In preparation for unifying the AEAD encryption and decryption test vectors, skip AEAD test vectors with the 'novrfy' (verification failure expected) flag set when testing encryption rather than decryption. These test vectors only make sense for decryption. Signed-off-by: Eric

[PATCH 4/5] crypto: testmgr - add rfc4543(gcm(aes)) decryption test to encryption tests

2019-01-13 Thread Eric Biggers
From: Eric Biggers One "ccm(aes)" decryption test vector doesn't exactly match any of the encryption test vectors with input and result swapped. In preparation for removing the AEAD decryption test vectors and testing AEAD decryption using the encryption test vectors, add this to the encryption

[PATCH 0/5] crypto: unify the AEAD encryption and decryption test vectors

2019-01-13 Thread Eric Biggers
Hello, This series makes AEAD encryption and decryption be tested using a single list of test vectors for each algorithm, similar to what is done for length-preserving ciphers now (see commit 92a4c9fef34c). This removes almost 5000 lines of "code", even after copying the unique AEAD decryption te

[PATCH 3/5] crypto: testmgr - add gcm(aes) decryption tests to encryption tests

2019-01-13 Thread Eric Biggers
From: Eric Biggers Some "gcm(aes)" decryption test vectors don't exactly match any of the encryption test vectors with input and result swapped. In preparation for removing the AEAD decryption test vectors and testing AEAD decryption using the encryption test vectors, add these to the encryption

[PATCH 2/5] crypto: testmgr - add ccm(aes) decryption tests to encryption tests

2019-01-13 Thread Eric Biggers
From: Eric Biggers Some "ccm(aes)" decryption test vectors don't exactly match any of the encryption test vectors with input and result swapped. In preparation for removing the AEAD decryption test vectors and testing AEAD decryption using the encryption test vectors, add these to the encryption

Re: [PATCH 4/6] crypto: hkdf - RFC5869 Key Derivation Function

2019-01-13 Thread James Bottomley
On Sun, 2019-01-13 at 08:56 +0100, Stephan Müller wrote: > The question may arise why to plug the KDFs into RNGs. The answer is > quite simple: KDFs are a form of random number generator. In that > they take some input for initialization (aka seed, salt, key, > personalization string). Then they pr