ExemptionMechanism.GenExemptionBlob Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GenExemptionBlob() |
Generates the exemption mechanism key blob. |
GenExemptionBlob(Byte[]) |
Generates the exemption mechanism key blob, and stores the result in
the |
GenExemptionBlob(Byte[], Int32) |
Generates the exemption mechanism key blob, and stores the result in
the |
GenExemptionBlob()
Generates the exemption mechanism key blob.
[Android.Runtime.Register("genExemptionBlob", "()[B", "")]
public byte[]? GenExemptionBlob ();
[<Android.Runtime.Register("genExemptionBlob", "()[B", "")>]
member this.GenExemptionBlob : unit -> byte[]
Returns
the new buffer with the result key blob.
- Attributes
Exceptions
if this ExemptionMechanism
instance is not
initialized.
if error(s) occur during generation.
Remarks
Generates the exemption mechanism key blob.
Java documentation for javax.crypto.ExemptionMechanism.genExemptionBlob()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GenExemptionBlob(Byte[])
Generates the exemption mechanism key blob, and stores the result in
the output
buffer.
[Android.Runtime.Register("genExemptionBlob", "([B)I", "")]
public int GenExemptionBlob (byte[]? output);
[<Android.Runtime.Register("genExemptionBlob", "([B)I", "")>]
member this.GenExemptionBlob : byte[] -> int
Parameters
- output
- Byte[]
the buffer for the result
Returns
the number of bytes stored in output
- Attributes
Exceptions
if this ExemptionMechanism
instance is not
initialized.
if the provided buffer is too small for the result key blob.
if error(s) occur during generation.
Remarks
Generates the exemption mechanism key blob, and stores the result in the output
buffer.
If the output
buffer is too small to hold the result, a ShortBufferException
is thrown. In this case, repeat this call with a larger output buffer. Use #getOutputSize(int) getOutputSize
to determine how big the output buffer should be.
Java documentation for javax.crypto.ExemptionMechanism.genExemptionBlob(byte[])
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GenExemptionBlob(Byte[], Int32)
Generates the exemption mechanism key blob, and stores the result in
the output
buffer, starting at outputOffset
inclusive.
[Android.Runtime.Register("genExemptionBlob", "([BI)I", "")]
public int GenExemptionBlob (byte[]? output, int outputOffset);
[<Android.Runtime.Register("genExemptionBlob", "([BI)I", "")>]
member this.GenExemptionBlob : byte[] * int -> int
Parameters
- output
- Byte[]
the buffer for the result
- outputOffset
- Int32
the offset in output
where the result
is stored
Returns
the number of bytes stored in output
- Attributes
Exceptions
if this ExemptionMechanism
instance is not
initialized.
if the provided buffer is too small for the result key blob.
if error(s) occur during generation.
Remarks
Generates the exemption mechanism key blob, and stores the result in the output
buffer, starting at outputOffset
inclusive.
If the output
buffer is too small to hold the result, a ShortBufferException
is thrown. In this case, repeat this call with a larger output buffer. Use #getOutputSize(int) getOutputSize
to determine how big the output buffer should be.
Java documentation for javax.crypto.ExemptionMechanism.genExemptionBlob(byte[], int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.