Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libspdm x509 parts #7869

Merged
merged 1 commit into from
Sep 4, 2024
Merged

libspdm x509 parts #7869

merged 1 commit into from
Sep 4, 2024

Conversation

julek-wolfssl
Copy link
Member

@julek-wolfssl julek-wolfssl commented Aug 14, 2024

  • RsaFunctionPrivate: detect when only n,e,d are available
  • wolfSSL_EVP_add_digest: return success
  • wolfSSL_EVP_add_cipher: return success
  • wolfSSL_BN_bin2bn: accept NULL data if len is 0 (checked in mp_read_unsigned_bin)
  • wolfssl_read_bio: advance correct bio
  • wolfSSL_X509_set_ext: return raw extension data for BASIC_CA_OID
  • Implement
    • sk_X509_EXTENSION_free
    • d2i_EC_PUBKEY_bio
    • d2i_RSA_PUBKEY_bio
    • d2i_X509_REQ_INFO
    • X509_REQ_INFO_free
    • ASN1_TIME_set_string_X509

@julek-wolfssl julek-wolfssl force-pushed the libspdm-x509 branch 7 times, most recently from 8a1c07a to 30522ab Compare August 19, 2024 08:54
@julek-wolfssl julek-wolfssl marked this pull request as ready for review August 19, 2024 09:53
@julek-wolfssl
Copy link
Member Author

Failures (not sure about fips-ready-config) not related to PR.

@douzzer
Copy link
Contributor

douzzer commented Aug 23, 2024

retest this please. .

Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

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

found some minor stuff.

@@ -25546,7 +25546,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t openssl_test(void)
return WC_TEST_RET_ENC_NC;
}

if (EVP_CIPHER_CTX_block_size(NULL) != WC_NO_ERR_TRACE(BAD_FUNC_ARG))
if (EVP_CIPHER_CTX_block_size(NULL) != WOLFSSL_FAILURE)
Copy link
Contributor

Choose a reason for hiding this comment

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

this also needs WC_NO_ERR_TRACE() now (tracing WOLFSSL_FAILURE was added in #7917).

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@@ -25557,7 +25557,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t openssl_test(void)
if (EVP_CIPHER_CTX_block_size(en) != en->block_size)
return WC_TEST_RET_ENC_NC;

if (EVP_CIPHER_block_size(NULL) != WC_NO_ERR_TRACE(BAD_FUNC_ARG))
if (EVP_CIPHER_block_size(NULL) != WOLFSSL_FAILURE)
Copy link
Contributor

Choose a reason for hiding this comment

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

WC_NO_ERR_TRACE().

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

if (EVP_CIPHER_CTX_set_padding(NULL, 0) !=
WC_NO_ERR_TRACE(BAD_FUNC_ARG))
{
if (EVP_CIPHER_CTX_set_padding(NULL, 0) != WOLFSSL_FAILURE)
Copy link
Contributor

Choose a reason for hiding this comment

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

WC_NO_ERR_TRACE()

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@douzzer douzzer assigned julek-wolfssl and unassigned wolfSSL-Bot Sep 2, 2024
- RsaFunctionPrivate: detect when only n,e,d are available
- wolfSSL_EVP_add_digest: return success
- wolfSSL_EVP_add_cipher: return success
- wolfSSL_BN_bin2bn: accept NULL data if len is 0 (checked in mp_read_unsigned_bin)
- wolfssl_read_bio: advance correct bio
- wolfSSL_X509_set_ext: return raw extension data for BASIC_CA_OID
- Implement
  - sk_X509_EXTENSION_free
  - d2i_EC_PUBKEY_bio
  - d2i_RSA_PUBKEY_bio
  - d2i_X509_REQ_INFO
  - X509_REQ_INFO_free
  - ASN1_TIME_set_string_X509
@douzzer douzzer merged commit 121b8c5 into wolfSSL:master Sep 4, 2024
129 checks passed
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.

3 participants