You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
This library contains all cryptographic functions that are used by Cryptomator for iOS. The purpose of this project is to provide a separate light-weight library with its own release cycle that can be used in other projects, too.
9
9
10
-
For more information on the Cryptomator encryption scheme, visit the security architecture page on [docs.cryptomator.org](https://docs.cryptomator.org/en/1.5/security/architecture/).
10
+
For more information on the Cryptomator encryption scheme, visit the security architecture page on [docs.cryptomator.org](https://docs.cryptomator.org/en/1.6/security/architecture/).
Copy file name to clipboardexpand all lines: Sources/CryptomatorCryptoLib/AesSiv.swift
+8-4
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,14 @@ class AesSiv {
19
19
20
20
- Parameter aesKey: SIV mode requires two separate keys. You can use one long key, which is splitted in half. See [RFC 5297 Section 2.2](https://tools.ietf.org/html/rfc5297#section-2.2).
21
21
- Parameter macKey: SIV mode requires two separate keys. You can use one long key, which is splitted in half. See [RFC 5297 Section 2.2](https://tools.ietf.org/html/rfc5297#section-2.2).
22
-
- Parameter plaintext: Your plaintext, which shall be encrypted.
22
+
- Parameter plaintext: Your plaintext, which shall be encrypted. It must not be longer than 2^32 - 16 bytes.
23
23
- Parameter ad: Associated data, which gets authenticated but not encrypted.
24
24
- Returns: IV + Ciphertext as a concatenated byte array.
letciphertext=tryctr(aesKey: aesKey, iv: iv, plaintext: plaintext)
30
32
return iv + ciphertext
@@ -35,12 +37,14 @@ class AesSiv {
35
37
36
38
- Parameter aesKey: SIV mode requires two separate keys. You can use one long key, which is splitted in half. See [RFC 5297 Section 2.2](https://tools.ietf.org/html/rfc5297#section-2.2).
37
39
- Parameter macKey: SIV mode requires two separate keys. You can use one long key, which is splitted in half. See [RFC 5297 Section 2.2](https://tools.ietf.org/html/rfc5297#section-2.2).
38
-
- Parameter ciphertext: Your ciphertext, which shall be decrypted.
40
+
- Parameter ciphertext: Your ciphertext, which shall be decrypted. It must be at least 16 bytes.
39
41
- Parameter ad: Associated data, which needs to be authenticated during decryption.
0 commit comments