Lines Matching defs:params
39 * @params: Various parameters.
42 int query_asymmetric_key(const struct kernel_pkey_params *params,
46 struct key *key = params->key;
60 ret = subtype->query(params, info);
69 * @params: Various parameters
70 * @data: Data blob to be encrypted, length params->data_len
71 * @enc: Encrypted data buffer, length params->enc_len
74 * params->key. The encrypted data is wrapped in an encoding if
75 * params->encoding is specified (eg. "pkcs1").
80 int encrypt_blob(struct kernel_pkey_params *params,
83 params->op = kernel_pkey_encrypt;
84 return asymmetric_key_eds_op(params, data, enc);
90 * @params: Various parameters
91 * @enc: Encrypted data to be decrypted, length params->enc_len
92 * @data: Decrypted data buffer, length params->data_len
95 * params->key. The decrypted data is wrapped in an encoding if
96 * params->encoding is specified (eg. "pkcs1").
101 int decrypt_blob(struct kernel_pkey_params *params,
104 params->op = kernel_pkey_decrypt;
105 return asymmetric_key_eds_op(params, enc, data);
111 * @params: Various parameters
112 * @data: Data blob to be signed, length params->data_len
113 * @enc: Signature buffer, length params->enc_len
115 * Sign the specified data blob using the private key specified by params->key.
116 * The signature is wrapped in an encoding if params->encoding is specified
118 * passed through params->hash_algo (eg. "sha1").
122 int create_signature(struct kernel_pkey_params *params,
125 params->op = kernel_pkey_sign;
126 return asymmetric_key_eds_op(params, data, enc);