Searched refs:oid_size (Results 1 – 2 of 2) sorted by relevance
/net-tools-3.7.0/mbedtls-2.4.0/library/ |
D | pkcs11.c | 174 size_t sig_len = 0, asn_len = 0, oid_size = 0; in mbedtls_pkcs11_sign() local 190 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in mbedtls_pkcs11_sign() 194 asn_len = 10 + oid_size; in mbedtls_pkcs11_sign() 216 *p++ = (unsigned char) ( 0x08 + oid_size + hashlen ); in mbedtls_pkcs11_sign() 218 *p++ = (unsigned char) ( 0x04 + oid_size ); in mbedtls_pkcs11_sign() 220 *p++ = oid_size & 0xFF; in mbedtls_pkcs11_sign() 221 memcpy( p, oid, oid_size ); in mbedtls_pkcs11_sign() 222 p += oid_size; in mbedtls_pkcs11_sign()
|
D | rsa.c | 1031 size_t nb_pad, olen, oid_size = 0; in mbedtls_rsa_rsassa_pkcs1_v15_sign() local 1052 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1055 nb_pad -= 10 + oid_size; in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1087 *p++ = (unsigned char) ( 0x08 + oid_size + hashlen ); in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1089 *p++ = (unsigned char) ( 0x04 + oid_size ); in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1091 *p++ = oid_size & 0xFF; in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1092 memcpy( p, oid, oid_size ); in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1093 p += oid_size; in mbedtls_rsa_rsassa_pkcs1_v15_sign()
|