Remove RNG from x509 and PK #194
No reviewers
Labels
No labels
api-break
approved
bug
component-docs
component-platform
component-test
dependencies
deprecation
DO-NOT-MERGE
enhancement
good first issue
help wanted
needs-adoption
needs-backports
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
resolved-after-1.1
single-reviewer
size-l
size-m
size-optimisation
size-s
size-xs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/TF-PSA-Crypto!194
Loading…
Reference in a new issue
No description provided.
Delete branch "remove-rng-from-pk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
remove the f_rng and p_rng parameter from x509 and PK.
resolves https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/169
Cross-depends on the associated mbedtls PR for a clean CI.
PR checklist
Looks pretty good to me, just two occurrences of a minor point.
Since this PR is a single commit (which makes sense), feel free to just amend it to remove the superfluous changes - and fix the commit message while at it.
@ -285,4 +285,2 @@typedef int (*mbedtls_pk_rsa_alt_sign_func)(void *ctx,int (*f_rng)(void *, unsigned char *, size_t),void *p_rng,mbedtls_md_type_t md_alg, unsigned int hashlen,[about the commit message] Minor: this is only about PK, we don't have any x509 in this repo.
Looks like a leftover from debugging, can you revert to
return ctx->...?@ -1303,20 +1260,16 @@ static int rsa_alt_sign_wrap(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg,return MBEDTLS_ERR_PK_BUFFER_TOO_SMALL;Same.
LGTM, thanks!
CI is green in the companion PR https://github.com/Mbed-TLS/mbedtls/pull/10037 which is also approved, so this can be merged.