EVP_KDF-PKCS12KDF.pod 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. =pod
  2. =head1 NAME
  3. EVP_KDF-PKCS12KDF - The PKCS#12 EVP_KDF implementation
  4. =head1 DESCRIPTION
  5. Support for computing the B<PKCS#12> password-based KDF through the B<EVP_KDF>
  6. API.
  7. The EVP_KDF-PKCS12KDF algorithm implements the PKCS#12 password-based key
  8. derivation function, as described in appendix B of RFC 7292 (PKCS #12:
  9. Personal Information Exchange Syntax); it derives a key from a password
  10. using a salt, iteration count and the intended usage.
  11. =head2 Identity
  12. "PKCS12KDF" is the name for this implementation; it
  13. can be used with the EVP_KDF_fetch() function.
  14. =head2 Supported parameters
  15. The supported parameters are:
  16. =over 4
  17. =item "pass" (B<OSSL_KDF_PARAM_PASSWORD>) <octet string>
  18. =item "salt" (B<OSSL_KDF_PARAM_SALT>) <octet string>
  19. =item "iter" (B<OSSL_KDF_PARAM_ITER>) <unsigned integer>
  20. =item "properties" (B<OSSL_KDF_PARAM_PROPERTIES>) <UTF8 string>
  21. =item "digest" (B<OSSL_KDF_PARAM_DIGEST>) <UTF8 string>
  22. These parameters work as described in L<EVP_KDF(3)/PARAMETERS>.
  23. =item "id" (B<OSSL_KDF_PARAM_PKCS12_ID>) <integer>
  24. This parameter is used to specify the intended usage of the output bits, as per
  25. RFC 7292 section B.3.
  26. =back
  27. =head1 NOTES
  28. This algorithm is not available in the FIPS provider as it is not FIPS
  29. approvable.
  30. A typical application of this algorithm is to derive keying material for an
  31. encryption algorithm from a password in the "pass", a salt in "salt",
  32. and an iteration count.
  33. Increasing the "iter" parameter slows down the algorithm which makes it
  34. harder for an attacker to perform a brute force attack using a large number
  35. of candidate passwords.
  36. No assumption is made regarding the given password; it is simply treated as a
  37. byte sequence.
  38. =head1 CONFORMING TO
  39. RFC7292
  40. =head1 SEE ALSO
  41. L<EVP_KDF(3)>,
  42. L<EVP_KDF_CTX_new(3)>,
  43. L<EVP_KDF_CTX_free(3)>,
  44. L<EVP_KDF_CTX_set_params(3)>,
  45. L<EVP_KDF_derive(3)>,
  46. L<EVP_KDF(3)/PARAMETERS>,
  47. L<OSSL_PROVIDER-FIPS(7)>
  48. =head1 HISTORY
  49. This functionality was added in OpenSSL 3.0.
  50. =head1 COPYRIGHT
  51. Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved.
  52. Licensed under the Apache License 2.0 (the "License"). You may not use
  53. this file except in compliance with the License. You can obtain a copy
  54. in the file LICENSE in the source distribution or at
  55. L<https://www.openssl.org/source/license.html>.
  56. =cut