Skip to content

Mbed TLS platform

File SolidSyslogMbedTlsHmacSha256PolicyErrors.h

FileList > Interface > SolidSyslogMbedTlsHmacSha256PolicyErrors.h

Error codes and Source identity for the MbedTlsHmacSha256Policy.

  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogMbedTlsHmacSha256PolicyErrors

Detail codes for events whose Source is MbedTlsHmacSha256PolicyErrorSource.

enum SolidSyslogMbedTlsHmacSha256PolicyErrors {
    SOLIDSYSLOG_MBEDTLS_HMAC_SHA256_POLICY_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_MBEDTLS_HMAC_SHA256_POLICY_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_MBEDTLS_HMAC_SHA256_POLICY_ERROR_BAD_CONFIG,
    SOLIDSYSLOG_MBEDTLS_HMAC_SHA256_POLICY_ERROR_KEY_UNAVAILABLE,
    SOLIDSYSLOG_MBEDTLS_HMAC_SHA256_POLICY_ERROR_KEY_TOO_SHORT,
    SOLIDSYSLOG_MBEDTLS_HMAC_SHA256_POLICY_ERROR_HMAC_FAILED,
    SOLIDSYSLOG_MBEDTLS_HMAC_SHA256_POLICY_ERROR_MAX
};

A handler reads these off event->Detail after matching event->Source; the members name their own fault. KEY_TOO_SHORT is raised when GetKey returns a key below the SHA-256 output length (32 bytes) - the policy fails closed rather than seal with a cryptographically worthless MAC. A tag mismatch on open is silent (the expected tamper verdict), so no HMAC_FAILED for that.


Public Attributes Documentation

MbedTlsHmacSha256PolicyErrorSource

Identity for events raised by an MbedTlsHmacSha256Policy.

const struct SolidSyslogErrorSource MbedTlsHmacSha256PolicyErrorSource;

A handler matches by address (event->Source == &MbedTlsHmacSha256PolicyErrorSource), then reads event->Detail as an enum SolidSyslogMbedTlsHmacSha256PolicyErrors.



The documentation for this class was generated from the following file Platform/MbedTls/Interface/SolidSyslogMbedTlsHmacSha256PolicyErrors.h