Lines Matching defs:buf
330 unsigned char buf[F2FS_MAX_SALT_SIZE];
342 strncpy((char *) buf, cp, sizeof(buf));
352 ret = ioctl(fd, F2FS_IOC_GET_ENCRYPTION_PWSALT, &buf);
363 uuid_unparse(buf, tmp);
384 buf[salt_len++] =
389 } else if (uuid_parse(cp, buf) == 0) {
402 memcpy(salt_buf, buf, salt_len);
469 unsigned char buf[SHA512_LENGTH + F2FS_MAX_PASSPHRASE_SIZE] = {0};
494 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size);
501 * buf: [previous hash || passphrase]
503 memcpy(buf, tempbuf, SHA512_LENGTH);
504 f2fs_sha512(buf, actual_buf_len, tempbuf);