Commit 33e45d97 by cf

fixed gm

parent 47fb8d59
{ {
"name": "zswjs", "name": "zswjs",
"version": "1.3.1", "version": "1.3.2",
"description": "中数文API", "description": "中数文API",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -8,9 +8,23 @@ export { PrivateKey } from './PrivateKey'; ...@@ -8,9 +8,23 @@ export { PrivateKey } from './PrivateKey';
export { PublicKey } from './PublicKey'; export { PublicKey } from './PublicKey';
export { Signature } from './Signature'; export { Signature } from './Signature';
interface Options {
type: string;
prime: string | null;
p: string;
a: string;
b: string;
n: string;
hash: any;
gRed: boolean;
g: any; // ?
beta?: string | undefined;
lambda?: string | undefined;
basis?: any; // ?
}
const SM2_PARAMS : curves.PresetCurve.Options= { const SM2_PARAMS : curves.PresetCurve.Options= {
type: 'SM2', type: 'short',
prime: null, prime: null,
p: 'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFF', p: 'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFF',
a: 'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFC', a: 'FFFFFFFE FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFC',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment