Comments (1)
Because of #41 and an inability to create a new MacSpi
instance whenever init
is called, I believe the best course of action is to simply throw InvalidKeyException
if javax.crypto.Mac.init
is called again. Users of KotlinCrypto
know that the mac is initialized, and from common code it's not even an option.
from core.
Related Issues (20)
- `Digest.update` not calculating remaining bytes properly
- Update `gradle-kmp-configuration-plugin`
- `Digest` performance issues HOT 1
- Add `Digest` and `Mac` wrappers for JVM HOT 1
- `MAC` should not throw exception when `key` is empty HOT 2
- Add `XOF` abstraction
- `Mac` should call `reset()` after `doFinal()` HOT 1
- Add `XofAlgorithm` interface
- `digestLength` should accept 0 as argument HOT 2
- `Digest.update` needs to be overridden for some algorithms HOT 1
- `Mac.update` for `nonJvm` should validate `offset` and `len` HOT 1
- Android API 23 and below does not like `Mac.init` with a null key
- Update dependencies
- JVM `javax.crypto.Mac` still having issues on Android HOT 4
- Android API 23 and below `javax.crypto.Mac.doFinal()` does not call `engineReset()` HOT 1
- Fix package names HOT 1
- Add `kotlinx-io` `Sink/Source` adapters for `Digest`, `Mac`, `Xof` HOT 1
- `KC_ANDROID_SDK_INT` returns `0` from `androidUnitTest` source sets HOT 1
- `wasmJS` target support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.