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

54 lines • 12.9 kB
import { KnownJwaContentEncryptionAlgorithm, KnownJwaContentEncryptionAlgorithms, KnownJwaHpkeAlgorithm, KnownJwaHpkeAlgorithms, KnownJwaKeyAgreementAlgorithm, KnownJwaKeyAgreementAlgorithms, KnownJwaKeyEncryptionAlgorithm, KnownJwaKeyEncryptionAlgorithms, KnownJwaSignatureAlgorithm, KnownJwaSignatureAlgorithms, isJwaHpkeAlgorithm, isKnownJwaSignatureAlgorithm } from "./jwk/jwa.mjs"; import { KnownCoseSignatureAlgorithm, KnownCoseSignatureAlgorithms, isKnownCoseSignatureAlgorithm, knownJwaFromCoseSignatureAlgorithm } from "./cose/algorithm.mjs"; import "./cose/index.mjs"; import { KeyManagementError } from "./error/KeyManagementError.mjs"; import { KeyManagementAlgorithmNotSupportedError } from "./error/KeyManagementAlgorithmNotSupportedError.mjs"; import { KeyManagementKeyExistsError } from "./error/KeyManagementKeyExistsError.mjs"; import { KeyManagementKeyNotFoundError } from "./error/KeyManagementKeyNotFoundError.mjs"; import { KmsCreateKeyForSignatureAlgorithmOptions, KmsCreateKeyOptions, KmsCreateKeyReturn, KmsCreateKeyType, KmsCreateKeyTypeAsymmetric, KmsCreateKeyTypeEc, KmsCreateKeyTypeOct, KmsCreateKeyTypeOkp, KmsCreateKeyTypeRsa } from "./options/KmsCreateKeyOptions.mjs"; import { KmsDecryptDataContentDecryption, KmsDecryptDataDecryption, KmsDecryptDataDecryptionAesCbc, KmsDecryptDataDecryptionAesGcm, KmsDecryptDataDecryptionC20p, KmsDecryptDataDecryptionHpke, KmsDecryptOptions, KmsDecryptReturn } from "./options/KmsDecryptOptions.mjs"; import { KmsDeleteKeyOptions } from "./options/KmsDeleteKeyOptions.mjs"; import { KmsEncryptDataContentEncryption, KmsEncryptDataEncryption, KmsEncryptDataEncryptionAesCbc, KmsEncryptDataEncryptionAesGcm, KmsEncryptDataEncryptionHpke, KmsEncryptDataEncryptionX20c, KmsEncryptOptions, KmsEncryptReturn, KmsEncryptedKey } from "./options/KmsEncryptOptions.mjs"; import { KmsGetPublicKeyOptions } from "./options/KmsGetPublicKeyOptions.mjs"; import { KmsImportKeyOptions, KmsImportKeyReturn } from "./options/KmsImportKeyOptions.mjs"; import { KmsKeyAgreementDecryptEcdhEsKw, KmsKeyAgreementDecryptEcdhHsalsa20, KmsKeyAgreementDecryptHpke, KmsKeyAgreementDecryptOptions, isKmsKeyAgreementDecryptHpke } from "./options/KmsKeyAgreementDecryptOptions.mjs"; import { KmsJwkPublicEcdh, KmsKeyAgreementEcdhEs, KmsKeyAgreementEncryptEcdhEsKw, KmsKeyAgreementEncryptEcdhHsalsa20, KmsKeyAgreementEncryptHpke, KmsKeyAgreementEncryptOptions, isKmsKeyAgreementEncryptHpke } from "./options/KmsKeyAgreementEncryptOptions.mjs"; import { KmsOperation, KmsOperationCreateKey, KmsOperationDecrypt, KmsOperationDeleteKey, KmsOperationEncrypt, KmsOperationImportKey, KmsOperationSign, KmsOperationVerify, getKmsOperationHumanDescription } from "./options/KmsOperation.mjs"; import { KmsRandomBytesOptions, KmsRandomBytesReturn } from "./options/KmsRandomBytesOptions.mjs"; import { KmsSignOptions, KmsSignReturn } from "./options/KmsSignOptions.mjs"; import { KmsVerifyOptions, KmsVerifyReturn } from "./options/KmsVerifyOptions.mjs"; import "./options/index.mjs"; import { KmsJwkPrivateEc, KmsJwkPublicEc } from "./jwk/kty/ec/ecJwk.mjs"; import { KmsJwkPrivateOct, KmsJwkPublicOct } from "./jwk/kty/oct/octJwk.mjs"; import { KmsJwkPrivateOkp, KmsJwkPublicOkp } from "./jwk/kty/okp/okpJwk.mjs"; import { KmsJwkPrivateRsa, KmsJwkPublicRsa } from "./jwk/kty/rsa/rsaJwk.mjs"; import { KmsJwkPrivate, KmsJwkPrivateAsymmetric, KmsJwkPrivateFromKmsJwkPublic, KmsJwkPublic, KmsJwkPublicAsymmetric, KmsJwkPublicFromCreateType, KmsJwkPublicFromKmsJwkPrivate, assertJwkAsymmetric, isJwkAsymmetric, publicJwkFromPrivateJwk } from "./jwk/knownJwk.mjs"; import { allowedEncryptionAlgsForKey, assertAllowedEncryptionAlgForKey, supportedEncryptionAlgsForKey } from "./jwk/alg/encryption.mjs"; import { allowedKeyDerivationAlgsForKey, assertAllowedKeyDerivationAlgForKey, supportedKeyDerivationAlgsForKey } from "./jwk/alg/keyDerivation.mjs"; import { allowedSigningAlgsForSigningKey, assertAllowedSigningAlgForKey, supportedSigningAlgsForKey } from "./jwk/alg/signing.mjs"; import { assertSupportedEncryptionAlgorithm, assertSupportedKeyAgreementAlgorithm } from "./jwk/assertSupported.mjs"; import { assertAsymmetricJwkKeyTypeMatches, asymmetricJwkKeyTypeMatches, asymmetricPublicJwkMatches } from "./jwk/equals.mjs"; import { getJwkHumanDescription } from "./jwk/humanDescription.mjs"; import { Jwk, JwkCommon } from "./jwk/jwk.mjs"; import { assertKeyAllowsDecrypt, assertKeyAllowsDerive, assertKeyAllowsEncrypt, assertKeyAllowsSign, assertKeyAllowsVerify, keyAllowsDecrypt, keyAllowsEncrypt, keyAllowsSign, keyAllowsVerify } from "./jwk/keyOps.mjs"; import { derEcSignatureToRaw, rawEcSignatureToDer } from "./jwk/kty/ec/ecSignature.mjs"; import { P256PublicJwk } from "./jwk/kty/ec/P256PublicJwk.mjs"; import { P384PublicJwk } from "./jwk/kty/ec/P384PublicJwk.mjs"; import { P521PublicJwk } from "./jwk/kty/ec/P521PublicJwk.mjs"; import { Secp256k1PublicJwk } from "./jwk/kty/ec/Secp256k1PublicJwk.mjs"; import { Ed25519PublicJwk } from "./jwk/kty/okp/Ed25519PublicJwk.mjs"; import { X25519PublicJwk } from "./jwk/kty/okp/X25519PublicJwk.mjs"; import { RsaPublicJwk } from "./jwk/kty/rsa/RsaPublicJwk.mjs"; import { PublicJwk } from "./jwk/PublicJwk.mjs"; import "./jwk/index.mjs"; import { KeyManagementService } from "./KeyManagementService.mjs"; import { KeyManagementModuleConfig, KeyManagementModuleConfigOptions } from "./KeyManagementModuleConfig.mjs"; import { KeyManagementApi } from "./KeyManagementApi.mjs"; import { KeyManagementModule } from "./KeyManagementModule.mjs"; import { legacyKeyIdFromPublicJwk } from "./legacy.mjs"; declare namespace index_d_exports { export { Ed25519PublicJwk, Jwk, JwkCommon, KeyManagementAlgorithmNotSupportedError, KeyManagementApi, KeyManagementError, KeyManagementKeyExistsError, KeyManagementKeyNotFoundError, KeyManagementModule, KeyManagementModuleConfig, KeyManagementModuleConfigOptions, KeyManagementService, KmsCreateKeyForSignatureAlgorithmOptions, KmsCreateKeyOptions, KmsCreateKeyReturn, KmsCreateKeyType, KmsCreateKeyTypeAsymmetric, KmsCreateKeyTypeEc, KmsCreateKeyTypeOct, KmsCreateKeyTypeOkp, KmsCreateKeyTypeRsa, KmsDecryptDataContentDecryption, KmsDecryptDataDecryption, KmsDecryptDataDecryptionAesCbc, KmsDecryptDataDecryptionAesGcm, KmsDecryptDataDecryptionC20p, KmsDecryptDataDecryptionHpke, KmsDecryptOptions, KmsDecryptReturn, KmsDeleteKeyOptions, KmsEncryptDataContentEncryption, KmsEncryptDataEncryption, KmsEncryptDataEncryptionAesCbc, KmsEncryptDataEncryptionAesGcm, KmsEncryptDataEncryptionHpke, KmsEncryptDataEncryptionX20c, KmsEncryptOptions, KmsEncryptReturn, KmsEncryptedKey, KmsGetPublicKeyOptions, KmsImportKeyOptions, KmsImportKeyReturn, KmsJwkPrivate, KmsJwkPrivateAsymmetric, KmsJwkPrivateEc, KmsJwkPrivateFromKmsJwkPublic, KmsJwkPrivateOct, KmsJwkPrivateOkp, KmsJwkPrivateRsa, KmsJwkPublic, KmsJwkPublicAsymmetric, KmsJwkPublicEc, KmsJwkPublicEcdh, KmsJwkPublicFromCreateType, KmsJwkPublicFromKmsJwkPrivate, KmsJwkPublicOct, KmsJwkPublicOkp, KmsJwkPublicRsa, KmsKeyAgreementDecryptEcdhEsKw, KmsKeyAgreementDecryptEcdhHsalsa20, KmsKeyAgreementDecryptHpke, KmsKeyAgreementDecryptOptions, KmsKeyAgreementEcdhEs, KmsKeyAgreementEncryptEcdhEsKw, KmsKeyAgreementEncryptEcdhHsalsa20, KmsKeyAgreementEncryptHpke, KmsKeyAgreementEncryptOptions, KmsOperation, KmsOperationCreateKey, KmsOperationDecrypt, KmsOperationDeleteKey, KmsOperationEncrypt, KmsOperationImportKey, KmsOperationSign, KmsOperationVerify, KmsRandomBytesOptions, KmsRandomBytesReturn, KmsSignOptions, KmsSignReturn, KmsVerifyOptions, KmsVerifyReturn, KnownCoseSignatureAlgorithm, KnownCoseSignatureAlgorithms, KnownJwaContentEncryptionAlgorithm, KnownJwaContentEncryptionAlgorithms, KnownJwaHpkeAlgorithm, KnownJwaHpkeAlgorithms, KnownJwaKeyAgreementAlgorithm, KnownJwaKeyAgreementAlgorithms, KnownJwaKeyEncryptionAlgorithm, KnownJwaKeyEncryptionAlgorithms, KnownJwaSignatureAlgorithm, KnownJwaSignatureAlgorithms, P256PublicJwk, P384PublicJwk, P521PublicJwk, PublicJwk, RsaPublicJwk, Secp256k1PublicJwk, X25519PublicJwk, allowedEncryptionAlgsForKey, allowedKeyDerivationAlgsForKey, allowedSigningAlgsForSigningKey, assertAllowedEncryptionAlgForKey, assertAllowedKeyDerivationAlgForKey, assertAllowedSigningAlgForKey, assertAsymmetricJwkKeyTypeMatches, assertJwkAsymmetric, assertKeyAllowsDecrypt, assertKeyAllowsDerive, assertKeyAllowsEncrypt, assertKeyAllowsSign, assertKeyAllowsVerify, assertSupportedEncryptionAlgorithm, assertSupportedKeyAgreementAlgorithm, asymmetricJwkKeyTypeMatches, asymmetricPublicJwkMatches, derEcSignatureToRaw, getJwkHumanDescription, getKmsOperationHumanDescription, isJwaHpkeAlgorithm, isJwkAsymmetric, isKmsKeyAgreementDecryptHpke, isKmsKeyAgreementEncryptHpke, isKnownCoseSignatureAlgorithm, isKnownJwaSignatureAlgorithm, keyAllowsDecrypt, keyAllowsEncrypt, keyAllowsSign, keyAllowsVerify, knownJwaFromCoseSignatureAlgorithm, legacyKeyIdFromPublicJwk, publicJwkFromPrivateJwk, rawEcSignatureToDer, supportedEncryptionAlgsForKey, supportedKeyDerivationAlgsForKey, supportedSigningAlgsForKey }; } //#endregion export { Ed25519PublicJwk, type Jwk, type JwkCommon, KeyManagementAlgorithmNotSupportedError, KeyManagementApi, KeyManagementError, KeyManagementKeyExistsError, KeyManagementKeyNotFoundError, KeyManagementModule, KeyManagementModuleConfig, KeyManagementModuleConfigOptions, KeyManagementService, type KmsCreateKeyForSignatureAlgorithmOptions, type KmsCreateKeyOptions, type KmsCreateKeyReturn, type KmsCreateKeyType, type KmsCreateKeyTypeAsymmetric, type KmsCreateKeyTypeEc, type KmsCreateKeyTypeOct, type KmsCreateKeyTypeOkp, type KmsCreateKeyTypeRsa, type KmsDecryptDataContentDecryption, type KmsDecryptDataDecryption, type KmsDecryptDataDecryptionAesCbc, type KmsDecryptDataDecryptionAesGcm, type KmsDecryptDataDecryptionC20p, type KmsDecryptDataDecryptionHpke, type KmsDecryptOptions, type KmsDecryptReturn, type KmsDeleteKeyOptions, type KmsEncryptDataContentEncryption, type KmsEncryptDataEncryption, type KmsEncryptDataEncryptionAesCbc, type KmsEncryptDataEncryptionAesGcm, type KmsEncryptDataEncryptionHpke, type KmsEncryptDataEncryptionX20c, type KmsEncryptOptions, type KmsEncryptReturn, type KmsEncryptedKey, type KmsGetPublicKeyOptions, type KmsImportKeyOptions, type KmsImportKeyReturn, type KmsJwkPrivate, type KmsJwkPrivateAsymmetric, type KmsJwkPrivateEc, type KmsJwkPrivateFromKmsJwkPublic, type KmsJwkPrivateOct, type KmsJwkPrivateOkp, type KmsJwkPrivateRsa, type KmsJwkPublic, type KmsJwkPublicAsymmetric, type KmsJwkPublicEc, type KmsJwkPublicEcdh, type KmsJwkPublicFromCreateType, type KmsJwkPublicFromKmsJwkPrivate, type KmsJwkPublicOct, type KmsJwkPublicOkp, type KmsJwkPublicRsa, type KmsKeyAgreementDecryptEcdhEsKw, type KmsKeyAgreementDecryptEcdhHsalsa20, type KmsKeyAgreementDecryptHpke, type KmsKeyAgreementDecryptOptions, type KmsKeyAgreementEcdhEs, type KmsKeyAgreementEncryptEcdhEsKw, type KmsKeyAgreementEncryptEcdhHsalsa20, type KmsKeyAgreementEncryptHpke, type KmsKeyAgreementEncryptOptions, type KmsOperation, type KmsOperationCreateKey, type KmsOperationDecrypt, type KmsOperationDeleteKey, type KmsOperationEncrypt, type KmsOperationImportKey, type KmsOperationSign, type KmsOperationVerify, type KmsRandomBytesOptions, type KmsRandomBytesReturn, type KmsSignOptions, type KmsSignReturn, type KmsVerifyOptions, type KmsVerifyReturn, type KnownCoseSignatureAlgorithm, KnownCoseSignatureAlgorithms, type KnownJwaContentEncryptionAlgorithm, KnownJwaContentEncryptionAlgorithms, type KnownJwaHpkeAlgorithm, KnownJwaHpkeAlgorithms, type KnownJwaKeyAgreementAlgorithm, KnownJwaKeyAgreementAlgorithms, type KnownJwaKeyEncryptionAlgorithm, KnownJwaKeyEncryptionAlgorithms, type KnownJwaSignatureAlgorithm, KnownJwaSignatureAlgorithms, P256PublicJwk, P384PublicJwk, P521PublicJwk, PublicJwk, RsaPublicJwk, Secp256k1PublicJwk, X25519PublicJwk, allowedEncryptionAlgsForKey, allowedKeyDerivationAlgsForKey, allowedSigningAlgsForSigningKey, assertAllowedEncryptionAlgForKey, assertAllowedKeyDerivationAlgForKey, assertAllowedSigningAlgForKey, assertAsymmetricJwkKeyTypeMatches, assertJwkAsymmetric, assertKeyAllowsDecrypt, assertKeyAllowsDerive, assertKeyAllowsEncrypt, assertKeyAllowsSign, assertKeyAllowsVerify, assertSupportedEncryptionAlgorithm, assertSupportedKeyAgreementAlgorithm, asymmetricJwkKeyTypeMatches, asymmetricPublicJwkMatches, derEcSignatureToRaw, getJwkHumanDescription, getKmsOperationHumanDescription, index_d_exports, isJwaHpkeAlgorithm, isJwkAsymmetric, isKmsKeyAgreementDecryptHpke, isKmsKeyAgreementEncryptHpke, isKnownCoseSignatureAlgorithm, isKnownJwaSignatureAlgorithm, keyAllowsDecrypt, keyAllowsEncrypt, keyAllowsSign, keyAllowsVerify, knownJwaFromCoseSignatureAlgorithm, legacyKeyIdFromPublicJwk, publicJwkFromPrivateJwk, rawEcSignatureToDer, supportedEncryptionAlgsForKey, supportedKeyDerivationAlgsForKey, supportedSigningAlgsForKey }; //# sourceMappingURL=index.d.mts.map