/security/nss/cmd/fipstest/rsa.sh

http://github.com/zpao/v8monkey · Shell · 20 lines · 8 code · 3 blank · 9 comment · 0 complexity · 65d6a42473e9d8d5f5e19a353cd43d61 MD5 · raw file

  1. #!/bin/sh
  2. #
  3. # A Bourne shell script for running the NIST RSA Validation System
  4. #
  5. # Before you run the script, set your PATH, LD_LIBRARY_PATH, ... environment
  6. # variables appropriately so that the fipstest command and the NSPR and NSS
  7. # shared libraries/DLLs are on the search path. Then run this script in the
  8. # directory where the REQUEST (.req) files reside. The script generates the
  9. # RESPONSE (.rsp) files in the same directory.
  10. request=SigGen15.req
  11. response=`echo $request | sed -e "s/req/rsp/"`
  12. echo $request $response
  13. fipstest rsa siggen $request > $response
  14. request=SigVer15.req
  15. response=`echo $request | sed -e "s/req/rsp/"`
  16. echo $request $response
  17. fipstest rsa sigver $request > $response