@substrate-system/keys
    Preparing search index...

    Variable rsaOperationsConst

    rsaOperations: {
        decrypt: (
            _data: string | ArrayBuffer | Uint8Array<ArrayBufferLike>,
            privateKey: ArrayBuffer | Uint8Array<ArrayBufferLike> | CryptoKey,
        ) => Promise<Uint8Array<ArrayBufferLike>>;
        encrypt: (
            msg: Msg,
            publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey,
            charSize?: CharSize,
            hashAlg?: HashAlg,
        ) => Promise<ArrayBuffer>;
        sign: (
            msg: Msg,
            privateKey: CryptoKey,
            charSize?: CharSize,
        ) => Promise<ArrayBuffer>;
        verify: (
            msg: Msg,
            sig: Msg,
            publicKey: string | CryptoKey,
            charSize?: CharSize,
            hashAlg?: HashAlg,
        ) => Promise<boolean>;
    } = ...

    Type declaration

    • decrypt: (
          _data: string | ArrayBuffer | Uint8Array<ArrayBufferLike>,
          privateKey: ArrayBuffer | Uint8Array<ArrayBufferLike> | CryptoKey,
      ) => Promise<Uint8Array<ArrayBufferLike>>

      Use RSA to decrypt the given data.

    • encrypt: (
          msg: Msg,
          publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey,
          charSize?: CharSize,
          hashAlg?: HashAlg,
      ) => Promise<ArrayBuffer>

      Encrypt the given AES key to a given public key.

    • sign: (msg: Msg, privateKey: CryptoKey, charSize?: CharSize) => Promise<ArrayBuffer>
    • verify: (
          msg: Msg,
          sig: Msg,
          publicKey: string | CryptoKey,
          charSize?: CharSize,
          hashAlg?: HashAlg,
      ) => Promise<boolean>