Generating New Master Key Shares in Vault

Vault makes use of Shamir's secret sharing scheme to split a master key into n pieces, requiring at least k of them to be presented at 'unseal' time. At initialisation time, the user specifies what values n and k should take. Vault does not make it possible to change the number of shares after initialisation … Continue reading Generating New Master Key Shares in Vault

Advertisements

Generating a Key Pair with iOS’s Secure Enclave in Swift

I found it impossible to find a segment of code which showed how to generate a secure key pair in the enclave with swift for iOS 9. So... here it is! // private key parameters let privateKeyParams: [String: AnyObject] = [ kSecAttrLabel as String: "privateLabel", kSecAttrIsPermanent as String: true, ¬† ¬† ¬† ¬†kSecAttrApplicationTag as String: … Continue reading Generating a Key Pair with iOS’s Secure Enclave in Swift