Searched refs:oid_size (Results 1 – 3 of 3) sorted by relevance
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | pkcs11.c | 172 size_t sig_len = 0, asn_len = 0, oid_size = 0; in mbedtls_pkcs11_sign() local 188 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in mbedtls_pkcs11_sign() 192 asn_len = 10 + oid_size; in mbedtls_pkcs11_sign() 214 *p++ = (unsigned char) ( 0x08 + oid_size + hashlen ); in mbedtls_pkcs11_sign() 216 *p++ = (unsigned char) ( 0x04 + oid_size ); in mbedtls_pkcs11_sign() 218 *p++ = oid_size & 0xFF; in mbedtls_pkcs11_sign() 219 memcpy( p, oid, oid_size ); in mbedtls_pkcs11_sign() 220 p += oid_size; in mbedtls_pkcs11_sign()
|
A D | rsa.c | 1778 size_t oid_size = 0; in rsa_rsassa_pkcs1_v15_encode() local 1790 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in rsa_rsassa_pkcs1_v15_encode() 1797 if( 8 + hashlen + oid_size >= 0x80 || in rsa_rsassa_pkcs1_v15_encode() 1799 10 + hashlen + oid_size < 10 + hashlen ) in rsa_rsassa_pkcs1_v15_encode() 1810 if( nb_pad < 10 + hashlen + oid_size ) in rsa_rsassa_pkcs1_v15_encode() 1812 nb_pad -= 10 + hashlen + oid_size; in rsa_rsassa_pkcs1_v15_encode() 1859 *p++ = (unsigned char)( 0x08 + oid_size + hashlen ); in rsa_rsassa_pkcs1_v15_encode() 1861 *p++ = (unsigned char)( 0x04 + oid_size ); in rsa_rsassa_pkcs1_v15_encode() 1863 *p++ = (unsigned char) oid_size; in rsa_rsassa_pkcs1_v15_encode() 1864 memcpy( p, oid, oid_size ); in rsa_rsassa_pkcs1_v15_encode() [all …]
|
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | processing_ec.c | 266 size_t oid_size; member 280 .oid_size = sizeof(_label ## _oid_der), \ 304 if (size == curve->oid_size && in get_curve() 305 !TEE_MemCompare(attr, curve->oid_der, curve->oid_size)) in get_curve()
|
Completed in 8 milliseconds