Square a BIGNUM: r = a * a.

Synopsis

Declared in <openssl/bn.h>

int
BN_sqr(
    BIGNUM* r,
    BIGNUM const* a,
    BN_CTX* ctx);

Return Value

1 on success, or 0 on error.

Parameters

Name

Description

r

Destination square.

a

Value to square.

ctx

BN_CTX scratch space, or NULL.

Created with MrDocs