Home
last modified time | relevance | path

Searched full:raw (Results 1 – 25 of 80) sorted by relevance

1234

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_util.c371 * \brief Convert a single raw coordinate to DER ASN.1 format. The output der
374 * \param raw_buf Buffer containing the raw coordinate to be
385 * \return MBEDTLS_ERR_ASN1_INVALID_DATA if the input raw
388 * \warning Raw and der buffer must not be overlapping.
410 /* Copy the raw coordinate to the end of der_buf. */ in convert_raw_to_der_single_int()
433 int mbedtls_ecdsa_raw_to_der(size_t bits, const unsigned char *raw, size_t raw_len, in mbedtls_ecdsa_raw_to_der() argument
453 /* Since raw and der buffers might overlap, dump r and s before starting in mbedtls_ecdsa_raw_to_der()
455 memcpy(r, raw, coordinate_len); in mbedtls_ecdsa_raw_to_der()
456 memcpy(s, raw + coordinate_len, coordinate_len); in mbedtls_ecdsa_raw_to_der()
488 * \brief Convert a single integer from ASN.1 DER format to raw.
[all …]
H A Dx509_crl.c242 cur_entry->raw.tag = **p; in x509_get_entries()
248 cur_entry->raw.p = *p; in x509_get_entries()
249 cur_entry->raw.len = len2; in x509_get_entries()
323 * Copy raw DER-encoded CRL in mbedtls_x509_crl_parse_der()
336 crl->raw.p = p; in mbedtls_x509_crl_parse_der()
337 crl->raw.len = buflen; in mbedtls_x509_crl_parse_der()
468 end = crl->raw.p + crl->raw.len; in mbedtls_x509_crl_parse_der()
634 while (entry != NULL && entry->raw.len != 0) { in mbedtls_x509_crl_info()
699 if (crl_cur->raw.p != NULL) { in mbedtls_x509_crl_free()
700 mbedtls_zeroize_and_free(crl_cur->raw.p, crl_cur->raw.len); in mbedtls_x509_crl_free()
H A Dx509_csr.c287 * first copy the raw DER data in mbedtls_x509_csr_parse_der_internal()
297 csr->raw.p = p; in mbedtls_x509_csr_parse_der_internal()
298 csr->raw.len = len; in mbedtls_x509_csr_parse_der_internal()
399 end = csr->raw.p + csr->raw.len; in mbedtls_x509_csr_parse_der_internal()
452 * Parse a CSR, allowing for PEM or raw DER encoding
632 if (csr->raw.p != NULL) { in mbedtls_x509_csr_free()
633 mbedtls_zeroize_and_free(csr->raw.p, csr->raw.len); in mbedtls_x509_csr_free()
H A Dpkcs7.c566 pkcs7->raw.p = p = mbedtls_calloc(1, buflen); in mbedtls_pkcs7_parse_der()
567 if (pkcs7->raw.p == NULL) { in mbedtls_pkcs7_parse_der()
572 pkcs7->raw.len = buflen; in mbedtls_pkcs7_parse_der()
592 p = pkcs7->raw.p; in mbedtls_pkcs7_parse_der()
752 if (pkcs7 == NULL || pkcs7->raw.p == NULL) { in mbedtls_pkcs7_free()
756 mbedtls_free(pkcs7->raw.p); in mbedtls_pkcs7_free()
770 pkcs7->raw.p = NULL; in mbedtls_pkcs7_free()
H A Dpk_internal.h145 * [in] key, key_len: the raw private key (no ASN.1 wrapping).
154 * [in] pub, pub_len: the raw public key (an ECPoint).
170 * [in] prv, prv_len: the raw private key (see note below).
H A Dpsa_crypto_mac.h26 * psa_export_key() (i.e. the raw key bytes).
71 * psa_export_key() (i.e. the raw key bytes).
106 * psa_export_key() (i.e. the raw key bytes).
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dpsa_util.h146 /** Convert an ECDSA signature from raw format to DER ASN.1 format.
149 * \param raw Buffer that contains the signature in raw format.
150 * \param raw_len Length of \p raw in bytes. This must be
153 * output. It can overlap with raw buffer.
175 int mbedtls_ecdsa_raw_to_der(size_t bits, const unsigned char *raw, size_t raw_len,
178 /** Convert an ECDSA signature from DER ASN.1 format to raw format.
183 * \param[out] raw Buffer that will be filled with the converted raw
185 * \param raw_size Size of \p raw in bytes. Must be at least
188 * data (in bytes) written to \p raw. It's undefined
201 unsigned char *raw, size_t raw_size, size_t *raw_len);
H A Dx509_crl.h41 mbedtls_x509_buf raw; member
65 mbedtls_x509_buf raw; /**< The raw certificate data (DER). */ member
66 …mbedtls_x509_buf tbs; /**< The raw certificate body (DER). The part that is To Be Signed…
71 mbedtls_x509_buf issuer_raw; /**< The raw issuer data (DER). */
H A Drsa.h235 * \brief This function imports core RSA parameters, in raw big-endian
355 * in raw big-endian binary format.
837 * Use #MBEDTLS_MD_NONE for signing raw data.
838 * \param hashlen The length of the message digest or raw data in Bytes.
841 * \param hash The buffer holding the message digest or raw data.
869 * Use #MBEDTLS_MD_NONE for signing raw data.
870 * \param hashlen The length of the message digest or raw data in Bytes.
873 * \param hash The buffer holding the message digest or raw data.
916 * Use #MBEDTLS_MD_NONE for signing raw data.
917 * \param hashlen The length of the message digest or raw data in Bytes.
[all …]
H A Dx509_csr.h39 mbedtls_x509_buf raw; /**< The raw CSR data (DER). */ member
40 mbedtls_x509_buf cri; /**< The raw CertificateRequestInfo body (DER). */
44 mbedtls_x509_buf subject_raw; /**< The raw subject data (DER). */
51 …mbedtls_x509_sequence subject_alt_names; /**< Optional list of raw entries of Subject Alternative …
H A Dx509.h241 mbedtls_x509_buf raw; member
436 * \param san_buf The buffer holding the raw data item of the subject
446 * \note This function should be called on a single raw data of
452 * \warning The target structure contains pointers to the raw data of the
/optee_os/core/arch/arm/plat-synquacer/
H A Drng_pta.c17 * minimal entropy estimates done on 2.1G bytes of raw samples collected
28 * This routine uses secure timer interrupt to sample raw thermal sensor
37 * we need to supply 28 raw sensor readings to get 1 byte of full
39 * supply 896 bytes of raw sensor readings.
46 * Called as part of secure timer interrupt handler to sample raw
207 * NIST.SP.800-90B to condition raw data from entropy in pool_check_add_entropy()
332 * entropy given our assumption of entropy estimate for raw sensor in rng_get_info()
/optee_os/ta/pkcs11/
H A Dsub.mk16 # When enabled, embed support for CKM_RSA_X_509 (a.k.a. Raw RSA) ciphering
18 # Raw RSA can be unsafe if client uses a weak clear data padding scheme.
/optee_os/lib/libutee/include/
H A Dpta_apdu.h19 * [in] memref[2].buffer request (APDU raw frame).
21 * [out] memref[3].buffer response (APDU raw frame).
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
H A Drsa_set.c9 Import RSA key from raw numbers
51 Import factors of an RSA key from raw numbers
85 Import CRT parameters of an RSA key from raw numbers
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_get_key.c8 /** Export raw public or private key (public keys = ANS X9.63 compressed or uncompressed; private k…
/optee_os/scripts/
H A Dmem_usage.py36 parser.add_argument('-r', '--raw', action='store_true',
68 if args.raw:
171 if (args.raw and (args.all or args.init or args.paged or
/optee_os/core/lib/zlib/
H A Dinflate.h62 HEAD -> (gzip) or (zlib) or (raw)
67 (raw) -> TYPEDO
91 -1 if raw or no header yet */
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
H A Ddsa_set.c9 Import DSA's p, q & g from raw numbers
57 Import DSA public or private key-part from raw numbers
/optee_os/core/arch/riscv/kernel/
H A Dlink.mk102 cleanfiles += $(link-out-dir)/tee-raw.bin
103 $(link-out-dir)/tee-raw.bin: $(link-out-dir)/tee.elf
108 $(link-out-dir)/tee.srec: $(link-out-dir)/tee-raw.bin
/optee_os/core/lib/libtomcrypt/src/pk/dh/
H A Ddh_set.c9 Import DH key parts p and g from raw numbers
75 Import DH public or private key part from raw numbers
H A Ddh_make_key.c56 uint8_t *buf = 0; /* intermediate buffer to have a raw random */ in dh_make_key()
109 /* generate the private key in a raw-buffer */ in dh_make_key()
/optee_os/core/arch/arm/plat-imx/
H A Dlink.mk6 $(link-out-dir)/uTee: $(link-out-dir)/tee-raw.bin
/optee_os/core/include/drivers/
H A Di2c.h146 * i2c_smbus_raw() - Execute a raw SMBUS request
305 * i2c_bus_read_block_raw() - Execute a non-standard SMBus raw block read.
325 * i2c_bus_write_block_raw() - Execute a non-standard SMBus raw block write.
/optee_os/core/arch/arm/kernel/
H A Dlink.mk221 all: $(link-out-dir)/tee-raw.bin
222 cleanfiles += $(link-out-dir)/tee-raw.bin
223 $(link-out-dir)/tee-raw.bin: $(link-out-dir)/tee.elf scripts/gen_tee_bin.py
228 $(link-out-dir)/tee.srec: $(link-out-dir)/tee-raw.bin

1234