Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • vendor
  • readosm-1.0.0e
  • readosm-1.0.0b
4 results

config.h.in

Blame
  • rsa-verify-test 566 B
    #! /bin/sh
    
    if [ -z "$srcdir" ] ; then
      srcdir=`pwd`
    fi
    
    data="$srcdir/nettle-benchmark.c"
    
    if [ -x rsa-verify ] ; then
      if ./rsa-verify testkey.pub testsignature < "$data" ; then
        :
      else
        exit 1;
      fi
      
      # Try modifying the data
      sed s/128/129/ < "$data" >testdata
    
      if ./rsa-verify testkey.pub testsignature < testdata 2>/dev/null; then
        exit 1
      fi
      
      # Try modifying the signature
      sed s/1/2/ <testsignature > testsignature2
      if ./rsa-verify testkey.pub testsignature2 < "$data" 2>/dev/null; then
        exit 1;
      fi
      exit 0
    else
      exit 77
    fi