shithub: riscv

ref: cf7d50a1a1967b780fd6eb96bb22872d54e25150
dir: /sys/src/libsec/port/secp384r1.mp/

View raw version
# E: y² = x³ + ax + b 
secp384r1(p,a,b,x,y,n,h) {
	p = 2^384 - 2^128 - 2^96 + 2^32 - 1;
	a = p - 3;
	b = 0xB3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF;
	x = 0xAA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7;
	y = 0x3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F;
	n = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973;
	h = 1;
}