SecKey.Encrypt 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Encrypt(SecPadding, Byte[], Byte[]) | |
Encrypt(SecPadding, IntPtr, nint, IntPtr, nint) | |
Encrypt(SecPadding, Byte[], Byte[]) |
Encrypt(SecPadding, Byte[], Byte[])
public Security.SecStatusCode Encrypt (Security.SecPadding padding, byte[] plainText, out byte[] cipherText);
member this.Encrypt : Security.SecPadding * byte[] * -> Security.SecStatusCode
參數
- padding
- SecPadding
- plainText
- Byte[]
- cipherText
- Byte[]
傳回
適用於
Encrypt(SecPadding, IntPtr, nint, IntPtr, nint)
public Security.SecStatusCode Encrypt (Security.SecPadding padding, IntPtr plainText, nint plainTextLen, IntPtr cipherText, ref nint cipherTextLen);
member this.Encrypt : Security.SecPadding * nativeint * nint * nativeint * -> Security.SecStatusCode
參數
- padding
- SecPadding
- plainText
-
IntPtr
nativeint
- plainTextLen
- System.System.IntPtr System.nativeint
- cipherText
-
IntPtr
nativeint
- cipherTextLen
- System.System.IntPtr System.nativeint
傳回
適用於
Encrypt(SecPadding, Byte[], Byte[])
public Security.SecStatusCode Encrypt (Security.SecPadding padding, byte[] plainText, byte[] cipherText);
member this.Encrypt : Security.SecPadding * byte[] * byte[] -> Security.SecStatusCode
參數
- padding
- SecPadding
- plainText
- Byte[]
- cipherText
- Byte[]