Lines Matching defs:key

191          * scalar in the key.
211 * generating a private key in EC cryptosystems and should fit all valid
403 * - public key with associated domain parameters (+optional other params)
404 * - private key with associated domain parameters and optional public key
409 * - private key must be requested alongside public key
466 * - public key with associated domain parameters (+optional other params)
467 * - private key with associated public key and domain parameters
472 * - private key must be requested alongside public key
636 int common_get_params(void *key, OSSL_PARAM params[], int sm2)
639 EC_KEY *eck = key;
740 const EC_POINT *ecp = EC_KEY_get0_public_key(key);
767 int ec_get_params(void *key, OSSL_PARAM params[])
769 return common_get_params(key, params, 0);
825 int ec_set_params(void *key, const OSSL_PARAM params[])
827 EC_KEY *eck = key;
830 if (key == NULL)
836 if (!ossl_ec_group_set_params((EC_GROUP *)EC_KEY_get0_group(key), params))
841 BN_CTX *ctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(key));
846 || !EC_KEY_oct2key(key, p->data, p->data_size, ctx))
859 int sm2_get_params(void *key, OSSL_PARAM params[])
861 return common_get_params(key, params, 1);
1063 #define COPY_INT_PARAM(params, key, val) \
1064 p = OSSL_PARAM_locate_const(params, key); \
1068 #define COPY_UTF8_PARAM(params, key, val) \
1069 p = OSSL_PARAM_locate_const(params, key); \
1079 #define COPY_OCTET_PARAM(params, key, val, len) \
1080 p = OSSL_PARAM_locate_const(params, key); \
1091 #define COPY_BN_PARAM(params, key, bn) \
1092 p = OSSL_PARAM_locate_const(params, key); \
1288 /* Something went wrong, throw the key away */
1338 /* Something went wrong, throw the key away */