diff --git a/reference/openssl/functions/openssl-pkey-new.xml b/reference/openssl/functions/openssl-pkey-new.xml index d7d8456fa..87873fe0a 100644 --- a/reference/openssl/functions/openssl-pkey-new.xml +++ b/reference/openssl/functions/openssl-pkey-new.xml @@ -1,6 +1,7 @@ - + + openssl_pkey_new @@ -40,7 +41,7 @@ &reftitle.returnvalues; - 成功时返回 OpenSSLAsymmetricKey 实例,错误则返回 &false; 。 + 成功时此函数会返回 OpenSSLAsymmetricKey 的实例;在失败时则会返回 &false;。 @@ -64,7 +65,9 @@ 7.1.0 - 添加了 curve_name 配置参数使得可以创建 EC 密钥。 + + options 参数中增加了 curve_name 键,以便基于椭圆曲线算法创建 EC 密钥。 + @@ -78,27 +81,47 @@ ]]> &example.outputs.similar; diff --git a/reference/openssl/functions/openssl-private-decrypt.xml b/reference/openssl/functions/openssl-private-decrypt.xml index 372032102..e72f59733 100644 --- a/reference/openssl/functions/openssl-private-decrypt.xml +++ b/reference/openssl/functions/openssl-private-decrypt.xml @@ -1,6 +1,6 @@ - + @@ -48,7 +48,7 @@ private_key - private_key 必须是跟数据加密相对应的私钥。 + private_key 必须是与用于加密数据的公钥对应的私钥。 diff --git a/reference/openssl/functions/openssl-private-encrypt.xml b/reference/openssl/functions/openssl-private-encrypt.xml index 86b47727b..6a5dd0201 100644 --- a/reference/openssl/functions/openssl-private-encrypt.xml +++ b/reference/openssl/functions/openssl-private-encrypt.xml @@ -1,6 +1,6 @@ - + @@ -48,6 +48,7 @@ private_key + private_key 必须是与用于解密数据的公钥对应的私钥。 diff --git a/reference/openssl/functions/openssl-public-decrypt.xml b/reference/openssl/functions/openssl-public-decrypt.xml index a14d8c510..660c65c15 100644 --- a/reference/openssl/functions/openssl-public-decrypt.xml +++ b/reference/openssl/functions/openssl-public-decrypt.xml @@ -1,6 +1,6 @@ - + @@ -47,7 +47,7 @@ public_key - public_key 必须是和用来加密数据的私钥配对的公钥。 + private_key 必须是与用于加密数据的公钥对应的私钥。 diff --git a/reference/openssl/functions/openssl-public-encrypt.xml b/reference/openssl/functions/openssl-public-encrypt.xml index 2b44ab976..052b87364 100644 --- a/reference/openssl/functions/openssl-public-encrypt.xml +++ b/reference/openssl/functions/openssl-public-encrypt.xml @@ -1,6 +1,6 @@ - + @@ -49,7 +49,7 @@ public_key - 公钥。 + public_key 必须是与用于解密数据的私钥对应的公钥。 diff --git a/reference/strings/functions/strncmp.xml b/reference/strings/functions/strncmp.xml index 584ab5391..37299ae19 100644 --- a/reference/strings/functions/strncmp.xml +++ b/reference/strings/functions/strncmp.xml @@ -1,7 +1,7 @@ - - + + strncmp @@ -94,7 +94,7 @@ $var1 = 'Hello John'; $var2 = 'Hello Doe'; if (strncmp($var1, $var2, 5) === 0) { - echo 'First 5 characters of $var1 and $var2 are equals in a case-sensitive string comparison'; + echo 'First 5 characters of $var1 and $var2 are equal in a case-sensitive string comparison'; } ?> ]]>