Lines Matching refs:salt_len
370 size_t salt_len; in php_sha512_crypt_r() local
405 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
415 char *tmp = (char *) alloca(salt_len + 1 + __alignof__(uint64_t)); in php_sha512_crypt_r()
416 …alt = memcpy(tmp + __alignof__(uint64_t) - (uintptr_t)tmp % __alignof__(uint64_t), salt, salt_len); in php_sha512_crypt_r()
417 copied_salt[salt_len] = 0; in php_sha512_crypt_r()
429 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
440 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
492 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
499 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r()
500 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
520 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r()
554 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
555 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r()
612 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha512_crypt_r()
619 ZEND_SECURE_ZERO(copied_salt, salt_len); in php_sha512_crypt_r()