Skip to content

capabilities=0 handling of decode_rsa_private_key and decode_rsa_public_key #229

@dirkmueller

Description

@dirkmueller

ecf10f7#diff-27d7cedf0391474af4c3d8f14bb489e6717659d58a64c6aae608647e0b2388dbR32

(see

caps: MechanismFlag | int = capabilities or DEFAULT_KEY_CAPABILITIES[KeyType.RSA]

)

the typing addition here actually changed the behavior, previous default capabilities were only used when capabilities is None.

suggest to change this back to

   caps: MechanismFlag | int = DEFAULT_KEY_CAPABILITIES[KeyType.RSA] if capabilities is None else capabilities

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions