jose-jwk-thp 479 B

1234567891011121314
  1. #!/bin/bash -ex
  2. a=`jose jwk thp -i $VECTORS/rfc7638_3.1.jwk -a S256`
  3. b=`cat $VECTORS/rfc7638_3.1.thp`
  4. [ $a == $b ]
  5. jwk=`jose jwk thp -i $VECTORS/rfc7520_4.8.jwkset -f HYRNOxxOOHap0amTONoy1bHnS5M`
  6. [ "`jose jwk thp -i- -a S1 <<< "$jwk"`" == "HYRNOxxOOHap0amTONoy1bHnS5M" ]
  7. jose fmt -j "$jwk" -O \
  8. -g kty -q EC -EUU \
  9. -g crv -q P-521 -EUU \
  10. -g kid -q bilbo.baggins@hobbiton.example -EUU
  11. ! jose jwk thp -i $VECTORS/rfc7520_4.8.jwkset -f VHriznG7vJAFpXMXRmGgAkA5sEE