Skip to content

Commit

Permalink
fixup! crypto: Add 'fips_provider_buildinfo' to crypto:info() map
Browse files Browse the repository at this point in the history
  • Loading branch information
sverker committed Feb 17, 2025
1 parent daecbc2 commit 44bc286
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/crypto/test/crypto_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -4950,12 +4950,22 @@ try_enable_fips_mode(Config) ->
end.

check_fips_provider() ->
case crypto:info() of
#{fips_provider_available := true,
fips_provider_buildinfo := BI} when is_list(BI) ->
case have_provider_support() of
true ->
case crypto:info() of
#{fips_provider_available := true,
fips_provider_buildinfo := BI} when is_list(BI) ->
ok
end;
false ->
ok
end.

have_provider_support() ->
[{_, PackedVsn, _}] = crypto:info_lib(),
MajorVsn = (PackedVsn bsr 28),
MajorVsn >= 3.

pbkdf2_hmac() ->
[{doc, "Test the pbkdf2_hmac function"}].
pbkdf2_hmac(Config) when is_list(Config) ->
Expand Down

0 comments on commit 44bc286

Please sign in to comment.