summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ecp_nist.c
diff options
context:
space:
mode:
authortb <>2018-11-17 18:55:41 +0000
committertb <>2018-11-17 18:55:41 +0000
commiteaa93660fa7be62891e2623769b71e381fdff5ff (patch)
treec70676f4f94a5865e7ea3502c754e74b4684f1fc /src/lib/libcrypto/ec/ecp_nist.c
parente8561a7d6bfdc3b60901ab2b0b05aeccef9e8cac (diff)
downloadopenbsd-eaa93660fa7be62891e2623769b71e381fdff5ff.tar.gz
openbsd-eaa93660fa7be62891e2623769b71e381fdff5ff.tar.bz2
openbsd-eaa93660fa7be62891e2623769b71e381fdff5ff.zip
Implement coordinate blinding for EC_POINT as an additional mitigation
for the portsmash vulnerability. OpenBSD 6.4 errata 003
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nist.c')
-rw-r--r--src/lib/libcrypto/ec/ecp_nist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nist.c b/src/lib/libcrypto/ec/ecp_nist.c
index 6ae1170808..6f1c857799 100644
--- a/src/lib/libcrypto/ec/ecp_nist.c
+++ b/src/lib/libcrypto/ec/ecp_nist.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_nist.c,v 1.14 2018/07/16 17:32:39 tb Exp $ */ 1/* $OpenBSD: ecp_nist.c,v 1.14.2.1 2018/11/17 18:55:41 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -107,7 +107,8 @@ EC_GFp_nist_method(void)
107 .mul_single_ct = ec_GFp_simple_mul_single_ct, 107 .mul_single_ct = ec_GFp_simple_mul_single_ct,
108 .mul_double_nonct = ec_GFp_simple_mul_double_nonct, 108 .mul_double_nonct = ec_GFp_simple_mul_double_nonct,
109 .field_mul = ec_GFp_nist_field_mul, 109 .field_mul = ec_GFp_nist_field_mul,
110 .field_sqr = ec_GFp_nist_field_sqr 110 .field_sqr = ec_GFp_nist_field_sqr,
111 .blind_coordinates = ec_GFp_simple_blind_coordinates,
111 }; 112 };
112 113
113 return &ret; 114 return &ret;