From a0256fcf89aec7d39aeb3fc7599894efe5518ed5 Mon Sep 17 00:00:00 2001 From: jkelly088 Date: Tue, 1 Jun 2021 14:20:19 -0400 Subject: [PATCH] Initial mbedTLS function support, not yet implemented as mbedtls does not currently support pkcs7 --- src/crypto/CHIPCryptoPALmbedTLS.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/crypto/CHIPCryptoPALmbedTLS.cpp b/src/crypto/CHIPCryptoPALmbedTLS.cpp index ad6480cd913ac4..3bc041be0273c5 100644 --- a/src/crypto/CHIPCryptoPALmbedTLS.cpp +++ b/src/crypto/CHIPCryptoPALmbedTLS.cpp @@ -1198,5 +1198,26 @@ CHIP_ERROR Spake2p_P256_SHA256_HKDF_HMAC::PointIsValid(void * R) return CHIP_NO_ERROR; } +CHIP_ERROR LoadCertsFromPKCS7(const uint8_t * pkcs7, X509DerCertificate * x509list, uint32_t * max_certs) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} + +CHIP_ERROR LoadCertFromPKCS7(const uint8_t * pkcs7, X509DerCertificate * x509list, uint32_t n_cert) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} + +CHIP_ERROR GetNumberOfCertsFromPKCS7(const uint8_t * pkcs7, uint32_t * n_certs) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} + +CHIP_ERROR ValidateCertificateChain(const uint8_t * rootCertificate, size_t rootCertificateLen, const uint8_t * caCertificate, + size_t caCertificateLen, const uint8_t * leafCertificate, size_t leafCertificateLen) +{ + return CHIP_ERROR_NOT_IMPLEMENTED; +} + } // namespace Crypto } // namespace chip