Skip to content

Commit

Permalink
UPSTREAM: <carry>: disable AES24, not supported by FIPS
Browse files Browse the repository at this point in the history
Origin-commit: beac12d815b4099cfd4f4d953da4b8789054be51
  • Loading branch information
rphillips authored and damemi committed Dec 6, 2021
1 parent 5c7e3f2 commit 37d2d8c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,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 @@ -379,7 +381,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 37d2d8c

Please sign in to comment.