import { Optional } from '@guarani/types'; import { JsonWebKeyParams } from '../../jsonwebkey.params'; /** * Parameters of the RSA JSON Web Key. */ export interface RsaKeyParams extends JsonWebKeyParams { /** * Type of the JSON Web Key. */ readonly kty: 'RSA'; /** * Modulus. */ readonly n: string; /** * Public Exponent. */ readonly e: string; /** * Private Exponent. */ readonly d?: Optional; /** * First Prime Factor. */ readonly p?: Optional; /** * Second Prime Factor. */ readonly q?: Optional; /** * First Factor CRT Exponent. */ readonly dp?: Optional; /** * Second Factor CRT Exponent. */ readonly dq?: Optional; /** * First Factor CRT Coefficient. */ readonly qi?: Optional; }