Botan 3.13.0
Crypto and TLS for C&
pkcs12_pbe.cpp File Reference
#include <botan/internal/pkcs12_pbe.h>
#include <botan/asn1_obj.h>
#include <botan/ber_dec.h>
#include <botan/cipher_mode.h>
#include <botan/der_enc.h>
#include <botan/exceptn.h>
#include <botan/rng.h>
#include <botan/internal/fmt.h>
#include <botan/internal/pkcs12_kdf.h>
#include <algorithm>
#include <botan/internal/pbes2.h>

Go to the source code of this file.

Namespaces

namespace  Botan

Functions

secure_vector< uint8_t > Botan::pkcs12_pbe_decrypt (std::span< const uint8_t > ciphertext, std::string_view password, const AlgorithmIdentifier &pbe_algo, bool openssl_empty_pwd_compat)
std::pair< AlgorithmIdentifier, std::vector< uint8_t > > Botan::pkcs12_pbe_encrypt (std::span< const uint8_t > plaintext, std::string_view password, std::string_view algo, size_t iterations, RandomNumberGenerator &rng)