The EVP_PKEY_set_alias_type function is used to set the alias type of a key. An alias type is a string that identifies a type of key, such as "RSA" or "ECDSA". This function is typically used when creating a new key, or when converting a key from one type to another.

The function takes two arguments: a pointer to the key object, and a pointer to a null-terminated string that specifies the alias type. The string must be one of the supported alias types for the key type.

If the key object already has an alias type set, this function will replace the existing alias type with the new one.

The function returns 1 on success and 0 on failure. Possible reasons for failure include invalid arguments or an unsupported alias type

EVP_PKEY_set_alias_type

原文地址: https://www.cveoy.top/t/topic/cgbX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录