[crypto] Split crypto_algorithm into {digest,cipher,pubkey}_algorithm