5namespace Stroika::Foundation::Cryptography::Providers::OpenSSL {
7#if qStroika_HasComponent_OpenSSL
14 inline CipherAlgorithm::CipherAlgorithm (
const CipherAlgorithm& src)
15 : CipherAlgorithm{src.fCipher_}
18 inline CipherAlgorithm& CipherAlgorithm::operator= (
const CipherAlgorithm& src)
20 fCipher_ = src.fCipher_;
23 inline CipherAlgorithm::operator
const EVP_CIPHER* ()
const
27 inline auto CipherAlgorithm::operator<=> (
const CipherAlgorithm& rhs)
const
29 return fCipher_ <=> rhs.fCipher_;
31 inline bool CipherAlgorithm::operator== (
const CipherAlgorithm& rhs)
const
33 return fCipher_ == rhs.fCipher_;
35 inline String CipherAlgorithm::ToString ()
const
37 return String{::EVP_CIPHER_name (fCipher_)};
39 inline size_t CipherAlgorithm::KeyLength ()
const
41 return ::EVP_CIPHER_key_length (fCipher_);
43 inline size_t CipherAlgorithm::IVLength ()
const
45 return ::EVP_CIPHER_iv_length (fCipher_);