Skip to content

Support PBEKeys in a Bouncy Castle FIPS library #2164

Description

@fb-fr

Currently, the Bouncy Castle FIPS KeyStore (BCFKS) lacks a direct mechanism for storing generic passwords or password-based encryption (PBE) keys. The common workaround is to store a password as an HMAC key, which is semantically incorrect and misleading.

This request is to add support for storing and retrieving PBEKeys within the Bouncy Castle FIPS KeyStore.

This would allow the BCFKS provider to recognise, store, and correctly retrieve entries of type PBEKey. This would also allow users to store passwords and other PBE-based secrets in a semantically correct format.

Activity

  1. dghgit commented on Sep 23, 2025

    @dghgit
    Contributor

    Okay, we'll add it the list. We'll probably do it in bc-java first, it may take a while to get into a FIPS module, although once the support is done, as long as the FIPS import requirements for keys are followed it should be possible to have it as an add on.

  2. self-assigned this
    on May 1, 2026
  3. dghgit commented on May 2, 2026

    @dghgit
    Contributor

    This is now added to BCFKS in bc-java.

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions