Skip to content

Conversation

@reaperhulk
Copy link
Member

No description provided.

let salt_bytes = if let Some(s) = salt {
s
} else {
pyo3::types::PyBytes::new(py, &vec![0u8; block_size_val]).into()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyBytes::new_with() and then no initializer, saves an alloc

));
}

// Check for block_size (required for HMAC)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what this comment means

@alex alex enabled auto-merge (squash) November 3, 2025 01:47
@alex alex merged commit f16df85 into pyca:main Nov 3, 2025
68 checks passed
@reaperhulk reaperhulk deleted the kdf-concat branch November 3, 2025 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants