Giter Club home page Giter Club logo

Comments (6)

ahmetcj4 avatar ahmetcj4 commented on May 31, 2024 2

HmacSHA512 would be very useful as well

from korge.

penn5 avatar penn5 commented on May 31, 2024

Also, alternative cipher block modes are essential to my project, such as IGE with a specified IV. I'm sorry I can't make a PR as I have no experience whatsoever in crypto, but I might donate :D

from korge.

dzikoysk avatar dzikoysk commented on May 31, 2024

There's SHA512 impl in commonModule, but idk if it works properly:

Do you think it should be listed on website (https://docs.korge.org/krypto/#hash-md5sha1sha256), or is it still not safe to use? 🤔

from korge.

soywiz avatar soywiz commented on May 31, 2024

These tests are passing:

I guess that comment refers to the need of doing the override. But the implementation seems to work.

from korge.

iTanChi avatar iTanChi commented on May 31, 2024

@soywiz Could you update to support HmacSHA512?

fun hmacSHA512(key: ByteArray, data: ByteArray): Hash = hmac(key, data, SHA512())

In the code I see that you are using it in pbkdf2:

fun pbkdf2WithHmacSHA512(password: ByteArray, salt: ByteArray, iterationCount: Int, keySizeInBits: Int): Hash =
            pbkdf2(password, salt, iterationCount, keySizeInBits, SHA512())
...
u = HMAC.hmac(password, u, hasher).bytes // hasher is SHA512()

from korge.

soywiz avatar soywiz commented on May 31, 2024

I'm going to close this issue. The reason is that this is issue not S.M.A.R.T and covers too many cases. Feel free to open one per use-case.
@iTanChi feel free to open an issue for HMAC SHA512.

from korge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.