/crypto/ |
D | rsa_helper.c | 17 const void *value, size_t vlen) in rsa_get_n() argument 20 const u8 *ptr = value; in rsa_get_n() 24 if (!value || !vlen) in rsa_get_n() 40 key->n = value; in rsa_get_n() 47 const void *value, size_t vlen) in rsa_get_e() argument 52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e() 55 key->e = value; in rsa_get_e() 62 const void *value, size_t vlen) in rsa_get_d() argument 67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d() 70 key->d = value; in rsa_get_d() [all …]
|
D | sm2.c | 133 static int sm2_ecc_os2ec(MPI_POINT result, MPI value) in sm2_ecc_os2ec() argument 140 n = MPI_NBYTES(value); in sm2_ecc_os2ec() 145 rc = mpi_print(GCRYMPI_FMT_USG, buf, n, &n, value); in sm2_ecc_os2ec() 187 const void *value, size_t vlen) in sm2_get_signature_r() argument 191 if (!value || !vlen) in sm2_get_signature_r() 194 sig->sig_r = mpi_read_raw_data(value, vlen); in sm2_get_signature_r() 202 const void *value, size_t vlen) in sm2_get_signature_s() argument 206 if (!value || !vlen) in sm2_get_signature_s() 209 sig->sig_s = mpi_read_raw_data(value, vlen); in sm2_get_signature_s()
|
D | ecrdsa.c | 151 const void *value, size_t vlen) in ecrdsa_param_curve() argument 155 ctx->curve_oid = look_up_OID(value, vlen); in ecrdsa_param_curve() 164 const void *value, size_t vlen) in ecrdsa_param_digest() argument 167 int digest_oid = look_up_OID(value, vlen); in ecrdsa_param_digest() 175 const void *value, size_t vlen) in ecrdsa_parse_pub_key() argument 179 ctx->key = value; in ecrdsa_parse_pub_key()
|
D | wp512.c | 1018 u64 value = bits_len; in wp512_update() local 1019 for (i = 31, carry = 0; i >= 0 && (carry != 0 || value != 0ULL); i--) { in wp512_update() 1020 carry += bitLength[i] + ((u32)value & 0xff); in wp512_update() 1023 value >>= 8; in wp512_update()
|
/crypto/asymmetric_keys/ |
D | x509_cert_parser.c | 157 const void *value, size_t vlen) in x509_note_OID() argument 161 ctx->last_oid = look_up_OID(value, vlen); in x509_note_OID() 164 sprint_oid(value, vlen, buffer, sizeof(buffer)); in x509_note_OID() 166 (unsigned long)value - ctx->data, buffer); in x509_note_OID() 177 const void *value, size_t vlen) in x509_note_tbs_certificate() argument 182 hdrlen, tag, (unsigned long)value - ctx->data, vlen); in x509_note_tbs_certificate() 184 ctx->cert->tbs = value - hdrlen; in x509_note_tbs_certificate() 194 const void *value, size_t vlen) in x509_note_pkey_algo() argument 265 const void *value, size_t vlen) in x509_note_signature() argument 281 if (vlen < 1 || *(const u8 *)value != 0) in x509_note_signature() [all …]
|
D | pkcs7_parser.c | 206 const void *value, size_t vlen) in pkcs7_note_OID() argument 210 ctx->last_oid = look_up_OID(value, vlen); in pkcs7_note_OID() 213 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs7_note_OID() 215 (unsigned long)value - ctx->data, buffer); in pkcs7_note_OID() 225 const void *value, size_t vlen) in pkcs7_sig_note_digest_algo() argument 263 const void *value, size_t vlen) in pkcs7_sig_note_pkey_algo() argument 284 const void *value, size_t vlen) in pkcs7_check_content_type() argument 301 const void *value, size_t vlen) in pkcs7_note_signeddata_version() argument 309 ctx->msg->version = version = *(const u8 *)value; in pkcs7_note_signeddata_version() 335 const void *value, size_t vlen) in pkcs7_note_signerinfo_version() argument [all …]
|
D | mscode_parser.c | 38 const void *value, size_t vlen) in mscode_note_content_type() argument 42 oid = look_up_OID(value, vlen); in mscode_note_content_type() 46 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_content_type() 70 const void *value, size_t vlen) in mscode_note_digest_algo() argument 76 oid = look_up_OID(value, vlen); in mscode_note_digest_algo() 101 sprint_oid(value, vlen, buffer, sizeof(buffer)); in mscode_note_digest_algo() 118 const void *value, size_t vlen) in mscode_note_digest() argument 122 ctx->digest = kmemdup(value, vlen, GFP_KERNEL); in mscode_note_digest()
|
D | pkcs8_parser.c | 35 const void *value, size_t vlen) in pkcs8_note_OID() argument 39 ctx->last_oid = look_up_OID(value, vlen); in pkcs8_note_OID() 43 sprint_oid(value, vlen, buffer, sizeof(buffer)); in pkcs8_note_OID() 45 (unsigned long)value - ctx->data, buffer); in pkcs8_note_OID() 55 const void *value, size_t vlen) in pkcs8_note_version() argument 57 if (vlen != 1 || ((const u8 *)value)[0] != 0) { in pkcs8_note_version() 69 const void *value, size_t vlen) in pkcs8_note_algo() argument 85 const void *value, size_t vlen) in pkcs8_note_key() argument 89 ctx->key = value; in pkcs8_note_key()
|
D | tpm_parser.c | 23 const void *value, size_t vlen) in tpm_note_key() argument 27 ctx->blob = value; in tpm_note_key()
|
D | x509_parser.h | 51 const unsigned char *value, size_t vlen);
|