Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
adb::crypto::Key Class Reference

#include <key.h>

Public Member Functions

 Key (bssl::UniquePtr< EVP_PKEY > &&pkey, adb::proto::KeyType type)
 
 Key (Key &&)=default
 
Keyoperator= (Key &&)=default
 
EVP_PKEY * GetEvpPkey () const
 
adb::proto::KeyType GetKeyType () const
 

Static Public Member Functions

static std::string ToPEMString (EVP_PKEY *pkey)
 

Private Attributes

bssl::UniquePtr< EVP_PKEY > pkey_
 
adb::proto::KeyType key_type_
 

Constructor & Destructor Documentation

◆ Key() [1/2]

adb::crypto::Key::Key ( bssl::UniquePtr< EVP_PKEY > &&  pkey,
adb::proto::KeyType  type 
)
inlineexplicit

◆ Key() [2/2]

adb::crypto::Key::Key ( Key &&  )
default

Member Function Documentation

◆ GetEvpPkey()

EVP_PKEY * adb::crypto::Key::GetEvpPkey ( ) const
inline

◆ GetKeyType()

adb::proto::KeyType adb::crypto::Key::GetKeyType ( ) const
inline

◆ operator=()

Key & adb::crypto::Key::operator= ( Key &&  )
default

◆ ToPEMString()

std::string adb::crypto::Key::ToPEMString ( EVP_PKEY *  pkey)
static

Member Data Documentation

◆ key_type_

adb::proto::KeyType adb::crypto::Key::key_type_
private

◆ pkey_

bssl::UniquePtr<EVP_PKEY> adb::crypto::Key::pkey_
private

The documentation for this class was generated from the following files: