mirror of
				https://github.com/maxgoedjen/secretive.git
				synced 2025-10-31 15:30:57 +00:00 
			
		
		
		
	* WIP. * WIP * WIP Edit * Key selection. * WIP * WIP * Proxy through * WIP * Remove verify. * Migration. * Comment * Add param * Semi-offering key * Ignore updates if test build. * Fix rsa public key gen * Messily fix RSA * Remove 1024 bit rsa * Cleanup * Cleanup * Clean out MLDSA refs for now * Dump notifier changes * Put back UI tweaks * Fixes.
		
			
				
	
	
		
			21 lines
		
	
	
		
			676 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			676 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
| import Foundation
 | |
| import Testing
 | |
| @testable import SecretKit
 | |
| @testable import SecureEnclaveSecretKit
 | |
| @testable import SmartCardSecretKit
 | |
| 
 | |
| 
 | |
| @Suite struct AnySecretTests {
 | |
| 
 | |
|     @Test func eraser() {
 | |
|         let data = Data(UUID().uuidString.utf8)
 | |
|         let secret = SmartCard.Secret(id: data, name: "Name", publicKey: data, attributes: Attributes(keyType: KeyType(algorithm: .ecdsa, size: 256), authentication: .notRequired))
 | |
|         let erased = AnySecret(secret)
 | |
|         #expect(erased.id == secret.id as AnyHashable)
 | |
|         #expect(erased.name == secret.name)
 | |
|         #expect(erased.keyType == secret.keyType)
 | |
|         #expect(erased.publicKey == secret.publicKey)
 | |
|     }
 | |
| 
 | |
| }
 |