added e..

This commit is contained in:
0xdcarns
2022-01-29 10:18:13 -05:00
parent aa22afeb95
commit 3dadb8dcbf
7 changed files with 19 additions and 8 deletions
+8 -3
View File
@@ -212,9 +212,14 @@ func initializeUUID() error {
return keyErr
}
var rsaPublicKey = &rsaPrivKey.PublicKey
fmt.Printf("found modulus: %d \n", rsaPublicKey.N)
telemetry := models.Telemetry{UUID: uuid.NewString(), TrafficKeyPriv: *rsaPrivKey, TrafficKeyPub: *rsaPublicKey, PubMod: *rsaPublicKey.N}
fmt.Printf("E: %d \n", rsaPublicKey.E)
telemetry := models.Telemetry{
UUID: uuid.NewString(),
TrafficKeyPriv: *rsaPrivKey,
TrafficKeyPub: *rsaPublicKey,
PubMod: *rsaPublicKey.N,
PubE: rsaPublicKey.E,
}
telJSON, err := json.Marshal(&telemetry)
if err != nil {
return err