Fix JSDoc types
This commit is contained in:
parent
0654bbe505
commit
28c5902419
|
@ -38,7 +38,7 @@ import { isProbablePrime } from './prime';
|
||||||
* @param {Uint8Array} p
|
* @param {Uint8Array} p
|
||||||
* @param {Uint8Array} q
|
* @param {Uint8Array} q
|
||||||
* @param {Uint8Array} x
|
* @param {Uint8Array} x
|
||||||
* @returns {Promise<{ r: Uint8Array, s: Uint8Array >}}
|
* @returns {Promise<{ r: Uint8Array, s: Uint8Array }>}
|
||||||
* @async
|
* @async
|
||||||
*/
|
*/
|
||||||
export async function sign(hashAlgo, hashed, g, p, q, x) {
|
export async function sign(hashAlgo, hashed, g, p, q, x) {
|
||||||
|
|
|
@ -32,7 +32,7 @@ import { emeEncode, emeDecode } from '../pkcs1';
|
||||||
* @param {Uint8Array} p
|
* @param {Uint8Array} p
|
||||||
* @param {Uint8Array} g
|
* @param {Uint8Array} g
|
||||||
* @param {Uint8Array} y
|
* @param {Uint8Array} y
|
||||||
* @returns {Promise<{ c1: Uint8Array, c2: Uint8Array >}}
|
* @returns {Promise<{ c1: Uint8Array, c2: Uint8Array }>}
|
||||||
* @async
|
* @async
|
||||||
*/
|
*/
|
||||||
export async function encrypt(data, p, g, y) {
|
export async function encrypt(data, p, g, y) {
|
||||||
|
|
|
@ -598,7 +598,7 @@ export class Message {
|
||||||
* keyID: module:type/keyid~KeyID,
|
* keyID: module:type/keyid~KeyID,
|
||||||
* signature: Promise<Signature>,
|
* signature: Promise<Signature>,
|
||||||
* verified: Promise<Boolean>
|
* verified: Promise<Boolean>
|
||||||
* }>} List of signer's keyID and validity of signature.
|
* }>>} List of signer's keyID and validity of signature.
|
||||||
* @async
|
* @async
|
||||||
*/
|
*/
|
||||||
verifyDetached(signature, keys, date = new Date(), config = defaultConfig) {
|
verifyDetached(signature, keys, date = new Date(), config = defaultConfig) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user