Core functions for the edhex crate.