105204290SJason King /* 205204290SJason King * This file and its contents are supplied under the terms of the 305204290SJason King * Common Development and Distribution License (), version 1.0. 405204290SJason King * You may only use this file in accordance with the terms of version 505204290SJason King * 1.0 of the CDDL. 605204290SJason King * 705204290SJason King * A full copy of the text of the CDDL should have accompanied this 805204290SJason King * source. A copy of the CDDL is also available via the Internet at 905204290SJason King * http://www.illumos.org/license/CDDL. 1005204290SJason King */ 1105204290SJason King 1205204290SJason King /* 13*080adf91SPatrick Mooney * Copyright 2020 Oxide Computer Company 1405204290SJason King */ 1505204290SJason King 16*080adf91SPatrick Mooney #include <stdio.h> 17*080adf91SPatrick Mooney #include <sys/types.h> 1805204290SJason King 19*080adf91SPatrick Mooney #include "cryptotest.h" 20*080adf91SPatrick Mooney #include "parser_runner.h" 2105204290SJason King 22*080adf91SPatrick Mooney int main(void)23*080adf91SPatrick Mooneymain(void) 24*080adf91SPatrick Mooney { 25*080adf91SPatrick Mooney int errs = 0; 2605204290SJason King 27*080adf91SPatrick Mooney errs += digest_runner(SUN_CKM_SHA512_224, "SHA512_224ShortMsg.rsp", 28); 28*080adf91SPatrick Mooney errs += digest_runner(SUN_CKM_SHA512_224, "SHA512_224LongMsg.rsp", 28); 2905204290SJason King 30*080adf91SPatrick Mooney if (errs != 0) 31*080adf91SPatrick Mooney (void) fprintf(stderr, "%d tests failed\n", errs); 3205204290SJason King 33*080adf91SPatrick Mooney return (errs); 34*080adf91SPatrick Mooney } 35