UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

16 lines • 984 B
import { KnownJwaSignatureAlgorithm } from "../jwa.mjs"; import "../../options/index.mjs"; import { KmsJwkPublicOct } from "../kty/oct/octJwk.mjs"; import { KmsJwkPrivate, KmsJwkPublic } from "../knownJwk.mjs"; //#region src/modules/kms/jwk/alg/signing.d.ts /** * Get the allowed algs for a signing key. If takes all the known supported * algs and will filter these based on the optional `alg` key in the JWK. * * This does not handle the intended key `use` and `key_ops`. */ export declare function allowedSigningAlgsForSigningKey(jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>): KnownJwaSignatureAlgorithm[]; export declare function assertAllowedSigningAlgForKey(jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>, algorithm: KnownJwaSignatureAlgorithm): void; export declare function supportedSigningAlgsForKey(jwk: KmsJwkPrivate | Exclude<KmsJwkPublic, KmsJwkPublicOct>): KnownJwaSignatureAlgorithm[]; //#endregion //# sourceMappingURL=signing.d.mts.map