-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API support for DRBG #105
Comments
The key derivation can support DRBG, but it's not a great fit. The lifecycle of a key derivation is:
The lifecycle of a DRBG is similar enough that it's possible to reuse the same functions, however there are major differences:
So it may be better to use a different family of functions. |
Another type of cryptographic primitive that has nearly the same interface is the sponge construction. It's a bit hard to see what the exact primitive is because in practice, the one sponge that comes up is Keccak. The sponge construction, or more precisely, what the Keccak paper (§2.3) calls the duplex construction, allows alternating inputs and outputs (like DRBG), but treats the whole input and output as a stream (so inputs can be split freely as long as there's no intervening output without changing the result, and conversely outputs can be split freely and will give the same results as long as there's no intervening input). |
For reference: Classic AUTOSAR DRBG is described in Classic AUTOSAR Crypto Service Manager R22-11 |
Add support for DRBG. This is needed for compatibility with Automotive security systems such as described by AUTOSAR/SHE or SAE J3101, which recommend following NIST recommendations described in SP 800-90A (Recommendation for RNG using DRBG). A simple API may include Instantiate, Reseed, Generate, maybe also Test, Uninstantiate.
The text was updated successfully, but these errors were encountered: