mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
20 lines
500 B
TypeScript
20 lines
500 B
TypeScript
// Type definitions for pem-jwk 1.5
|
|
// Project: https://github.com/dannycoates/pem-jwk
|
|
// Definitions by: Alessio Paccoia <https://github.com/alessiopcc>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export interface RSA_JWK {
|
|
kty: string;
|
|
n: string;
|
|
e: string;
|
|
d?: string;
|
|
p?: string;
|
|
q?: string;
|
|
dp?: string;
|
|
dq?: string;
|
|
qi?: string;
|
|
}
|
|
|
|
export function pem2jwk(rsa_pem: string): RSA_JWK;
|
|
export function jwk2pem(rsa_jwk: RSA_JWK): string;
|