-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
61 lines (54 loc) · 1.32 KB
/
package.yaml
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
52
53
54
55
56
57
58
59
60
61
name: p384
version: 0.1.0.0
github: "ocheron/p384"
license: BSD3
author: "Olivier Chéron"
maintainer: "olivier.cheron@gmail.com"
copyright: "2019-2020 Olivier Chéron"
extra-source-files:
- README.md
- cbits/include32/p384/*.h
- cbits/include64/p384/*.h
synopsis: Elliptic curve P-384
category: Crypto
description: Arithmetic primitives over curve P-384
flags:
b64:
description: Allow 64-bit architecture
manual: yes
default: yes
dependencies:
- base >= 4.7 && < 5
- memory
- cryptonite >= 0.25
library:
source-dirs: src
exposed-modules:
- Crypto.PubKey.ECC.P384
cc-options: -Wall
ghc-options:
- -Wall
when:
- condition: flag(b64) && (arch(x86_64) || arch(aarch64))
then:
include-dirs: cbits/include64
c-sources: cbits/p384/*.c
else:
include-dirs: cbits/include32
c-sources: cbits/p384/*.c
tests:
p384-test:
main: Tests.hs
source-dirs: tests
ghc-options:
- -Wall
- -fno-warn-missing-signatures
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- p384
- bytestring
- tasty
- tasty-hunit
- tasty-quickcheck