jose-jwk-eql 892 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh -ex
  2. echo $PATH
  3. jwk=`jose jwk gen -i '{"alg":"ECDH-ES"}'`
  4. oth=`jose jwk gen -i '{"alg":"ECDH-ES"}'`
  5. pub=`echo "$jwk" | jose jwk pub -i-`
  6. mod=`echo "$jwk" | jose fmt -j- -Od alg -o-`
  7. ! jose jwk eql
  8. ! echo "$jwk" | jose jwk eql -i-
  9. echo "$jwk$pub" | jose jwk eql -i- -i-
  10. echo "$jwk$mod" | jose jwk eql -i- -i-
  11. ! echo "$jwk$oth" | jose jwk eql -i- -i-
  12. echo "$jwk$pub$mod" | jose jwk eql -i- -i- -i-
  13. ! echo "$jwk$pub$oth" | jose jwk eql -i- -i- -i-
  14. jwk=`jose jwk gen -i '{"alg":"A128KW"}'`
  15. oth=`jose jwk gen -i '{"alg":"A128KW"}'`
  16. pub=`echo "$jwk" | jose jwk pub -i-`
  17. mod=`echo "$jwk" | jose fmt -j- -Od alg -o-`
  18. ! jose jwk eql
  19. ! echo "$jwk" | jose jwk eql -i-
  20. ! echo "$jwk$pub" | jose jwk eql -i- -i-
  21. echo "$jwk$mod" | jose jwk eql -i- -i-
  22. ! echo "$jwk$oth" | jose jwk eql -i- -i-
  23. ! echo "$jwk$pub$mod" | jose jwk eql -i- -i- -i-
  24. ! echo "$jwk$pub$oth" | jose jwk eql -i- -i- -i-