Skip to contentSkip to conversation

crypto/testmgr: mark rfc4106(gcm(aes)) as fips_allowed

PATCH In review Jarod Wilson 2 participants 2 messages Jan 23, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/testmgr: mark rfc4106(gcm(aes)) as fips_allowed

This gcm variant is popular for ipsec use, and there are folks who would like to use it while in fips mode. Mark it with fips_allowed=1 to facilitate that.

---
 crypto/testmgr.c | 1 +
 1 file changed, 1 insertion(+)
crypto/testmgr.c +1 -0
index 235b1ff..758d028 100644
@@ -3293,6 +3293,7 @@ static const struct alg_test_desc alg_test_descs[] = {
 	}, {
 		.alg = "rfc4106(gcm(aes))",
 		.test = alg_test_aead,
+		.fips_allowed = 1,
 		.suite = {
 			.aead = {
 				.enc = {
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw

Am Freitag, 23. Januar 2015, 12:42:15 schrieb Jarod Wilson:

Hi Jarod,

Quoted 3 lines

This gcm variant is popular for ipsec use, and there are folks who would like to use it while in fips mode. Mark it with fips_allowed=1 to facilitate that.

For the records: this change is ok as the RFC4106 "wrapper" only massages the input data like IV or keys without changing the cryptographic logic of GCM. As the basic cipher is not changed allowing RFC4106 is harmless with respect to FIPS 140-2 to use and apply this RFC4106 wrapper. This implies that the RFC4106 wrapper can be used in FIPS mode.

Quoted 13 lines

---
crypto/testmgr.c | 1 +

1 file changed, 1 insertion(+)
crypto/testmgr.c +0 -0
index 235b1ff..758d028 100644

crypto/testmgr.c static const struct alg_test_desc · line 3299

Quoted 7 lines
crypto/testmgr.c +1 -0
@@ -3293,6 +3293,7 @@ static const struct alg_test_desc
 alg_test_descs[] = { }, {
 		.alg = "rfc4106(gcm(aes))",
 		.test = alg_test_aead,
+		.fips_allowed = 1,
 		.suite = {
 			.aead = {
 				.enc = {

Ciao
Stephan