Skip to content

Conversation

@vikram-nexthop
Copy link

Why I did it

No mechanism exists to query FIPS POST (Power-On Self-Test) status of the cryptographic backend module used by wpa_supplicant, preventing applications (like MACsec) from verifying FIPS compliance and cryptographic readiness.

How I did it

Command Line Interface

  • Added -F option to wpa_supplicant for FIPS POST status query
  • Returns appropriate exit code and log message for scripting/automation
  • Query EVP_CIPHER_fetch() with "fips=yes" property to verify FIPS provider availability and POST completion.
  • Other backends (GnuTLS, internal, libtomcrypt, linux, nettle, wolfSSL): Return "not supported" with backend identification

How to verify it

FIPS enabled enviornment
root@sonic:~$ /sbin/wpa_supplicant -F
FIPS POST status: pass (crypto backend: openssl)

non-FIPS enviornment
root@standard:~$ /sbin/wpa_supplicant -F
FIPS POST status: fail (crypto backend: openssl)

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vikram-nexthop vikram-nexthop marked this pull request as ready for review September 22, 2025 10:03
@abdosi
Copy link

abdosi commented Oct 1, 2025

@saksarav-nokia to help tagging correct Nokia contact point.

@saksarav-nokia
Copy link

@wumiaont for viz

Copy link
Contributor

@wumiaont wumiaont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vikram-nexthop
Copy link
Author

Requesting reviewers with write access to approve this PR, since all the review comments have been incorporated.

@rlhui
Copy link

rlhui commented Oct 22, 2025

@judyjoseph reminder on this.

@vikram-nexthop
Copy link
Author

reminder to approve the merge, if there are no comments/concerns.

Copy link
Collaborator

@Pterosaur Pterosaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abdosi
Copy link

abdosi commented Nov 12, 2025

@judyjoseph : are we good to merge this ?

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

8 participants