Skip to content

Conversation

@bal-e
Copy link
Contributor

@bal-e bal-e commented Nov 25, 2025

This imports KMIP-related changes from NLnetLabs/domain#540. It avoids making further changes to domain, although some signing-related changes in that PR still need to be merged. It exposes the same API as in that PR, except that KMIP is no longer part of domain's KeyPair enum; it needs to be imported and used more explicitly. This will require a minor change in downstream codebases (i.e. Cascade and dnst keyset) that rely on this code.

This copies the 'src/crypto/kmip.rs' file from
the 'poc-kmip-crypto-impl' pull request on Domain:
<NLnetLabs/domain#540>.

The file has not been modified at all, to serve as a good base for
reviewing changes.  There are dozens of compilation failures that will
be addressed in the following commits.
Some of the dependencies, such as 'bcder', could be replaced with simple
manual implementations.  Importantly, the 'openssl' dependency has not
been resolved; it will be replaced with use of 'bcder'.
This replaces the dependency on OpenSSL.
'domain' uses 'SignError' for representing on-disk cryptography
failures.  This is not appropriate for KMIP, but currently we implement
the same 'SignRaw' trait anyway.  This means we can't stuff enough
error information in the 'SignError' type.  We should stop implementing
'SignRaw', use a custom error type, and provide an asynchronous API.
@bal-e bal-e requested a review from ximon18 November 25, 2025 19:22
@bal-e bal-e self-assigned this Nov 25, 2025
@bal-e bal-e merged commit 0d238ff into main Dec 5, 2025
14 checks passed
@bal-e bal-e deleted the initial-impl branch December 5, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant