@heliuslabs/spr - v0.9.0-alpha
    Preparing search index...

    Function symmetricApply

    • Mirrors spr_keypair::symmetric_apply: the Poseidon key schedule over a pre-shared secret, then AES-256-CTR. Encryption and decryption are the same operation, so applying it twice returns the input.

      Parameters

      • sharedSecret: Uint8Array
      • info: Uint8Array
      • data: Uint8Array

      Returns Uint8Array