mbedtls/include/mbedtls
Nick Child bb82ab764f pkcs7: Respond to feeback on parsing logic
After recieving review on the pkcs7 parsing functions, attempt
to use better API's, increase consisitency and use better
documentation. The changes are in response to the following
comments:
 - use mbedtls_x509_crt_parse_der instead of mbedtls_x509_crt_parse [1]
 - make lack of support for authenticatedAttributes more clear [2]
 - increment pointer in pkcs7_get_content_info_type rather than after [3]
 - rename `start` to `p` for consistency in mbedtls_pkcs7_parse_der [4]

[1] https://github.com/Mbed-TLS/mbedtls/pull/3431#discussion_r992509630
[2] https://github.com/Mbed-TLS/mbedtls/pull/3431#discussion_r992562450
[3] https://github.com/Mbed-TLS/mbedtls/pull/3431#discussion_r992741877
[4] https://github.com/Mbed-TLS/mbedtls/pull/3431#discussion_r992754103

Signed-off-by: Nick Child <nick.child@ibm.com>
2022-10-28 12:28:54 -05:00
..
aes.h Specify unit for rk_offset in AES context 2022-06-29 16:17:50 +01:00
aria.h Fix spelling and typographical errors found by cspell 2022-05-26 11:51:00 +01:00
asn1.h mbedtls: add support for pkcs7 2022-09-01 19:45:33 -05:00
asn1write.h Fix a/an typos in doxygen and other comments 2022-07-28 05:50:56 +01:00
base64.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
bignum.h Be explicit about constant time bignum functions that must take a 0 or 1 condition value 2022-08-18 14:09:18 +01:00
build_info.h Bump version to 3.2.1 2022-07-12 10:51:55 +01:00
camellia.h Fix spelling and typographical errors found by cspell 2022-05-26 11:51:00 +01:00
ccm.h Remove invalid comments in CCM API 2021-10-27 11:25:08 +02:00
chacha20.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
chachapoly.h Fix spelling and typographical errors found by cspell 2022-05-26 11:51:00 +01:00
check_config.h mbedtls: add support for pkcs7 2022-09-01 19:45:33 -05:00
cipher.h Merge pull request #5813 from mprse/deprecate_mbedtls_cipher_setup_psa 2022-05-31 10:56:52 +02:00
cmac.h Reword documentation of CMAC operations 2021-12-06 18:58:02 +00:00
compat-2.x.h Code review fixes 2021-06-18 12:59:38 +02:00
config_psa.h PKCS#1 v2.1 now builds with PSA if no MD_C 2022-08-11 12:47:02 +02:00
constant_time.h Fix documentation and comments 2021-11-03 16:13:32 +01:00
ctr_drbg.h Add missing asterisk to doxygen closures 2021-12-28 16:22:52 +01:00
debug.h Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00
des.h Change DES and AES functions to MBEDTLS_CHECK_RETURN_TYPICAL 2021-09-27 19:15:56 +02:00
dhm.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
ecdh.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
ecdsa.h Merge pull request #4694 from gilles-peskine-arm/out_size-3.0 2021-06-29 09:43:17 +02:00
ecjpake.h Remove md_info by md_type in ecjpake context, use mbedtls_hash_info_get_size() to get hash length 2022-08-19 11:49:22 +02:00
ecp.h Fix minor typos 2022-08-22 16:05:58 +02:00
entropy.h Add missing asterisk to doxygen closures 2021-12-28 16:22:52 +01:00
error.h mbedtls: add support for pkcs7 2022-09-01 19:45:33 -05:00
gcm.h Change error code for MBEDTLS_ERR_GCM_BUFFER_TOO_SMALL. 2021-10-22 10:33:32 +02:00
hkdf.h Add missing asterisk to doxygen closures 2021-12-28 16:22:52 +01:00
hmac_drbg.h Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00
mbedtls_config.h mbedtls: add support for pkcs7 2022-09-01 19:45:33 -05:00
md.h Fix a/an typos in doxygen and other comments 2022-07-28 05:50:56 +01:00
md5.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
memory_buffer_alloc.h Merge pull request #5381 from mpg/benchmark-ecc-heap 2022-04-22 16:43:11 +02:00
net_sockets.h mbedtls_net_context: make fd public on Unix/POSIX platforms 2021-08-31 22:54:27 +02:00
nist_kw.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
oid.h mbedtls: add support for pkcs7 2022-09-01 19:45:33 -05:00
pem.h Add accessor to get buf from mbedtls_pem_context 2022-02-08 14:53:46 -05:00
pk.h Save code size by calling get_type only once 2022-06-23 09:43:39 +02:00
pkcs5.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
pkcs7.h pkcs7: Respond to feeback on parsing logic 2022-10-28 12:28:54 -05:00
pkcs12.h Documentation fixes 2021-11-30 15:37:49 +00:00
platform.h Fix Doxygen documentation attached to non-existent elements 2022-06-30 19:32:02 +02:00
platform_time.h doxygen: remove empty platform_time configuration section 2021-12-30 12:34:00 +01:00
platform_util.h Fix spelling and typographical errors found by cspell 2022-05-26 11:51:00 +01:00
poly1305.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
private_access.h Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00
psa_util.h Migrate from old inline to new actual function. 2022-07-18 21:28:38 +02:00
ripemd160.h Fix a/an typos in doxygen and other comments 2022-07-28 05:50:56 +01:00
rsa.h Fix a/an typos in doxygen and other comments 2022-07-28 05:50:56 +01:00
sha1.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
sha256.h Add return info to sha256 docs 2021-10-22 22:05:10 +02:00
sha512.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
ssl.h Fix minor typos 2022-08-22 16:05:58 +02:00
ssl_cache.h Add missing asterisk to doxygen closures 2021-12-28 16:22:52 +01:00
ssl_ciphersuites.h Rename mbedtls_ssl_get_ciphersuite_sig_pk_ext_XXX in mbedtls_ssl_get_ciphersuite_sig_pk_ext_XXX() 2022-06-28 18:12:17 +02:00
ssl_cookie.h Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00
ssl_ticket.h Respect MBEDTLS_HAVE_TIME in ssl_ticket 2022-08-17 14:20:36 +01:00
threading.h Move MBEDTLS_ERR_xxx Doxygen comments before the definition 2021-08-02 22:51:03 +02:00
timing.h Add accessor for timing final delay 2022-03-21 15:26:19 +00:00
version.h Correct documentation references to Mbed TLS 2021-06-28 10:37:19 +01:00
x509.h Inline mbedtls_x509_dn_get_next() in x509.h 2022-06-27 14:20:07 -04:00
x509_crl.h Add missing asterisk to doxygen closures 2021-12-28 16:22:52 +01:00
x509_crt.h Adjust declared dependencies in library/x509* 2022-08-19 10:15:56 +02:00
x509_csr.h Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00