git: libc/string: Add timing_safe functions from OpenBSD.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Apr 11 02:06:47 PDT 2019


commit 641ead6d861a38f0edf7f90550adfe7776ea946c
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Apr 9 12:17:34 2019 +0300

    libc/string: Add timing_safe functions from OpenBSD.
    
    Good and small functions for crypto retlated things.
    Add manpage and set __pure attributes.
    
    Taken-from: OpenBSD

Summary of changes:
 include/string.h                                   |  2 +
 lib/libc/string/Makefile.inc                       | 12 +--
 lib/libc/string/Symbol.map                         |  2 +
 lib/libc/string/timingsafe_bcmp.3                  | 92 ++++++++++++++++++++++
 .../compat => lib/libc/string}/timingsafe_bcmp.c   |  2 +-
 .../compat => lib/libc/string}/timingsafe_memcmp.c |  2 +-
 6 files changed, 105 insertions(+), 7 deletions(-)
 create mode 100644 lib/libc/string/timingsafe_bcmp.3
 copy {crypto/libressl/crypto/compat => lib/libc/string}/timingsafe_bcmp.c (93%)
 copy {crypto/libressl/crypto/compat => lib/libc/string}/timingsafe_memcmp.c (95%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/641ead6d861a38f0edf7f90550adfe7776ea946c


-- 
DragonFly BSD source repository


More information about the Commits mailing list