Use slices in crypto instead of Vec.