Lines Matching refs:bytes
22 * The minimum message length (input and output length), in bytes, for all
37 * bytes), so we also need to use a strong hash to abbreviate long names.
50 * didn't provide one; up to 149 bytes of the ciphertext name; and for
51 * ciphertexts longer than 149 bytes, also the SHA-256 of the remaining bytes.
60 u8 bytes[149];
62 }; /* 189 bytes => 252 bytes base64url-encoded, which is <= NAME_MAX (255) */
111 * pad it with the needed number of NUL bytes.
199 * @srclen: the length of @src in bytes
207 * Return: the length of the resulting base64url-encoded string in bytes.
233 * @srclen: the length of @src in bytes
242 * Return: the length of the resulting decoded binary data in bytes,
396 offsetof(struct fscrypt_nokey_name, bytes));
397 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) !=
404 if (iname->len <= sizeof(nokey_name.bytes)) {
405 memcpy(nokey_name.bytes, iname->name, iname->len);
406 size = offsetof(struct fscrypt_nokey_name, bytes[iname->len]);
408 memcpy(nokey_name.bytes, iname->name, sizeof(nokey_name.bytes));
410 sha256(&iname->name[sizeof(nokey_name.bytes)],
411 iname->len - sizeof(nokey_name.bytes),
497 if (ret < (int)offsetof(struct fscrypt_nokey_name, bytes[1]) ||
510 fname->disk_name.name = nokey_name->bytes;
512 ret - offsetof(struct fscrypt_nokey_name, bytes);
526 * @de_name_len: the length of @de_name in bytes
548 if (de_name_len <= sizeof(nokey_name->bytes))
550 if (memcmp(de_name, nokey_name->bytes, sizeof(nokey_name->bytes)))
552 sha256(&de_name[sizeof(nokey_name->bytes)],
553 de_name_len - sizeof(nokey_name->bytes), digest);