tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: New function: consttime_memcmp(3)
- Subject: Re: New function: consttime_memcmp(3)
- From: "Kamil Rytarowski" <n54%gmx.com@localhost>
- Date: Mon, 16 Mar 2015 09:14:08 +0100
Me wrote:
> Taylor R Campbell wrote:
> >
> > Date: Mon, 16 Mar 2015 01:58:19 +0100
> > From: "Kamil Rytarowski" <n54%gmx.com@localhost>
> >
> > I'm attaching a patch against current adding a new libc and
> > kernel function: consttime_memcmp(3). The code is borrowed
> > from OpenBSD timingsafe_memcmp(3) [1].
> >
> > Why? What do you want to use this for?
> >
>
> My personal use-case is playing with the code from src/lib/libssl (applies for LibreSSL), which comes from OpenBSD.
[..]
> Instead of having a local copy or redesigning the code flow, I'm proposing the function to add to the base.
>
I've just checked the sources and replacing the algorithms with consttime_memequal(3) will easier then I thought.
Are you OK to add it, along with timingsafe_bcmp, to the _OPENBSD_SOURCE namespace under the original name?
I'm a benevolent maintainer of _OPENBSD_SOURCE.
Home |
Main Index |
Thread Index |
Old Index