Skip to content

Commit

Permalink
add more curves
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Jan 11, 2025
1 parent 1e2c28a commit c0f96f9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions common/src/utils/certificate_parsing/curves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ export interface StandardCurve {
}

export const standardCurves: StandardCurve[] = [
{
name: 'secp192r1',
p: 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF',
a: 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC',
b: '64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1',
G: '04188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF101207192B95FFC8DA78631011ED6B24CDD573F977A11E794811',
n: 'FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831',
h: '01'
},
{
name: 'secp224r1',
p: 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001',
a: 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE',
b: 'B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4',
G: '04B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34',
n: 'FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D',
h: '01'
},
{
name: 'secp256r1',
p: 'FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF',
Expand Down Expand Up @@ -36,6 +54,15 @@ export const standardCurves: StandardCurve[] = [
n: '01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409',
h: '01',
},
{
name: 'brainpoolP192r1',
p: 'C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297',
a: '6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF',
b: '469A28EF7C28CCA3DC721D044F4496BCCA7EF4146FBF25C9',
G: '04C0A0647EAA7F9B8EE7C1AC4D77FC94CA14B690866ABD5BB88B5F4828C1490002E6773FA2FA299B8F',
n: 'C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86294',
h: '01',
},
{
name: 'brainpoolP224r1',
p: 'd7c134aa264366862a18302575d1d787b09f075797da89f57ec8c0ff',
Expand Down

0 comments on commit c0f96f9

Please sign in to comment.