Lines Matching refs:bytes
30 * bytes), so we also need to use a strong hash to abbreviate long names.
43 * didn't provide one; up to 149 bytes of the ciphertext name; and for
44 * ciphertexts longer than 149 bytes, also the SHA-256 of the remaining bytes.
53 u8 bytes[149];
55 }; /* 189 bytes => 252 bytes base64-encoded, which is <= NAME_MAX (255) */
99 * pad it with the needed number of NUL bytes.
184 * base64_encode() - base64-encode some bytes
185 * @src: the bytes to encode
186 * @len: number of bytes to encode
342 offsetof(struct fscrypt_nokey_name, bytes));
343 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) !=
350 if (iname->len <= sizeof(nokey_name.bytes)) {
351 memcpy(nokey_name.bytes, iname->name, iname->len);
352 size = offsetof(struct fscrypt_nokey_name, bytes[iname->len]);
354 memcpy(nokey_name.bytes, iname->name, sizeof(nokey_name.bytes));
356 sha256(&iname->name[sizeof(nokey_name.bytes)],
357 iname->len - sizeof(nokey_name.bytes),
443 if (ret < (int)offsetof(struct fscrypt_nokey_name, bytes[1]) ||
456 fname->disk_name.name = nokey_name->bytes;
458 ret - offsetof(struct fscrypt_nokey_name, bytes);
472 * @de_name_len: the length of @de_name in bytes
494 if (de_name_len <= sizeof(nokey_name->bytes))
496 if (memcmp(de_name, nokey_name->bytes, sizeof(nokey_name->bytes)))
498 sha256(&de_name[sizeof(nokey_name->bytes)],
499 de_name_len - sizeof(nokey_name->bytes), digest);