@solibo/solibo-sdk 1.16.16 → 1.16.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.mjs +98 -98
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +3 -3
- package/bitops-library-bits.mjs +33 -33
- package/bitops-library-endian.mjs +3 -3
- package/client.d.mts +4 -0
- package/core-library-digest.mjs +29 -29
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +7 -7
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +190 -190
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +177 -177
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +238 -238
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +20 -20
- package/hash-library-md.mjs +30 -30
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/ktor-ktor-client-auth.mjs +220 -220
- package/ktor-ktor-client-encoding.mjs +75 -75
- package/ktor-ktor-client-logging.mjs +520 -520
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +30205 -29926
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +116 -0
- package/solibo-sdk-sdk.mjs +4608 -4586
|
@@ -211,8 +211,8 @@ function WebCryptoCryptographyProvider() {
|
|
|
211
211
|
WebCryptoCryptographyProvider_instance = this;
|
|
212
212
|
CryptographyProvider.call(this);
|
|
213
213
|
}
|
|
214
|
-
protoOf(WebCryptoCryptographyProvider).
|
|
215
|
-
var tmp = equals(identifier, SHA1_getInstance()) ? Companion_getInstance_14().
|
|
214
|
+
protoOf(WebCryptoCryptographyProvider).syk = function (identifier) {
|
|
215
|
+
var tmp = equals(identifier, SHA1_getInstance()) ? Companion_getInstance_14().ayq_1 : equals(identifier, SHA256_getInstance()) ? Companion_getInstance_14().byq_1 : equals(identifier, SHA384_getInstance()) ? Companion_getInstance_14().cyq_1 : equals(identifier, SHA512_getInstance()) ? Companion_getInstance_14().dyq_1 : equals(identifier, Companion_getInstance_11()) ? WebCryptoHmac_getInstance() : equals(identifier, Companion_getInstance_10()) ? WebCryptoAesCbc_getInstance() : equals(identifier, Companion_getInstance_9()) ? WebCryptoAesCtr_getInstance() : equals(identifier, Companion_getInstance_8()) ? WebCryptoAesGcm_getInstance() : equals(identifier, Companion_getInstance_7()) ? WebCryptoRsaOaep_getInstance() : equals(identifier, Companion_getInstance_6()) ? WebCryptoRsaPss_getInstance() : equals(identifier, Companion_getInstance_5()) ? WebCryptoRsaPkcs1_getInstance() : equals(identifier, Companion_getInstance_4()) ? WebCryptoEcdsa_getInstance() : equals(identifier, Companion_getInstance_3()) ? WebCryptoEdDsa_getInstance() : equals(identifier, Companion_getInstance_2()) ? WebCryptoEcdh_getInstance() : equals(identifier, Companion_getInstance_1()) ? WebCryptoXdh_getInstance() : equals(identifier, Companion_getInstance_0()) ? WebCryptoPbkdf2_instance : equals(identifier, Companion_getInstance()) ? WebCryptoHkdf_instance : null;
|
|
216
216
|
return (tmp == null ? true : isInterface(tmp, CryptographyAlgorithm)) ? tmp : THROW_CCE();
|
|
217
217
|
};
|
|
218
218
|
var WebCryptoCryptographyProvider_instance;
|
|
@@ -235,17 +235,17 @@ function _init_properties_WebCryptoCryptographyProvider_kt__i22tls() {
|
|
|
235
235
|
}
|
|
236
236
|
function AesKey(key) {
|
|
237
237
|
WebCryptoEncodableKey.call(this, key, AesKeyProcessor_getInstance());
|
|
238
|
-
this.
|
|
238
|
+
this.gyq_1 = key;
|
|
239
239
|
}
|
|
240
240
|
function WebCryptoAes(algorithmName, keyWrapper) {
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
241
|
+
this.hyq_1 = algorithmName;
|
|
242
|
+
this.iyq_1 = keyWrapper;
|
|
243
243
|
}
|
|
244
244
|
function AesKeyProcessor() {
|
|
245
245
|
AesKeyProcessor_instance = this;
|
|
246
246
|
WebCryptoKeyProcessor.call(this);
|
|
247
247
|
}
|
|
248
|
-
protoOf(AesKeyProcessor).
|
|
248
|
+
protoOf(AesKeyProcessor).jyq = function (format) {
|
|
249
249
|
var tmp;
|
|
250
250
|
switch (format.a1_1) {
|
|
251
251
|
case 0:
|
|
@@ -260,14 +260,14 @@ protoOf(AesKeyProcessor).byq = function (format) {
|
|
|
260
260
|
}
|
|
261
261
|
return tmp;
|
|
262
262
|
};
|
|
263
|
-
protoOf(AesKeyProcessor).
|
|
264
|
-
return this.
|
|
263
|
+
protoOf(AesKeyProcessor).kyq = function (format) {
|
|
264
|
+
return this.jyq(format instanceof Format ? format : THROW_CCE());
|
|
265
265
|
};
|
|
266
|
-
protoOf(AesKeyProcessor).
|
|
266
|
+
protoOf(AesKeyProcessor).lyq = function (algorithm, format, key) {
|
|
267
267
|
return key;
|
|
268
268
|
};
|
|
269
|
-
protoOf(AesKeyProcessor).
|
|
270
|
-
return this.
|
|
269
|
+
protoOf(AesKeyProcessor).myq = function (algorithm, format, key) {
|
|
270
|
+
return this.lyq(algorithm, format instanceof Format ? format : THROW_CCE(), key);
|
|
271
271
|
};
|
|
272
272
|
var AesKeyProcessor_instance;
|
|
273
273
|
function AesKeyProcessor_getInstance() {
|
|
@@ -343,10 +343,10 @@ function WebCryptoAesGcm_getInstance() {
|
|
|
343
343
|
}
|
|
344
344
|
function Companion() {
|
|
345
345
|
Companion_instance_3 = this;
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
346
|
+
this.ayq_1 = new WebCryptoDigest('SHA-1', SHA1_getInstance());
|
|
347
|
+
this.byq_1 = new WebCryptoDigest('SHA-256', SHA256_getInstance());
|
|
348
|
+
this.cyq_1 = new WebCryptoDigest('SHA-384', SHA384_getInstance());
|
|
349
|
+
this.dyq_1 = new WebCryptoDigest('SHA-512', SHA512_getInstance());
|
|
350
350
|
}
|
|
351
351
|
var Companion_instance_3;
|
|
352
352
|
function Companion_getInstance_14() {
|
|
@@ -356,53 +356,53 @@ function Companion_getInstance_14() {
|
|
|
356
356
|
}
|
|
357
357
|
function WebCryptoDigest(algorithm, id) {
|
|
358
358
|
Companion_getInstance_14();
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
359
|
+
this.nyq_1 = algorithm;
|
|
360
|
+
this.oyq_1 = id;
|
|
361
361
|
}
|
|
362
|
-
protoOf(WebCryptoDigest).
|
|
362
|
+
protoOf(WebCryptoDigest).pyq = function () {
|
|
363
363
|
return this;
|
|
364
364
|
};
|
|
365
|
-
protoOf(WebCryptoDigest).
|
|
366
|
-
return WebCrypto_getInstance().
|
|
365
|
+
protoOf(WebCryptoDigest).jyl = function (data, $completion) {
|
|
366
|
+
return WebCrypto_getInstance().ryq(this.nyq_1, data, $completion);
|
|
367
367
|
};
|
|
368
|
-
protoOf(WebCryptoDigest).
|
|
368
|
+
protoOf(WebCryptoDigest).iyl = function () {
|
|
369
369
|
nonBlocking();
|
|
370
370
|
};
|
|
371
|
-
protoOf(WebCryptoDigest).
|
|
371
|
+
protoOf(WebCryptoDigest).kyl = function (data) {
|
|
372
372
|
nonBlocking();
|
|
373
373
|
};
|
|
374
374
|
function EcPublicKey(publicKey) {
|
|
375
375
|
WebCryptoEncodableKey.call(this, publicKey, EcPublicKeyProcessor_getInstance());
|
|
376
|
-
this.
|
|
376
|
+
this.uyq_1 = publicKey;
|
|
377
377
|
}
|
|
378
378
|
function EcPrivateKey_0($outer, privateKey) {
|
|
379
|
-
this.
|
|
379
|
+
this.yyq_1 = $outer;
|
|
380
380
|
WebCryptoEncodableKey.call(this, privateKey, EcPrivateKeyProcessor_getInstance());
|
|
381
|
-
this.
|
|
381
|
+
this.xyq_1 = privateKey;
|
|
382
382
|
}
|
|
383
383
|
function WebCryptoEc$keyPairWrapper$lambda($keyPairWrapper, this$0) {
|
|
384
384
|
return function (it) {
|
|
385
|
-
return $keyPairWrapper(this$0.
|
|
385
|
+
return $keyPairWrapper(this$0.cyr_1.ayr_1(it.publicKey), this$0.dyr_1.ayr_1(it.privateKey));
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function WebCryptoEc(algorithmName, publicKeyWrapper, privateKeyWrapper, keyPairWrapper) {
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
389
|
+
this.byr_1 = algorithmName;
|
|
390
|
+
this.cyr_1 = publicKeyWrapper;
|
|
391
|
+
this.dyr_1 = privateKeyWrapper;
|
|
392
392
|
var tmp = this;
|
|
393
|
-
var tmp0 = this.
|
|
393
|
+
var tmp0 = this.cyr_1.zyq_1;
|
|
394
394
|
// Inline function 'kotlin.collections.plus' call
|
|
395
|
-
var elements = this.
|
|
395
|
+
var elements = this.dyr_1.zyq_1;
|
|
396
396
|
// Inline function 'kotlin.js.asDynamic' call
|
|
397
|
-
tmp.
|
|
397
|
+
tmp.eyr_1 = tmp0.concat(elements);
|
|
398
398
|
var tmp_0 = this;
|
|
399
|
-
tmp_0.
|
|
399
|
+
tmp_0.fyr_1 = WebCryptoEc$keyPairWrapper$lambda(keyPairWrapper, this);
|
|
400
400
|
}
|
|
401
401
|
function EcPublicKeyProcessor() {
|
|
402
402
|
EcPublicKeyProcessor_instance = this;
|
|
403
403
|
WebCryptoKeyProcessor.call(this);
|
|
404
404
|
}
|
|
405
|
-
protoOf(EcPublicKeyProcessor).
|
|
405
|
+
protoOf(EcPublicKeyProcessor).gyr = function (format) {
|
|
406
406
|
var tmp;
|
|
407
407
|
if (equals(format, JWK_getInstance())) {
|
|
408
408
|
tmp = 'jwk';
|
|
@@ -415,10 +415,10 @@ protoOf(EcPublicKeyProcessor).yyq = function (format) {
|
|
|
415
415
|
}
|
|
416
416
|
return tmp;
|
|
417
417
|
};
|
|
418
|
-
protoOf(EcPublicKeyProcessor).
|
|
419
|
-
return this.
|
|
418
|
+
protoOf(EcPublicKeyProcessor).kyq = function (format) {
|
|
419
|
+
return this.gyr(format instanceof Format_0 ? format : THROW_CCE());
|
|
420
420
|
};
|
|
421
|
-
protoOf(EcPublicKeyProcessor).
|
|
421
|
+
protoOf(EcPublicKeyProcessor).hyr = function (algorithm, format, key) {
|
|
422
422
|
var tmp;
|
|
423
423
|
if (equals(format, JWK_getInstance())) {
|
|
424
424
|
tmp = key;
|
|
@@ -427,14 +427,14 @@ protoOf(EcPublicKeyProcessor).zyq = function (algorithm, format, key) {
|
|
|
427
427
|
} else if (equals(format, DER_getInstance())) {
|
|
428
428
|
tmp = key;
|
|
429
429
|
} else if (equals(format, PEM_getInstance())) {
|
|
430
|
-
tmp = unwrapPem(Companion_getInstance_12().
|
|
430
|
+
tmp = unwrapPem(Companion_getInstance_12().qyp_1, key);
|
|
431
431
|
} else {
|
|
432
432
|
noWhenBranchMatchedException();
|
|
433
433
|
}
|
|
434
434
|
return tmp;
|
|
435
435
|
};
|
|
436
|
-
protoOf(EcPublicKeyProcessor).
|
|
437
|
-
return this.
|
|
436
|
+
protoOf(EcPublicKeyProcessor).myq = function (algorithm, format, key) {
|
|
437
|
+
return this.hyr(algorithm, format instanceof Format_0 ? format : THROW_CCE(), key);
|
|
438
438
|
};
|
|
439
439
|
var EcPublicKeyProcessor_instance;
|
|
440
440
|
function EcPublicKeyProcessor_getInstance() {
|
|
@@ -444,17 +444,17 @@ function EcPublicKeyProcessor_getInstance() {
|
|
|
444
444
|
}
|
|
445
445
|
function recodeWithoutParameters($this, derKey) {
|
|
446
446
|
var pki = Default_getInstance().ru(Companion_getInstance_13().o6k(), derKey);
|
|
447
|
-
var privateKey = Default_getInstance().ru(Companion_instance_2.o6k(), pki.
|
|
448
|
-
var tmp = privateKey.
|
|
447
|
+
var privateKey = Default_getInstance().ru(Companion_instance_2.o6k(), pki.fyp_1);
|
|
448
|
+
var tmp = privateKey.yyo_1;
|
|
449
449
|
if ((tmp == null ? null : new EcParameters(tmp)) == null)
|
|
450
450
|
return derKey;
|
|
451
|
-
return wrapPrivateKeyInfo(pki.
|
|
451
|
+
return wrapPrivateKeyInfo(pki.dyp_1, pki.eyp_1, Default_getInstance().qu(Companion_instance_2.o6k(), new EcPrivateKey(1, privateKey.xyo_1, null, privateKey.zyo_1)));
|
|
452
452
|
}
|
|
453
453
|
function EcPrivateKeyProcessor() {
|
|
454
454
|
EcPrivateKeyProcessor_instance = this;
|
|
455
455
|
WebCryptoKeyProcessor.call(this);
|
|
456
456
|
}
|
|
457
|
-
protoOf(EcPrivateKeyProcessor).
|
|
457
|
+
protoOf(EcPrivateKeyProcessor).iyr = function (format) {
|
|
458
458
|
var tmp;
|
|
459
459
|
if (equals(format, JWK_getInstance_0())) {
|
|
460
460
|
tmp = 'jwk';
|
|
@@ -465,21 +465,21 @@ protoOf(EcPrivateKeyProcessor).ayr = function (format) {
|
|
|
465
465
|
}
|
|
466
466
|
return tmp;
|
|
467
467
|
};
|
|
468
|
-
protoOf(EcPrivateKeyProcessor).
|
|
469
|
-
return this.
|
|
468
|
+
protoOf(EcPrivateKeyProcessor).kyq = function (format) {
|
|
469
|
+
return this.iyr(format instanceof Format_1 ? format : THROW_CCE());
|
|
470
470
|
};
|
|
471
|
-
protoOf(EcPrivateKeyProcessor).
|
|
471
|
+
protoOf(EcPrivateKeyProcessor).jyr = function (algorithm, format, key) {
|
|
472
472
|
var tmp;
|
|
473
473
|
if (equals(format, JWK_getInstance_0())) {
|
|
474
474
|
tmp = key;
|
|
475
475
|
} else if (equals(format, RAW_getInstance())) {
|
|
476
476
|
var namedCurve = get_ecKeyAlgorithmNamedCurve(algorithm);
|
|
477
477
|
var tmp_0;
|
|
478
|
-
if (namedCurve === _Curve___get_name__impl__klrusc(Companion_instance.
|
|
478
|
+
if (namedCurve === _Curve___get_name__impl__klrusc(Companion_instance.dyl())) {
|
|
479
479
|
tmp_0 = get_secp256r1(Companion_instance_1);
|
|
480
|
-
} else if (namedCurve === _Curve___get_name__impl__klrusc(Companion_instance.
|
|
480
|
+
} else if (namedCurve === _Curve___get_name__impl__klrusc(Companion_instance.eyl())) {
|
|
481
481
|
tmp_0 = get_secp384r1(Companion_instance_1);
|
|
482
|
-
} else if (namedCurve === _Curve___get_name__impl__klrusc(Companion_instance.
|
|
482
|
+
} else if (namedCurve === _Curve___get_name__impl__klrusc(Companion_instance.fyl())) {
|
|
483
483
|
tmp_0 = get_secp521r1(Companion_instance_1);
|
|
484
484
|
} else {
|
|
485
485
|
// Inline function 'kotlin.error' call
|
|
@@ -491,18 +491,18 @@ protoOf(EcPrivateKeyProcessor).byr = function (algorithm, format, key) {
|
|
|
491
491
|
} else if (equals(format, Generic_getInstance())) {
|
|
492
492
|
tmp = recodeWithoutParameters(this, key);
|
|
493
493
|
} else if (equals(format, Generic_getInstance_0())) {
|
|
494
|
-
tmp = recodeWithoutParameters(this, unwrapPem(Companion_getInstance_12().
|
|
494
|
+
tmp = recodeWithoutParameters(this, unwrapPem(Companion_getInstance_12().ryp_1, key));
|
|
495
495
|
} else if (equals(format, SEC1_getInstance())) {
|
|
496
496
|
tmp = recodeWithoutParameters(this, convertEcPrivateKeyFromSec1ToPkcs8(key));
|
|
497
497
|
} else if (equals(format, SEC1_getInstance_0())) {
|
|
498
|
-
tmp = recodeWithoutParameters(this, convertEcPrivateKeyFromSec1ToPkcs8(unwrapPem(Companion_getInstance_12().
|
|
498
|
+
tmp = recodeWithoutParameters(this, convertEcPrivateKeyFromSec1ToPkcs8(unwrapPem(Companion_getInstance_12().vyp_1, key)));
|
|
499
499
|
} else {
|
|
500
500
|
noWhenBranchMatchedException();
|
|
501
501
|
}
|
|
502
502
|
return tmp;
|
|
503
503
|
};
|
|
504
|
-
protoOf(EcPrivateKeyProcessor).
|
|
505
|
-
return this.
|
|
504
|
+
protoOf(EcPrivateKeyProcessor).myq = function (algorithm, format, key) {
|
|
505
|
+
return this.jyr(algorithm, format instanceof Format_1 ? format : THROW_CCE(), key);
|
|
506
506
|
};
|
|
507
507
|
var EcPrivateKeyProcessor_instance;
|
|
508
508
|
function EcPrivateKeyProcessor_getInstance() {
|
|
@@ -511,8 +511,8 @@ function EcPrivateKeyProcessor_getInstance() {
|
|
|
511
511
|
return EcPrivateKeyProcessor_instance;
|
|
512
512
|
}
|
|
513
513
|
function EcdhKeyPair(publicKey, privateKey) {
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
514
|
+
this.kyr_1 = publicKey;
|
|
515
|
+
this.lyr_1 = privateKey;
|
|
516
516
|
}
|
|
517
517
|
function EcdhPublicKey(publicKey) {
|
|
518
518
|
EcPublicKey.call(this, publicKey);
|
|
@@ -556,8 +556,8 @@ function WebCryptoEcdh_getInstance() {
|
|
|
556
556
|
return WebCryptoEcdh_instance;
|
|
557
557
|
}
|
|
558
558
|
function EcdsaKeyPair(publicKey, privateKey) {
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
559
|
+
this.myr_1 = publicKey;
|
|
560
|
+
this.nyr_1 = privateKey;
|
|
561
561
|
}
|
|
562
562
|
function EcdsaPublicKey(publicKey) {
|
|
563
563
|
EcPublicKey.call(this, publicKey);
|
|
@@ -601,16 +601,16 @@ function WebCryptoEcdsa_getInstance() {
|
|
|
601
601
|
return WebCryptoEcdsa_instance;
|
|
602
602
|
}
|
|
603
603
|
function EdDsaKeyPair(publicKey, privateKey) {
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
604
|
+
this.oyr_1 = publicKey;
|
|
605
|
+
this.pyr_1 = privateKey;
|
|
606
606
|
}
|
|
607
607
|
function EdDsaPublicKey(publicKey) {
|
|
608
608
|
WebCryptoEncodableKey.call(this, publicKey, EdPublicKeyProcessor_getInstance());
|
|
609
|
-
this.
|
|
609
|
+
this.syr_1 = publicKey;
|
|
610
610
|
}
|
|
611
611
|
function EdDsaPrivateKey(privateKey) {
|
|
612
612
|
WebCryptoEncodableKey.call(this, privateKey, EdPrivateKeyProcessor_getInstance());
|
|
613
|
-
this.
|
|
613
|
+
this.vyr_1 = privateKey;
|
|
614
614
|
}
|
|
615
615
|
function WebCryptoEdDsa$EdDsaPublicKey$_init_$ref_xkwfek() {
|
|
616
616
|
return constructCallableReference(function (p0) {
|
|
@@ -632,21 +632,21 @@ function WebCryptoEdDsa() {
|
|
|
632
632
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
633
633
|
// Inline function 'kotlin.js.asDynamic' call
|
|
634
634
|
var tmp_0 = ['verify'];
|
|
635
|
-
tmp.
|
|
635
|
+
tmp.wyr_1 = new WebCryptoKeyWrapper(tmp_0, WebCryptoEdDsa$EdDsaPublicKey$_init_$ref_xkwfek());
|
|
636
636
|
var tmp_1 = this;
|
|
637
637
|
// Inline function 'kotlin.arrayOf' call
|
|
638
638
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
639
639
|
// Inline function 'kotlin.js.asDynamic' call
|
|
640
640
|
var tmp_2 = ['sign'];
|
|
641
|
-
tmp_1.
|
|
641
|
+
tmp_1.xyr_1 = new WebCryptoKeyWrapper(tmp_2, WebCryptoEdDsa$EdDsaPrivateKey$_init_$ref_9jweho());
|
|
642
642
|
var tmp_3 = this;
|
|
643
|
-
var tmp0 = this.
|
|
643
|
+
var tmp0 = this.wyr_1.zyq_1;
|
|
644
644
|
// Inline function 'kotlin.collections.plus' call
|
|
645
|
-
var elements = this.
|
|
645
|
+
var elements = this.xyr_1.zyq_1;
|
|
646
646
|
// Inline function 'kotlin.js.asDynamic' call
|
|
647
|
-
tmp_3.
|
|
647
|
+
tmp_3.yyr_1 = tmp0.concat(elements);
|
|
648
648
|
var tmp_4 = this;
|
|
649
|
-
tmp_4.
|
|
649
|
+
tmp_4.zyr_1 = WebCryptoEdDsa$keyPairWrapper$lambda;
|
|
650
650
|
}
|
|
651
651
|
var WebCryptoEdDsa_instance;
|
|
652
652
|
function WebCryptoEdDsa_getInstance() {
|
|
@@ -658,7 +658,7 @@ function EdPublicKeyProcessor() {
|
|
|
658
658
|
EdPublicKeyProcessor_instance = this;
|
|
659
659
|
WebCryptoKeyProcessor.call(this);
|
|
660
660
|
}
|
|
661
|
-
protoOf(EdPublicKeyProcessor).
|
|
661
|
+
protoOf(EdPublicKeyProcessor).ays = function (format) {
|
|
662
662
|
var tmp;
|
|
663
663
|
if (equals(format, JWK_getInstance_1())) {
|
|
664
664
|
tmp = 'jwk';
|
|
@@ -671,10 +671,10 @@ protoOf(EdPublicKeyProcessor).syr = function (format) {
|
|
|
671
671
|
}
|
|
672
672
|
return tmp;
|
|
673
673
|
};
|
|
674
|
-
protoOf(EdPublicKeyProcessor).
|
|
675
|
-
return this.
|
|
674
|
+
protoOf(EdPublicKeyProcessor).kyq = function (format) {
|
|
675
|
+
return this.ays(format instanceof Format_2 ? format : THROW_CCE());
|
|
676
676
|
};
|
|
677
|
-
protoOf(EdPublicKeyProcessor).
|
|
677
|
+
protoOf(EdPublicKeyProcessor).bys = function (algorithm, format, key) {
|
|
678
678
|
var tmp;
|
|
679
679
|
if (equals(format, JWK_getInstance_1())) {
|
|
680
680
|
tmp = key;
|
|
@@ -683,14 +683,14 @@ protoOf(EdPublicKeyProcessor).tyr = function (algorithm, format, key) {
|
|
|
683
683
|
} else if (equals(format, DER_getInstance_0())) {
|
|
684
684
|
tmp = key;
|
|
685
685
|
} else if (equals(format, PEM_getInstance_0())) {
|
|
686
|
-
tmp = unwrapPem(Companion_getInstance_12().
|
|
686
|
+
tmp = unwrapPem(Companion_getInstance_12().qyp_1, key);
|
|
687
687
|
} else {
|
|
688
688
|
noWhenBranchMatchedException();
|
|
689
689
|
}
|
|
690
690
|
return tmp;
|
|
691
691
|
};
|
|
692
|
-
protoOf(EdPublicKeyProcessor).
|
|
693
|
-
return this.
|
|
692
|
+
protoOf(EdPublicKeyProcessor).myq = function (algorithm, format, key) {
|
|
693
|
+
return this.bys(algorithm, format instanceof Format_2 ? format : THROW_CCE(), key);
|
|
694
694
|
};
|
|
695
695
|
var EdPublicKeyProcessor_instance;
|
|
696
696
|
function EdPublicKeyProcessor_getInstance() {
|
|
@@ -719,7 +719,7 @@ function EdPrivateKeyProcessor() {
|
|
|
719
719
|
EdPrivateKeyProcessor_instance = this;
|
|
720
720
|
WebCryptoKeyProcessor.call(this);
|
|
721
721
|
}
|
|
722
|
-
protoOf(EdPrivateKeyProcessor).
|
|
722
|
+
protoOf(EdPrivateKeyProcessor).cys = function (format) {
|
|
723
723
|
var tmp;
|
|
724
724
|
if (equals(format, JWK_getInstance_2())) {
|
|
725
725
|
tmp = 'jwk';
|
|
@@ -730,10 +730,10 @@ protoOf(EdPrivateKeyProcessor).uyr = function (format) {
|
|
|
730
730
|
}
|
|
731
731
|
return tmp;
|
|
732
732
|
};
|
|
733
|
-
protoOf(EdPrivateKeyProcessor).
|
|
734
|
-
return this.
|
|
733
|
+
protoOf(EdPrivateKeyProcessor).kyq = function (format) {
|
|
734
|
+
return this.cys(format instanceof Format_3 ? format : THROW_CCE());
|
|
735
735
|
};
|
|
736
|
-
protoOf(EdPrivateKeyProcessor).
|
|
736
|
+
protoOf(EdPrivateKeyProcessor).dys = function (algorithm, format, key) {
|
|
737
737
|
var tmp;
|
|
738
738
|
if (equals(format, JWK_getInstance_2())) {
|
|
739
739
|
tmp = key;
|
|
@@ -742,14 +742,14 @@ protoOf(EdPrivateKeyProcessor).vyr = function (algorithm, format, key) {
|
|
|
742
742
|
} else if (equals(format, DER_getInstance_1())) {
|
|
743
743
|
tmp = key;
|
|
744
744
|
} else if (equals(format, PEM_getInstance_1())) {
|
|
745
|
-
tmp = unwrapPem(Companion_getInstance_12().
|
|
745
|
+
tmp = unwrapPem(Companion_getInstance_12().ryp_1, key);
|
|
746
746
|
} else {
|
|
747
747
|
noWhenBranchMatchedException();
|
|
748
748
|
}
|
|
749
749
|
return tmp;
|
|
750
750
|
};
|
|
751
|
-
protoOf(EdPrivateKeyProcessor).
|
|
752
|
-
return this.
|
|
751
|
+
protoOf(EdPrivateKeyProcessor).myq = function (algorithm, format, key) {
|
|
752
|
+
return this.dys(algorithm, format instanceof Format_3 ? format : THROW_CCE(), key);
|
|
753
753
|
};
|
|
754
754
|
var EdPrivateKeyProcessor_instance;
|
|
755
755
|
function EdPrivateKeyProcessor_getInstance() {
|
|
@@ -765,10 +765,10 @@ function WebCryptoHkdf_getInstance() {
|
|
|
765
765
|
}
|
|
766
766
|
function HmacKey(key) {
|
|
767
767
|
WebCryptoEncodableKey.call(this, key, HmacKeyProcessor_getInstance());
|
|
768
|
-
this.
|
|
768
|
+
this.gys_1 = key;
|
|
769
769
|
}
|
|
770
|
-
protoOf(HmacKey).
|
|
771
|
-
return new WebCryptoSignatureGenerator(Algorithm('HMAC'), this.
|
|
770
|
+
protoOf(HmacKey).hys = function () {
|
|
771
|
+
return new WebCryptoSignatureGenerator(Algorithm('HMAC'), this.gys_1);
|
|
772
772
|
};
|
|
773
773
|
function WebCryptoHmac$HmacKey$_init_$ref_enwl2t() {
|
|
774
774
|
return constructCallableReference(function (p0) {
|
|
@@ -782,10 +782,10 @@ function WebCryptoHmac() {
|
|
|
782
782
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
783
783
|
// Inline function 'kotlin.js.asDynamic' call
|
|
784
784
|
var tmp_0 = ['sign', 'verify'];
|
|
785
|
-
tmp.
|
|
785
|
+
tmp.iys_1 = new WebCryptoKeyWrapper(tmp_0, WebCryptoHmac$HmacKey$_init_$ref_enwl2t());
|
|
786
786
|
}
|
|
787
|
-
protoOf(WebCryptoHmac).
|
|
788
|
-
return new WebCryptoKeyDecoder(HmacKeyAlgorithm(hashAlgorithmName(digest), null), HmacKeyProcessor_getInstance(), this.
|
|
787
|
+
protoOf(WebCryptoHmac).jys = function (digest) {
|
|
788
|
+
return new WebCryptoKeyDecoder(HmacKeyAlgorithm(hashAlgorithmName(digest), null), HmacKeyProcessor_getInstance(), this.iys_1);
|
|
789
789
|
};
|
|
790
790
|
var WebCryptoHmac_instance;
|
|
791
791
|
function WebCryptoHmac_getInstance() {
|
|
@@ -797,7 +797,7 @@ function HmacKeyProcessor() {
|
|
|
797
797
|
HmacKeyProcessor_instance = this;
|
|
798
798
|
WebCryptoKeyProcessor.call(this);
|
|
799
799
|
}
|
|
800
|
-
protoOf(HmacKeyProcessor).
|
|
800
|
+
protoOf(HmacKeyProcessor).kys = function (format) {
|
|
801
801
|
var tmp;
|
|
802
802
|
switch (format.a1_1) {
|
|
803
803
|
case 0:
|
|
@@ -812,14 +812,14 @@ protoOf(HmacKeyProcessor).cys = function (format) {
|
|
|
812
812
|
}
|
|
813
813
|
return tmp;
|
|
814
814
|
};
|
|
815
|
-
protoOf(HmacKeyProcessor).
|
|
816
|
-
return this.
|
|
815
|
+
protoOf(HmacKeyProcessor).kyq = function (format) {
|
|
816
|
+
return this.kys(format instanceof Format_4 ? format : THROW_CCE());
|
|
817
817
|
};
|
|
818
|
-
protoOf(HmacKeyProcessor).
|
|
818
|
+
protoOf(HmacKeyProcessor).lys = function (algorithm, format, key) {
|
|
819
819
|
return key;
|
|
820
820
|
};
|
|
821
|
-
protoOf(HmacKeyProcessor).
|
|
822
|
-
return this.
|
|
821
|
+
protoOf(HmacKeyProcessor).myq = function (algorithm, format, key) {
|
|
822
|
+
return this.lys(algorithm, format instanceof Format_4 ? format : THROW_CCE(), key);
|
|
823
823
|
};
|
|
824
824
|
var HmacKeyProcessor_instance;
|
|
825
825
|
function HmacKeyProcessor_getInstance() {
|
|
@@ -835,36 +835,36 @@ function WebCryptoPbkdf2_getInstance() {
|
|
|
835
835
|
}
|
|
836
836
|
function RsaPublicKey(publicKey) {
|
|
837
837
|
WebCryptoEncodableKey.call(this, publicKey, RsaPublicKeyProcessor_getInstance());
|
|
838
|
-
this.
|
|
838
|
+
this.oys_1 = publicKey;
|
|
839
839
|
}
|
|
840
840
|
function RsaPrivateKey($outer, privateKey) {
|
|
841
|
-
this.
|
|
841
|
+
this.sys_1 = $outer;
|
|
842
842
|
WebCryptoEncodableKey.call(this, privateKey, RsaPrivateKeyProcessor_getInstance());
|
|
843
|
-
this.
|
|
843
|
+
this.rys_1 = privateKey;
|
|
844
844
|
}
|
|
845
845
|
function WebCryptoRsa$keyPairWrapper$lambda($keyPairWrapper, this$0) {
|
|
846
846
|
return function (it) {
|
|
847
|
-
return $keyPairWrapper(this$0.
|
|
847
|
+
return $keyPairWrapper(this$0.uys_1.ayr_1(it.publicKey), this$0.vys_1.ayr_1(it.privateKey));
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
function WebCryptoRsa(algorithmName, publicKeyWrapper, privateKeyWrapper, keyPairWrapper) {
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
853
|
-
this.
|
|
851
|
+
this.tys_1 = algorithmName;
|
|
852
|
+
this.uys_1 = publicKeyWrapper;
|
|
853
|
+
this.vys_1 = privateKeyWrapper;
|
|
854
854
|
var tmp = this;
|
|
855
|
-
var tmp0 = this.
|
|
855
|
+
var tmp0 = this.uys_1.zyq_1;
|
|
856
856
|
// Inline function 'kotlin.collections.plus' call
|
|
857
|
-
var elements = this.
|
|
857
|
+
var elements = this.vys_1.zyq_1;
|
|
858
858
|
// Inline function 'kotlin.js.asDynamic' call
|
|
859
|
-
tmp.
|
|
859
|
+
tmp.wys_1 = tmp0.concat(elements);
|
|
860
860
|
var tmp_0 = this;
|
|
861
|
-
tmp_0.
|
|
861
|
+
tmp_0.xys_1 = WebCryptoRsa$keyPairWrapper$lambda(keyPairWrapper, this);
|
|
862
862
|
}
|
|
863
863
|
function RsaPublicKeyProcessor() {
|
|
864
864
|
RsaPublicKeyProcessor_instance = this;
|
|
865
865
|
WebCryptoKeyProcessor.call(this);
|
|
866
866
|
}
|
|
867
|
-
protoOf(RsaPublicKeyProcessor).
|
|
867
|
+
protoOf(RsaPublicKeyProcessor).yys = function (format) {
|
|
868
868
|
var tmp;
|
|
869
869
|
if (equals(format, JWK_getInstance_3())) {
|
|
870
870
|
tmp = 'jwk';
|
|
@@ -875,28 +875,28 @@ protoOf(RsaPublicKeyProcessor).qys = function (format) {
|
|
|
875
875
|
}
|
|
876
876
|
return tmp;
|
|
877
877
|
};
|
|
878
|
-
protoOf(RsaPublicKeyProcessor).
|
|
879
|
-
return this.
|
|
878
|
+
protoOf(RsaPublicKeyProcessor).kyq = function (format) {
|
|
879
|
+
return this.yys(format instanceof Format_5 ? format : THROW_CCE());
|
|
880
880
|
};
|
|
881
|
-
protoOf(RsaPublicKeyProcessor).
|
|
881
|
+
protoOf(RsaPublicKeyProcessor).zys = function (algorithm, format, key) {
|
|
882
882
|
var tmp;
|
|
883
883
|
if (equals(format, JWK_getInstance_3())) {
|
|
884
884
|
tmp = key;
|
|
885
885
|
} else if (equals(format, Generic_getInstance_1())) {
|
|
886
886
|
tmp = key;
|
|
887
887
|
} else if (equals(format, Generic_getInstance_2())) {
|
|
888
|
-
tmp = unwrapPem(Companion_getInstance_12().
|
|
888
|
+
tmp = unwrapPem(Companion_getInstance_12().qyp_1, key);
|
|
889
889
|
} else if (equals(format, PKCS1_getInstance())) {
|
|
890
890
|
tmp = wrapSubjectPublicKeyInfo(RsaAlgorithmIdentifier_instance, key);
|
|
891
891
|
} else if (equals(format, PKCS1_getInstance_0())) {
|
|
892
|
-
tmp = wrapSubjectPublicKeyInfo(RsaAlgorithmIdentifier_instance, unwrapPem(Companion_getInstance_12().
|
|
892
|
+
tmp = wrapSubjectPublicKeyInfo(RsaAlgorithmIdentifier_instance, unwrapPem(Companion_getInstance_12().typ_1, key));
|
|
893
893
|
} else {
|
|
894
894
|
noWhenBranchMatchedException();
|
|
895
895
|
}
|
|
896
896
|
return tmp;
|
|
897
897
|
};
|
|
898
|
-
protoOf(RsaPublicKeyProcessor).
|
|
899
|
-
return this.
|
|
898
|
+
protoOf(RsaPublicKeyProcessor).myq = function (algorithm, format, key) {
|
|
899
|
+
return this.zys(algorithm, format instanceof Format_5 ? format : THROW_CCE(), key);
|
|
900
900
|
};
|
|
901
901
|
var RsaPublicKeyProcessor_instance;
|
|
902
902
|
function RsaPublicKeyProcessor_getInstance() {
|
|
@@ -908,7 +908,7 @@ function RsaPrivateKeyProcessor() {
|
|
|
908
908
|
RsaPrivateKeyProcessor_instance = this;
|
|
909
909
|
WebCryptoKeyProcessor.call(this);
|
|
910
910
|
}
|
|
911
|
-
protoOf(RsaPrivateKeyProcessor).
|
|
911
|
+
protoOf(RsaPrivateKeyProcessor).ayt = function (format) {
|
|
912
912
|
var tmp;
|
|
913
913
|
if (equals(format, JWK_getInstance_4())) {
|
|
914
914
|
tmp = 'jwk';
|
|
@@ -919,28 +919,28 @@ protoOf(RsaPrivateKeyProcessor).sys = function (format) {
|
|
|
919
919
|
}
|
|
920
920
|
return tmp;
|
|
921
921
|
};
|
|
922
|
-
protoOf(RsaPrivateKeyProcessor).
|
|
923
|
-
return this.
|
|
922
|
+
protoOf(RsaPrivateKeyProcessor).kyq = function (format) {
|
|
923
|
+
return this.ayt(format instanceof Format_6 ? format : THROW_CCE());
|
|
924
924
|
};
|
|
925
|
-
protoOf(RsaPrivateKeyProcessor).
|
|
925
|
+
protoOf(RsaPrivateKeyProcessor).byt = function (algorithm, format, key) {
|
|
926
926
|
var tmp;
|
|
927
927
|
if (equals(format, JWK_getInstance_4())) {
|
|
928
928
|
tmp = key;
|
|
929
929
|
} else if (equals(format, Generic_getInstance_3())) {
|
|
930
930
|
tmp = key;
|
|
931
931
|
} else if (equals(format, Generic_getInstance_4())) {
|
|
932
|
-
tmp = unwrapPem(Companion_getInstance_12().
|
|
932
|
+
tmp = unwrapPem(Companion_getInstance_12().ryp_1, key);
|
|
933
933
|
} else if (equals(format, PKCS1_getInstance_1())) {
|
|
934
934
|
tmp = wrapPrivateKeyInfo(0, RsaAlgorithmIdentifier_instance, key);
|
|
935
935
|
} else if (equals(format, PKCS1_getInstance_2())) {
|
|
936
|
-
tmp = wrapPrivateKeyInfo(0, RsaAlgorithmIdentifier_instance, unwrapPem(Companion_getInstance_12().
|
|
936
|
+
tmp = wrapPrivateKeyInfo(0, RsaAlgorithmIdentifier_instance, unwrapPem(Companion_getInstance_12().uyp_1, key));
|
|
937
937
|
} else {
|
|
938
938
|
noWhenBranchMatchedException();
|
|
939
939
|
}
|
|
940
940
|
return tmp;
|
|
941
941
|
};
|
|
942
|
-
protoOf(RsaPrivateKeyProcessor).
|
|
943
|
-
return this.
|
|
942
|
+
protoOf(RsaPrivateKeyProcessor).myq = function (algorithm, format, key) {
|
|
943
|
+
return this.byt(algorithm, format instanceof Format_6 ? format : THROW_CCE(), key);
|
|
944
944
|
};
|
|
945
945
|
var RsaPrivateKeyProcessor_instance;
|
|
946
946
|
function RsaPrivateKeyProcessor_getInstance() {
|
|
@@ -949,8 +949,8 @@ function RsaPrivateKeyProcessor_getInstance() {
|
|
|
949
949
|
return RsaPrivateKeyProcessor_instance;
|
|
950
950
|
}
|
|
951
951
|
function RsaOaepKeyPair(publicKey, privateKey) {
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
952
|
+
this.cyt_1 = publicKey;
|
|
953
|
+
this.dyt_1 = privateKey;
|
|
954
954
|
}
|
|
955
955
|
function RsaOaepPublicKey(publicKey) {
|
|
956
956
|
RsaPublicKey.call(this, publicKey);
|
|
@@ -994,8 +994,8 @@ function WebCryptoRsaOaep_getInstance() {
|
|
|
994
994
|
return WebCryptoRsaOaep_instance;
|
|
995
995
|
}
|
|
996
996
|
function RsaPkcs1KeyPair(publicKey, privateKey) {
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
997
|
+
this.eyt_1 = publicKey;
|
|
998
|
+
this.fyt_1 = privateKey;
|
|
999
999
|
}
|
|
1000
1000
|
function RsaPkcs1PublicKey(publicKey) {
|
|
1001
1001
|
RsaPublicKey.call(this, publicKey);
|
|
@@ -1039,8 +1039,8 @@ function WebCryptoRsaPkcs1_getInstance() {
|
|
|
1039
1039
|
return WebCryptoRsaPkcs1_instance;
|
|
1040
1040
|
}
|
|
1041
1041
|
function RsaPssKeyPair(publicKey, privateKey) {
|
|
1042
|
-
this.
|
|
1043
|
-
this.
|
|
1042
|
+
this.gyt_1 = publicKey;
|
|
1043
|
+
this.hyt_1 = privateKey;
|
|
1044
1044
|
}
|
|
1045
1045
|
function RsaPssPublicKey(publicKey) {
|
|
1046
1046
|
RsaPublicKey.call(this, publicKey);
|
|
@@ -1084,16 +1084,16 @@ function WebCryptoRsaPss_getInstance() {
|
|
|
1084
1084
|
return WebCryptoRsaPss_instance;
|
|
1085
1085
|
}
|
|
1086
1086
|
function XdhKeyPair(publicKey, privateKey) {
|
|
1087
|
-
this.
|
|
1088
|
-
this.
|
|
1087
|
+
this.iyt_1 = publicKey;
|
|
1088
|
+
this.jyt_1 = privateKey;
|
|
1089
1089
|
}
|
|
1090
1090
|
function XdhPublicKey(publicKey) {
|
|
1091
1091
|
WebCryptoEncodableKey.call(this, publicKey, XdhPublicKeyProcessor_getInstance());
|
|
1092
|
-
this.
|
|
1092
|
+
this.myt_1 = publicKey;
|
|
1093
1093
|
}
|
|
1094
1094
|
function XdhPrivateKey(privateKey) {
|
|
1095
1095
|
WebCryptoEncodableKey.call(this, privateKey, XdhPrivateKeyProcessor_getInstance());
|
|
1096
|
-
this.
|
|
1096
|
+
this.pyt_1 = privateKey;
|
|
1097
1097
|
}
|
|
1098
1098
|
function WebCryptoXdh$XdhPublicKey$_init_$ref_58foni() {
|
|
1099
1099
|
return constructCallableReference(function (p0) {
|
|
@@ -1115,21 +1115,21 @@ function WebCryptoXdh() {
|
|
|
1115
1115
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1116
1116
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1117
1117
|
var tmp_0 = [];
|
|
1118
|
-
tmp.
|
|
1118
|
+
tmp.qyt_1 = new WebCryptoKeyWrapper(tmp_0, WebCryptoXdh$XdhPublicKey$_init_$ref_58foni());
|
|
1119
1119
|
var tmp_1 = this;
|
|
1120
1120
|
// Inline function 'kotlin.arrayOf' call
|
|
1121
1121
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1122
1122
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1123
1123
|
var tmp_2 = ['deriveBits'];
|
|
1124
|
-
tmp_1.
|
|
1124
|
+
tmp_1.ryt_1 = new WebCryptoKeyWrapper(tmp_2, WebCryptoXdh$XdhPrivateKey$_init_$ref_gt5z3q());
|
|
1125
1125
|
var tmp_3 = this;
|
|
1126
|
-
var tmp0 = this.
|
|
1126
|
+
var tmp0 = this.qyt_1.zyq_1;
|
|
1127
1127
|
// Inline function 'kotlin.collections.plus' call
|
|
1128
|
-
var elements = this.
|
|
1128
|
+
var elements = this.ryt_1.zyq_1;
|
|
1129
1129
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1130
|
-
tmp_3.
|
|
1130
|
+
tmp_3.syt_1 = tmp0.concat(elements);
|
|
1131
1131
|
var tmp_4 = this;
|
|
1132
|
-
tmp_4.
|
|
1132
|
+
tmp_4.tyt_1 = WebCryptoXdh$keyPairWrapper$lambda;
|
|
1133
1133
|
}
|
|
1134
1134
|
var WebCryptoXdh_instance;
|
|
1135
1135
|
function WebCryptoXdh_getInstance() {
|
|
@@ -1141,7 +1141,7 @@ function XdhPublicKeyProcessor() {
|
|
|
1141
1141
|
XdhPublicKeyProcessor_instance = this;
|
|
1142
1142
|
WebCryptoKeyProcessor.call(this);
|
|
1143
1143
|
}
|
|
1144
|
-
protoOf(XdhPublicKeyProcessor).
|
|
1144
|
+
protoOf(XdhPublicKeyProcessor).uyt = function (format) {
|
|
1145
1145
|
var tmp;
|
|
1146
1146
|
if (equals(format, JWK_getInstance_5())) {
|
|
1147
1147
|
tmp = 'jwk';
|
|
@@ -1154,10 +1154,10 @@ protoOf(XdhPublicKeyProcessor).myt = function (format) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
return tmp;
|
|
1156
1156
|
};
|
|
1157
|
-
protoOf(XdhPublicKeyProcessor).
|
|
1158
|
-
return this.
|
|
1157
|
+
protoOf(XdhPublicKeyProcessor).kyq = function (format) {
|
|
1158
|
+
return this.uyt(format instanceof Format_7 ? format : THROW_CCE());
|
|
1159
1159
|
};
|
|
1160
|
-
protoOf(XdhPublicKeyProcessor).
|
|
1160
|
+
protoOf(XdhPublicKeyProcessor).vyt = function (algorithm, format, key) {
|
|
1161
1161
|
var tmp;
|
|
1162
1162
|
if (equals(format, JWK_getInstance_5())) {
|
|
1163
1163
|
tmp = key;
|
|
@@ -1166,14 +1166,14 @@ protoOf(XdhPublicKeyProcessor).nyt = function (algorithm, format, key) {
|
|
|
1166
1166
|
} else if (equals(format, DER_getInstance_2())) {
|
|
1167
1167
|
tmp = key;
|
|
1168
1168
|
} else if (equals(format, PEM_getInstance_2())) {
|
|
1169
|
-
tmp = unwrapPem(Companion_getInstance_12().
|
|
1169
|
+
tmp = unwrapPem(Companion_getInstance_12().qyp_1, key);
|
|
1170
1170
|
} else {
|
|
1171
1171
|
noWhenBranchMatchedException();
|
|
1172
1172
|
}
|
|
1173
1173
|
return tmp;
|
|
1174
1174
|
};
|
|
1175
|
-
protoOf(XdhPublicKeyProcessor).
|
|
1176
|
-
return this.
|
|
1175
|
+
protoOf(XdhPublicKeyProcessor).myq = function (algorithm, format, key) {
|
|
1176
|
+
return this.vyt(algorithm, format instanceof Format_7 ? format : THROW_CCE(), key);
|
|
1177
1177
|
};
|
|
1178
1178
|
var XdhPublicKeyProcessor_instance;
|
|
1179
1179
|
function XdhPublicKeyProcessor_getInstance() {
|
|
@@ -1202,7 +1202,7 @@ function XdhPrivateKeyProcessor() {
|
|
|
1202
1202
|
XdhPrivateKeyProcessor_instance = this;
|
|
1203
1203
|
WebCryptoKeyProcessor.call(this);
|
|
1204
1204
|
}
|
|
1205
|
-
protoOf(XdhPrivateKeyProcessor).
|
|
1205
|
+
protoOf(XdhPrivateKeyProcessor).wyt = function (format) {
|
|
1206
1206
|
var tmp;
|
|
1207
1207
|
if (equals(format, JWK_getInstance_6())) {
|
|
1208
1208
|
tmp = 'jwk';
|
|
@@ -1213,10 +1213,10 @@ protoOf(XdhPrivateKeyProcessor).oyt = function (format) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
return tmp;
|
|
1215
1215
|
};
|
|
1216
|
-
protoOf(XdhPrivateKeyProcessor).
|
|
1217
|
-
return this.
|
|
1216
|
+
protoOf(XdhPrivateKeyProcessor).kyq = function (format) {
|
|
1217
|
+
return this.wyt(format instanceof Format_8 ? format : THROW_CCE());
|
|
1218
1218
|
};
|
|
1219
|
-
protoOf(XdhPrivateKeyProcessor).
|
|
1219
|
+
protoOf(XdhPrivateKeyProcessor).xyt = function (algorithm, format, key) {
|
|
1220
1220
|
var tmp;
|
|
1221
1221
|
if (equals(format, JWK_getInstance_6())) {
|
|
1222
1222
|
tmp = key;
|
|
@@ -1225,14 +1225,14 @@ protoOf(XdhPrivateKeyProcessor).pyt = function (algorithm, format, key) {
|
|
|
1225
1225
|
} else if (equals(format, DER_getInstance_3())) {
|
|
1226
1226
|
tmp = key;
|
|
1227
1227
|
} else if (equals(format, PEM_getInstance_3())) {
|
|
1228
|
-
tmp = unwrapPem(Companion_getInstance_12().
|
|
1228
|
+
tmp = unwrapPem(Companion_getInstance_12().ryp_1, key);
|
|
1229
1229
|
} else {
|
|
1230
1230
|
noWhenBranchMatchedException();
|
|
1231
1231
|
}
|
|
1232
1232
|
return tmp;
|
|
1233
1233
|
};
|
|
1234
|
-
protoOf(XdhPrivateKeyProcessor).
|
|
1235
|
-
return this.
|
|
1234
|
+
protoOf(XdhPrivateKeyProcessor).myq = function (algorithm, format, key) {
|
|
1235
|
+
return this.xyt(algorithm, format instanceof Format_8 ? format : THROW_CCE(), key);
|
|
1236
1236
|
};
|
|
1237
1237
|
var XdhPrivateKeyProcessor_instance;
|
|
1238
1238
|
function XdhPrivateKeyProcessor_getInstance() {
|
|
@@ -1285,9 +1285,9 @@ function getCrypto() {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
function $digestCOROUTINE$(_this__u8e3s4, algorithmName, data, resultContinuation) {
|
|
1287
1287
|
CoroutineImpl.call(this, resultContinuation);
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1288
|
+
this.gyu_1 = _this__u8e3s4;
|
|
1289
|
+
this.hyu_1 = algorithmName;
|
|
1290
|
+
this.iyu_1 = data;
|
|
1291
1291
|
}
|
|
1292
1292
|
protoOf($digestCOROUTINE$).u9 = function () {
|
|
1293
1293
|
var suspendResult = this.o9_1;
|
|
@@ -1298,7 +1298,7 @@ protoOf($digestCOROUTINE$).u9 = function () {
|
|
|
1298
1298
|
case 0:
|
|
1299
1299
|
this.n9_1 = 2;
|
|
1300
1300
|
this.m9_1 = 1;
|
|
1301
|
-
suspendResult = await_0(this.
|
|
1301
|
+
suspendResult = await_0(this.gyu_1.qyq_1.digest(this.hyu_1, toInt8Array(this.iyu_1)), this);
|
|
1302
1302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1303
1303
|
return suspendResult;
|
|
1304
1304
|
}
|
|
@@ -1323,10 +1323,10 @@ protoOf($digestCOROUTINE$).u9 = function () {
|
|
|
1323
1323
|
};
|
|
1324
1324
|
function $signCOROUTINE$(_this__u8e3s4, algorithm, key, data, resultContinuation) {
|
|
1325
1325
|
CoroutineImpl.call(this, resultContinuation);
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1326
|
+
this.ryu_1 = _this__u8e3s4;
|
|
1327
|
+
this.syu_1 = algorithm;
|
|
1328
|
+
this.tyu_1 = key;
|
|
1329
|
+
this.uyu_1 = data;
|
|
1330
1330
|
}
|
|
1331
1331
|
protoOf($signCOROUTINE$).u9 = function () {
|
|
1332
1332
|
var suspendResult = this.o9_1;
|
|
@@ -1337,7 +1337,7 @@ protoOf($signCOROUTINE$).u9 = function () {
|
|
|
1337
1337
|
case 0:
|
|
1338
1338
|
this.n9_1 = 2;
|
|
1339
1339
|
this.m9_1 = 1;
|
|
1340
|
-
suspendResult = await_0(this.
|
|
1340
|
+
suspendResult = await_0(this.ryu_1.qyq_1.sign(this.syu_1, this.tyu_1, toInt8Array(this.uyu_1)), this);
|
|
1341
1341
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1342
1342
|
return suspendResult;
|
|
1343
1343
|
}
|
|
@@ -1362,23 +1362,23 @@ protoOf($signCOROUTINE$).u9 = function () {
|
|
|
1362
1362
|
};
|
|
1363
1363
|
function WebCrypto() {
|
|
1364
1364
|
WebCrypto_instance = this;
|
|
1365
|
-
this.
|
|
1365
|
+
this.qyq_1 = getSubtleCrypto();
|
|
1366
1366
|
}
|
|
1367
|
-
protoOf(WebCrypto).
|
|
1367
|
+
protoOf(WebCrypto).ryq = function (algorithmName, data, $completion) {
|
|
1368
1368
|
var tmp = new $digestCOROUTINE$(this, algorithmName, data, $completion);
|
|
1369
1369
|
tmp.o9_1 = Unit_instance;
|
|
1370
1370
|
tmp.p9_1 = null;
|
|
1371
1371
|
return tmp.u9();
|
|
1372
1372
|
};
|
|
1373
|
-
protoOf(WebCrypto).
|
|
1373
|
+
protoOf(WebCrypto).vyu = function (algorithm, key, data, $completion) {
|
|
1374
1374
|
var tmp = new $signCOROUTINE$(this, algorithm, key, data, $completion);
|
|
1375
1375
|
tmp.o9_1 = Unit_instance;
|
|
1376
1376
|
tmp.p9_1 = null;
|
|
1377
1377
|
return tmp.u9();
|
|
1378
1378
|
};
|
|
1379
|
-
protoOf(WebCrypto).
|
|
1379
|
+
protoOf(WebCrypto).wyu = function (format, keyData, algorithm, extractable, keyUsages, $completion) {
|
|
1380
1380
|
var key = format === 'jwk' ? jsonParse(decodeToString(keyData)) : toInt8Array(keyData);
|
|
1381
|
-
return await_0(this.
|
|
1381
|
+
return await_0(this.qyq_1.importKey(format, key, algorithm, extractable, toJsArray(keyUsages)), $completion);
|
|
1382
1382
|
};
|
|
1383
1383
|
var WebCrypto_instance;
|
|
1384
1384
|
function WebCrypto_getInstance() {
|
|
@@ -1402,7 +1402,7 @@ function hashAlgorithmName(_this__u8e3s4) {
|
|
|
1402
1402
|
} else if (_this__u8e3s4 == null) {
|
|
1403
1403
|
throw IllegalStateException_init_$Create$('Operation without digest is unsupported!');
|
|
1404
1404
|
} else {
|
|
1405
|
-
throw IllegalStateException_init_$Create$('Unsupported hash algorithm: ' + _this__u8e3s4.
|
|
1405
|
+
throw IllegalStateException_init_$Create$('Unsupported hash algorithm: ' + _this__u8e3s4.oyk_1);
|
|
1406
1406
|
}
|
|
1407
1407
|
return tmp;
|
|
1408
1408
|
}
|
|
@@ -1440,14 +1440,14 @@ function nonBlocking() {
|
|
|
1440
1440
|
throw IllegalStateException_init_$Create$('Only non-blocking(suspend) calls are supported in WebCrypto');
|
|
1441
1441
|
}
|
|
1442
1442
|
function WebCryptoEncodableKey(key, keyProcessor) {
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1443
|
+
this.xyu_1 = key;
|
|
1444
|
+
this.yyu_1 = keyProcessor;
|
|
1445
1445
|
}
|
|
1446
1446
|
function $decodeFromByteArrayCOROUTINE$(_this__u8e3s4, format, bytes, resultContinuation) {
|
|
1447
1447
|
CoroutineImpl.call(this, resultContinuation);
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1448
|
+
this.hyv_1 = _this__u8e3s4;
|
|
1449
|
+
this.iyv_1 = format;
|
|
1450
|
+
this.jyv_1 = bytes;
|
|
1451
1451
|
}
|
|
1452
1452
|
protoOf($decodeFromByteArrayCOROUTINE$).u9 = function () {
|
|
1453
1453
|
var suspendResult = this.o9_1;
|
|
@@ -1457,9 +1457,9 @@ protoOf($decodeFromByteArrayCOROUTINE$).u9 = function () {
|
|
|
1457
1457
|
switch (tmp) {
|
|
1458
1458
|
case 0:
|
|
1459
1459
|
this.n9_1 = 2;
|
|
1460
|
-
this.
|
|
1460
|
+
this.kyv_1 = this.hyv_1.nyv_1.ayr_1;
|
|
1461
1461
|
this.m9_1 = 1;
|
|
1462
|
-
suspendResult = WebCrypto_getInstance().
|
|
1462
|
+
suspendResult = WebCrypto_getInstance().wyu(this.hyv_1.myv_1.kyq(this.iyv_1), this.hyv_1.myv_1.myq(this.hyv_1.lyv_1, this.iyv_1, this.jyv_1), this.hyv_1.lyv_1, true, this.hyv_1.nyv_1.zyq_1, this);
|
|
1463
1463
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1464
1464
|
return suspendResult;
|
|
1465
1465
|
}
|
|
@@ -1467,7 +1467,7 @@ protoOf($decodeFromByteArrayCOROUTINE$).u9 = function () {
|
|
|
1467
1467
|
continue $sm;
|
|
1468
1468
|
case 1:
|
|
1469
1469
|
var ARGUMENT = suspendResult;
|
|
1470
|
-
return this.
|
|
1470
|
+
return this.kyv_1(ARGUMENT);
|
|
1471
1471
|
case 2:
|
|
1472
1472
|
throw this.p9_1;
|
|
1473
1473
|
}
|
|
@@ -1483,39 +1483,39 @@ protoOf($decodeFromByteArrayCOROUTINE$).u9 = function () {
|
|
|
1483
1483
|
while (true);
|
|
1484
1484
|
};
|
|
1485
1485
|
function WebCryptoKeyDecoder(algorithm, keyProcessor, keyWrapper) {
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1486
|
+
this.lyv_1 = algorithm;
|
|
1487
|
+
this.myv_1 = keyProcessor;
|
|
1488
|
+
this.nyv_1 = keyWrapper;
|
|
1489
1489
|
}
|
|
1490
|
-
protoOf(WebCryptoKeyDecoder).
|
|
1490
|
+
protoOf(WebCryptoKeyDecoder).oyv = function (format, bytes, $completion) {
|
|
1491
1491
|
var tmp = new $decodeFromByteArrayCOROUTINE$(this, format, bytes, $completion);
|
|
1492
1492
|
tmp.o9_1 = Unit_instance;
|
|
1493
1493
|
tmp.p9_1 = null;
|
|
1494
1494
|
return tmp.u9();
|
|
1495
1495
|
};
|
|
1496
|
-
protoOf(WebCryptoKeyDecoder).
|
|
1497
|
-
return this.
|
|
1496
|
+
protoOf(WebCryptoKeyDecoder).gyl = function (format, bytes, $completion) {
|
|
1497
|
+
return this.oyv(isInterface(format, EncodingFormat) ? format : THROW_CCE(), bytes, $completion);
|
|
1498
1498
|
};
|
|
1499
|
-
protoOf(WebCryptoKeyDecoder).
|
|
1499
|
+
protoOf(WebCryptoKeyDecoder).hyl = function (format, bytes) {
|
|
1500
1500
|
nonBlocking();
|
|
1501
1501
|
};
|
|
1502
1502
|
function WebCryptoKeyProcessor() {
|
|
1503
1503
|
}
|
|
1504
1504
|
function WebCryptoKeyWrapper(usages, wrap) {
|
|
1505
|
-
this.
|
|
1506
|
-
this.
|
|
1505
|
+
this.zyq_1 = usages;
|
|
1506
|
+
this.ayr_1 = wrap;
|
|
1507
1507
|
}
|
|
1508
1508
|
function WebCryptoSignatureGenerator(algorithm, key) {
|
|
1509
|
-
this.
|
|
1510
|
-
this.
|
|
1509
|
+
this.pyv_1 = algorithm;
|
|
1510
|
+
this.qyv_1 = key;
|
|
1511
1511
|
}
|
|
1512
|
-
protoOf(WebCryptoSignatureGenerator).
|
|
1513
|
-
return WebCrypto_getInstance().
|
|
1512
|
+
protoOf(WebCryptoSignatureGenerator).oyl = function (data, $completion) {
|
|
1513
|
+
return WebCrypto_getInstance().vyu(this.pyv_1, this.qyv_1, data, $completion);
|
|
1514
1514
|
};
|
|
1515
|
-
protoOf(WebCryptoSignatureGenerator).
|
|
1515
|
+
protoOf(WebCryptoSignatureGenerator).nyl = function () {
|
|
1516
1516
|
nonBlocking();
|
|
1517
1517
|
};
|
|
1518
|
-
protoOf(WebCryptoSignatureGenerator).
|
|
1518
|
+
protoOf(WebCryptoSignatureGenerator).pyl = function (data) {
|
|
1519
1519
|
nonBlocking();
|
|
1520
1520
|
};
|
|
1521
1521
|
function get_initHook() {
|
|
@@ -1523,7 +1523,7 @@ function get_initHook() {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
var initHook;
|
|
1525
1525
|
function initHook$init$() {
|
|
1526
|
-
CryptographySystem_getInstance().
|
|
1526
|
+
CryptographySystem_getInstance().ayl(get_defaultProvider(), 100);
|
|
1527
1527
|
return Unit_instance;
|
|
1528
1528
|
}
|
|
1529
1529
|
function toInt8Array(_this__u8e3s4) {
|