jose-alg 736 B

12345678910111213141516171819202122
  1. #!/bin/bash -ex
  2. jose alg | grep -q "^A128GCM$"
  3. jose alg -k sign | grep -q "^ES256$"
  4. jose alg -k wrap | grep -q "^A128GCMKW$"
  5. jose alg -k encr | grep -q "^A128GCM$"
  6. jose alg -k exch | grep -q "^ECDH$"
  7. ! jose alg -k sign | grep -q "^A128GCMKW$"
  8. ! jose alg -k wrap | grep -q "^A128GCM$"
  9. ! jose alg -k encr | grep -q "^ES256$"
  10. ! jose alg -k exch | grep -q "^HS256$"
  11. jose alg -k encr -k sign | grep -q "^A128GCM$"
  12. jose alg -k encr -k sign | grep -q "^ES256$"
  13. jose alg -k sign -k wrap | grep -q "^ES256$"
  14. jose alg -k sign -k wrap | grep -q "^A128GCMKW$"
  15. jose alg -k wrap -k exch | grep -q "^A128GCMKW$"
  16. jose alg -k wrap -k exch | grep -q "^ECDH$"
  17. jose alg -k exch -k encr | grep -q "^ECDH$"
  18. jose alg -k exch -k encr | grep -q "^A128GCM$"