Type alias JWKEncrypted

JWKEncrypted: {
    ciphertext: string;
    iv: string;
    tag: string;
    unprotected: {
        alg: "ECDH-SS-NaCl";
        cty: "jwk+json";
        enc: "XSalsa20-Poly1305";
    };
} | {
    ciphertext: string;
    tag: string;
    unprotected: {
        alg: "ECDH-ES-NaCl";
        cty: "jwk+json";
        enc: "XSalsa20-Poly1305";
        epk: {
            crv: "X25519";
            kty: "OKP";
            x: string;
        };
    };
} | {
    ciphertext: string;
    iv: string;
    protected: string;
    tag: string;
}

JWK encrypted as a Flattened JWE JSON This covers ECDH-SS, ECDH-ES and key wrapping

Type declaration

  • ciphertext: string
  • iv: string
  • tag: string
  • unprotected: {
        alg: "ECDH-SS-NaCl";
        cty: "jwk+json";
        enc: "XSalsa20-Poly1305";
    }
    • alg: "ECDH-SS-NaCl"
    • cty: "jwk+json"
    • enc: "XSalsa20-Poly1305"

Type declaration

  • ciphertext: string
  • tag: string
  • unprotected: {
        alg: "ECDH-ES-NaCl";
        cty: "jwk+json";
        enc: "XSalsa20-Poly1305";
        epk: {
            crv: "X25519";
            kty: "OKP";
            x: string;
        };
    }
    • alg: "ECDH-ES-NaCl"
    • cty: "jwk+json"
    • enc: "XSalsa20-Poly1305"
    • epk: {
          crv: "X25519";
          kty: "OKP";
          x: string;
      }
      • crv: "X25519"
      • kty: "OKP"
      • x: string

Type declaration

  • ciphertext: string
  • iv: string
  • protected: string
  • tag: string

Generated using TypeDoc