Lines Matching refs:st

28 static int self_test_digest(const ST_KAT_DIGEST *t, OSSL_SELF_TEST *st,  in self_test_digest()  argument
37 OSSL_SELF_TEST_onbegin(st, OSSL_SELF_TEST_TYPE_KAT_DIGEST, t->desc); in self_test_digest()
47 OSSL_SELF_TEST_oncorrupt_byte(st, out); in self_test_digest()
56 OSSL_SELF_TEST_onend(st, ok); in self_test_digest()
93 static int self_test_cipher(const ST_KAT_CIPHER *t, OSSL_SELF_TEST *st, in self_test_cipher() argument
102 OSSL_SELF_TEST_onbegin(st, OSSL_SELF_TEST_TYPE_KAT_CIPHER, t->base.desc); in self_test_cipher()
119 OSSL_SELF_TEST_oncorrupt_byte(st, ct_buf); in self_test_cipher()
142 OSSL_SELF_TEST_oncorrupt_byte(st, pt_buf); in self_test_cipher()
153 OSSL_SELF_TEST_onend(st, ret); in self_test_cipher()
202 static int self_test_kdf(const ST_KAT_KDF *t, OSSL_SELF_TEST *st, in self_test_kdf() argument
213 OSSL_SELF_TEST_onbegin(st, OSSL_SELF_TEST_TYPE_KAT_KDF, t->desc); in self_test_kdf()
241 OSSL_SELF_TEST_oncorrupt_byte(st, out); in self_test_kdf()
253 OSSL_SELF_TEST_onend(st, ret); in self_test_kdf()
257 static int self_test_drbg(const ST_KAT_DRBG *t, OSSL_SELF_TEST *st, in self_test_drbg() argument
270 OSSL_SELF_TEST_onbegin(st, OSSL_SELF_TEST_TYPE_DRBG, t->desc); in self_test_drbg()
346 OSSL_SELF_TEST_oncorrupt_byte(st, out); in self_test_drbg()
364 OSSL_SELF_TEST_onend(st, ret); in self_test_drbg()
370 OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_ka() argument
382 OSSL_SELF_TEST_onbegin(st, OSSL_SELF_TEST_TYPE_KAT_KA, t->desc); in self_test_ka()
429 OSSL_SELF_TEST_oncorrupt_byte(st, secret); in self_test_ka()
444 OSSL_SELF_TEST_onend(st, ret); in self_test_ka()
450 OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_digest_sign() argument
471 OSSL_SELF_TEST_onbegin(st, typ, t->desc); in self_test_digest_sign()
540 OSSL_SELF_TEST_oncorrupt_byte(st, sig); in self_test_digest_sign()
559 OSSL_SELF_TEST_onend(st, ret); in self_test_digest_sign()
568 static int self_test_digests(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_digests() argument
573 if (!self_test_digest(&st_kat_digest_tests[i], st, libctx)) in self_test_digests()
579 static int self_test_ciphers(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_ciphers() argument
584 if (!self_test_cipher(&st_kat_cipher_tests[i], st, libctx)) in self_test_ciphers()
590 static int self_test_kdfs(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_kdfs() argument
595 if (!self_test_kdf(&st_kat_kdf_tests[i], st, libctx)) in self_test_kdfs()
601 static int self_test_drbgs(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_drbgs() argument
606 if (!self_test_drbg(&st_kat_drbg_tests[i], st, libctx)) in self_test_drbgs()
612 static int self_test_kas(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_kas() argument
619 if (!self_test_ka(&st_kat_kas_tests[i], st, libctx)) in self_test_kas()
627 static int self_test_signatures(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in self_test_signatures() argument
632 if (!self_test_digest_sign(&st_kat_sign_tests[i], st, libctx)) in self_test_signatures()
783 int SELF_TEST_kats(OSSL_SELF_TEST *st, OSSL_LIB_CTX *libctx) in SELF_TEST_kats() argument
798 if (!self_test_digests(st, libctx)) in SELF_TEST_kats()
800 if (!self_test_ciphers(st, libctx)) in SELF_TEST_kats()
802 if (!self_test_signatures(st, libctx)) in SELF_TEST_kats()
804 if (!self_test_kdfs(st, libctx)) in SELF_TEST_kats()
806 if (!self_test_drbgs(st, libctx)) in SELF_TEST_kats()
808 if (!self_test_kas(st, libctx)) in SELF_TEST_kats()