UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

12 lines • 1.06 kB
export declare function decodeBase64(value: string): Uint8Array<ArrayBuffer> | undefined; /** * Strict DER `SEQUENCE { INTEGER r, INTEGER s }` -> IEEE P1363 `r || s` (64 bytes), the form WebCrypto * verifies. Non-minimal lengths, negative or zero-padded-without-need integers, values wider than the * curve order and trailing bytes are all refused, so one signature has exactly one accepted encoding. */ export declare function derEcdsaSignatureToP1363(der: Uint8Array): Uint8Array<ArrayBuffer> | undefined; /** ECDSA P-256 / SHA-256 verification of a KMS-style DER signature under a base64 SPKI public key. */ export declare function verifyEcdsaP256Sha256(spkiBase64: string, message: Uint8Array<ArrayBuffer>, derSigBase64: string): Promise<boolean>; /** ECDSA P-256 / SHA-256 verification of an IEEE P1363 `r || s` signature under a base64 SPKI public key. */ export declare function verifyP1363Sha256(spkiBase64: string, message: Uint8Array<ArrayBuffer>, signature: Uint8Array<ArrayBuffer>): Promise<boolean>; //# sourceMappingURL=ecdsa-p256.d.ts.map