Added cryptographic mechanisms to controller code, test use in topology