openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_PkeyGetSecurityBits()

uint32_t CRYPT_EAL_PkeyGetSecurityBits ( const CRYPT_EAL_PkeyCtx pkey)

Obtain the key security strength. Only supports CRYPT_PKEY_RSA and CRYPT_PKEY_ECDSA.

Parameters
pkey[IN] Key session
Return values
Keysecurity strength, if successful. 0, if failed.