SourceForge has been redesigned. Learn more.
Close

#3 Arithmetic error using make-new-keys in package rsm.rsa.

rsm.rsa
closed-fixed
RSA (1)
5
2003-09-13
2003-09-13
No

An error occured using make-new-keys.
The text is:
Error: `nil' is not of the expected type `number'
[condition type: type-error]

The problem is the eventual call to get-next-prob-prime.
There are two problems.
1). This function expects an odd number as its first
argument.
2). It has a second argument that determines how many
attemtps to take to find a probable prime. If the
function is unable to find a probable prime it returns nil
rather than a number.

Discussion

  • Roland Scott McIntire

    • summary: Arithmetic error using make-new-keys --> Arithmetic error using make-new-keys in package rsm.rsa.
     
  • Roland Scott McIntire

    Logged In: YES
    user_id=847023

    This bug is now fixed. In the process, the signature of get-
    next-prob-prime has been changed. It no longer accepts a
    second argument that determines how many attempts to find
    a probable prime.

     
  • Roland Scott McIntire

    • status: open --> open-fixed
     
  • Roland Scott McIntire

    • status: open-fixed --> open-wont-fix
     
  • Roland Scott McIntire

    Logged In: YES
    user_id=847023

    The fix was in version 1.5 of rsa/rsa.lisp
    The updated documentation is in version 1.3 of
    rsa/rsm-rsa.html.

     
  • Roland Scott McIntire

    • status: open-wont-fix --> closed-fixed
     
  • Roland Scott McIntire

    Logged In: YES
    user_id=847023

    I am closing this bug.

     

Log in to post a comment.