Home
last modified time | relevance | path

Searched refs:cbor (Results 1 – 20 of 20) sorted by relevance

/hardware/interfaces/identity/aidl/default/libeic/
DEicCbor.c19 void eicCborInit(EicCbor* cbor, uint8_t* buffer, size_t bufferSize) { in eicCborInit() argument
20 eicMemSet(cbor, '\0', sizeof(EicCbor)); in eicCborInit()
21 cbor->size = 0; in eicCborInit()
22 cbor->bufferSize = bufferSize; in eicCborInit()
23 cbor->buffer = buffer; in eicCborInit()
24 cbor->digestType = EIC_CBOR_DIGEST_TYPE_SHA256; in eicCborInit()
25 eicOpsSha256Init(&cbor->digester.sha256); in eicCborInit()
28 void eicCborInitHmacSha256(EicCbor* cbor, uint8_t* buffer, size_t bufferSize, in eicCborInitHmacSha256() argument
30 eicMemSet(cbor, '\0', sizeof(EicCbor)); in eicCborInitHmacSha256()
31 cbor->size = 0; in eicCborInitHmacSha256()
[all …]
DEicPresentation.c146 EicCbor cbor; in eicPresentationGenerateSigningKeyPair() local
147 eicCborInit(&cbor, cborBuf, sizeof cborBuf); in eicPresentationGenerateSigningKeyPair()
148 eicCborAppendArray(&cbor, 2); in eicPresentationGenerateSigningKeyPair()
149 eicCborAppendStringZ(&cbor, "ProofOfBinding"); in eicPresentationGenerateSigningKeyPair()
150 eicCborAppendByteString(&cbor, ctx->proofOfProvisioningSha256, EIC_SHA256_DIGEST_SIZE); in eicPresentationGenerateSigningKeyPair()
151 if (cbor.size > sizeof(cborBuf)) { in eicPresentationGenerateSigningKeyPair()
156 size_t proofOfBindingSize = cbor.size; in eicPresentationGenerateSigningKeyPair()
269 EicCbor cbor; in eicPresentationValidateRequestMessage() local
270 eicCborInit(&cbor, NULL, 0); in eicPresentationValidateRequestMessage()
271 eicCborAppendArray(&cbor, 4); in eicPresentationValidateRequestMessage()
[all …]
DEicCbor.h69 void eicCborInit(EicCbor* cbor, uint8_t* buffer, size_t bufferSize);
73 void eicCborInitHmacSha256(EicCbor* cbor, uint8_t* buffer, size_t bufferSize,
82 void eicCborEnableSecondaryDigesterSha256(EicCbor* cbor, EicSha256Ctx* sha256);
85 void eicCborFinal(EicCbor* cbor, uint8_t digest[EIC_SHA256_DIGEST_SIZE]);
88 void eicCborAppend(EicCbor* cbor, const uint8_t* data, size_t size);
105 void eicCborBegin(EicCbor* cbor, int majorType, uint64_t size);
108 void eicCborAppendByteString(EicCbor* cbor, const uint8_t* data, size_t dataSize);
111 void eicCborAppendString(EicCbor* cbor, const char* str, size_t strLength);
114 void eicCborAppendStringZ(EicCbor* cbor, const char* str);
117 void eicCborAppendSimple(EicCbor* cbor, uint8_t simpleValue);
[all …]
DEicProvisioning.c180 eicCborInit(&ctx->cbor, NULL, 0); in eicProvisioningStartPersonalization()
193 eicCborAppendArray(&ctx->cbor, 4); in eicProvisioningStartPersonalization()
194 eicCborAppendStringZ(&ctx->cbor, "Signature1"); in eicProvisioningStartPersonalization()
200 eicCborAppendByteString(&ctx->cbor, coseEncodedProtectedHeaders, in eicProvisioningStartPersonalization()
206 eicCborAppendByteString(&ctx->cbor, externalAad, sizeof(externalAad)); in eicProvisioningStartPersonalization()
211 eicCborBegin(&ctx->cbor, EIC_CBOR_MAJOR_TYPE_BYTE_STRING, expectedProofOfProvisioningSize); in eicProvisioningStartPersonalization()
212 ctx->expectedCborSizeAtEnd = expectedProofOfProvisioningSize + ctx->cbor.size; in eicProvisioningStartPersonalization()
215 eicCborEnableSecondaryDigesterSha256(&ctx->cbor, &ctx->proofOfProvisioningDigester); in eicProvisioningStartPersonalization()
217 eicCborAppendArray(&ctx->cbor, 5); in eicProvisioningStartPersonalization()
218 eicCborAppendStringZ(&ctx->cbor, "ProofOfProvisioning"); in eicProvisioningStartPersonalization()
[all …]
DEicProvisioning.h60 EicCbor cbor; member
DEicPresentation.h104 EicCbor cbor; member
/hardware/interfaces/security/rkp/aidl/android/hardware/security/keymint/
DgenerateCertificateRequest.cddl7 protected: bstr .cbor {
11 payload: bstr .cbor SignatureKeyEd25519 /
12 bstr .cbor SignatureKeyP256,
13 signature: bstr ; PureEd25519(.cbor SignatureKeySignatureInput) /
14 ; ECDSA(.cbor SignatureKeySignatureInput)
34 body_protected: bstr .cbor { 1 : AlgorithmEdDSA / AlgorithmES256 },
36 payload: bstr .cbor SignatureKeyEd25519 /
37 bstr .cbor SignatureKeyP256
41 protected: bstr .cbor { 1 : AlgorithmEdDSA / AlgorithmES256 },
43 payload: bstr .cbor EekX25519 / EekP256,
[all …]
DMacedPublicKey.cddl2 protected: bstr .cbor { 1 : 5}, ; Algorithm : HMAC-256
4 payload : bstr .cbor PublicKey,
10 protected : bstr .cbor { 1 : 5 },
12 payload : bstr .cbor PublicKey
DgenerateCertificateRequestV2.cddl30 bstr .cbor T,
36 protected: bstr .cbor { 1 : AlgorithmEdDSA / AlgorithmES256 / AlgorithmES384 },
38 payload: bstr .cbor Data / nil,
46 protected: bstr .cbor { 1 : AlgorithmEdDSA / AlgorithmES256 / AlgorithmES384 },
48 payload: bstr .cbor Data / nil,
95 -4670552 : bstr .cbor PubKeyEd25519 /
96 bstr .cbor PubKeyECDSA256 /
97 bstr .cbor PubKeyECDSA384, ; Subject Public Key
105 -4670548 : bstr .cbor ConfigurationDescriptor,
122 protected : bstr .cbor { 1 : AlgorithmEdDSA / AlgorithmES256 / AlgorithmES384 },
[all …]
/hardware/interfaces/security/authgraph/aidl/android/hardware/security/authgraph/
DExplicitKeyDiceCertChain.cddl23 DiceCertChainInitialPayload = bstr .cbor PubKeyEd25519
24 / bstr .cbor PubKeyECDSA256
25 / bstr .cbor PubKeyECDSA384 ; subjectPublicKey
DSignedPubKey.cddl17 protected: bstr .cbor SignedPubKeyProtected,
19 payload: bstr .cbor PlainPubKey,
34 payload: bstr .cbor PlainPubKey,
DIdentity.cddl18 cert_chain: bstr .cbor ExplicitKeyDiceCertChain,
19 policy: bstr .cbor DicePolicy / nil,
DArc.cddl17 protected : bstr .cbor ArcProtectedHeaders,
21 ciphertext : bstr ; Enc(K, bstr .cbor Payload, encoded ArcEncStruct)
65 IdentityEncoded = bstr .cbor Identity
108 protected : bstr .cbor ArcProtectedHeaders,
DSessionIdSignature.cddl17 protected: bstr .cbor SessionIdSignatureProtected,
/hardware/interfaces/security/secretkeeper/aidl/android/hardware/security/secretkeeper/
DSecretManagement.cddl11 protected: bstr .cbor {
19 ciphertext : bstr ; AES-GCM-256(Key, bstr .cbor Payload)
44 sealing_policy : bstr .cbor DicePolicy,
56 updated_sealing_policy : bstr .cbor DicePolicy / nil,
67 RequestSeqNum = bstr .cbor uint ; Encoded in accordance with Core Deterministic Encoding
115 ResponseSeqNum = bstr .cbor uint ; Encoded in accordance with Core Deterministic Encoding
/hardware/interfaces/security/secretkeeper/aidl/vts/
Ddice_sample.rs26 use ciborium::{cbor, de, ser, value::Value};
173 Subcomponents::Minimal => cbor!([
189 let config_desc = cbor!({
242 cbor!([ in compos_subcomponent_descriptors()
/hardware/interfaces/confirmationui/aidl/vts/functional/
DAndroid.bp36 "libcn-cbor",
/hardware/interfaces/confirmationui/1.0/vts/functional/
DAndroid.bp36 "libcn-cbor",
/hardware/interfaces/confirmationui/support/
DAndroid.bp31 "src/cbor.cpp",
/hardware/interfaces/security/keymint/aidl/default/ta/
Drpc.rs27 use kmr_wire::{cbor::value::Value, coset::AsCborValue, rpc, CborError};