Skip to content

feat: seed cipher and pkcs12#1

Open
jclab-joseph wants to merge 2 commits intokorea-forgefrom
feat/seed
Open

feat: seed cipher and pkcs12#1
jclab-joseph wants to merge 2 commits intokorea-forgefrom
feat/seed

Conversation

@jclab-joseph
Copy link

@jclab-joseph jclab-joseph commented Jan 31, 2024

seed

  • Test for 1.2.410.200004.1.15 seedCBCWithSHA1
  • Test for 1.2.410.200004.1.4 seedCBC
  • pkcs12 pkcs8 bag...??

const div = md.digest();
var iv = div.getBytes(16);
if (oid === pki.oids['seedCBC']) {
iv = '012345678912345';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require 16 length
"0123456789012345"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants