crypto: add curve25519 license
add curve25519 implementation, and the implementation are ported from open-bsd Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
856526adee
commit
cee9f25dde
45
LICENSE
45
LICENSE
|
@ -8394,6 +8394,51 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
include/crypto/curve25519.h
|
||||
======================
|
||||
$OpenBSD: curve25519.h,v 1.2 2020/07/22 13:54:30 tobhe Exp $
|
||||
|
||||
Copyright (C) 2019-2020 Matt Dunwoodie <ncon@noconroy.net>
|
||||
|
||||
Permission to use, copy, modify, and distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
crypto/curve25519.c
|
||||
======================
|
||||
$OpenBSD: curve25519.c,v 1.2 2020/07/22 13:54:30 tobhe Exp $
|
||||
|
||||
Copyright (C) 2018-2020 Jason A. Donenfeld <Jason@zx2c4.com>.
|
||||
All Rights Reserved.
|
||||
Copyright (C) 2015-2016 The fiat-crypto Authors.
|
||||
|
||||
Permission to use, copy, modify, and distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
This contains two implementation: a machine-generated formally verified
|
||||
implementation of Curve25519 ECDH from:
|
||||
<https://github.com/mit-plv/fiat-crypto>. Though originally machine
|
||||
generated, it has been tweaked to be suitable for use in the kernel. It is
|
||||
optimized for 32-bit machines and machines that cannot work efficiently with
|
||||
128-bit integer types.
|
||||
|
||||
libs/libc/regcomp.c
|
||||
libs/libc/regerror.c
|
||||
libs/libc/regexec.c
|
||||
|
|
Loading…
Reference in New Issue