This document specifies the Javascript interface to [[!RingLWE]], which is a fast and post-quantum public key cryptosystem jointly implemented by KDDI R&D Laboratories and Kyushu University.
This document is in a very draft stage. It needs to be updated with appropriate key parameters for the Ring-LWE cryptosystem, for which the W3C WebCryto specifications may or may not be sufficient. Once it is updated, the status of this document will be set to waiting for implementations of Ring-LWE from UserAgent vendors.
The "RLWE"
algorithm identifier is used to perform encryption and decryption using Ring-LWE, as described in [[RingLWE]].
The recognized algorithm name for this algorithm is "RLWE"
.
Operation | Parameters | Result |
---|---|---|
encrypt | RLWEEncryptionParameters | ArrayBuffer |
decrypt | RLWEDecryptionParameters | ArrayBuffer |
generateKey | RLWEKeyGenParameters | CryptoKeyPair |
importKey | None | CryptoKey |
exportKey | None | object |
dictionary RLWEDecryptionParameters : Algorithm { required BufferSource ciphertext; };
dictionary RLWEKeyGenParameters : Algorithm { [EnforceRange] required unsigned short dimension; [EnforceRange] required unsigned long modulo; [EnforceRange] required double error; };
InvalidAccessError
.
InvalidAccessError
.