Lines Matching refs:buflen
1234 size_t buflen; in kdf_argon2_ctx_set_secret() local
1245 if (!OSSL_PARAM_get_octet_string(p, (void **)&ctx->secret, 0, &buflen)) in kdf_argon2_ctx_set_secret()
1248 if (buflen > ARGON2_MAX_SECRET) { in kdf_argon2_ctx_set_secret()
1255 ctx->secretlen = (uint32_t) buflen; in kdf_argon2_ctx_set_secret()
1261 size_t buflen; in kdf_argon2_ctx_set_pwd() local
1272 if (!OSSL_PARAM_get_octet_string(p, (void **)&ctx->pwd, 0, &buflen)) in kdf_argon2_ctx_set_pwd()
1275 if (buflen > ARGON2_MAX_PWD_LENGTH) { in kdf_argon2_ctx_set_pwd()
1281 ctx->pwdlen = (uint32_t) buflen; in kdf_argon2_ctx_set_pwd()
1293 size_t buflen; in kdf_argon2_ctx_set_salt() local
1304 if (!OSSL_PARAM_get_octet_string(p, (void **)&ctx->salt, 0, &buflen)) in kdf_argon2_ctx_set_salt()
1307 if (buflen < ARGON2_MIN_SALT_LENGTH) { in kdf_argon2_ctx_set_salt()
1313 if (buflen > ARGON2_MAX_SALT_LENGTH) { in kdf_argon2_ctx_set_salt()
1319 ctx->saltlen = (uint32_t) buflen; in kdf_argon2_ctx_set_salt()
1331 size_t buflen; in kdf_argon2_ctx_set_ad() local
1342 if (!OSSL_PARAM_get_octet_string(p, (void **)&ctx->ad, 0, &buflen)) in kdf_argon2_ctx_set_ad()
1345 if (buflen > ARGON2_MAX_AD_LENGTH) { in kdf_argon2_ctx_set_ad()
1352 ctx->adlen = (uint32_t) buflen; in kdf_argon2_ctx_set_ad()