There IS no such function. The max length of the digest that can be signed is <256 bits (<32 ASCII characters). This is a limitation of how ECDSA works. As there is almost no use for signing a message directly with that limitation a hash is used instead. So even in cases where the message IS less than 256 bits it is still customary to take a hash of the message and sign that rather than deal with this extreme edge case differently than all other messages >256 bits.
It sounds like you are trying to use the wrong tool for the job. The purpose of a digital SIGNATURE algorithm is to digitally SIGN not ENCRYPT messages.
OK, very good. Thanks a lot for the information. I got it now.