-
Notifications
You must be signed in to change notification settings - Fork 4
/
mirage-block-ccm.opam
51 lines (46 loc) · 1.55 KB
/
mirage-block-ccm.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
opam-version: "2.0"
name: "mirage-block-ccm"
homepage: "https://github.com/sg2342/mirage-block-ccm"
dev-repo: "git+https://github.com/sg2342/mirage-block-ccm.git"
bug-reports: "https://github.com/sg2342/mirage-block-ccm/issues"
author: ["Stefan Grundmann <[email protected]>"]
maintainer: ["Stefan Grundmann <[email protected]>"]
license: "ISC"
synopsis: "AES-CCM encrypted Mirage Mirage_types.BLOCK storage"
description: """
AES-CCM encrypted Mirage Mirage_types.BLOCK storage
uses two sectors of the underlying Mirage_types.BLOCK per provided sector:
```
+-----------------------------------+
| CT | nonce | adata |
+-----------------+-----------------+
| sector n | sector n+1 |
+-----------------+-----------------+
```
- `CT` is `sector_size + maclen` bytes AES-CCM ciphertext
- `nonce` is `nonce_len` bytes random nonce
- `adata` is `sector_size - nonce_len - maclen` random additional authenticated data
"""
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.7.0"}
"cstruct" {>= "6.0.0"}
"lwt" {>= "2.4.3"}
"mirage-block" {>= "2.0.0"}
"mirage-crypto" {>= "0.11.0"}
"mirage-crypto-rng" {>= "0.11.0"}
"ounit2" {with-test}
"bisect_ppx" {dev}
"cmdliner" {>= "1.1.0"}
"astring"
"mirage-block-unix"
]
post-messages: [
"Any block device created with an earlier (< 0.2.0) version and the default
maclen (8) can no longer be decrypted. The maclen is now 16."
]