style: format file
This commit is contained in:
parent
e8c3ab3adc
commit
4bc0ac04b6
|
@ -1,7 +1,7 @@
|
||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
import { AsnParser, AsnSerializer } from "@peculiar/asn1-schema";
|
import { AsnParser, AsnSerializer } from "@peculiar/asn1-schema";
|
||||||
import { JsonParser, JsonSerializer } from "@peculiar/json-schema";
|
import { JsonParser, JsonSerializer } from "@peculiar/json-schema";
|
||||||
import {BufferSourceConverter} from "pvtsutils";
|
import { BufferSourceConverter } from "pvtsutils";
|
||||||
import * as core from "webcrypto-core";
|
import * as core from "webcrypto-core";
|
||||||
import { CryptoKey } from "../../keys";
|
import { CryptoKey } from "../../keys";
|
||||||
import { ShaCrypto } from "../sha";
|
import { ShaCrypto } from "../sha";
|
||||||
|
@ -64,7 +64,7 @@ export class EcCrypto {
|
||||||
const ecSignature = AsnParser.parse(signature, core.asn1.EcDsaSignature);
|
const ecSignature = AsnParser.parse(signature, core.asn1.EcDsaSignature);
|
||||||
|
|
||||||
const signatureRaw = core.EcUtils.encodeSignature(ecSignature, core.EcCurves.get(key.algorithm.namedCurve).size);
|
const signatureRaw = core.EcUtils.encodeSignature(ecSignature, core.EcCurves.get(key.algorithm.namedCurve).size);
|
||||||
|
|
||||||
return signatureRaw.buffer;
|
return signatureRaw.buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue