Searched refs:rsa_EM (Results 1 – 1 of 1) sorted by relevance
389 buffer * rsa_EM = NULL; in rsa_pad_em() local397 rsa_EM = buf_new(nsize-1); in rsa_pad_em()399 buf_putbyte(rsa_EM, 0x01); in rsa_pad_em()401 while(rsa_EM->pos != rsa_EM->size - RSA_ASN1_MAGIC_LEN - SHA1_HASH_SIZE) { in rsa_pad_em()402 buf_putbyte(rsa_EM, 0xff); in rsa_pad_em()405 memcpy(buf_getwriteptr(rsa_EM, RSA_ASN1_MAGIC_LEN), in rsa_pad_em()407 buf_incrwritepos(rsa_EM, RSA_ASN1_MAGIC_LEN); in rsa_pad_em()412 sha1_done(&hs, buf_getwriteptr(rsa_EM, SHA1_HASH_SIZE)); in rsa_pad_em()413 buf_incrwritepos(rsa_EM, SHA1_HASH_SIZE); in rsa_pad_em()415 dropbear_assert(rsa_EM->pos == rsa_EM->size); in rsa_pad_em()[all …]