@@ -1687,6 +1687,7 @@ added: v0.11.14
1687
1687
` crypto.constants ` , which may be: ` crypto.constants.RSA_NO_PADDING ` ,
1688
1688
` RSA_PKCS1_PADDING ` , or ` crypto.constants.RSA_PKCS1_OAEP_PADDING ` .
1689
1689
- ` buffer ` {Buffer | TypedArray | DataView}
1690
+ - Returns: {Buffer} A new ` Buffer ` with the decrypted content.
1690
1691
1691
1692
Decrypts ` buffer ` with ` privateKey ` .
1692
1693
@@ -1704,6 +1705,7 @@ added: v1.1.0
1704
1705
` crypto.constants ` , which may be: ` crypto.constants.RSA_NO_PADDING ` or
1705
1706
` RSA_PKCS1_PADDING ` .
1706
1707
- ` buffer ` {Buffer | TypedArray | DataView}
1708
+ - Returns: {Buffer} A new ` Buffer ` with the encrypted content.
1707
1709
1708
1710
Encrypts ` buffer ` with ` privateKey ` .
1709
1711
@@ -1721,6 +1723,7 @@ added: v1.1.0
1721
1723
` crypto.constants ` , which may be: ` crypto.constants.RSA_NO_PADDING ` or
1722
1724
` RSA_PKCS1_PADDING ` .
1723
1725
- ` buffer ` {Buffer | TypedArray | DataView}
1726
+ - Returns: {Buffer} A new ` Buffer ` with the decrypted content.
1724
1727
1725
1728
Decrypts ` buffer ` with ` publicKey ` .
1726
1729
@@ -1741,6 +1744,7 @@ added: v0.11.14
1741
1744
` crypto.constants ` , which may be: ` crypto.constants.RSA_NO_PADDING ` ,
1742
1745
` RSA_PKCS1_PADDING ` , or ` crypto.constants.RSA_PKCS1_OAEP_PADDING ` .
1743
1746
- ` buffer ` {Buffer | TypedArray | DataView}
1747
+ - Returns: {Buffer} A new ` Buffer ` with the encrypted content.
1744
1748
1745
1749
Encrypts the content of ` buffer ` with ` publicKey ` and returns a new
1746
1750
[ ` Buffer ` ] [ ] with encrypted content.
0 commit comments