This repository has been archived on 2023-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
2019-01-25 10:43:13 +00:00
|
|
|
import * as core from "webcrypto-core";
|
|
|
|
import { ShaCrypto } from "./crypto";
|
|
|
|
|
|
|
|
export class Sha384Provider extends core.ProviderCrypto {
|
|
|
|
public name = "SHA-384";
|
|
|
|
public usages = [];
|
|
|
|
|
2023-04-04 10:20:37 +00:00
|
|
|
public override async onDigest(
|
|
|
|
algorithm: Algorithm,
|
|
|
|
data: ArrayBuffer
|
|
|
|
): Promise<ArrayBuffer> {
|
2019-01-25 10:43:13 +00:00
|
|
|
return ShaCrypto.digest(algorithm, data);
|
|
|
|
}
|
|
|
|
}
|