mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Calcuate ---> Calculate
This commit is contained in:
@@ -25607,7 +25607,7 @@ int AddSignature(byte* buf, int bodySz, const byte* sig, int sigSz,
|
|||||||
dataASN[SIGASN_IDX_SIGALGO_NULL].noOut = 1;
|
dataASN[SIGASN_IDX_SIGALGO_NULL].noOut = 1;
|
||||||
}
|
}
|
||||||
SetASN_Buffer(&dataASN[SIGASN_IDX_SIGNATURE], sig, sigSz);
|
SetASN_Buffer(&dataASN[SIGASN_IDX_SIGNATURE], sig, sigSz);
|
||||||
/* Calcuate size of signature data. */
|
/* Calculate size of signature data. */
|
||||||
ret = SizeASN_Items(&sigASN[SIGASN_IDX_SIGALGO_SEQ],
|
ret = SizeASN_Items(&sigASN[SIGASN_IDX_SIGALGO_SEQ],
|
||||||
&dataASN[SIGASN_IDX_SIGALGO_SEQ], sigASN_Length - 2, &sz);
|
&dataASN[SIGASN_IDX_SIGALGO_SEQ], sigASN_Length - 2, &sz);
|
||||||
}
|
}
|
||||||
@@ -25757,7 +25757,7 @@ static int MakeAnyCert(Cert* cert, byte* derBuffer, word32 derSz,
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* Calcuate issuer name encoding size. If the cert is self-signed
|
/* Calculate issuer name encoding size. If the cert is self-signed
|
||||||
* use the subject instead of the issuer. */
|
* use the subject instead of the issuer. */
|
||||||
issuerSz = SetNameEx(NULL, WC_ASN_NAME_MAX, cert->selfSigned ?
|
issuerSz = SetNameEx(NULL, WC_ASN_NAME_MAX, cert->selfSigned ?
|
||||||
&cert->subject : &cert->issuer, cert->heap);
|
&cert->subject : &cert->issuer, cert->heap);
|
||||||
@@ -25775,19 +25775,19 @@ static int MakeAnyCert(Cert* cert, byte* derBuffer, word32 derSz,
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* Calcuate subject name encoding size. */
|
/* Calculate subject name encoding size. */
|
||||||
subjectSz = SetNameEx(NULL, WC_ASN_NAME_MAX, &cert->subject,
|
subjectSz = SetNameEx(NULL, WC_ASN_NAME_MAX, &cert->subject,
|
||||||
cert->heap);
|
cert->heap);
|
||||||
ret = subjectSz;
|
ret = subjectSz;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
/* Calcuate public key encoding size. */
|
/* Calculate public key encoding size. */
|
||||||
ret = publicKeySz = EncodePublicKey(cert->keyType, NULL, 0, rsaKey,
|
ret = publicKeySz = EncodePublicKey(cert->keyType, NULL, 0, rsaKey,
|
||||||
eccKey, ed25519Key, ed448Key, dsaKey);
|
eccKey, ed25519Key, ed448Key, dsaKey);
|
||||||
}
|
}
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
/* Calcuate extensions encoding size - may be 0. */
|
/* Calculate extensions encoding size - may be 0. */
|
||||||
ret = extSz = EncodeExtensions(cert, NULL, 0, 0);
|
ret = extSz = EncodeExtensions(cert, NULL, 0, 0);
|
||||||
}
|
}
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
|
Reference in New Issue
Block a user