Library of crypto primitives for embedded systems