Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WasmThemis: Secure Message support #490

Merged
merged 3 commits into from
Jul 9, 2019

Commits on Jul 5, 2019

  1. WasmThemis: Secure Message support

    Initial implementation of Secure Message wrapper. We export it as
    three objects:
    
      - "SecureMessage" providing encrypt/decrypt mode
    
      - "SecureMessageSign" and "SecureMessageVerify" providing
        sign/verify mode
    
    The reason for the split is to minimize possibility of API misuse.
    Encryption and decryption is likely to be bidirectional, therefore
    we require the users to specify both private and public keys.
    (Though it might make sense to allow specifying "null" for either
    of the keys in order to allow unidicational message flow.)
    Signing and verifying signatures requires only one part of the key
    pair, so these object accept a corresponding key.
    
    Note that we allow *only* PrivateKey or PublicKey instances. This
    ensures that we operate on valid keys every time.
    
    As JavaScript is dynamically typed, we allow several constructor
    syntax for SecureMessage. We can accept either a KeyPair (a single
    entity), or two arguments with keys (in any order, so that devs
    don't have to remember the correct one in absence of static typing
    and helpful IDE hints).
    ilammy committed Jul 5, 2019
    Configuration menu
    Copy the full SHA
    c0e6be4 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2019

  1. Cosmetic renaming

    ilammy committed Jul 8, 2019
    Configuration menu
    Copy the full SHA
    117b19f View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2019

  1. Configuration menu
    Copy the full SHA
    06f0ee5 View commit details
    Browse the repository at this point in the history