Jaco
7955022ce5
Helpers for 256/512 hashing ( #1303 )
...
* Helpers for 256/512 hashing
* Adjust u8aToU8a (u8a-only check earlier)
* Fix export
* Simplify
* revert
2021-12-09 10:10:51 +02:00
Jaco
b8edcb0e65
Revert package inclusion (re-add x-*) ( #1292 )
2021-12-07 17:37:06 +02:00
Jaco
f2f25815c1
Swap to upstream @noble/hashes ( #1285 )
...
* Swap to upstream `@noble/hashes`
* Lintin (import order)
2021-12-06 07:05:08 +02:00
Jaco
c8f0ad55c4
Split into @polkadot/x-noble-hashes (indicating diff from upstream) ( #1268 )
...
* Aplit @noble/hashes fork
* Re-add original (non-eslint)
* Original package imports in README
* package.json
* Update packages/x-noble-hashes/package.json
* CC ignore
* jest
2021-12-01 15:27:29 +02:00
Jaco
eeb68c7e0f
Explicit inclusion (patch-package + bundled is problematic) ( #1250 )
...
* Explicit inclusion (patch-package + bundled is problematic)
* 8.0.2
2021-11-26 11:53:45 +02:00
Jaco
6688ff0a43
Use @noble/hashes ( #1188 )
...
* Use hashing functions from @noble/hashes
* Remove built-in pbkdf2
* Remove @types
* -19
* Remove @types
* Update packages/util-crypto/src/mnemonic/bip39.ts
* Align
* BigInt alignment
* hmac BigInt assert
* Legacy hmacSha
* Legacy fallbacks
* Align has
* Re-add micro-base
* remove old random inputs
* re-add @types/ed2curve
* Adjust pbkdf2
* Remove legacy (we have wasm)
* Update packages/util-crypto/src/detectPackage.ts
* Update packages/util-crypto/src/detectPackage.ts
* Ordering
* Comments
* Adjust
* Fix build
* cleanup legacySeed
2021-11-24 13:42:49 +02:00
Jaco
b55cdb25f6
xxhash64 replacement ( #1220 )
...
* xxhash64 replacement
* yarn.lock
* hasBigInt check
* extract common
* lint fixes
* Dedupe
* flatten
* Update changes
* Update packages/util-crypto/src/xxhash/asU8a.spec.ts
* Remove useless assignment
* flatten
* combine intermediate vars
* Align var naming
* lint
* Remove unneeded inner conversions
* Update packages/util-crypto/src/xxhash/xxhash64.ts
* Adjust
* bitLength type
* BitLength type
* additional BitLength
* Small cleanups
* Adjust
* Adjust
* blak2 bitLength adjust
* with 384
* renames
* Adjust
* Adjust
* localize
* Comments
* format performance outputs
* format performance outputs
* isWasmOnly revert
2021-11-23 10:51:08 +02:00
Jaco
391ab49b8f
Adjust camelCase with simplified version ( #1230 )
...
* Adjust camelCase with simplified version
* Adjust count
* Adjust
* readability
* Ascii-only
* single-line callbacks
* CHANGELOG
* Dedupe string{Lower, Upper}First
* replacer -> fn
2021-11-22 16:12:29 +02:00
Jaco
277c80eb96
Revery isWasmOnly helper ( #1229 )
...
* Revery isWasmOnly helper
* Adjust
2021-11-22 08:51:03 +02:00
Jaco
e8af9b5a1e
Add a helper for de-dupe of *AsHex ( #1224 )
...
* Add a helper for de-dupe of *AsHex
* Update packages/util-crypto/src/random/asU8a.ts
* lint
* isWasmOnly helper
* bit hasher
2021-11-21 20:21:20 +02:00
Jaco
2fcf59eeb0
Provide JS/Wasm interfaces for hmacShaAsU8a ( #1223 )
...
* Provide JS/Wasm interfaces for hmacShaAsU8a
* Adjust
* Re-add helpers
* Alignments
2021-11-21 08:54:54 +02:00
Jaco
2b2fefb2bb
Basic rountrip tests for mmacSha ( #1221 )
2021-11-20 18:27:06 +02:00
Jaco
b37d55e0ed
Some attempted CC fixes ( #1111 )
...
* Some attempted CC fixes
* hmac
* adjust derive
2021-09-17 15:32:52 +02:00
Jaco Greeff
24b1790c99
Add hmac{Sha256, 512} ( #861 )
...
* Add hmac{Sha256, 512}
* Adjust
* private hmac
2021-01-30 20:02:21 +01:00