Linux cryptographic layer development
 help / color / mirror / Atom feed
* gcm-aes-ccp self-tests failure
@ 2019-07-02 16:06 Eric Biggers
  2019-07-02 17:44 ` Gary R Hook
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2019-07-02 16:06 UTC (permalink / raw)
  To: Tom Lendacky, Gary Hook; +Cc: linux-crypto, Cfir Cohen, David Rientjes

Hi Tom and Gary,

On latest cryptodev tree, I'm seeing the following self-test failure after I
built a kernel with the AMD CCP driver and crypto self-tests enabled, and booted
it on system with a Ryzen processor ("Threadripper 1950X"):

[    4.378985] alg: aead: gcm-aes-ccp encryption test failed (wrong result) on test vector 2, cfg="two even aligned splits"

i.e., in some cases the AES-GCM implementation produces the wrong ciphertext
and/or authentication tag.

Is this is a known issue?  When will it be fixed?

The potentially relevant bits of my Kconfig are:

	CONFIG_CRYPTO_AES=y
	CONFIG_CRYPTO_GCM=y
	CONFIG_CRYPTO_DEV_CCP=y
	CONFIG_CRYPTO_DEV_CCP_DD=y
	CONFIG_CRYPTO_DEV_SP_CCP=y
	CONFIG_CRYPTO_DEV_CCP_CRYPTO=y
	CONFIG_CRYPTO_DEV_SP_PSP=y
	# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
	CONFIG_DEBUG_KERNEL=y
	CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y

- Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-02 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-02 16:06 gcm-aes-ccp self-tests failure Eric Biggers
2019-07-02 17:44 ` Gary R Hook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox