project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.33k stars 1.97k forks source link

src/credentials/CHIPCertFromX509.cpp:442: Error 0x00000305 #34574

Open SmartHua opened 1 month ago

SmartHua commented 1 month ago

Reproduction steps

class MyKeypairDelegate : KeypairDelegate { override fun generatePrivateKey() {

}

override fun createCertificateSigningRequest(): ByteArray {
    return CHIPConstant.createCertificateSigningRequest
}

override fun getPublicKey(): ByteArray {
    return CHIPConstant.keyPairPublicKey
}

override fun ecdsaSignMessage(message: ByteArray): ByteArray {
    return CsrManager.signer(message)
}

}

val myKeypairDelegate = MyKeypairDelegate() val operationalKeyConfig = OperationalKeyConfig( myKeypairDelegate, CHIPConstant.rca, CHIPConstant.ica, CHIPConstant.noc, CHIPConstant.ipk ) chipDeviceController = ChipDeviceController(ControllerParams.newBuilder(operationalKeyConfig) .setControllerVendorId(VENDOR_ID).build())

How to implement KeypairGate?

Bug prevalence

/

GitHub hash of the SDK that was being used

1.2

Platform

android

Platform Version(s)

No response

Anything else?

No response

sdrsdr commented 1 month ago

same here with commit 5e3127f5ac61e13c572a968199280d90a9c19dce chip-cert works for paa but not for pai

sdrsdr commented 1 month ago

I'm having this on Linux (Ububtu 24.04) so it's not android specific