]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - dsa/dsa_key_blob.c
changing length_B to length_W to reflect earlier changes
[avr-crypto-lib.git] / dsa / dsa_key_blob.c
index 4a7955f6b9ecf45ccdfa334ce6f351b9e09d6c66..f6e761c640b227bb556db897fd62c7a3b6e579ae 100644 (file)
@@ -280,15 +280,15 @@ void load_dsa_key_blob(dsa_ctx_t* ctx){
                return;
        }
        memcpy_P(ctx->priv.wordv, dsa_key_blob, ALL_LEN_B);
-       ctx->priv.length_B=PRIV_LEN_B;
+       ctx->priv.length_W=PRIV_LEN_B;
        ctx->pub.wordv = ctx->priv.wordv+PRIV_LEN_B;
-       ctx->pub.length_B = PUB_LEN_B;
+       ctx->pub.length_W = PUB_LEN_B;
        ctx->domain.p.wordv = ctx->priv.wordv+PRIV_LEN_B+PUB_LEN_B;
-       ctx->domain.p.length_B = P_LEN_B;
+       ctx->domain.p.length_W = P_LEN_B;
        ctx->domain.q.wordv = ctx->priv.wordv+PRIV_LEN_B+PUB_LEN_B+P_LEN_B;
-       ctx->domain.q.length_B = Q_LEN_B;
+       ctx->domain.q.length_W = Q_LEN_B;
        ctx->domain.g.wordv = ctx->priv.wordv+PRIV_LEN_B+PUB_LEN_B+P_LEN_B+Q_LEN_B;
-       ctx->domain.g.length_B = G_LEN_B;
+       ctx->domain.g.length_W = G_LEN_B;
 
        bigint_changeendianess(&(ctx->priv));
        bigint_changeendianess(&(ctx->pub));