CryptoUtils
Static Method Summary
Static Public Methods | ||
public static |
computeHmacSha512(key: Uint8Array, data: Uint8Array): Uint8Array |
|
public static |
computePBKDF2sha512(password: Uint8Array, salt: Uint8Array, iterations: number, derivedKeyLength: number): Uint8Array |
|
public static |
async otpKdf(message: Uint8Array, key: Uint8Array, salt: Uint8Array, iterations: number): Promise<Uint8Array> |
|
public static |
async otpKdfLegacy(message: Uint8Array, key: Uint8Array, salt: Uint8Array, iterations: number): Promise<Uint8Array> this method was deprecated.
|
Static Public Methods
public static computeHmacSha512(key: Uint8Array, data: Uint8Array): Uint8Array source
Params:
Name | Type | Attribute | Description |
key | Uint8Array | ||
data | Uint8Array |
Return:
Uint8Array |
public static computePBKDF2sha512(password: Uint8Array, salt: Uint8Array, iterations: number, derivedKeyLength: number): Uint8Array source
Params:
Name | Type | Attribute | Description |
password | Uint8Array | ||
salt | Uint8Array | ||
iterations | number | ||
derivedKeyLength | number |
Return:
Uint8Array |
public static async otpKdf(message: Uint8Array, key: Uint8Array, salt: Uint8Array, iterations: number): Promise<Uint8Array> source
Params:
Name | Type | Attribute | Description |
message | Uint8Array | ||
key | Uint8Array | ||
salt | Uint8Array | ||
iterations | number |
Return:
Promise<Uint8Array> |
public static async otpKdfLegacy(message: Uint8Array, key: Uint8Array, salt: Uint8Array, iterations: number): Promise<Uint8Array> source
this method was deprecated.
Params:
Name | Type | Attribute | Description |
message | Uint8Array | ||
key | Uint8Array | ||
salt | Uint8Array | ||
iterations | number |
Return:
Promise<Uint8Array> |