@relaycorp/webcrypto-kms
Version:
WebCrypto-compatible client for Key Management Services like GCP KMS
21 lines • 619 B
JavaScript
// tslint:disable:max-classes-per-file
import { CryptoKey } from 'webcrypto-core';
export class PrivateKey extends CryptoKey {
algorithm;
provider;
extractable = true;
type = 'private';
constructor(algorithm, provider) {
super();
this.algorithm = algorithm;
this.provider = provider;
}
}
export class RsaPssPrivateKey extends PrivateKey {
usages = ['sign'];
constructor(hashingAlgorithm, provider) {
const algorithm = { name: 'RSA-PSS', hash: { name: hashingAlgorithm } };
super(algorithm, provider);
}
}
//# sourceMappingURL=PrivateKey.js.map