LCOV - code coverage report
Current view: top level - crypto - s2n_rsa_pss.c (source / functions) Hit Total Coverage
Test: unit_test_coverage.info Lines: 7 7 100.0 %
Date: 2025-08-15 07:28:39 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
       3                 :            :  *
       4                 :            :  * Licensed under the Apache License, Version 2.0 (the "License").
       5                 :            :  * You may not use this file except in compliance with the License.
       6                 :            :  * A copy of the License is located at
       7                 :            :  *
       8                 :            :  *  http://aws.amazon.com/apache2.0
       9                 :            :  *
      10                 :            :  * or in the "license" file accompanying this file. This file is distributed
      11                 :            :  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
      12                 :            :  * express or implied. See the License for the specific language governing
      13                 :            :  * permissions and limitations under the License.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "crypto/s2n_rsa_pss.h"
      17                 :            : 
      18                 :            : #include <openssl/evp.h>
      19                 :            : #include <openssl/rsa.h>
      20                 :            : #include <stdint.h>
      21                 :            : 
      22                 :            : #include "crypto/s2n_hash.h"
      23                 :            : #include "crypto/s2n_pkey.h"
      24                 :            : #include "crypto/s2n_pkey_evp.h"
      25                 :            : #include "error/s2n_errno.h"
      26                 :            : #include "stuffer/s2n_stuffer.h"
      27                 :            : #include "utils/s2n_blob.h"
      28                 :            : #include "utils/s2n_random.h"
      29                 :            : #include "utils/s2n_safety.h"
      30                 :            : 
      31                 :            : /* Checks whether PSS Certs is supported */
      32                 :            : bool s2n_is_rsa_pss_certs_supported()
      33                 :     159623 : {
      34                 :     159623 :     return RSA_PSS_CERTS_SUPPORTED;
      35                 :     159623 : }
      36                 :            : 
      37                 :            : bool s2n_is_rsa_pss_signing_supported()
      38                 :     159606 : {
      39                 :     159606 : #if defined(S2N_LIBCRYPTO_SUPPORTS_RSA_PSS_SIGNING)
      40                 :     159606 :     return true;
      41                 :            : #else
      42                 :            :     return false;
      43                 :            : #endif
      44                 :     159606 : }

Generated by: LCOV version 1.14