☰
Debian Codegraph
@
23-1
/
/
src
/
pins
/
sss
/
pin-null
☽
☼
src/pins/sss/pin-null
code
plain
raw
GPL-3.0+ with OpenSSL exception
Copyright (c) 2015-2017 Red Hat, Inc.
debian/copyright
1
#!/bin/bash -x
2
3
trap 'exit' ERR
4
5
e="$(echo -n hi | clevis encrypt null '{}')"
6
d="$(echo -n "$e" | clevis decrypt)"
7
test "$d" == "hi"
8
9
e="$(echo -n hi | clevis encrypt null '{"fail":true}')"
10
! echo "$e" | clevis decrypt