BN_SWAP(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’… BN_SWAP β€” exchange BIGNUMs (yes bestie, it's from the 3ossl manual ✨)

Okay so listen. This is the whole entire page for BN_swap, and honestly? It's giving short king. Minimal, iconic, does exactly one thing, does it flawlessly. Let me put you on.


🌸 SYNOPSIS 🌸

#include <openssl/bn.h>

void BN_swap(BIGNUM *a, BIGNUM *b);

That's it. That's the whole vibe. Two pointers, zero drama.


πŸ¦‹ DESCRIPTION πŸ¦‹

So BN_swap() exchanges the values of a and b.

Like literally, it swaps them. What's in a goes to b, what's in b goes to a. They trade places. Main character energy on both sides, no jealousy, no notes. πŸ’…βœ¨

No cap, this is the entire description. The manpage said what it said and I respect the confidence.


πŸŽ€ RETURN VALUES πŸŽ€

BN_swap() does not return a value.

It's a void function, bestie β€” it just does the thing and ghosts. Nothing to check, nothing to compare, no error code to obsess over. Honestly? Queen behavior. πŸ‘‘


Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.

Fr fr read the license before you go copying stuff around β€” that's the whole point of the paragraph. It's not decorative. 🫢

And that's the whole page, bestie! 🌈 Version 3.5.6, dated 2026-04-07, from the BN_SWAP(3ossl) manual itself β€” go forth and swap your BIGNUMs with confidence. Swapping is free, it's legal, and it's lowkey the most satisfying operation in the whole bn.h lineup. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from