ionspin / kotlin-multiplatform-crypto

Kotlin Multiplatform Cryptography Library
Apache License 2.0
45 stars 3 forks source link

Implement custom data types/extend data types #6

Open RdeWilde opened 4 years ago

RdeWilde commented 4 years ago

I have no clue if it would be even possible, but I noticed that the current implementation uses a lot of Array<UByte> and Array<UInt>. It could be more explicit to use custom data types like Sha256Digest and/or Sha256Hash?

ionspin commented 4 years ago

That's definitely one of the approaches I considered, but at this point I'm not really sure what the API is going to look like in the end. I'm going to push on with implementing primitives and modes, and then try see how to combine them all together. Let's keep this issue open for discussion in the future.