Skip to content

Commit b6cfc4a

Browse files
committed
Add TODO about Poly1305 alignment requirement.
1 parent ad8b0e9 commit b6cfc4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/aead/chacha20_poly1305.rs

+4
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ fn poly1305_init(state: &mut [u8; POLY1305_STATE_LEN],
166166
}
167167
}
168168

169+
// XXX: The BoringSSL code says that `poly1305_finish` requires a
170+
// 16-byte-aligned output, but we're not ensuring 16-byte alignment because we
171+
// can't in Rust yet. Where does this alignment requirement come from?
172+
// TODO: address this.
169173
#[inline(always)]
170174
fn poly1305_finish(state: &mut [u8; POLY1305_STATE_LEN],
171175
tag_out: &mut [u8; aead::TAG_LEN]) {

0 commit comments

Comments
 (0)