Lines Matching full:assert
180 assert(crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, in tv2()
211 assert(out != NULL); in tv3()
214 assert(passwd != NULL); in tv3()
295 assert(str_out[crypto_pwhash_argon2id_STRBYTES - 1U] == 0); in str_tests()
362 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT, in str_tests()
364 assert(crypto_pwhash_argon2id_str_verify(str_out, "test", 4) == 0); in str_tests()
365 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, in str_tests()
367 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, in str_tests()
369 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, in str_tests()
371 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, 0, 0) == 1); in str_tests()
372 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, 0, 0) == -1); in str_tests()
373 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out + 1, in str_tests()
375 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, 0, 0) == -1); in str_tests()
376 assert(crypto_pwhash_argon2i_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1); in str_tests()
377 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT, in str_tests()
379 assert(crypto_pwhash_argon2i_str_verify(str_out, "test", 4) == 0); in str_tests()
380 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, in str_tests()
382 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, in str_tests()
384 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, in str_tests()
386 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, 0, 0) == 1); in str_tests()
387 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, 0, 0) == -1); in str_tests()
388 assert(crypto_pwhash_argon2i_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1); in str_tests()
389 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out + 1, in str_tests()
404 assert(crypto_pwhash_bytes_min() > 0U); in main()
405 assert(crypto_pwhash_bytes_max() > crypto_pwhash_bytes_min()); in main()
406 assert(crypto_pwhash_passwd_max() > crypto_pwhash_passwd_min()); in main()
407 assert(crypto_pwhash_saltbytes() > 0U); in main()
408 assert(crypto_pwhash_strbytes() > 1U); in main()
409 assert(crypto_pwhash_strbytes() > strlen(crypto_pwhash_strprefix())); in main()
411 assert(crypto_pwhash_opslimit_min() > 0U); in main()
412 assert(crypto_pwhash_opslimit_max() > 0U); in main()
413 assert(crypto_pwhash_memlimit_min() > 0U); in main()
414 assert(crypto_pwhash_memlimit_max() > 0U); in main()
415 assert(crypto_pwhash_opslimit_interactive() > 0U); in main()
416 assert(crypto_pwhash_memlimit_interactive() > 0U); in main()
417 assert(crypto_pwhash_opslimit_moderate() > 0U); in main()
418 assert(crypto_pwhash_memlimit_moderate() > 0U); in main()
419 assert(crypto_pwhash_opslimit_sensitive() > 0U); in main()
420 assert(crypto_pwhash_memlimit_sensitive() > 0U); in main()
421 assert(strcmp(crypto_pwhash_primitive(), "argon2i") == 0); in main()
423 assert(crypto_pwhash_bytes_min() == crypto_pwhash_BYTES_MIN); in main()
424 assert(crypto_pwhash_bytes_max() == crypto_pwhash_BYTES_MAX); in main()
425 assert(crypto_pwhash_passwd_min() == crypto_pwhash_PASSWD_MIN); in main()
426 assert(crypto_pwhash_passwd_max() == crypto_pwhash_PASSWD_MAX); in main()
427 assert(crypto_pwhash_saltbytes() == crypto_pwhash_SALTBYTES); in main()
428 assert(crypto_pwhash_strbytes() == crypto_pwhash_STRBYTES); in main()
430 assert(crypto_pwhash_opslimit_min() == crypto_pwhash_OPSLIMIT_MIN); in main()
431 assert(crypto_pwhash_opslimit_max() == crypto_pwhash_OPSLIMIT_MAX); in main()
432 assert(crypto_pwhash_memlimit_min() == crypto_pwhash_MEMLIMIT_MIN); in main()
433 assert(crypto_pwhash_memlimit_max() == crypto_pwhash_MEMLIMIT_MAX); in main()
434 assert(crypto_pwhash_opslimit_interactive() == in main()
436 assert(crypto_pwhash_memlimit_interactive() == in main()
438 assert(crypto_pwhash_opslimit_moderate() == in main()
440 assert(crypto_pwhash_memlimit_moderate() == in main()
442 assert(crypto_pwhash_opslimit_sensitive() == in main()
444 assert(crypto_pwhash_memlimit_sensitive() == in main()
447 assert(crypto_pwhash_argon2id_bytes_min() == crypto_pwhash_bytes_min()); in main()
448 assert(crypto_pwhash_argon2id_bytes_max() == crypto_pwhash_bytes_max()); in main()
449 assert(crypto_pwhash_argon2id_passwd_min() == crypto_pwhash_passwd_min()); in main()
450 assert(crypto_pwhash_argon2id_passwd_max() == crypto_pwhash_passwd_max()); in main()
451 assert(crypto_pwhash_argon2id_saltbytes() == crypto_pwhash_saltbytes()); in main()
452 assert(crypto_pwhash_argon2id_strbytes() == crypto_pwhash_strbytes()); in main()
453 assert(strcmp(crypto_pwhash_argon2id_strprefix(), in main()
455 assert(crypto_pwhash_argon2id_opslimit_min() == in main()
457 assert(crypto_pwhash_argon2id_opslimit_max() == in main()
459 assert(crypto_pwhash_argon2id_memlimit_min() == in main()
461 assert(crypto_pwhash_argon2id_memlimit_max() == in main()
463 assert(crypto_pwhash_argon2id_opslimit_interactive() == in main()
465 assert(crypto_pwhash_argon2id_opslimit_moderate() == in main()
467 assert(crypto_pwhash_argon2id_opslimit_sensitive() == in main()
469 assert(crypto_pwhash_argon2id_memlimit_interactive() == in main()
471 assert(crypto_pwhash_argon2id_memlimit_moderate() == in main()
473 assert(crypto_pwhash_argon2id_memlimit_sensitive() == in main()
475 assert(crypto_pwhash_alg_argon2id13() == in main()
477 assert(crypto_pwhash_alg_argon2i13() == crypto_pwhash_ALG_ARGON2I13); in main()
478 assert(crypto_pwhash_alg_argon2i13() != crypto_pwhash_alg_default()); in main()
479 assert(crypto_pwhash_alg_argon2id13() == crypto_pwhash_ALG_ARGON2ID13); in main()
480 assert(crypto_pwhash_alg_argon2id13() != crypto_pwhash_alg_argon2i13()); in main()
481 assert(crypto_pwhash_alg_argon2id13() == crypto_pwhash_alg_default()); in main()
483 assert(crypto_pwhash_argon2id(NULL, 0, NULL, 0, NULL, in main()
487 assert(crypto_pwhash_argon2id(NULL, 0, NULL, 0, NULL, in main()
491 assert(crypto_pwhash_argon2i(NULL, 0, NULL, 0, NULL, in main()
495 assert(crypto_pwhash_argon2i(NULL, 0, NULL, 0, NULL, in main()