aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/erl_make_certs.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-04-17 09:03:00 +0200
committerBjörn Gustavsson <[email protected]>2013-04-17 09:03:00 +0200
commitd988c8ebc8ec0349413a99ce1296905f83d87546 (patch)
tree82e8d2f413a2bf124d6483fd9d8e191233f62e63 /lib/ssl/test/erl_make_certs.erl
parent74fdfd48d59393b6f0dfb53f343645133675c64b (diff)
parent05a646a0844e8cf25045bc9388094c799c21538d (diff)
downloadotp-d988c8ebc8ec0349413a99ce1296905f83d87546.tar.gz
otp-d988c8ebc8ec0349413a99ce1296905f83d87546.tar.bz2
otp-d988c8ebc8ec0349413a99ce1296905f83d87546.zip
Merge branch 'bjorn/fix-encoding/OTP-11041' into maint
* bjorn/fix-encoding/OTP-11041: Encode Erlang source files with non-ascii characters in UTF-8
Diffstat (limited to 'lib/ssl/test/erl_make_certs.erl')
-rw-r--r--lib/ssl/test/erl_make_certs.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/test/erl_make_certs.erl b/lib/ssl/test/erl_make_certs.erl
index 5b92e551a5..71aa985c4f 100644
--- a/lib/ssl/test/erl_make_certs.erl
+++ b/lib/ssl/test/erl_make_certs.erl
@@ -349,13 +349,13 @@ gen_dsa2(LSize, NSize) ->
X0 = prime(LSize),
P0 = prime((LSize div 2) +1),
- %% Choose L-bit prime modulus P such that p–1 is a multiple of q.
+ %% Choose L-bit prime modulus P such that p-1 is a multiple of q.
case dsa_search(X0 div (2*Q*P0), P0, Q, 1000) of
error ->
gen_dsa2(LSize, NSize);
P ->
G = crypto:mod_exp(2, (P-1) div Q, P), % Choose G a number whose multiplicative order modulo p is q.
- %% such that This may be done by setting g = h^(p–1)/q mod p, commonly h=2 is used.
+ %% such that This may be done by setting g = h^(p-1)/q mod p, commonly h=2 is used.
X = prime(20), %% Choose x by some random method, where 0 < x < q.
Y = crypto:mod_exp(G, X, P), %% Calculate y = g^x mod p.