|
◆ getEntropy
Obtain the entropy source. If the default entropy source provided by HiTLS is not used, the API must be registered. the output data must meet requirements such as the length. The HiTLS does not check the entropy source. The data must be provided by the entropy source.
- 参数
-
ctx | [IN] Context used by the caller. |
entropy | [OUT] Indicates the obtained entropy source data. The length of the entropy source data must meet the following requirements: lenRange->min <= len <= lenRange->max. |
strength | [IN] Entropy source strength. |
lenRange | [IN] Entropy source length range. |
- 返回值
-
0 | indicates success, and other values indicate failure. |
|