LCOV - code coverage report
Current view: top level - drivers/crypto/openssl - compat.h (source / functions) Hit Total Coverage
Test: Code coverage Lines: 6 6 100.0 %
Date: 2026-07-01 18:02:41 Functions: 0 0 -
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2018 Cavium Networks
       3                 :            :  */
       4                 :            : 
       5                 :            : #ifndef __RTA_COMPAT_H__
       6                 :            : #define __RTA_COMPAT_H__
       7                 :            : 
       8                 :            : static __rte_always_inline void
       9                 :            : free_hmac_ctx(EVP_MAC_CTX *ctx)
      10                 :            : {
      11                 :        719 :         EVP_MAC_CTX_free(ctx);
      12                 :         87 : }
      13                 :            : 
      14                 :            : static __rte_always_inline void
      15                 :            : free_cmac_ctx(EVP_MAC_CTX *ctx)
      16                 :            : {
      17                 :         54 :         EVP_MAC_CTX_free(ctx);
      18                 :          6 : }
      19                 :            : 
      20                 :            : static __rte_always_inline void
      21                 :            : set_dsa_sign(DSA_SIG *sign, BIGNUM *r, BIGNUM *s)
      22                 :            : {
      23                 :          1 :         DSA_SIG_set0(sign, r, s);
      24                 :            : }
      25                 :            : 
      26                 :            : static __rte_always_inline void
      27                 :            : get_dsa_sign(DSA_SIG *sign, const BIGNUM **r, const BIGNUM **s)
      28                 :            : {
      29                 :          1 :         DSA_SIG_get0(sign, r, s);
      30                 :            : }
      31                 :            : 
      32                 :            : #endif /* __RTA_COMPAT_H__ */

Generated by: LCOV version 1.14