-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.0.0-alpha.15
- Loading branch information
Showing
26 changed files
with
896 additions
and
1,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Draftのalgorithm用 | ||
*/ | ||
export declare const keyHashAlgosForDraftEncofing: { | ||
readonly SHA: "sha1"; | ||
readonly 'SHA-1': "sha1"; | ||
readonly 'SHA-256': "sha256"; | ||
readonly 'SHA-384': "sha384"; | ||
readonly 'SHA-512': "sha512"; | ||
readonly MD5: "md5"; | ||
}; | ||
/** | ||
* Draftのalgorithm用 | ||
*/ | ||
export declare const keyHashAlgosForDraftDecoding: { | ||
readonly sha1: "SHA"; | ||
readonly sha256: "SHA-256"; | ||
readonly sha384: "SHA-384"; | ||
readonly sha512: "SHA-512"; | ||
readonly md5: "MD5"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import type { ParsedDraftSignature } from '../types.js'; | ||
export declare function verifyDraftSignature(parsed: ParsedDraftSignature['value'], publicKeyPem: string, errorLogger?: ((message: any) => any)): boolean; | ||
/** | ||
* Experimental | ||
* @experimental Testing Web Crypto API | ||
* Verify Request (Parsed) | ||
*/ | ||
export declare function webVerifyDraftSignature(parsed: ParsedDraftSignature['value'], publicKeyPem: string, errorLogger?: ((message: any) => any)): Promise<boolean>; | ||
import type { ParsedDraftSignature, SignInfo } from '../types.js'; | ||
import { ParsedAlgorithmIdentifier } from '../pem/spki.js'; | ||
export declare class DraftKeyHashValidationError extends Error { | ||
constructor(message: string); | ||
} | ||
/** | ||
* 鍵のアルゴリズムとDraft仕様のalgorithmをもとに、キーとハッシュアルゴリズムをまとめる | ||
* 呼び出しの公開鍵の種類が提供されたものと一致しない場合はエラーを投げる | ||
* @param algorithm ヘッダーのアルゴリズム(Draft仕様) | ||
* @param publicKey 実際の公開鍵 | ||
*/ | ||
export declare function genSignInfoDraft(algorithm: string | undefined, parsed: ParsedAlgorithmIdentifier, errorLogger?: ((message: any) => any)): SignInfo; | ||
/** | ||
* Verify a draft signature | ||
*/ | ||
export declare function verifyDraftSignature(parsed: ParsedDraftSignature['value'], publicKeyPem: string, errorLogger?: ((message: any) => any)): Promise<boolean>; |
Oops, something went wrong.