INNER CODE UNIT · Swift

final

Kitura/BlueCryptor · Sources/Cryptor/Cryptor.swift:37

	public func final() -> [UInt8]? {
		
        let byteCount = Int(self.getOutputLength(inputByteCount: 0, isFinal: true))
		var dataOut = Array<UInt8>(repeating: 0, count:byteCount)
        var dataOutMoved = 0
        (dataOutMoved, self.status) = final(byteArrayOut: &dataOut)
        if self.status != .success {
   	        return nil
       	}
        accumulator += dataOut[0..<Int(dataOutMoved)]
        return accumulator
    }
    
    ///
	///	Upates the accumulated encrypted/decrypted data with the contents
	///	of a raw byte buffer.
	///
	///	It is not envisaged the users of the framework will need to call this directly.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…