Lines Matching refs:b
202 struct dcp_blob_fmt *b = (struct dcp_blob_fmt *)p->blob; in trusted_dcp_seal() local
214 b->fmt_version = DCP_BLOB_VERSION; in trusted_dcp_seal()
215 get_random_bytes(b->nonce, AES_KEYSIZE_128); in trusted_dcp_seal()
218 ret = do_aead_crypto(p->key, b->payload, p->key_len, plain_blob_key, in trusted_dcp_seal()
219 b->nonce, true); in trusted_dcp_seal()
225 ret = encrypt_blob_key(plain_blob_key, b->blob_key); in trusted_dcp_seal()
231 put_unaligned_le32(p->key_len, &b->payload_len); in trusted_dcp_seal()
244 struct dcp_blob_fmt *b = (struct dcp_blob_fmt *)p->blob; in trusted_dcp_unseal() local
248 if (b->fmt_version != DCP_BLOB_VERSION) { in trusted_dcp_unseal()
250 b->fmt_version, DCP_BLOB_VERSION); in trusted_dcp_unseal()
255 p->key_len = le32_to_cpu(b->payload_len); in trusted_dcp_unseal()
270 ret = decrypt_blob_key(b->blob_key, plain_blob_key); in trusted_dcp_unseal()
276 ret = do_aead_crypto(b->payload, p->key, p->key_len + DCP_BLOB_AUTHLEN, in trusted_dcp_unseal()
277 plain_blob_key, b->nonce, false); in trusted_dcp_unseal()