aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key/doc
diff options
context:
space:
mode:
authorDaniel Goertzen <[email protected]>2017-09-11 08:58:10 -0500
committerDaniel Goertzen <[email protected]>2017-09-11 08:58:10 -0500
commit70f943997fa90400cbb3d7c3f1ef7ff3cfb495c7 (patch)
tree487c3aa16fd413203ad6fda6736e0f2c50dc2c71 /lib/public_key/doc
parent8636dcaf22432712a63b26fffe9b0fb0ff451374 (diff)
downloadotp-70f943997fa90400cbb3d7c3f1ef7ff3cfb495c7.tar.gz
otp-70f943997fa90400cbb3d7c3f1ef7ff3cfb495c7.tar.bz2
otp-70f943997fa90400cbb3d7c3f1ef7ff3cfb495c7.zip
fix ERL-481 ecpkParameters representation
- type spec ecpk_parameters() added to represent DER-encodable ecpkParameters - type spec ecpk_parameters_api() added to represent ecpkParameters provided by the user through public_key API functions - API is now more generous in its input, and more strict in its output. - update to public key records documentation - add tests, including tests against EC key with explicit curve parameters - also fixes ERL-480
Diffstat (limited to 'lib/public_key/doc')
-rw-r--r--lib/public_key/doc/src/public_key_records.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public_key/doc/src/public_key_records.xml b/lib/public_key/doc/src/public_key_records.xml
index d34f3ed9a3..739310c88b 100644
--- a/lib/public_key/doc/src/public_key_records.xml
+++ b/lib/public_key/doc/src/public_key_records.xml
@@ -171,9 +171,9 @@
#'ECPrivateKey'{
version, % integer()
privateKey, % binary()
- parameters, % der_encoded() - {'EcpkParameters', #'ECParameters'{}} |
- {'EcpkParameters', {namedCurve, oid()}} |
- {'EcpkParameters', 'NULL'} % Inherited by CA
+ parameters, % {ecParameters, #'ECParameters'{}} |
+ % {namedCurve, Oid::tuple()} |
+ % {implicitlyCA, 'NULL'}
publicKey % bitstring()
}.