An elliptic curve has no speed. BC is evidently not the right tool for performing encryption operations directly, _it_ is slow. As you said, it's best implemented in something else and then applied from bc.

Reply to this note

Please Login to reply.

Discussion

I think you're missing the point. Of course, by "ECC is slow" I meant "ECC requires too many elementary mathematical operations to be adapted to existing computer architectures". How many elementary operations are required depends on how well the underlying platform implements bigints and whether or not it also implements modular exponentiation on those bigints.

I naturally thought that, among all the tools listed in POSIX, bc _might_ be the right tool for performing these operations exactly because bigint/arbitrary precision numbers are native to it.

And my point is, whatever requires less operations with bigints or just not requires them at all will be naturally faster on any platform. Busybox bc is just an extreme example to prove this point.