Skip to content

Commit

Permalink
UPSTREAM: <carry>: disable AES24, not supported by FIPS
Browse files Browse the repository at this point in the history
OpenShift-Rebase-Source: b9a8eb6
  • Loading branch information
rphillips authored and sanchezl committed Dec 20, 2022
1 parent f02e3dc commit ff47791
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,12 @@ func TestRoundTrip(t *testing.T) {
if err != nil {
t.Fatal(err)
}
/* FIPS disabled
aes24block, err := aes.NewCipher([]byte(bytes.Repeat([]byte("b"), 24)))
if err != nil {
t.Fatal(err)
}
*/
aes32block, err := aes.NewCipher([]byte(bytes.Repeat([]byte("c"), 32)))
if err != nil {
t.Fatal(err)
Expand All @@ -387,7 +389,7 @@ func TestRoundTrip(t *testing.T) {
t value.Transformer
}{
{name: "GCM 16 byte key", t: NewGCMTransformer(aes16block)},
{name: "GCM 24 byte key", t: NewGCMTransformer(aes24block)},
// FIPS disabled {name: "GCM 24 byte key", t: NewGCMTransformer(aes24block)},
{name: "GCM 32 byte key", t: NewGCMTransformer(aes32block)},
{name: "CBC 32 byte key", t: NewCBCTransformer(aes32block)},
}
Expand Down

0 comments on commit ff47791

Please sign in to comment.