Lines Matching full:csr
1196 * Internal data structure for CSR. The contents is specific to the used
1203 * enum crypto_csr_name - CSR name type
1214 * enum crypto_csr_attr - CSR attribute
1221 * crypto_csr_init - Initialize empty CSR
1222 * Returns: Pointer to CSR data or %NULL on failure
1227 * crypto_csr_verify - Initialize CSR from CertificationRequest
1230 * Returns: Pointer to CSR data or %NULL on failure or if signature is invalid
1235 * crypto_csr_deinit - Free CSR structure
1236 * @csr: CSR structure from @crypto_csr_init() or crypto_csr_verify()
1238 void crypto_csr_deinit(struct crypto_csr *csr);
1241 * crypto_csr_set_ec_public_key - Set public key in CSR
1242 * @csr: CSR structure from @crypto_csr_init()
1243 * @key: EC public key to set as public key in the CSR
1246 int crypto_csr_set_ec_public_key(struct crypto_csr *csr,
1250 * crypto_csr_set_name - Set name entry in CSR SubjectName
1251 * @csr: CSR structure from @crypto_csr_init()
1252 * @type: Name type to add into the CSR SubjectName
1253 * @name: UTF-8 string to write in the CSR SubjectName
1256 int crypto_csr_set_name(struct crypto_csr *csr, enum crypto_csr_name type,
1260 * crypto_csr_set_attribute - Set attribute in CSR
1261 * @csr: CSR structure from @crypto_csr_init()
1268 int crypto_csr_set_attribute(struct crypto_csr *csr, enum crypto_csr_attr attr,
1272 * crypto_csr_get_attribute - Get attribute from CSR
1273 * @csr: CSR structure from @crypto_csr_verify()
1279 const u8 * crypto_csr_get_attribute(struct crypto_csr *csr,
1284 * crypto_csr_sign - Sign CSR and return ASN.1 CertificationRequest
1285 * @csr: CSR structure from @crypto_csr_init()
1286 * @key: Private key to sign the CSR (for now ony EC key are supported)
1288 * Returns: DER encoding of ASN.1 CertificationRequest for the CSR or %NULL on
1291 struct wpabuf * crypto_csr_sign(struct crypto_csr *csr,