openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libgcrypt/1.8.4-r0/libgcrypt-1.8.4/cipher/sha256.c
static gpg_err_code_t run_selftests(int algo, int extended,
                                    selftest_report_func_t report)
{
    gpg_err_code_t ec;

    switch (algo)
    {
        case GCRY_MD_SHA224:
            ec = selftests_sha224(extended, report);
            break;
        case GCRY_MD_SHA256:
            ec = selftests_sha256(extended, report);
            break;
        default:
            ec = GPG_ERR_DIGEST_ALGO;
            break;
    }
    return ec;
}
/* Run a full self-test for ALGO and return 0 on success.  */
Run a full self-test for ALGO and return 0 on success.
Run a full self - test for ALGO and return 0 on success .
static gpg_err_code_t run_selftests(int algo, int extended,
                                    selftest_report_func_t report)
{
    gpg_err_code_t ec;
    switch (algo)
    {
        case GCRY_MD_SHA224:
            ec = selftests_sha224(extended, report);
            break;
        case GCRY_MD_SHA256:
            ec = selftests_sha256(extended, report);
            break;
        default:
            ec = GPG_ERR_DIGEST_ALGO;
            break;
    }
    return ec;
}
static gpg_err_code_t run_selftests ( int algo , int extended , selftest_report_func_t report ) { gpg_err_code_t ec ; switch ( algo ) { case GCRY_MD_SHA224 : ec = selftests_sha224 ( extended , report ) ; break ; case GCRY_MD_SHA256 : ec = selftests_sha256 ( extended , report ) ; break ; default : ec = GPG_ERR_DIGEST_ALGO ; break ; } return ec ; }
Run a full self-test for ALGO and return 0 on success.
Run a full self - test for ALGO and return 0 on success .