Home | History | Annotate | Download | only in default

Lines Matching refs:assert

184     assert(crypto_pwhash_argon2i(out, sizeof out, "password", strlen("password"), salt,
214 assert(out != NULL);
217 assert(passwd != NULL);
282 assert(str_out[crypto_pwhash_STRBYTES - 1U] == 0);
363 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT,
365 assert(crypto_pwhash_argon2i_str_verify(str_out, "test", 4) == 0);
366 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out,
368 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out,
370 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out,
372 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, 0, 0) == 1);
373 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, 0, 0) == -1);
374 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out + 1,
376 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, 0, 0) == -1);
377 assert(crypto_pwhash_argon2id_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1);
378 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT,
380 assert(crypto_pwhash_argon2id_str_verify(str_out, "test", 4) == 0);
381 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out,
383 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out,
385 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out,
387 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out, 0, 0) == 1);
388 assert(crypto_pwhash_argon2i_str_needs_rehash(str_out, 0, 0) == -1);
389 assert(crypto_pwhash_argon2id_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1);
390 assert(crypto_pwhash_argon2id_str_needs_rehash(str_out + 1,
405 assert(crypto_pwhash_argon2i_bytes_min() > 0U);
406 assert(crypto_pwhash_argon2i_bytes_max() > crypto_pwhash_argon2i_bytes_min());
407 assert(crypto_pwhash_argon2i_passwd_max() > crypto_pwhash_argon2i_passwd_min());
408 assert(crypto_pwhash_argon2i_saltbytes() > 0U);
409 assert(crypto_pwhash_argon2i_strbytes() > 1U);
410 assert(crypto_pwhash_argon2i_strbytes() > strlen(crypto_pwhash_argon2i_strprefix()));
412 assert(crypto_pwhash_argon2i_opslimit_min() > 0U);
413 assert(crypto_pwhash_argon2i_opslimit_max() > 0U);
414 assert(crypto_pwhash_argon2i_memlimit_min() > 0U);
415 assert(crypto_pwhash_argon2i_memlimit_max() > 0U);
416 assert(crypto_pwhash_argon2i_opslimit_interactive() > 0U);
417 assert(crypto_pwhash_argon2i_memlimit_interactive() > 0U);
418 assert(crypto_pwhash_argon2i_opslimit_moderate() > 0U);
419 assert(crypto_pwhash_argon2i_memlimit_moderate() > 0U);
420 assert(crypto_pwhash_argon2i_opslimit_sensitive() > 0U);
421 assert(crypto_pwhash_argon2i_memlimit_sensitive() > 0U);
423 assert(crypto_pwhash_argon2i_bytes_min() == crypto_pwhash_argon2i_BYTES_MIN);
424 assert(crypto_pwhash_argon2i_bytes_max() == crypto_pwhash_argon2i_BYTES_MAX);
425 assert(crypto_pwhash_argon2i_passwd_min() == crypto_pwhash_argon2i_PASSWD_MIN);
426 assert(crypto_pwhash_argon2i_passwd_max() == crypto_pwhash_argon2i_PASSWD_MAX);
427 assert(crypto_pwhash_argon2i_saltbytes() == crypto_pwhash_argon2i_SALTBYTES);
428 assert(crypto_pwhash_argon2i_strbytes() == crypto_pwhash_argon2i_STRBYTES);
430 assert(crypto_pwhash_argon2i_opslimit_min() == crypto_pwhash_argon2i_OPSLIMIT_MIN);
431 assert(crypto_pwhash_argon2i_opslimit_max() == crypto_pwhash_argon2i_OPSLIMIT_MAX);
432 assert(crypto_pwhash_argon2i_memlimit_min() == crypto_pwhash_argon2i_MEMLIMIT_MIN);
433 assert(crypto_pwhash_argon2i_memlimit_max() == crypto_pwhash_argon2i_MEMLIMIT_MAX);
434 assert(crypto_pwhash_argon2i_opslimit_interactive() ==
436 assert(crypto_pwhash_argon2i_memlimit_interactive() ==
438 assert(crypto_pwhash_argon2i_opslimit_moderate() ==
440 assert(crypto_pwhash_argon2i_memlimit_moderate() ==
442 assert(crypto_pwhash_argon2i_opslimit_sensitive() ==
444 assert(crypto_pwhash_argon2i_memlimit_sensitive() ==
447 assert(crypto_pwhash_argon2i_alg_argon2i13() == crypto_pwhash_argon2i_ALG_ARGON2I13);