44 * This is implemented by generating a random "seed", then
55 * calling internally DeriveAuthKeyPair.
66 *
7- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-2
7+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-2
88 *
99 * @return object {private_key, public_key}
1010 */
@@ -13,7 +13,7 @@ export function opaque_ristretto255_sha512_GenerateAuthKeyPair(): Promise<{
1313 public_key : Uint8Array ;
1414} > ;
1515/**
16- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-5.1.1.1
16+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-5.1.1.1
1717 *
1818 * @param {Uint8Array } password an opaque byte string containing the client's password
1919 * @return object {request, blind}
@@ -26,7 +26,7 @@ export function opaque_ristretto255_sha512_CreateRegistrationRequest(password: U
2626 * In order to make this method not to use dynamic memory allocation, there is a
2727 * limit of credential_identifier to length <= 200.
2828 *
29- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-5.1.1.2
29+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-5.1.1.2
3030 *
3131 * @param {Uint8Array } request_raw a RegistrationRequest structure
3232 * @param {Uint8Array } server_public_key the server's public key
@@ -43,31 +43,29 @@ export function opaque_ristretto255_sha512_CreateRegistrationResponse(request_ra
4343 * executes the following function. Since this works in the internal key mode, the
4444 * "client_private_key" is null.
4545 *
46- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-5.1.1.3
46+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-5.1.1.3
4747 *
48- * @param {Uint8Array } client_private_key the client's private key (always null, internal mode)
4948 * @param {Uint8Array } password an opaque byte string containing the client's password
5049 * @param {Uint8Array } blind the OPRF scalar value used for blinding
5150 * @param {Uint8Array } response_raw a RegistrationResponse structure
5251 * @param {Uint8Array } server_identity the optional encoded server identity
5352 * @param {Uint8Array } client_identity the optional encoded client identity
5453 * @return object {record, export_key}
5554 */
56- export function opaque_ristretto255_sha512_FinalizeRequest ( client_private_key : Uint8Array , password : Uint8Array , blind : Uint8Array , response_raw : Uint8Array , server_identity : Uint8Array , client_identity : Uint8Array ) : Promise < {
55+ export function opaque_ristretto255_sha512_FinalizeRequest ( password : Uint8Array , blind : Uint8Array , response_raw : Uint8Array , server_identity : Uint8Array , client_identity : Uint8Array ) : Promise < {
5756 record : Uint8Array ;
5857 export_key : Uint8Array ;
5958} > ;
6059/**
61- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-6.2.3
60+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-6.2.3
6261 *
6362 * @param {Uint8Array } state_raw a ClientState structure
64- * @param {Uint8Array } client_identity the optional encoded client identity, which is null if not specified
6563 * @param {Uint8Array } password an opaque byte string containing the client's password
6664 * @return {Promise<Uint8Array> } a KE1 message structure
6765 */
68- export function opaque_ristretto255_sha512_3DH_ClientInit ( state_raw : Uint8Array , client_identity : Uint8Array , password : Uint8Array ) : Promise < Uint8Array > ;
66+ export function opaque_ristretto255_sha512_3DH_ClientInit ( state_raw : Uint8Array , password : Uint8Array ) : Promise < Uint8Array > ;
6967/**
70- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-6.2.3
68+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-6.2.3
7169 *
7270 * @param {Uint8Array } state_raw a ClientState structure
7371 * @param {Uint8Array } password an opaque byte string containing the client's password
@@ -85,13 +83,14 @@ export function opaque_ristretto255_sha512_3DH_ClientFinish(state_raw: Uint8Arra
8583 finish_ret : any ;
8684} > ;
8785/**
88- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-6.2.4
86+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-6.2.4
8987 *
9088 * @param {Uint8Array } state_raw a ServerState structure
9189 * @param {Uint8Array } server_identity the optional encoded server identity, which is set to
9290 * server_public_key if null
9391 * @param {Uint8Array } server_private_key the server's private key
9492 * @param {Uint8Array } server_public_key the server's public key
93+ * @param {Uint8Array } client_identity
9594 * @param {Uint8Array } record_raw the client's RegistrationUpload structure
9695 * @param {Uint8Array } credential_identifier an identifier that uniquely represents the credential
9796 * being registered
@@ -100,9 +99,9 @@ export function opaque_ristretto255_sha512_3DH_ClientFinish(state_raw: Uint8Arra
10099 * @param {Uint8Array } context the application specific context
101100 * @return {Promise<Uint8Array> } a KE2 structure
102101 */
103- export function opaque_ristretto255_sha512_3DH_ServerInit ( state_raw : Uint8Array , server_identity : Uint8Array , server_private_key : Uint8Array , server_public_key : Uint8Array , record_raw : Uint8Array , credential_identifier : Uint8Array , oprf_seed : Uint8Array , ke1_raw : Uint8Array , context : Uint8Array ) : Promise < Uint8Array > ;
102+ export function opaque_ristretto255_sha512_3DH_ServerInit ( state_raw : Uint8Array , server_identity : Uint8Array , server_private_key : Uint8Array , server_public_key : Uint8Array , client_identity : Uint8Array , record_raw : Uint8Array , credential_identifier : Uint8Array , oprf_seed : Uint8Array , ke1_raw : Uint8Array , context : Uint8Array ) : Promise < Uint8Array > ;
104103/**
105- * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-05 #section-6.2.4
104+ * See https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-opaque-07 #section-6.2.4
106105 *
107106 * @param {Uint8Array } state_raw a ServerState structure
108107 * @param {Uint8Array } ke3_raw a KE3 structure
0 commit comments