Home
last modified time | relevance | path

Searched refs:oid_size (Results 1 – 1 of 1) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/accelerator/
Drsa_alt.c2182 size_t oid_size = 0; in rsa_rsassa_pkcs1_v15_encode() local
2194 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in rsa_rsassa_pkcs1_v15_encode()
2201 if( 8 + hashlen + oid_size >= 0x80 || in rsa_rsassa_pkcs1_v15_encode()
2203 10 + hashlen + oid_size < 10 + hashlen ) in rsa_rsassa_pkcs1_v15_encode()
2214 if( nb_pad < 10 + hashlen + oid_size ) in rsa_rsassa_pkcs1_v15_encode()
2216 nb_pad -= 10 + hashlen + oid_size; in rsa_rsassa_pkcs1_v15_encode()
2263 *p++ = (unsigned char)( 0x08 + oid_size + hashlen ); in rsa_rsassa_pkcs1_v15_encode()
2265 *p++ = (unsigned char)( 0x04 + oid_size ); in rsa_rsassa_pkcs1_v15_encode()
2267 *p++ = (unsigned char) oid_size; in rsa_rsassa_pkcs1_v15_encode()
2268 memcpy( p, oid, oid_size ); in rsa_rsassa_pkcs1_v15_encode()
[all …]