Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9052915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:17:49+00:00 2026-06-16T13:17:49+00:00

I know KDF (Key derivation function) are used to stretch user passwords, which are

  • 0

I know KDF (Key derivation function) are used to stretch user passwords, which are basically not suitable to be used as keys in cryptographic algorithms.

But what if I create a random key (random 32 bytes), do I still need to use KDF on it to ensure proper encryption?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:17:50+00:00Added an answer on June 16, 2026 at 1:17 pm

    A KDF is typically used for deriving cryptographic keys from things like passphrases, which as you correctly say are not suitable for direct use. But they are also used for deriving additional keys from a master key, which depending on your overall scheme, might be useful.

    Suppose you used a key agreement protocol where both parties ended up with a random shared secret. You could use a KDF to derive a key for encryption, and one for message integrity (for example, an HMAC key).

    From NIST SP800-108:

    When parties share a secret symmetric key (e.g., upon a successful
    execution of a key- establishment scheme as specified in 1 and
    [2]), it is often the case that additional keys will be needed (e.g.
    as described in [3]). Separate keys may be needed for different
    cryptographic purposes – for example, one key may be required for an
    encryption algorithm, while another key is intended for use by an
    integrity protection algorithm, such as a message authentication
    code. At other times, the distinct keys required by multiple entities
    may be generated by a trusted party from a single master key. Key
    derivation functions are used to derive such keys.

    The short answer is, no, you don’t need to use a KDF, assuming your key generation is correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know you can not set a key value dynamically, but what about the
I know that nhibernate has a scheduler that will execute a function at certain
I know php programming but I am not familiar with bash script programming syntax.
I know its a not a new concept that my site is perfect on
know question is not clear at a glance, i have this table: ID Start
I know how to set keyboard shortcut for single key. for example : windows
I know questions like this have been asked before, but I'm not sure how
I know, malformed XML content is invalid and you should not work with it
I know I can update the array which was initally passed to the arrayAdapter's
I know we can do correlated subqueries and join. But which one is faster?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.