Add inter-module private header for EC functions
authorNicola Tuveri <nic.tuv@gmail.com>
Thu, 21 Jun 2018 16:08:50 +0000 (19:08 +0300)
committerAndy Polyakov <appro@openssl.org>
Mon, 25 Jun 2018 14:40:00 +0000 (16:40 +0200)
commit5a2124620cb2893b2d5c40be75579cd9c35c839c
tree02ac4dbdbd0e604b1d20d97539d244d4eeff2f0b
parentc35e96691ff3415e68531076ff9f011703524c0a
Add inter-module private header for EC functions

Internal submodules of libcrypto may require non-public functions from
the EC submodule.

In preparation to use `ec_group_do_inverse_ord()` (from #6116) inside
the SM2 submodule to apply a SCA mitigation on the modular inversion,
this commit moves the `ec_group_do_inverse_ord()` prototype declaration
from the EC-local `crypto/ec/ec_lcl.h` header to the
`crypto/include/internal/ec_int.h` inter-module private header.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6521)
crypto/ec/ec_lcl.h
crypto/include/internal/ec_int.h [new file with mode: 0644]