summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_lcl.h
diff options
context:
space:
mode:
authormiod <>2016-11-04 17:33:20 +0000
committermiod <>2016-11-04 17:33:20 +0000
commitc25bd6f14a47d7516c4d4e740952129f29e02a36 (patch)
tree2628371c69ae733bbfebf3b933d9fcaf0677413a /src/lib/libcrypto/ec/ec_lcl.h
parent1a12fc8399638223feca8f853e2ac2cc22eeb471 (diff)
downloadopenbsd-c25bd6f14a47d7516c4d4e740952129f29e02a36.tar.gz
openbsd-c25bd6f14a47d7516c4d4e740952129f29e02a36.tar.bz2
openbsd-c25bd6f14a47d7516c4d4e740952129f29e02a36.zip
Add assembler code for the nist 256-bit GFp curve, written initially by
Intel. Obtained from BoringSSL, with some integration work borrowed from OpenSSL 1.0.2; assembler code for arm and sparc64 borrowed from OpenSSL 1.1.0. None of this code is enabled in libcrypto yet. ok beck@ jsing@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lcl.h')
-rw-r--r--src/lib/libcrypto/ec/ec_lcl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_lcl.h b/src/lib/libcrypto/ec/ec_lcl.h
index faed33fe56..d11aaed8cb 100644
--- a/src/lib/libcrypto/ec/ec_lcl.h
+++ b/src/lib/libcrypto/ec/ec_lcl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_lcl.h,v 1.5 2014/06/12 15:49:29 deraadt Exp $ */ 1/* $OpenBSD: ec_lcl.h,v 1.6 2016/11/04 17:33:19 miod Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -423,6 +423,10 @@ int ec_GFp_nistp256_points_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM
423int ec_GFp_nistp256_precompute_mult(EC_GROUP *group, BN_CTX *ctx); 423int ec_GFp_nistp256_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
424int ec_GFp_nistp256_have_precompute_mult(const EC_GROUP *group); 424int ec_GFp_nistp256_have_precompute_mult(const EC_GROUP *group);
425 425
426#ifdef ECP_NISTZ256_ASM
427const EC_METHOD *EC_GFp_nistz256_method(void);
428#endif
429
426/* method functions in ecp_nistp521.c */ 430/* method functions in ecp_nistp521.c */
427int ec_GFp_nistp521_group_init(EC_GROUP *group); 431int ec_GFp_nistp521_group_init(EC_GROUP *group);
428int ec_GFp_nistp521_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *n, BN_CTX *); 432int ec_GFp_nistp521_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *n, BN_CTX *);