-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve import and export of optional block PB
* During import of optional block PB, validate data field to consist only of printable ASCII characters as defined by ANSI X9.143:2021 section 4. * During export of optional block PB, generate random characters in the ranges of '0'-'9, 'A'-'Z' and 'a'-'Z'. Although optional block PB may carry any printable ASCII characters, characters outside the chosen ranges are problematic for HSM protocols that may use other printable ASCII characters as delimiters. * Update tests to verify the length of optional block PB but not the data field which will now be random
- Loading branch information
Showing
3 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters