diff options
author | Ingela Anderton Andin <[email protected]> | 2017-03-31 15:38:53 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-04-12 11:01:09 +0200 |
commit | f606520095236e8dabb85564d3e91361e0b57b6e (patch) | |
tree | ce97305c1bb185596d2e018ede24bdeb5e1d254b /lib/public_key/test | |
parent | 4da32ec432dd2dee0b19403bed21a836f1638549 (diff) | |
download | otp-f606520095236e8dabb85564d3e91361e0b57b6e.tar.gz otp-f606520095236e8dabb85564d3e91361e0b57b6e.tar.bz2 otp-f606520095236e8dabb85564d3e91361e0b57b6e.zip |
public_key: Public RSA key is present in private key
Change the return value from {#'RSAPublicKey'{}, #'RSAPrivateKey'{}} to #'RSAPrivateKey'{}
This conforms to the #'ECPrivateKey'{} return value.
Note that DH key will be returned as {Public::integer(), Private::integer()}
as there is no key structure (record) only two integers.
Maybe we would like to add extraction functions for the public key from
the private ones later.
Diffstat (limited to 'lib/public_key/test')
-rw-r--r-- | lib/public_key/test/erl_make_certs.erl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/public_key/test/erl_make_certs.erl b/lib/public_key/test/erl_make_certs.erl index 00be7dd5b3..95d0dec920 100644 --- a/lib/public_key/test/erl_make_certs.erl +++ b/lib/public_key/test/erl_make_certs.erl @@ -351,8 +351,6 @@ gen_rsa2(Size) -> %% The numbers 2048,17 is choosen to not cause the cryptolib on %% FIPS-enabled test machines be mad at us. public_key:generate_key({rsa, 2048, 17}) - of - {_Public, Private} -> Private catch error:notsup -> %% Disabled dirty_schedulers => crypto:generate_key not working |