replace zero with crypto secureZero
This commit is contained in:
		
							parent
							
								
									0371e5a5e0
								
							
						
					
					
						commit
						628dd1da1d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -25,9 +25,9 @@ pub const Credentials = struct { | |||
|         }; | ||||
|     } | ||||
|     pub fn deinit(self: Self) void { | ||||
|         for (self.secret_key) |_, i| self.secret_key[i] = 0; | ||||
|         self.allocator.free(self.access_key); | ||||
|         std.crypto.utils.secureZero(u8, self.secret_key); | ||||
|         self.allocator.free(self.secret_key); | ||||
|         self.allocator.free(self.access_key); | ||||
|         if (self.session_token) |t| self.allocator.free(t); | ||||
|     } | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue